diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee393f2ca3..9f4c3c7480f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,226 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). + +## 2.93.0 - 2026-06-02 +### Added +- Support for managing OLVM environment and endpoint fields for asset sources in the Cloud Bridge service +- Support for managing OLVM environment asset class name, asset class version, and asset details in the Cloud Bridge service +- Support for Ubuntu, Windows Server 2025, Windows 11, and Dynamic Groupings in the OS Management Hub service +- Support for S3 virtual host URLs for existing and regionally unique buckets in the Object Storage service +- Support for dual-stack IPv6 endpoints in the Management Agent Cloud service +- Support for generic VNIC Attachment node pools with application resource-based pod networking and secondary VNIC profiles in the Kubernetes Engine service +- Support for getting currentSize of the instancePool resource in the Compute service +- Support for new launch instance networkType value ACCELERATEDPV in the Compute service +- Support for filesystem snapshot locking for ransomware protection in the File Storage service +- Support for creating refresh-able metadata clones in Autonomous Database in the Database service +- Support for cross-region Data Guard for Azure, GCP, and AWS KMS-based databases in the Database MultiCloud service +- Support for multicloud policies API and OMHub Resource View and Policy Hub UI features in the Multicloud service +- Support for Development and Production domain group types in place of Lightweight and Standard in the OCI Internet of Things (OCI IoT) service +- Support for Fusion Data Intelligence (FDI) self-service integration in the Fusion Application as a Service +- Support for implementing Customer self-service feature to add egress ports in the Fusion Application as a Service +- Support for a new flag to the create and update capacity reservation APIs in the Compute service +- Support for alarms and notifications in the OCI Control Center service +- Support for Azure AD, Avro Metadata, and Microsoft Fabric Eventstream (Kafka-like) data sources in the GoldenGate service +- Support for creating branded email subdomains without delegating DNS subzone in the Fusion Apps as a Service +- Support for IPv6 endpoints in the Events service +- Support for IPv6 endpoints in the Logging service +- Support for IPv6 endpoints in the Logging Search service +- Support for IPv6 endpoints in the Logging Ingestion service +- Support for reserved private IP IDs in the Compute service +- Support for USAGE_ONLY query type in the Usage Api service +- Support for resizing Data, Reco, and Sparse disk groups in the Database service +- Support for logging line format in the Functions service +- Support for large generic v4 and v5 unit shapes in the Generative AI service +- Support for the Database Tools Runtime service +- Support for multi modality models and their new capabilities in the Generative AI service +- Support for Indirectly Connected Devices in the OCI Internet of Things (OCI IoT) service +- Support for patch APIs to add and delete multiple IPv6 prefixes in the Virtual Cloud Network service +- Support for Model Context Protocol (MCP) servers in the Database Tools service +- Support for SQL reports in the Database Tools service +- Support for database API gateway configurations in the Database Tools service +- Support for Oracle database external authentication with OCI IAM and Azure Active Directory in the Database Tools service +- Support for the Cost Anomaly Detection service +- Support for listing OCI Generative AI Guardrails versions with accuracy and performance in the Generative AI service +- Support for guardrail versions when applying guardrails in the Generative AI service +- Support for data population status on tenancy attachment in the Resource Analytics service +- Support for compute count options in the Resource Analytics service +- Support for Cluster Placement Groups (CPG) and security groups (SG) in compute capacity reports in the Compute service +- Support for failed node replacement in the Big Data service +- Support for creating new DB systems from existing DB systems with an optional replication channels in the MySQL HeatWave service +- Support for work requests to track create, update, and delete operations for streams, stream pools, and Kafka Connect configuration resources in the Streaming service +- Support for calling Oracle Cloud Infrastructure services in the me-alrayyan-1 region +- Support for Veridata deployment types in the GoldenGate service +- Support for cloning ZeroETL pipelines in the GoldenGate service +- Support for Object Storage initial load in ZeroETL pipelines in the GoldenGate service +- Support for specifying CPU core count and autoscaling in ZeroETL pipelines in the GoldenGate service +- Support for setting disaster recovery status during deployment creation in the GoldenGate service +- Support for switchover and failover mode selection in disaster recovery peer switchovers in the GoldenGate service +- Support for generating and retrieving disaster recovery precheck reports for standby peers in the GoldenGate service +- Support for scheduling policies and scheduling windows as part of granular maintenance scheduling of Exadata Infrastructure components in the Database service +- Support for specifying SGA memory percentage and distributed algorithm configuration in Autonomous VM Clusters and Cloud Autonomous VM Clusters in the Database service +- Support for DRCP in Autonomous Container Databases in the Database service +- Support for creating additional VMs in Exadata Cloud Service and Exadata Cloud@Customer in the Database service +- Support for selecting specific compute shapes during cluster placement group creation in the Cluster Placement Groups service +- Support for compute target resource when creating and managing reusable managed compute capacity for workload deployments in the Data Science service +- Support for managed compute cluster as a compute target type in the Data Science service +- Support for creating model deployments and jobs that use a compute target as the deployment infrastructure in the Data Science service +- Support for multi-inference endpoints in model deployments in the Data Science service +- Support for flexible dense virtual machine shapes in the Compute service +- Support for network firewall health status APIs in the Network Firewall service +- Support for security attributes on network firewall create and update operations in the Network Firewall service +- Support for mapped secrets on decryption rule create and update operations in the Network Firewall service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Kubernetes Engine service +- Support for Zero Trust Packet Routing (ZPR) security attributes for private endpoints in the Operations Insights service +- Support for Zero Trust Packet Routing (ZPR) security attributes for private endpoints in the Database Management service +- Support for multimodal image input and flagged modalities when applying guardrails in the Generative AI service +- Support for filtering incidents by last update time in the Cloud Incident Management service +- Support for Cloud Incident Management APIs without Customer Support Identifier (CSI) parameters in the Cloud Incident Management service +- Support for site IDs when creating and updating VMware BYOL registrations in the Oracle Cloud VMware Provisioning service +- Support for VMware Cloud Foundation (VCF) BYOL allocation IDs during ESXi host replacement and in-place upgrades in the Oracle Cloud VMware Provisioning service    + +### Breaking Changes +- Methods public `java.util.Map getDefinedTags()` and `public java.util.Map getFreeformTags()` have been removed from the models `com.oracle.bmc.cloudbridge.model.ApplianceImageSummary` and `com.oracle.bmc.cloudbridge.model.SupportedCloudRegionSummary` in the Cloud Bridge service +- The method `public java.lang.Boolean getCompartmentIdInSubtree()` has been removed from the requests `com.oracle.bmc.multicloud.requests.ListNetworkAnchorsRequest` in the MultiCloud service +- Introduced a 2 MB maximum serialized encryption header size in the `bmc-encryption` module and updated client-side validation to throw `IllegalArgumentException` instead of `RuntimeException` when `OciCrypto.createEncryptingStream(...)`, `OciCrypto.encryptData(...)`, `OciCrypto.createDecryptingStream(...)`, or `OciCrypto.decryptData(...)` encounters an invalid encryption header size or an oversized encryption context +- Parameter types for `forDeployment(...)` waiter overloads have changed from `LifecycleState` / `LifecycleState[]` to `Deployment.LifecycleState` / `Deployment.LifecycleState[]` in `GoldenGateWaiters` in the GoldenGate service +- Parameter types for `forDeploymentBackup(...)` waiter overloads have changed from `LifecycleState` / `LifecycleState[]` to `DeploymentBackup.LifecycleState` / `DeploymentBackup.LifecycleState[]` in `GoldenGateWaiters` in the GoldenGate service +- Parameter types for `forDeploymentUpgrade(...)` waiter overloads have changed from `LifecycleState` / `LifecycleState[]` to `DeploymentUpgrade.LifecycleState` / `DeploymentUpgrade.LifecycleState[]` in `GoldenGateWaiters` in the GoldenGate service +- Method `getPrivateIp()` has been removed from models `CreateGoldenGateConnectionDetails`, `CreateJavaMessageServiceConnectionDetails`, `CreateKafkaSchemaRegistryConnectionDetails`, `CreateMicrosoftSqlserverConnectionDetails`, `CreateMysqlConnectionDetails`, in the GoldenGate service. +- Return type of method `getLifecycleState()` has been changed to `LifecycleState` in the models `Deployment`, `DeploymentBackup`, `DeploymentBackupSummary`, `DeploymentSummary`, `DeploymentUpgrade`, `DeploymentUpgradeSummary` in the GoldenGate service +- Method `getTimeUpgradeRequired()` has been removed from models `Deployment`, `DeploymentSummary` in the GoldenGate service +- Class `DeploymentUpgradeLifecycleState` has been removed in the GoldenGate service +- Field G`oldengateConnectionAssigmnentDelete` has been removed from `OperationType` in the GoldenGate service +- Return types of method `getLifecycleState()` have been changed in request models `ListDeploymentBackupsRequest`, `ListDeploymentPeersRequest`, `ListDeploymentUpgradesRequest`, and `ListDeploymentsRequest` in the GoldenGate service +- The fields `freefromTags` and `definedTags` were removed from the model `CreateIdentityTokenDetails` in the Redis service +- The fields `ClusterAdminPassword` and `SecretId` were removed from the model `com.oracle.bmc.bds.model.CreateBdsCertificateConfigurationDetails` in the Big Data service +- Fields `Idcs` and `IdcsCustomService` have been removed from the model `AuthConfiguration$Type` in the Data Science service +- Class `com.oracle.bmc.datascience.model.CreateIdcsAuthConfigurationDetails` has been removed in the Data Science service +- Class `com.oracle.bmc.datascience.model.CreateIdcsCustomServiceAuthConfigurationDetails` has been removed in the Data Science service +- Class `com.oracle.bmc.datascience.model.IdcsAuthConfiguration` has been removed in the Data Science service +- Class `com.oracle.bmc.datascience.model.IdcsCustomServiceAuthConfiguration` has been removed in the Data Science service +- The field `customerSupportKey` was removed from the model `TenancyInformation` in the Customer Incident Management service +- The field `csi` was removed from the models `CreateIncident`, `CreateUserDetails`, and `User` in the Customer Incident Management service +- The field `csi` was removed from the requests `GetIncidentRequest`, `ListIncidentResourceTypesRequest`, `ListIncidentsRequest`, `PutAttachmentRequest`, `UpdateIncidentRequest`, and `ValidateUserRequest` in the Customer Incident Management service + +## 2.92.0 - 2026-05-19 +### Added +- Support for calling Oracle Cloud Infrastructure services in the me-alrayyan-1 region +- Support for managing OLVM environment and endpoint fields for asset sources in the Cloud Bridge service +- Support for managing OLVM environment asset class name, asset class version, and asset details in the Cloud Bridge service +- Support for Ubuntu, Windows Server 2025, Windows 11, and Dynamic Groupings in the OS Management Hub service +- Support for S3 virtual host URLs for existing and regionally unique buckets in the Object Storage service +- Support for dual-stack IPv6 endpoints in the Management Agent Cloud service +- Support for generic VNIC Attachment node pools with application resource-based pod networking and secondary VNIC profiles in the Kubernetes Engine service +- Support for getting currentSize of the instancePool resource in the Compute service +- Support for new launch instance networkType value ACCELERATEDPV in the Compute service +- Support for filesystem snapshot locking for ransomware protection in the File Storage service +- Support for creating refresh-able metadata clones in Autonomous Database in the Database service +- Support for cross-region Data Guard for Azure, GCP, and AWS KMS-based databases in the Database MultiCloud service +- Support for multicloud policies API and OMHub Resource View and Policy Hub UI features in the Multicloud service +- Support for Development and Production domain group types in place of Lightweight and Standard in the OCI Internet of Things (OCI IoT) service +- Support for Fusion Data Intelligence (FDI) self-service integration in the Fusion Application as a Service +- Support for implementing Customer self-service feature to add egress ports in the Fusion Application as a Service +- Support for a new flag to the create and update capacity reservation APIs in the Compute service +- Support for alarms and notifications in the OCI Control Center service +- Support for Azure AD, Avro Metadata, and Microsoft Fabric Eventstream (Kafka-like) data sources in the GoldenGate service +- Support for creating branded email subdomains without delegating DNS subzone in the Fusion Apps as a Service +- Support for IPv6 endpoints in the Events service +- Support for IPv6 endpoints in the Logging service +- Support for IPv6 endpoints in the Logging Search service +- Support for IPv6 endpoints in the Logging Ingestion service +- Support for reserved private IP IDs in the Compute service +- Support for USAGE_ONLY query type in the Usage Api service +- Support for resizing Data, Reco, and Sparse disk groups in the Database service +- Support for logging line format in the Functions service +- Support for OCI cache backup/restore and export/import in the Redis service +- Support for embed V4 multimodal capabilities in the Generative AI Inference service +- Support for new rerank models `CohereH100X1`, `CohereA10080GX1`, `CohereA10040GX1` , `CohereA10X1` in dedicated AI clusters in the Generative AI service +- Support for improved failure and logging visibility during container creation in the Batch service +- Support for group tasks, enhanced task execution observability, job and task lifecycle event visibility, updated job lifecycle behavior and increased task argument length limit in the Batch service +- Support for activity logs in dedicated KMS in the Key Management service +- Support for demo fusion environment type in the Fusion Apps as a Service service +- Support for adding Vanity Domain feature in the Fusion Apps as a Service service +- Support for IPv6 dual stack endpoint in the Java Management Service +- Support for listing Java installation usage summaries with JRE security status filter in the Java Management service +- Support for enabling inheritance in security zone entities after deletion in the Cloud Guard service +- Support for large generic v4 and v5 unit shapes in the Generative AI service +- Support for the Database Tools Runtime service +- Support for multi modality models and their new capabilities in the Generative AI service +- Support for Indirectly Connected Devices in the OCI Internet of Things (OCI IoT) service +- Support for patch APIs to add and delete multiple IPv6 prefixes in the Virtual Cloud Network service +- Support for Model Context Protocol (MCP) servers in the Database Tools service +- Support for SQL reports in the Database Tools service +- Support for database API gateway configurations in the Database Tools service +- Support for Oracle database external authentication with OCI IAM and Azure Active Directory in the Database Tools service +- Support for the Cost Anomaly Detection service +- Support for listing OCI Generative AI Guardrails versions with accuracy and performance in the Generative AI service +- Support for guardrail versions when applying guardrails in the Generative AI service +- Support for data population status on tenancy attachment in the Resource Analytics service +- Support for compute count options in the Resource Analytics service +- Support for Cluster Placement Groups (CPG) and security groups (SG) in compute capacity reports in the Compute service +- Support for failed node replacement in the Big Data service +- Support for creating new DB systems from existing DB systems with an optional replication channels in the MySQL HeatWave service +- Support for work requests to track create, update, and delete operations for streams, stream pools, and Kafka Connect configuration resources in the Streaming service +- Support for Veridata deployment types in the GoldenGate service +- Support for cloning ZeroETL pipelines in the GoldenGate service +- Support for Object Storage initial load in ZeroETL pipelines in the GoldenGate service +- Support for specifying CPU core count and autoscaling in ZeroETL pipelines in the GoldenGate service +- Support for setting disaster recovery status during deployment creation in the GoldenGate service +- Support for switchover and failover mode selection in disaster recovery peer switchovers in the GoldenGate service +- Support for generating and retrieving disaster recovery precheck reports for standby peers in the GoldenGate service +- Support for scheduling policies and scheduling windows as part of granular maintenance scheduling of Exadata Infrastructure components in the Database service +- Support for specifying System Global Area (SGA) memory percentage and distributed algorithm configuration in Autonomous VM Clusters and Cloud Autonomous VM Clusters in the Database service +- Support for Database Resident Connection Pooling (DRCP) in Autonomous Container Databases in the Database service +- Support for creating additional VMs in Exadata Cloud Service and Exadata Cloud@Customer in the Database service +- Support for selecting specific compute shapes during cluster placement group creation in the Cluster Placement Groups service +- Support for compute target resource when creating and managing reusable managed compute capacity for workload deployments in the Data Science service +- Support for managed compute cluster as a compute target type in the Data Science service +- Support for creating model deployments and jobs that use a compute target as the deployment infrastructure in the Data Science service +- Support for multi-inference endpoints in model deployments in the Data Science service +- Support for flexible dense virtual machine shapes in the Compute service +- Support for network firewall health status APIs in the Network Firewall service +- Support for security attributes when creating and updating network firewalls in the Network Firewall service +- Support for mapped secrets when creating and updating decryption rules in the Network Firewall service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Kubernetes Engine service + +### Breaking Changes +- Methods `public java.util.Map getDefinedTags()` and `public java.util.Map getFreeformTags()` have been removed from the models `com.oracle.bmc.cloudbridge.model.ApplianceImageSummary` and `com.oracle.bmc.cloudbridge.model.SupportedCloudRegionSummary` in the Cloud Bridge service +- The method `public java.lang.Boolean getCompartmentIdInSubtree()` has been removed from the requests `com.oracle.bmc.multicloud.requests.ListNetworkAnchorsRequest` in the MultiCloud service +- Introduced a 2 MB maximum serialized encryption header size in the `bmc-encryption` module and updated client-side validation to throw `IllegalArgumentException` instead of `RuntimeException` when `OciCrypto.createEncryptingStream(...)`, `OciCrypto.encryptData(...)`, `OciCrypto.createDecryptingStream(...)`, or `OciCrypto.decryptData(...)` encounters an invalid encryption header size or an oversized encryption context +- Parameter types for `forDeployment(...)` waiter overloads have changed from `LifecycleState` / `LifecycleState[]` to `Deployment.LifecycleState` / `Deployment.LifecycleState[]` in `GoldenGateWaiters` in the GoldenGate service. +- Parameter types for `forDeploymentBackup(...)` waiter overloads have changed from `LifecycleState` / `LifecycleState[]` to `DeploymentBackup.LifecycleState` / `DeploymentBackup.LifecycleState[]` in `GoldenGateWaiters` in the GoldenGate service. +- Parameter types for `forDeploymentUpgrade(...)` waiter overloads have changed from `LifecycleState` / `LifecycleState[]` to `DeploymentUpgrade.LifecycleState` / `DeploymentUpgrade.LifecycleState[]` in `GoldenGateWaiters` in the GoldenGate service. +- Method `getPrivateIp()` has been removed from models `CreateGoldenGateConnectionDetails`, `CreateJavaMessageServiceConnectionDetails`, `CreateKafkaSchemaRegistryConnectionDetails`, `CreateMicrosoftSqlserverConnectionDetails`, `CreateMysqlConnectionDetails`, in the GoldenGate service. +- Return type of method `getLifecycleState()` has been changed to `LifecycleState` in the models `Deployment`, `DeploymentBackup`, `DeploymentBackupSummary`, `DeploymentSummary`, `DeploymentUpgrade`, `DeploymentUpgradeSummary` in the GoldenGate service. +- Method `getTimeUpgradeRequired()` has been removed from models `Deployment`, `DeploymentSummary` in the GoldenGate service. +- Class `DeploymentUpgradeLifecycleState` has been removed in the GoldenGate service. +- Field `GoldengateConnectionAssigmnentDelete` has been removed from `OperationType` in the GoldenGate service. +- Return types of method `getLifecycleState()` have been changed in request models `ListDeploymentBackupsRequest`, `ListDeploymentPeersRequest`, `ListDeploymentUpgradesRequest`, and `ListDeploymentsRequest` in the GoldenGate service. +- The fields `freefromTags` and `definedTags` were removed from the model `CreateIdentityTokenDetails` in the Redis service +- The method `public CreateBdsCertificateConfigurationDetails(java.lang.String, java.lang.String, com.oracle.bmc.bds.model.BdsCertificateConfiguration$Type, java.lang.String, char[], java.lang.String)` has been removed from `com.oracle.bmc.bds.model.CreateBdsCertificateConfigurationDetails` in the Big Data service (BDS) +- The methods `public java.lang.String getClusterAdminPassword()`, `public char[] getClusterAdminPassword__AsCharArray()`, and `public java.lang.String getSecretId()` has been removed from `com.oracle.bmc.bds.model.CreateBdsCertificateConfigurationDetails` in the Big Data service (BDS) +- Fields `Idcs` and `IdcsCustomService` have been removed from the model `AuthConfiguration$Type` in the Data Science service +- Class `com.oracle.bmc.datascience.model.CreateIdcsAuthConfigurationDetails` has been removed in the Data Science service +- Class `com.oracle.bmc.datascience.model.CreateIdcsCustomServiceAuthConfigurationDetails` has been removed in the Data Science service +- Class `com.oracle.bmc.datascience.model.IdcsAuthConfiguration` has been removed in the Data Science service +- Class `com.oracle.bmc.datascience.model.IdcsCustomServiceAuthConfiguration` has been removed in the Data Science service +- To improve performance, the `SecretsClient`, `SecretsAsyncClient`, `VaultsClient`, and `VaultsAsyncClient` have changed the default configurator to re-use connections, with 100 total connections, a 100 default maximum connections per route, and an idle connection timeout of 60 seconds. + - If you want to disable these performance improvements and use the settings from the previous versions, you can set the system properties as follows: + ``` + oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.secrets.SecretsClient=false + oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.secrets.SecretsAsyncClient=false + oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient=false + oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsAsyncClient=false + ``` + - See [README.md](/README.md) for more information. + +### Changed +- Updated jackson-core to 2.21.2, jackson-databind to 2.21.2, and jackson-annotations to 2.21 + +### Fixed +- Fixed an `IllegalArgumentException` when using PKCS#1 AES-256 encrypted private keys +- Fixed race conditions in `IdleConnectionMonitor` and stabilized its concurrency behavior ## 2.91.0 - 2026-03-31 ### Added diff --git a/README.md b/README.md index 194fa23d220..e272a5d2518 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,33 @@ For details on compatibility, advanced configurations, and add-ons, see [Configu ``` System.setProperty("oci.javasdk.token.refresh.enabled", "false"); ``` +- *ConnectionPoolingApacheConfigurator*: Some clients now have `ConnectionPoolingApacheConfigurator` set as their default configurator (called out in the CHANGELOG.md file). Unless a different `ClientConfigurator` is passed when creating the client, this default configurator is used for all client instances using the `ConnectionPoolingApacheConfigurator`. For clients that now use `ConnectionPoolingApacheConfigurator`, this is enabled by default, which is a breaking change. It can be disabled using system properties exposed in `Options.java`. + - To disable it for all supported clients, set the global system property: + ``` + System.setProperty("oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.global", "false"); + ``` + or pass it to the Java runtime: + ``` + -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.global=false + ``` + - To disable it for a specific client class, set the per-class system property using the fully qualified client class name: + ``` + System.setProperty("oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient", "false"); + ``` + or pass it to the Java runtime: + ``` + -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient=false + ``` + - Sync and async clients use separate per-class properties, so if you want to disable both you must set both class-specific properties: + ``` + System.setProperty("oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient", "false"); + System.setProperty("oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsAsyncClient", "false"); + ``` + or pass them to the Java runtime: + ``` + -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient=false -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsAsyncClient=false + ``` + - The global property applies to all supported clients. The per-class property applies only to the named client class. Both properties default to `"true"`, and the configurator is used only when both the global property and that client class property are enabled. ## Examples diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 7826696aab0..f8bc1f11604 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 c962dd5aad0..7d5243e8a32 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.91.0 + 2.93.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml index a13172b599c..a4aff57705a 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.91.0 + 2.93.0 ../pom.xml oci-java-sdk-addons-graalvm @@ -127,24 +127,24 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.91.0 + 2.93.0 test com.oracle.oci.sdk oci-java-sdk-identity - 2.91.0 + 2.93.0 test com.oracle.oci.sdk oci-java-sdk-core - 2.91.0 + 2.93.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 ecec8cf219b..43d5aaaa30c 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 @@ -43,11 +43,13 @@ "com.oracle.bmc.containerinstances.SdkClientsMetadata", "com.oracle.bmc.containerregistry.SdkClientsMetadata", "com.oracle.bmc.core.SdkClientsMetadata", + "com.oracle.bmc.costad.SdkClientsMetadata", "com.oracle.bmc.dashboardservice.SdkClientsMetadata", "com.oracle.bmc.database.SdkClientsMetadata", "com.oracle.bmc.databasemanagement.SdkClientsMetadata", "com.oracle.bmc.databasemigration.SdkClientsMetadata", "com.oracle.bmc.databasetools.SdkClientsMetadata", + "com.oracle.bmc.databasetoolsruntime.SdkClientsMetadata", "com.oracle.bmc.datacatalog.SdkClientsMetadata", "com.oracle.bmc.dataflow.SdkClientsMetadata", "com.oracle.bmc.dataintegration.SdkClientsMetadata", diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 8631e7a1d09..ce3a0d12c12 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.91.0 + 2.93.0 4.0.0 @@ -38,7 +38,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.fasterxml.jackson.core diff --git a/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/OkeWorkloadIdentityAuthenticationDetailsProvider.java b/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/OkeWorkloadIdentityAuthenticationDetailsProvider.java index c0762ddb254..31a3f7f14e1 100644 --- a/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/OkeWorkloadIdentityAuthenticationDetailsProvider.java +++ b/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/OkeWorkloadIdentityAuthenticationDetailsProvider.java @@ -161,7 +161,10 @@ public static class OkeWorkloadIdentityAuthenticationDetailsProviderBuilder private ServiceAccountTokenSupplier serviceAccountTokenSupplier; /** Flag to enable new Service Account level token caching */ - private boolean isTokenCachingEnabled = false; + private boolean isTokenCachingEnabled = true; + + /** Flag to check if default session key supplier is used */ + private boolean isUsingDefaultSessionKeySupplier = false; public OkeWorkloadIdentityAuthenticationDetailsProviderBuilder() { this.serviceAccountTokenSupplier = new DefaultServiceAccountTokenProvider(); @@ -220,6 +223,10 @@ public OkeWorkloadIdentityAuthenticationDetailsProviderBuilder isTokenCachingEna public OkeWorkloadIdentityAuthenticationDetailsProvider build() { // autodetect region autoDetectEndpointUsingMetadataUrl(); + + // If a sessionKeySupplier is not provided by the customer, the default supplier is used + this.isUsingDefaultSessionKeySupplier = this.sessionKeySupplier == null; + // if customer has enabled new SA level token caching then use custom implementation of // SessionKeySupplier else it will fall back to non-caching SDK behaviour. if (this.isTokenCachingEnabled) { @@ -308,7 +315,8 @@ protected FederationClient createFederationClient(SessionKeySupplier sessionKeyS serviceAccountTokenSupplier, provider, configurator, - circuitBreakerConfig); + circuitBreakerConfig, + isUsingDefaultSessionKeySupplier); } @Override diff --git a/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/internal/OkeWorkloadIdentityResourcePrincipalsFederationClient.java b/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/internal/OkeWorkloadIdentityResourcePrincipalsFederationClient.java index 6cbeafec862..9337e761bbc 100644 --- a/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/internal/OkeWorkloadIdentityResourcePrincipalsFederationClient.java +++ b/bmc-addons/bmc-oke-workload-identity/src/main/java/com/oracle/bmc/auth/okeworkloadidentity/internal/OkeWorkloadIdentityResourcePrincipalsFederationClient.java @@ -36,6 +36,7 @@ import java.time.Duration; import com.oracle.bmc.util.internal.StringUtils; import java.nio.charset.StandardCharsets; +import java.time.Instant; import java.util.HashMap; import java.util.Map; @@ -54,13 +55,24 @@ public class OkeWorkloadIdentityResourcePrincipalsFederationClient private static final String JWT_FORMAT = "Bearer %s"; private final String KUBERNETES_SERVICE_HOST = "KUBERNETES_SERVICE_HOST"; private final int PROXYMUX_SERVER_PORT = 12250; + private static final long MAX_RETRY_DELAY_SECONDS = 900; // 15 minutes private final ServiceAccountTokenSupplier serviceAccountTokenSupplier; + private final boolean isUsingDefaultSessionKeySupplier; /** * The authentication provider to sign the internal requests. */ private final OkeTenancyOnlyAuthenticationDetailsProvider provider; + /** Tracks the time of the last failed refresh attempt. */ + private volatile Instant lastFailureTime = null; + + /** + * The duration for which token refresh should be skipped after a failure. Calculated as a + * fraction of the remaining token validity. + */ + private volatile Duration backoffDuration = Duration.ZERO; + /** * Constructor of OkeWorkloadIdentityResourcePrincipalsFederationClient. * @param federationEndpoint @@ -86,6 +98,37 @@ public OkeWorkloadIdentityResourcePrincipalsFederationClient( circuitBreakerConfiguration); this.serviceAccountTokenSupplier = serviceAccountTokenSupplier; this.provider = okeTenancyOnlyAuthenticationDetailsProvider; + this.isUsingDefaultSessionKeySupplier = true; + } + + /** + * Constructor of OkeWorkloadIdentityResourcePrincipalsFederationClient. + * @param federationEndpoint + * @param sessionKeySupplier the session key supplier. + * @param okeTenancyOnlyAuthenticationDetailsProvider the key pair authentication details provider. + * @param clientConfigurator the reset client configurator. + * @param isUsingDefaultSessionKeySupplier the flag to indicate the type of session key supplier + */ + public OkeWorkloadIdentityResourcePrincipalsFederationClient( + String federationEndpoint, + SessionKeySupplier sessionKeySupplier, + ServiceAccountTokenSupplier serviceAccountTokenSupplier, + OkeTenancyOnlyAuthenticationDetailsProvider okeTenancyOnlyAuthenticationDetailsProvider, + ClientConfigurator clientConfigurator, + CircuitBreakerConfiguration circuitBreakerConfiguration, + boolean isUsingDefaultSessionKeySupplier) { + + // we don't use a resourcePrincipalTokenEndpoint, therefore blank + super( + "", + federationEndpoint, + sessionKeySupplier, + okeTenancyOnlyAuthenticationDetailsProvider, + clientConfigurator, + circuitBreakerConfiguration); + this.serviceAccountTokenSupplier = serviceAccountTokenSupplier; + this.provider = okeTenancyOnlyAuthenticationDetailsProvider; + this.isUsingDefaultSessionKeySupplier = isUsingDefaultSessionKeySupplier; } /** @@ -97,24 +140,62 @@ public OkeWorkloadIdentityResourcePrincipalsFederationClient( @Override public String getSecurityToken() { SecurityTokenAdapter securityTokenAdapter = getSecurityTokenAdapter(); + boolean isTokenValid = securityTokenAdapter.isValid(); + + // Check for valid token and ongoing backoff period + if (isTokenValid && lastFailureTime != null) { + // Check if we are still within the calculated backoff period + Duration elapsedSinceFailure = Duration.between(lastFailureTime, Instant.now()); + if (elapsedSinceFailure.compareTo(backoffDuration) < 0) { + // Skip the token refresh request because of previous failure and valid token + LOG.info( + "Skipping token refresh due to recent failure (backoff active for {}s). Returning cached token.", + backoffDuration.getSeconds()); + return securityTokenAdapter.getSecurityToken(); + } + LOG.info("Backoff period expired. Attempting token refresh."); + } + try { Duration time = Duration.ZERO; - if (securityTokenAdapter.isValid()) { - if (securityTokenAdapter.getTokenValidDuration() != null) { - // Calculate the half of the token's total valid duration - Duration halfDuration = - securityTokenAdapter.getTokenValidDuration().dividedBy(2); - // Generate Jitter Factor: a random value between 0.95 and 1.05 (i.e., ±5%) - double jitterFactor = 1.0 + (Math.random() * 0.1 - 0.05); - // Apply the jitter factor - time = halfDuration.multipliedBy((long) (jitterFactor * 1000)).dividedBy(1000); - } + if (isTokenValid) { + // Calculate the half of the token's total valid duration + Duration halfDuration = securityTokenAdapter.getTokenValidDuration().dividedBy(2); + // Generate Jitter Factor: a random value between 0.95 and 1.05 (i.e., ±5%) + double jitterFactor = 1.0 + (Math.random() * 0.1 - 0.05); + time = halfDuration.multipliedBy((long) (jitterFactor * 1000)).dividedBy(1000); } String token = refreshAndGetSecurityTokenIfExpiringWithin(time); + + // Success: clear any pending failure state + lastFailureTime = null; + backoffDuration = Duration.ZERO; + logTokenInfo(token); return token; } catch (Exception e) { - LOG.info("Refresh RPST token failed, use cached RPST token.", e); + LOG.error( + "Refresh Workload Identity Auth token failed, use cached Workload Identity Auth token.", + e); + // Mark previous execution as failed + lastFailureTime = Instant.now(); + + if (isTokenValid) { + Duration remainingDuration = securityTokenAdapter.getTokenRemainingDuration(); + LOG.info("remainingDurationSeconds: {}", remainingDuration.getSeconds()); + + backoffDuration = + remainingDuration.getSeconds() < Duration.ofHours(2).getSeconds() + ? Duration.ofSeconds(0) + : Duration.ofSeconds(MAX_RETRY_DELAY_SECONDS); + LOG.error( + "Token refresh failed. Initiating backoff for {}s.", + backoffDuration.getSeconds()); + } else { + backoffDuration = Duration.ZERO; + LOG.error("Token refresh failed and cached token is invalid/expired. No backoff"); + } + return securityTokenAdapter.getSecurityToken(); } } @@ -172,6 +253,10 @@ protected SecurityTokenAdapter getSecurityTokenFromServer() { String opcRequestId = generateRequestId(); LOG.debug("Request id for resourcePrincipalSessionTokens request: '{}'", opcRequestId); + if (isUsingDefaultSessionKeySupplier) { + LOG.info("Using default session key supplier"); + } + /* If the SettableSessionKeySupplier is configured as sessionKeySupplier then prefer new ServiceAccount * level token caching which involves calling new caching enabled endpoint of proxymux else * fallback to old endpoint @@ -211,9 +296,12 @@ private SecurityTokenAdapter getSecurityTokenFromServerV1(String token, String o try { setProxymuxEndPoint(); + String base64EncodedPublicKey = AuthUtils.base64EncodeNoChunking(publicKey); + if (StringUtils.isBlank(base64EncodedPublicKey)) { + throw new IllegalArgumentException("Public key cannot be blank"); + } GetOkeResourcePrincipalSessionTokenRequest getOkeResourcePrincipalSessionTokenRequest = - new GetOkeResourcePrincipalSessionTokenRequest( - AuthUtils.base64EncodeNoChunking(publicKey)); + new GetOkeResourcePrincipalSessionTokenRequest(base64EncodedPublicKey); WebTarget target = restClient.getBaseTarget().path("resourcePrincipalSessionTokens"); Invocation.Builder ib = target.request(); diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 29634ae914c..a794f5db76d 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.91.0 + 2.93.0 ../pom.xml @@ -25,7 +25,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 8cf961fe20a..f1a63c41eba 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.91.0 + 2.93.0 ../pom.xml @@ -62,7 +62,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index b92551ee6b7..9eac2a053bd 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index d8373dd06b4..21cdfdfc001 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-adm @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 72a4246315f..6a5e437cf0a 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 102137f4456..678c6617dda 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-aidocument @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index ec42046ce80..503d9e56276 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-ailanguage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 64cfd90dc53..8fd7b2cc9f8 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-aispeech @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 0c2fd602e71..43df15139d3 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-aivision @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 5d47977b810..09e8db606d2 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-analytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 663df7205ff..40ba7c31997 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-announcementsservice @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index b7b46c26060..4633853ff8a 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 646cda65675..ccc18e47d91 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apigateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 9e55800c521..f5dbc625549 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 42451ab955d..dabc97052c9 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apmconfig @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 7a23e0e650b..bfca6e84e3e 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 9ba6e665adb..a0968cfc325 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java index 13a30e15beb..234092ce0bd 100644 --- a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java @@ -29,19 +29,25 @@ public static class Builder { * Password. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -75,6 +81,13 @@ public Builder toBuilder() { @Deprecated public PasswordInText(String password) { + super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public PasswordInText(char[] password) { super(); this.password = password; } @@ -83,13 +96,25 @@ public PasswordInText(String password) { * Password. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Password. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Password. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index a3b7a8c6614..ee9d18d5998 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-apmtraces @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 5b4031554a4..8bb3e61deff 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index c7c3b97c6eb..a59e9c68f8a 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-artifacts @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 5d2613013bc..31de47c6c87 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 2adf58b1621..edfe13cf7a4 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-autoscaling @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 33ed4c28090..d1d511e4f48 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-bastion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index ca794663575..87063de3135 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputing.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputing.java index ec467af1c65..cf2701ff111 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputing.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputing.java @@ -380,7 +380,7 @@ DeleteBatchTaskEnvironmentResponse deleteBatchTaskEnvironment( ListBatchJobTasksResponse listBatchJobTasks(ListBatchJobTasksRequest request); /** - * Lists the batch jobs by compartment or job [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJob to get the full details on a specific context + * Lists the batch jobs by compartment or job [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJob to get the full details on a specific context * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputingAsync.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputingAsync.java index 7b6a64d033a..d06bb7d6a2f 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputingAsync.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/BatchComputingAsync.java @@ -476,7 +476,7 @@ java.util.concurrent.Future listBatchJobTasks( handler); /** - * Lists the batch jobs by compartment or job [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJob to get the full details on a specific context + * Lists the batch jobs by compartment or job [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJob to get the full details on a specific context * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchContextShapesConverter.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchContextShapesConverter.java index 192cdb81801..e572b47e5ce 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchContextShapesConverter.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchContextShapesConverter.java @@ -64,6 +64,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPage())); } + if (request.getShapeType() != null) { + target = + target.queryParam( + "shapeType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getShapeType().getValue())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchJobTasksConverter.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchJobTasksConverter.java index bbb1d9a55c6..306aece089f 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchJobTasksConverter.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchJobTasksConverter.java @@ -56,6 +56,38 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getName())); } + if (request.getTaskId() != null) { + target = + target.queryParam( + "taskId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTaskId())); + } + + if (request.getGroupTaskName() != null) { + target = + target.queryParam( + "groupTaskName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getGroupTaskName())); + } + + if (request.getType() != null) { + target = + target.queryParam( + "type", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getType().getValue())); + } + + if (request.getHierarchyView() != null) { + target = + target.queryParam( + "hierarchyView", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getHierarchyView().getValue())); + } + if (request.getLimit() != null) { target = target.queryParam( diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchTasksConverter.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchTasksConverter.java index fb8c98eb524..5ab76190706 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchTasksConverter.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/internal/http/ListBatchTasksConverter.java @@ -65,6 +65,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getName())); } + if (request.getTaskId() != null) { + target = + target.queryParam( + "taskId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTaskId())); + } + if (request.getLimit() != null) { target = target.queryParam( diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContext.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContext.java index 7430bd7c5e1..5e71d8d7282 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContext.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContext.java @@ -207,14 +207,14 @@ public Builder lifecycleState(LifecycleState lifecycleState) { return this; } /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state 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 @@ -624,14 +624,14 @@ public LifecycleState getLifecycleState() { } /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. * * @return the value **/ diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContextSummary.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContextSummary.java index fec90bbf24e..e95a522bc04 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContextSummary.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchContextSummary.java @@ -189,14 +189,14 @@ public Builder lifecycleState(BatchContext.LifecycleState lifecycleState) { return this; } /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state 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 @@ -464,14 +464,14 @@ public BatchContext.LifecycleState getLifecycleState() { } /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. + * A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state. * * @return the value **/ diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTask.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTask.java index cfc67fb65f2..2fafc060746 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTask.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTask.java @@ -22,7 +22,11 @@ defaultImpl = BatchTask.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ComputeTask.class, name = "COMPUTE") + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ComputeTask.class, + name = "COMPUTE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = GroupTask.class, name = "GROUP") }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class BatchTask extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -30,6 +34,8 @@ public class BatchTask extends com.oracle.bmc.http.internal.ExplicitlySetBmcMode @java.beans.ConstructorProperties({ "id", "name", + "hierarchicalName", + "groupTaskName", "description", "lifecycleState", "lifecycleDetails", @@ -40,6 +46,8 @@ public class BatchTask extends com.oracle.bmc.http.internal.ExplicitlySetBmcMode protected BatchTask( String id, String name, + String hierarchicalName, + String groupTaskName, String description, LifecycleState lifecycleState, String lifecycleDetails, @@ -49,6 +57,8 @@ protected BatchTask( super(); this.id = id; this.name = name; + this.hierarchicalName = hierarchicalName; + this.groupTaskName = groupTaskName; this.description = description; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -85,6 +95,34 @@ public String getName() { return name; } + /** + * The hierarchical name of the task, which incorporates names of all parent group tasks, separated by "." (dot symbol). Maximum nesting depth is 4 levels. Example: groupTaskA.nestedGroupTaskB.thisTaskName + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hierarchicalName") + private final String hierarchicalName; + + /** + * The hierarchical name of the task, which incorporates names of all parent group tasks, separated by "." (dot symbol). Maximum nesting depth is 4 levels. Example: groupTaskA.nestedGroupTaskB.thisTaskName + * @return the value + **/ + public String getHierarchicalName() { + return hierarchicalName; + } + + /** + * The hierarchical name of the group task. Null for top-level tasks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groupTaskName") + private final String groupTaskName; + + /** + * The hierarchical name of the group task. Null for top-level tasks. + * @return the value + **/ + public String getGroupTaskName() { + return groupTaskName; + } + /** * An optional description that provides additional context next to the displayName. **/ @@ -197,13 +235,13 @@ public java.util.List getEntitlementClaims() { } /** - * A list of tasks from the same job this task depends on referenced by name. + * A list of tasks on which this tasks depends, referenced by name. Dependencies must be within the same parent (job or group task). For tasks within a group task, all dependencies must also be within that same group task. **/ @com.fasterxml.jackson.annotation.JsonProperty("dependencies") private final java.util.List dependencies; /** - * A list of tasks from the same job this task depends on referenced by name. + * A list of tasks on which this tasks depends, referenced by name. Dependencies must be within the same parent (job or group task). For tasks within a group task, all dependencies must also be within that same group task. * @return the value **/ public java.util.List getDependencies() { @@ -240,6 +278,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", hierarchicalName=").append(String.valueOf(this.hierarchicalName)); + sb.append(", groupTaskName=").append(String.valueOf(this.groupTaskName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -262,6 +302,8 @@ public boolean equals(Object o) { BatchTask other = (BatchTask) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.hierarchicalName, other.hierarchicalName) + && java.util.Objects.equals(this.groupTaskName, other.groupTaskName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -277,6 +319,12 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.hierarchicalName == null ? 43 : this.hierarchicalName.hashCode()); + result = + (result * PRIME) + + (this.groupTaskName == null ? 43 : this.groupTaskName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) @@ -302,6 +350,7 @@ public int hashCode() { **/ public enum Type { Compute("COMPUTE"), + Group("GROUP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskExecutionDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskExecutionDetails.java new file mode 100644 index 00000000000..25d4ec19260 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskExecutionDetails.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Execution details for a batch task. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = BatchTaskExecutionDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ComputeTaskExecutionDetails.class, + name = "COMPUTE_TASK_EXECUTION_DETAILS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class BatchTaskExecutionDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected BatchTaskExecutionDetails() { + 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("BatchTaskExecutionDetails("); + 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 BatchTaskExecutionDetails)) { + return false; + } + + BatchTaskExecutionDetails other = (BatchTaskExecutionDetails) 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 execution details. + **/ + public enum Type { + ComputeTaskExecutionDetails("COMPUTE_TASK_EXECUTION_DETAILS"), + + /** + * This value is used if a service returns a value for this 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-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskHierarchyView.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskHierarchyView.java new file mode 100644 index 00000000000..c9097c3f762 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskHierarchyView.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Defines the hierarchical scope of the tasks to be returned. When set to SHALLOW, which is default, only tasks contained directly (non-recursively) within current hierarchy entry are returned. When set to DEEP, tasks contained within current hierarchy entry and all its descendants recursively are returned. The default hierarchy entry is root, i.e. batch job itself. To use a different hierarchy entry, provide the group task name as a query parameter. The specified group task becomes the entry point instead of the batch job. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +public enum BatchTaskHierarchyView { + Shallow("SHALLOW"), + Deep("DEEP"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BatchTaskHierarchyView v : BatchTaskHierarchyView.values()) { + map.put(v.getValue(), v); + } + } + + BatchTaskHierarchyView(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BatchTaskHierarchyView create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid BatchTaskHierarchyView: " + key); + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfile.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfile.java index 21472571709..835c63ee0e3 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfile.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfile.java @@ -31,6 +31,8 @@ public final class BatchTaskProfile extends com.oracle.bmc.http.internal.Explici "description", "minOcpus", "minMemoryInGBs", + "minDiskSizeInGBs", + "extendedInformation", "lifecycleState", "timeCreated", "timeUpdated", @@ -45,6 +47,8 @@ public BatchTaskProfile( String description, Integer minOcpus, Integer minMemoryInGBs, + Integer minDiskSizeInGBs, + BatchTaskProfileExtendedInformation extendedInformation, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -58,6 +62,8 @@ public BatchTaskProfile( this.description = description; this.minOcpus = minOcpus; this.minMemoryInGBs = minMemoryInGBs; + this.minDiskSizeInGBs = minDiskSizeInGBs; + this.extendedInformation = extendedInformation; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -164,6 +170,32 @@ public Builder minMemoryInGBs(Integer minMemoryInGBs) { this.__explicitlySet__.add("minMemoryInGBs"); return this; } + /** + * The minimum required size of disk space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDiskSizeInGBs") + private Integer minDiskSizeInGBs; + + /** + * The minimum required size of disk space in GBs. + * @param minDiskSizeInGBs the value to set + * @return this builder + **/ + public Builder minDiskSizeInGBs(Integer minDiskSizeInGBs) { + this.minDiskSizeInGBs = minDiskSizeInGBs; + this.__explicitlySet__.add("minDiskSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedInformation") + private BatchTaskProfileExtendedInformation extendedInformation; + + public Builder extendedInformation( + BatchTaskProfileExtendedInformation extendedInformation) { + this.extendedInformation = extendedInformation; + this.__explicitlySet__.add("extendedInformation"); + return this; + } /** * The current state of the batch task profile. * @@ -310,6 +342,8 @@ public BatchTaskProfile build() { this.description, this.minOcpus, this.minMemoryInGBs, + this.minDiskSizeInGBs, + this.extendedInformation, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -342,6 +376,12 @@ public Builder copy(BatchTaskProfile model) { if (model.wasPropertyExplicitlySet("minMemoryInGBs")) { this.minMemoryInGBs(model.getMinMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("minDiskSizeInGBs")) { + this.minDiskSizeInGBs(model.getMinDiskSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("extendedInformation")) { + this.extendedInformation(model.getExtendedInformation()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -459,6 +499,27 @@ public Integer getMinMemoryInGBs() { return minMemoryInGBs; } + /** + * The minimum required size of disk space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDiskSizeInGBs") + private final Integer minDiskSizeInGBs; + + /** + * The minimum required size of disk space in GBs. + * @return the value + **/ + public Integer getMinDiskSizeInGBs() { + return minDiskSizeInGBs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedInformation") + private final BatchTaskProfileExtendedInformation extendedInformation; + + public BatchTaskProfileExtendedInformation getExtendedInformation() { + return extendedInformation; + } + /** * The current state of the batch task profile. * @@ -648,6 +709,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", minOcpus=").append(String.valueOf(this.minOcpus)); sb.append(", minMemoryInGBs=").append(String.valueOf(this.minMemoryInGBs)); + sb.append(", minDiskSizeInGBs=").append(String.valueOf(this.minDiskSizeInGBs)); + sb.append(", extendedInformation=").append(String.valueOf(this.extendedInformation)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -674,6 +737,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.minOcpus, other.minOcpus) && java.util.Objects.equals(this.minMemoryInGBs, other.minMemoryInGBs) + && java.util.Objects.equals(this.minDiskSizeInGBs, other.minDiskSizeInGBs) + && java.util.Objects.equals(this.extendedInformation, other.extendedInformation) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -697,6 +762,14 @@ public int hashCode() { result = (result * PRIME) + (this.minMemoryInGBs == null ? 43 : this.minMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.minDiskSizeInGBs == null ? 43 : this.minDiskSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.extendedInformation == null + ? 43 + : this.extendedInformation.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileExtendedInformation.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileExtendedInformation.java new file mode 100644 index 00000000000..940127ccf86 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileExtendedInformation.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information for the task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = BatchTaskProfileExtendedInformation.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CpuArchitectureTaskProfileExtendedInformation.class, + name = "CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CpuShapeTaskProfileExtendedInformation.class, + name = "CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = GpuShapeTaskProfileExtendedInformation.class, + name = "GPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class BatchTaskProfileExtendedInformation + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected BatchTaskProfileExtendedInformation() { + 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("BatchTaskProfileExtendedInformation("); + 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 BatchTaskProfileExtendedInformation)) { + return false; + } + + BatchTaskProfileExtendedInformation other = (BatchTaskProfileExtendedInformation) 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 extended information. + **/ + public enum Type { + CpuArchitectureTaskProfileExtendedInformation( + "CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION"), + CpuShapeTaskProfileExtendedInformation("CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION"), + GpuShapeTaskProfileExtendedInformation("GPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION"), + + /** + * This value is used if a service returns a value for this 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-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileSummary.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileSummary.java index 76521ba5ea8..cc335167da0 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileSummary.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskProfileSummary.java @@ -29,6 +29,8 @@ public final class BatchTaskProfileSummary "description", "minOcpus", "minMemoryInGBs", + "minDiskSizeInGBs", + "extendedInformation", "lifecycleState", "timeCreated", "timeUpdated", @@ -43,6 +45,8 @@ public BatchTaskProfileSummary( String description, Integer minOcpus, Integer minMemoryInGBs, + Integer minDiskSizeInGBs, + BatchTaskProfileExtendedInformation extendedInformation, BatchTaskProfile.LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -56,6 +60,8 @@ public BatchTaskProfileSummary( this.description = description; this.minOcpus = minOcpus; this.minMemoryInGBs = minMemoryInGBs; + this.minDiskSizeInGBs = minDiskSizeInGBs; + this.extendedInformation = extendedInformation; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -162,6 +168,32 @@ public Builder minMemoryInGBs(Integer minMemoryInGBs) { this.__explicitlySet__.add("minMemoryInGBs"); return this; } + /** + * The minimum required size of disk space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDiskSizeInGBs") + private Integer minDiskSizeInGBs; + + /** + * The minimum required size of disk space in GBs. + * @param minDiskSizeInGBs the value to set + * @return this builder + **/ + public Builder minDiskSizeInGBs(Integer minDiskSizeInGBs) { + this.minDiskSizeInGBs = minDiskSizeInGBs; + this.__explicitlySet__.add("minDiskSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedInformation") + private BatchTaskProfileExtendedInformation extendedInformation; + + public Builder extendedInformation( + BatchTaskProfileExtendedInformation extendedInformation) { + this.extendedInformation = extendedInformation; + this.__explicitlySet__.add("extendedInformation"); + return this; + } /** * The current state of the batch task profile. * @@ -308,6 +340,8 @@ public BatchTaskProfileSummary build() { this.description, this.minOcpus, this.minMemoryInGBs, + this.minDiskSizeInGBs, + this.extendedInformation, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -340,6 +374,12 @@ public Builder copy(BatchTaskProfileSummary model) { if (model.wasPropertyExplicitlySet("minMemoryInGBs")) { this.minMemoryInGBs(model.getMinMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("minDiskSizeInGBs")) { + this.minDiskSizeInGBs(model.getMinDiskSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("extendedInformation")) { + this.extendedInformation(model.getExtendedInformation()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -457,6 +497,27 @@ public Integer getMinMemoryInGBs() { return minMemoryInGBs; } + /** + * The minimum required size of disk space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDiskSizeInGBs") + private final Integer minDiskSizeInGBs; + + /** + * The minimum required size of disk space in GBs. + * @return the value + **/ + public Integer getMinDiskSizeInGBs() { + return minDiskSizeInGBs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedInformation") + private final BatchTaskProfileExtendedInformation extendedInformation; + + public BatchTaskProfileExtendedInformation getExtendedInformation() { + return extendedInformation; + } + /** * The current state of the batch task profile. * @@ -597,6 +658,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", minOcpus=").append(String.valueOf(this.minOcpus)); sb.append(", minMemoryInGBs=").append(String.valueOf(this.minMemoryInGBs)); + sb.append(", minDiskSizeInGBs=").append(String.valueOf(this.minDiskSizeInGBs)); + sb.append(", extendedInformation=").append(String.valueOf(this.extendedInformation)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -623,6 +686,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.minOcpus, other.minOcpus) && java.util.Objects.equals(this.minMemoryInGBs, other.minMemoryInGBs) + && java.util.Objects.equals(this.minDiskSizeInGBs, other.minDiskSizeInGBs) + && java.util.Objects.equals(this.extendedInformation, other.extendedInformation) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -646,6 +711,14 @@ public int hashCode() { result = (result * PRIME) + (this.minMemoryInGBs == null ? 43 : this.minMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.minDiskSizeInGBs == null ? 43 : this.minDiskSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.extendedInformation == null + ? 43 + : this.extendedInformation.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskSummary.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskSummary.java index ad6253ab150..172950688c4 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskSummary.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/BatchTaskSummary.java @@ -25,6 +25,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ComputeTaskSummary.class, name = "COMPUTE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = GroupTaskSummary.class, + name = "GROUP" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -34,6 +38,8 @@ public class BatchTaskSummary extends com.oracle.bmc.http.internal.ExplicitlySet "id", "jobId", "name", + "hierarchicalName", + "groupTaskName", "description", "lifecycleState", "lifecycleDetails" @@ -42,6 +48,8 @@ protected BatchTaskSummary( String id, String jobId, String name, + String hierarchicalName, + String groupTaskName, String description, BatchTask.LifecycleState lifecycleState, String lifecycleDetails) { @@ -49,6 +57,8 @@ protected BatchTaskSummary( this.id = id; this.jobId = jobId; this.name = name; + this.hierarchicalName = hierarchicalName; + this.groupTaskName = groupTaskName; this.description = description; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -96,6 +106,34 @@ public String getName() { return name; } + /** + * The hierarchical name of the task, which incorporates names of all parent group tasks, separated by "." (dot symbol). Maximum nesting depth is 4 levels. Example: groupTaskA.nestedGroupTaskB.thisTaskName + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hierarchicalName") + private final String hierarchicalName; + + /** + * The hierarchical name of the task, which incorporates names of all parent group tasks, separated by "." (dot symbol). Maximum nesting depth is 4 levels. Example: groupTaskA.nestedGroupTaskB.thisTaskName + * @return the value + **/ + public String getHierarchicalName() { + return hierarchicalName; + } + + /** + * The hierarchical name of the group task. Null for top-level tasks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groupTaskName") + private final String groupTaskName; + + /** + * The hierarchical name of the group task. Null for top-level tasks. + * @return the value + **/ + public String getGroupTaskName() { + return groupTaskName; + } + /** * An optional description that provides additional context next to the displayName. **/ @@ -157,6 +195,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", jobId=").append(String.valueOf(this.jobId)); sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", hierarchicalName=").append(String.valueOf(this.hierarchicalName)); + sb.append(", groupTaskName=").append(String.valueOf(this.groupTaskName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -177,6 +217,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.jobId, other.jobId) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.hierarchicalName, other.hierarchicalName) + && java.util.Objects.equals(this.groupTaskName, other.groupTaskName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -190,6 +232,12 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.jobId == null ? 43 : this.jobId.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.hierarchicalName == null ? 43 : this.hierarchicalName.hashCode()); + result = + (result * PRIME) + + (this.groupTaskName == null ? 43 : this.groupTaskName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTask.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTask.java index 27aa64b75e8..894f5da2493 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTask.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTask.java @@ -43,6 +43,24 @@ public Builder name(String name) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("hierarchicalName") + private String hierarchicalName; + + public Builder hierarchicalName(String hierarchicalName) { + this.hierarchicalName = hierarchicalName; + this.__explicitlySet__.add("hierarchicalName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("groupTaskName") + private String groupTaskName; + + public Builder groupTaskName(String groupTaskName) { + this.groupTaskName = groupTaskName; + this.__explicitlySet__.add("groupTaskName"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; @@ -170,6 +188,23 @@ public Builder batchTaskEnvironmentId(String batchTaskEnvironmentId) { this.__explicitlySet__.add("batchTaskEnvironmentId"); return this; } + /** + * List of up to 30 most recent execution history entries, from newest to oldest. Be aware that the maximum number of items returned may change in the future. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mostRecentExecutionHistory") + private java.util.List mostRecentExecutionHistory; + + /** + * List of up to 30 most recent execution history entries, from newest to oldest. Be aware that the maximum number of items returned may change in the future. + * @param mostRecentExecutionHistory the value to set + * @return this builder + **/ + public Builder mostRecentExecutionHistory( + java.util.List mostRecentExecutionHistory) { + this.mostRecentExecutionHistory = mostRecentExecutionHistory; + this.__explicitlySet__.add("mostRecentExecutionHistory"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -179,6 +214,8 @@ public ComputeTask build() { new ComputeTask( this.id, this.name, + this.hierarchicalName, + this.groupTaskName, this.description, this.lifecycleState, this.lifecycleDetails, @@ -189,7 +226,8 @@ public ComputeTask build() { this.command, this.arguments, this.fleetAssignmentPolicy, - this.batchTaskEnvironmentId); + this.batchTaskEnvironmentId, + this.mostRecentExecutionHistory); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -204,6 +242,12 @@ public Builder copy(ComputeTask model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } + if (model.wasPropertyExplicitlySet("hierarchicalName")) { + this.hierarchicalName(model.getHierarchicalName()); + } + if (model.wasPropertyExplicitlySet("groupTaskName")) { + this.groupTaskName(model.getGroupTaskName()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -237,6 +281,9 @@ public Builder copy(ComputeTask model) { if (model.wasPropertyExplicitlySet("batchTaskEnvironmentId")) { this.batchTaskEnvironmentId(model.getBatchTaskEnvironmentId()); } + if (model.wasPropertyExplicitlySet("mostRecentExecutionHistory")) { + this.mostRecentExecutionHistory(model.getMostRecentExecutionHistory()); + } return this; } } @@ -256,6 +303,8 @@ public Builder toBuilder() { public ComputeTask( String id, String name, + String hierarchicalName, + String groupTaskName, String description, LifecycleState lifecycleState, String lifecycleDetails, @@ -266,10 +315,13 @@ public ComputeTask( java.util.List command, java.util.List arguments, FleetAssignmentPolicy fleetAssignmentPolicy, - String batchTaskEnvironmentId) { + String batchTaskEnvironmentId, + java.util.List mostRecentExecutionHistory) { super( id, name, + hierarchicalName, + groupTaskName, description, lifecycleState, lifecycleDetails, @@ -281,6 +333,7 @@ public ComputeTask( this.arguments = arguments; this.fleetAssignmentPolicy = fleetAssignmentPolicy; this.batchTaskEnvironmentId = batchTaskEnvironmentId; + this.mostRecentExecutionHistory = mostRecentExecutionHistory; } /** @@ -346,6 +399,20 @@ public String getBatchTaskEnvironmentId() { return batchTaskEnvironmentId; } + /** + * List of up to 30 most recent execution history entries, from newest to oldest. Be aware that the maximum number of items returned may change in the future. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mostRecentExecutionHistory") + private final java.util.List mostRecentExecutionHistory; + + /** + * List of up to 30 most recent execution history entries, from newest to oldest. Be aware that the maximum number of items returned may change in the future. + * @return the value + **/ + public java.util.List getMostRecentExecutionHistory() { + return mostRecentExecutionHistory; + } + @Override public String toString() { return this.toString(true); @@ -365,6 +432,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", arguments=").append(String.valueOf(this.arguments)); sb.append(", fleetAssignmentPolicy=").append(String.valueOf(this.fleetAssignmentPolicy)); sb.append(", batchTaskEnvironmentId=").append(String.valueOf(this.batchTaskEnvironmentId)); + sb.append(", mostRecentExecutionHistory=") + .append(String.valueOf(this.mostRecentExecutionHistory)); sb.append(")"); return sb.toString(); } @@ -385,6 +454,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.fleetAssignmentPolicy, other.fleetAssignmentPolicy) && java.util.Objects.equals( this.batchTaskEnvironmentId, other.batchTaskEnvironmentId) + && java.util.Objects.equals( + this.mostRecentExecutionHistory, other.mostRecentExecutionHistory) && super.equals(other); } @@ -409,6 +480,11 @@ public int hashCode() { + (this.batchTaskEnvironmentId == null ? 43 : this.batchTaskEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.mostRecentExecutionHistory == null + ? 43 + : this.mostRecentExecutionHistory.hashCode()); return result; } } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskExecutionDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskExecutionDetails.java new file mode 100644 index 00000000000..0afe22b8fce --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskExecutionDetails.java @@ -0,0 +1,440 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Execution details for a compute task. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeTaskExecutionDetails.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 ComputeTaskExecutionDetails extends BatchTaskExecutionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A unique identifier for the task execution. Created as "taskId:taskVersion:runNumber". + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executionId") + private String executionId; + + /** + * A unique identifier for the task execution. Created as "taskId:taskVersion:runNumber". + * @param executionId the value to set + * @return this builder + **/ + public Builder executionId(String executionId) { + this.executionId = executionId; + this.__explicitlySet__.add("executionId"); + return this; + } + /** + * The date and time when the lifecycleState was changed to Waiting, and it is waiting for its dependencies to run, 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("timeTransitionedToWaitingDependencies") + private java.util.Date timeTransitionedToWaitingDependencies; + + /** + * The date and time when the lifecycleState was changed to Waiting, and it is waiting for its dependencies to run, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @param timeTransitionedToWaitingDependencies the value to set + * @return this builder + **/ + public Builder timeTransitionedToWaitingDependencies( + java.util.Date timeTransitionedToWaitingDependencies) { + this.timeTransitionedToWaitingDependencies = timeTransitionedToWaitingDependencies; + this.__explicitlySet__.add("timeTransitionedToWaitingDependencies"); + return this; + } + /** + * The date and time when the lifecycleState was changed to Waiting, and it is queued to be executed, 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("timeTransitionedToWaitingQueued") + private java.util.Date timeTransitionedToWaitingQueued; + + /** + * The date and time when the lifecycleState was changed to Waiting, and it is queued to be executed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @param timeTransitionedToWaitingQueued the value to set + * @return this builder + **/ + public Builder timeTransitionedToWaitingQueued( + java.util.Date timeTransitionedToWaitingQueued) { + this.timeTransitionedToWaitingQueued = timeTransitionedToWaitingQueued; + this.__explicitlySet__.add("timeTransitionedToWaitingQueued"); + return this; + } + /** + * The date and time when the lifecycleState was changed to In_Progress, 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("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time when the lifecycleState was changed to In_Progress, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time when the lifecycleState changed to Succeeded, or Failed, 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("timeCompleted") + private java.util.Date timeCompleted; + + /** + * The date and time when the lifecycleState changed to Succeeded, or Failed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @param timeCompleted the value to set + * @return this builder + **/ + public Builder timeCompleted(java.util.Date timeCompleted) { + this.timeCompleted = timeCompleted; + this.__explicitlySet__.add("timeCompleted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fleetShape") + private FleetShapeExecutionDetails fleetShape; + + public Builder fleetShape(FleetShapeExecutionDetails fleetShape) { + this.fleetShape = fleetShape; + this.__explicitlySet__.add("fleetShape"); + return this; + } + /** + * The terminal lifecycle state of the task for this execution. Valid values are: SUCCEEDED, NEEDS_ATTENTION, CANCELED, or FAILED. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("completionLifecycleState") + private BatchTask.LifecycleState completionLifecycleState; + + /** + * The terminal lifecycle state of the task for this execution. Valid values are: SUCCEEDED, NEEDS_ATTENTION, CANCELED, or FAILED. + * @param completionLifecycleState the value to set + * @return this builder + **/ + public Builder completionLifecycleState(BatchTask.LifecycleState completionLifecycleState) { + this.completionLifecycleState = completionLifecycleState; + this.__explicitlySet__.add("completionLifecycleState"); + return this; + } + /** + * List of error messages related to this task execution. Be aware that the maximum number of items returned may change in the future. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errors") + private java.util.List errors; + + /** + * List of error messages related to this task execution. Be aware that the maximum number of items returned may change in the future. + * @param errors the value to set + * @return this builder + **/ + public Builder errors(java.util.List errors) { + this.errors = errors; + this.__explicitlySet__.add("errors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeTaskExecutionDetails build() { + ComputeTaskExecutionDetails model = + new ComputeTaskExecutionDetails( + this.executionId, + this.timeTransitionedToWaitingDependencies, + this.timeTransitionedToWaitingQueued, + this.timeStarted, + this.timeCompleted, + this.fleetShape, + this.completionLifecycleState, + this.errors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeTaskExecutionDetails model) { + if (model.wasPropertyExplicitlySet("executionId")) { + this.executionId(model.getExecutionId()); + } + if (model.wasPropertyExplicitlySet("timeTransitionedToWaitingDependencies")) { + this.timeTransitionedToWaitingDependencies( + model.getTimeTransitionedToWaitingDependencies()); + } + if (model.wasPropertyExplicitlySet("timeTransitionedToWaitingQueued")) { + this.timeTransitionedToWaitingQueued(model.getTimeTransitionedToWaitingQueued()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeCompleted")) { + this.timeCompleted(model.getTimeCompleted()); + } + if (model.wasPropertyExplicitlySet("fleetShape")) { + this.fleetShape(model.getFleetShape()); + } + if (model.wasPropertyExplicitlySet("completionLifecycleState")) { + this.completionLifecycleState(model.getCompletionLifecycleState()); + } + if (model.wasPropertyExplicitlySet("errors")) { + this.errors(model.getErrors()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ComputeTaskExecutionDetails( + String executionId, + java.util.Date timeTransitionedToWaitingDependencies, + java.util.Date timeTransitionedToWaitingQueued, + java.util.Date timeStarted, + java.util.Date timeCompleted, + FleetShapeExecutionDetails fleetShape, + BatchTask.LifecycleState completionLifecycleState, + java.util.List errors) { + super(); + this.executionId = executionId; + this.timeTransitionedToWaitingDependencies = timeTransitionedToWaitingDependencies; + this.timeTransitionedToWaitingQueued = timeTransitionedToWaitingQueued; + this.timeStarted = timeStarted; + this.timeCompleted = timeCompleted; + this.fleetShape = fleetShape; + this.completionLifecycleState = completionLifecycleState; + this.errors = errors; + } + + /** + * A unique identifier for the task execution. Created as "taskId:taskVersion:runNumber". + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executionId") + private final String executionId; + + /** + * A unique identifier for the task execution. Created as "taskId:taskVersion:runNumber". + * @return the value + **/ + public String getExecutionId() { + return executionId; + } + + /** + * The date and time when the lifecycleState was changed to Waiting, and it is waiting for its dependencies to run, 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("timeTransitionedToWaitingDependencies") + private final java.util.Date timeTransitionedToWaitingDependencies; + + /** + * The date and time when the lifecycleState was changed to Waiting, and it is waiting for its dependencies to run, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @return the value + **/ + public java.util.Date getTimeTransitionedToWaitingDependencies() { + return timeTransitionedToWaitingDependencies; + } + + /** + * The date and time when the lifecycleState was changed to Waiting, and it is queued to be executed, 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("timeTransitionedToWaitingQueued") + private final java.util.Date timeTransitionedToWaitingQueued; + + /** + * The date and time when the lifecycleState was changed to Waiting, and it is queued to be executed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @return the value + **/ + public java.util.Date getTimeTransitionedToWaitingQueued() { + return timeTransitionedToWaitingQueued; + } + + /** + * The date and time when the lifecycleState was changed to In_Progress, 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("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time when the lifecycleState was changed to In_Progress, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time when the lifecycleState changed to Succeeded, or Failed, 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("timeCompleted") + private final java.util.Date timeCompleted; + + /** + * The date and time when the lifecycleState changed to Succeeded, or Failed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * @return the value + **/ + public java.util.Date getTimeCompleted() { + return timeCompleted; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fleetShape") + private final FleetShapeExecutionDetails fleetShape; + + public FleetShapeExecutionDetails getFleetShape() { + return fleetShape; + } + + /** + * The terminal lifecycle state of the task for this execution. Valid values are: SUCCEEDED, NEEDS_ATTENTION, CANCELED, or FAILED. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("completionLifecycleState") + private final BatchTask.LifecycleState completionLifecycleState; + + /** + * The terminal lifecycle state of the task for this execution. Valid values are: SUCCEEDED, NEEDS_ATTENTION, CANCELED, or FAILED. + * @return the value + **/ + public BatchTask.LifecycleState getCompletionLifecycleState() { + return completionLifecycleState; + } + + /** + * List of error messages related to this task execution. Be aware that the maximum number of items returned may change in the future. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errors") + private final java.util.List errors; + + /** + * List of error messages related to this task execution. Be aware that the maximum number of items returned may change in the future. + * @return the value + **/ + public java.util.List getErrors() { + return errors; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeTaskExecutionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", executionId=").append(String.valueOf(this.executionId)); + sb.append(", timeTransitionedToWaitingDependencies=") + .append(String.valueOf(this.timeTransitionedToWaitingDependencies)); + sb.append(", timeTransitionedToWaitingQueued=") + .append(String.valueOf(this.timeTransitionedToWaitingQueued)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeCompleted=").append(String.valueOf(this.timeCompleted)); + sb.append(", fleetShape=").append(String.valueOf(this.fleetShape)); + sb.append(", completionLifecycleState=") + .append(String.valueOf(this.completionLifecycleState)); + sb.append(", errors=").append(String.valueOf(this.errors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeTaskExecutionDetails)) { + return false; + } + + ComputeTaskExecutionDetails other = (ComputeTaskExecutionDetails) o; + return java.util.Objects.equals(this.executionId, other.executionId) + && java.util.Objects.equals( + this.timeTransitionedToWaitingDependencies, + other.timeTransitionedToWaitingDependencies) + && java.util.Objects.equals( + this.timeTransitionedToWaitingQueued, other.timeTransitionedToWaitingQueued) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeCompleted, other.timeCompleted) + && java.util.Objects.equals(this.fleetShape, other.fleetShape) + && java.util.Objects.equals( + this.completionLifecycleState, other.completionLifecycleState) + && java.util.Objects.equals(this.errors, other.errors) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.executionId == null ? 43 : this.executionId.hashCode()); + result = + (result * PRIME) + + (this.timeTransitionedToWaitingDependencies == null + ? 43 + : this.timeTransitionedToWaitingDependencies.hashCode()); + result = + (result * PRIME) + + (this.timeTransitionedToWaitingQueued == null + ? 43 + : this.timeTransitionedToWaitingQueued.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = + (result * PRIME) + + (this.timeCompleted == null ? 43 : this.timeCompleted.hashCode()); + result = (result * PRIME) + (this.fleetShape == null ? 43 : this.fleetShape.hashCode()); + result = + (result * PRIME) + + (this.completionLifecycleState == null + ? 43 + : this.completionLifecycleState.hashCode()); + result = (result * PRIME) + (this.errors == null ? 43 : this.errors.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskSummary.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskSummary.java index 09a8a47659a..a2c49884a17 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskSummary.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ComputeTaskSummary.java @@ -54,6 +54,24 @@ public Builder name(String name) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("hierarchicalName") + private String hierarchicalName; + + public Builder hierarchicalName(String hierarchicalName) { + this.hierarchicalName = hierarchicalName; + this.__explicitlySet__.add("hierarchicalName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("groupTaskName") + private String groupTaskName; + + public Builder groupTaskName(String groupTaskName) { + this.groupTaskName = groupTaskName; + this.__explicitlySet__.add("groupTaskName"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; @@ -90,6 +108,8 @@ public ComputeTaskSummary build() { this.id, this.jobId, this.name, + this.hierarchicalName, + this.groupTaskName, this.description, this.lifecycleState, this.lifecycleDetails); @@ -110,6 +130,12 @@ public Builder copy(ComputeTaskSummary model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } + if (model.wasPropertyExplicitlySet("hierarchicalName")) { + this.hierarchicalName(model.getHierarchicalName()); + } + if (model.wasPropertyExplicitlySet("groupTaskName")) { + this.groupTaskName(model.getGroupTaskName()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -139,10 +165,20 @@ public ComputeTaskSummary( String id, String jobId, String name, + String hierarchicalName, + String groupTaskName, String description, BatchTask.LifecycleState lifecycleState, String lifecycleDetails) { - super(id, jobId, name, description, lifecycleState, lifecycleDetails); + super( + id, + jobId, + name, + hierarchicalName, + groupTaskName, + description, + lifecycleState, + lifecycleDetails); } @Override diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuArchitectureTaskProfileExtendedInformation.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuArchitectureTaskProfileExtendedInformation.java new file mode 100644 index 00000000000..e03688ae794 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuArchitectureTaskProfileExtendedInformation.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information about CPU architecture for the task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CpuArchitectureTaskProfileExtendedInformation.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 CpuArchitectureTaskProfileExtendedInformation + extends BatchTaskProfileExtendedInformation { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of CPU architecture. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private Architecture architecture; + + /** + * Type of CPU architecture. + * @param architecture the value to set + * @return this builder + **/ + public Builder architecture(Architecture architecture) { + this.architecture = architecture; + this.__explicitlySet__.add("architecture"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CpuArchitectureTaskProfileExtendedInformation build() { + CpuArchitectureTaskProfileExtendedInformation model = + new CpuArchitectureTaskProfileExtendedInformation(this.architecture); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CpuArchitectureTaskProfileExtendedInformation model) { + if (model.wasPropertyExplicitlySet("architecture")) { + this.architecture(model.getArchitecture()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CpuArchitectureTaskProfileExtendedInformation(Architecture architecture) { + super(); + this.architecture = architecture; + } + + /** + * Type of CPU architecture. + **/ + public enum Architecture { + GenericX86("GENERIC_X86"), + GenericArm("GENERIC_ARM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Architecture.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Architecture v : Architecture.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Architecture(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Architecture create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Architecture', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of CPU architecture. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private final Architecture architecture; + + /** + * Type of CPU architecture. + * @return the value + **/ + public Architecture getArchitecture() { + return architecture; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CpuArchitectureTaskProfileExtendedInformation("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", architecture=").append(String.valueOf(this.architecture)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CpuArchitectureTaskProfileExtendedInformation)) { + return false; + } + + CpuArchitectureTaskProfileExtendedInformation other = + (CpuArchitectureTaskProfileExtendedInformation) o; + return java.util.Objects.equals(this.architecture, other.architecture) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.architecture == null ? 43 : this.architecture.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuFleetShapeExecutionDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuFleetShapeExecutionDetails.java new file mode 100644 index 00000000000..486f23e42b1 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuFleetShapeExecutionDetails.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Details about the CPU shape which was used for the task execution. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CpuFleetShapeExecutionDetails.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 CpuFleetShapeExecutionDetails extends FleetShapeExecutionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * Name of the shape. + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * Number of OCPUs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private Integer ocpus; + + /** + * Number of OCPUs provided by the shape. + * @param ocpus the value to set + * @return this builder + **/ + public Builder ocpus(Integer ocpus) { + this.ocpus = ocpus; + this.__explicitlySet__.add("ocpus"); + return this; + } + /** + * Amount of memory in GBs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Integer memoryInGBs; + + /** + * Amount of memory in GBs provided by the shape. + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Integer memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + /** + * Amount of disk space provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private Integer diskSizeInGBs; + + /** + * Amount of disk space provided by the shape. + * @param diskSizeInGBs the value to set + * @return this builder + **/ + public Builder diskSizeInGBs(Integer diskSizeInGBs) { + this.diskSizeInGBs = diskSizeInGBs; + this.__explicitlySet__.add("diskSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CpuFleetShapeExecutionDetails build() { + CpuFleetShapeExecutionDetails model = + new CpuFleetShapeExecutionDetails( + this.shapeName, this.ocpus, this.memoryInGBs, this.diskSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CpuFleetShapeExecutionDetails model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("ocpus")) { + this.ocpus(model.getOcpus()); + } + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("diskSizeInGBs")) { + this.diskSizeInGBs(model.getDiskSizeInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CpuFleetShapeExecutionDetails( + String shapeName, Integer ocpus, Integer memoryInGBs, Integer diskSizeInGBs) { + super(); + this.shapeName = shapeName; + this.ocpus = ocpus; + this.memoryInGBs = memoryInGBs; + this.diskSizeInGBs = diskSizeInGBs; + } + + /** + * Name of the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * Name of the shape. + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + /** + * Number of OCPUs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private final Integer ocpus; + + /** + * Number of OCPUs provided by the shape. + * @return the value + **/ + public Integer getOcpus() { + return ocpus; + } + + /** + * Amount of memory in GBs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Integer memoryInGBs; + + /** + * Amount of memory in GBs provided by the shape. + * @return the value + **/ + public Integer getMemoryInGBs() { + return memoryInGBs; + } + + /** + * Amount of disk space provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private final Integer diskSizeInGBs; + + /** + * Amount of disk space provided by the shape. + * @return the value + **/ + public Integer getDiskSizeInGBs() { + return diskSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CpuFleetShapeExecutionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", ocpus=").append(String.valueOf(this.ocpus)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", diskSizeInGBs=").append(String.valueOf(this.diskSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CpuFleetShapeExecutionDetails)) { + return false; + } + + CpuFleetShapeExecutionDetails other = (CpuFleetShapeExecutionDetails) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.ocpus, other.ocpus) + && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.diskSizeInGBs, other.diskSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.diskSizeInGBs == null ? 43 : this.diskSizeInGBs.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateIdcsAuthConfigurationDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuShapeTaskProfileExtendedInformation.java similarity index 63% rename from bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateIdcsAuthConfigurationDetails.java rename to bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuShapeTaskProfileExtendedInformation.java index 36557ded643..921f7225e27 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateIdcsAuthConfigurationDetails.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CpuShapeTaskProfileExtendedInformation.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.datascience.model; +package com.oracle.bmc.batch.model; /** - * Configuration of IDCS AuthN/Z for online prediction + * Extended information for the CPU-specific task profile. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,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: 20190101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateIdcsAuthConfigurationDetails.Builder.class + builder = CpuShapeTaskProfileExtendedInformation.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, @@ -24,32 +24,33 @@ property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateIdcsAuthConfigurationDetails extends CreateAuthConfigurationDetails { +public final class CpuShapeTaskProfileExtendedInformation + extends BatchTaskProfileExtendedInformation { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Identity Domain OCID + * A name of the CPU shape. **/ - @com.fasterxml.jackson.annotation.JsonProperty("domainId") - private String domainId; + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; /** - * Identity Domain OCID - * @param domainId the value to set + * A name of the CPU shape. + * @param shapeName the value to set * @return this builder **/ - public Builder domainId(String domainId) { - this.domainId = domainId; - this.__explicitlySet__.add("domainId"); + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateIdcsAuthConfigurationDetails build() { - CreateIdcsAuthConfigurationDetails model = - new CreateIdcsAuthConfigurationDetails(this.domainId); + public CpuShapeTaskProfileExtendedInformation build() { + CpuShapeTaskProfileExtendedInformation model = + new CpuShapeTaskProfileExtendedInformation(this.shapeName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -57,9 +58,9 @@ public CreateIdcsAuthConfigurationDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateIdcsAuthConfigurationDetails model) { - if (model.wasPropertyExplicitlySet("domainId")) { - this.domainId(model.getDomainId()); + public Builder copy(CpuShapeTaskProfileExtendedInformation model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); } return this; } @@ -77,23 +78,23 @@ public Builder toBuilder() { } @Deprecated - public CreateIdcsAuthConfigurationDetails(String domainId) { + public CpuShapeTaskProfileExtendedInformation(String shapeName) { super(); - this.domainId = domainId; + this.shapeName = shapeName; } /** - * Identity Domain OCID + * A name of the CPU shape. **/ - @com.fasterxml.jackson.annotation.JsonProperty("domainId") - private final String domainId; + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; /** - * Identity Domain OCID + * A name of the CPU shape. * @return the value **/ - public String getDomainId() { - return domainId; + public String getShapeName() { + return shapeName; } @Override @@ -108,9 +109,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateIdcsAuthConfigurationDetails("); + sb.append("CpuShapeTaskProfileExtendedInformation("); sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", domainId=").append(String.valueOf(this.domainId)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(")"); return sb.toString(); } @@ -120,19 +121,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateIdcsAuthConfigurationDetails)) { + if (!(o instanceof CpuShapeTaskProfileExtendedInformation)) { return false; } - CreateIdcsAuthConfigurationDetails other = (CreateIdcsAuthConfigurationDetails) o; - return java.util.Objects.equals(this.domainId, other.domainId) && super.equals(other); + CpuShapeTaskProfileExtendedInformation other = (CpuShapeTaskProfileExtendedInformation) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); return result; } } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskDetails.java index d6bebad3a5e..a79ed2fa2d8 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskDetails.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskDetails.java @@ -25,6 +25,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateComputeTaskDetails.class, name = "COMPUTE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateGroupTaskDetails.class, + name = "GROUP" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -94,13 +98,13 @@ public java.util.List getEntitlementClaims() { } /** - * A list of tasks from the same job this task depends on referenced by name. + * A list of tasks on which this tasks depends, referenced by name. Dependencies must be within the same parent (job or group task). For tasks within a group task, all dependencies must also be within that same group task. **/ @com.fasterxml.jackson.annotation.JsonProperty("dependencies") private final java.util.List dependencies; /** - * A list of tasks from the same job this task depends on referenced by name. + * A list of tasks on which this tasks depends, referenced by name. Dependencies must be within the same parent (job or group task). For tasks within a group task, all dependencies must also be within that same group task. * @return the value **/ public java.util.List getDependencies() { @@ -186,6 +190,7 @@ public int hashCode() { **/ public enum Type { Compute("COMPUTE"), + Group("GROUP"), ; private final String value; diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileDetails.java index 6e2f9eb9d84..b97a7ecda1f 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileDetails.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileDetails.java @@ -30,6 +30,8 @@ public final class CreateBatchTaskProfileDetails "description", "minOcpus", "minMemoryInGBs", + "minDiskSizeInGBs", + "extendedInformation", "definedTags", "freeformTags" }) @@ -39,6 +41,8 @@ public CreateBatchTaskProfileDetails( String description, Integer minOcpus, Integer minMemoryInGBs, + Integer minDiskSizeInGBs, + CreateBatchTaskProfileExtendedInformationDetails extendedInformation, java.util.Map> definedTags, java.util.Map freeformTags) { super(); @@ -47,6 +51,8 @@ public CreateBatchTaskProfileDetails( this.description = description; this.minOcpus = minOcpus; this.minMemoryInGBs = minMemoryInGBs; + this.minDiskSizeInGBs = minDiskSizeInGBs; + this.extendedInformation = extendedInformation; this.definedTags = definedTags; this.freeformTags = freeformTags; } @@ -137,6 +143,32 @@ public Builder minMemoryInGBs(Integer minMemoryInGBs) { this.__explicitlySet__.add("minMemoryInGBs"); return this; } + /** + * The minimum required size of disk space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDiskSizeInGBs") + private Integer minDiskSizeInGBs; + + /** + * The minimum required size of disk space in GBs. + * @param minDiskSizeInGBs the value to set + * @return this builder + **/ + public Builder minDiskSizeInGBs(Integer minDiskSizeInGBs) { + this.minDiskSizeInGBs = minDiskSizeInGBs; + this.__explicitlySet__.add("minDiskSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedInformation") + private CreateBatchTaskProfileExtendedInformationDetails extendedInformation; + + public Builder extendedInformation( + CreateBatchTaskProfileExtendedInformationDetails extendedInformation) { + this.extendedInformation = extendedInformation; + this.__explicitlySet__.add("extendedInformation"); + return this; + } /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -198,6 +230,8 @@ public CreateBatchTaskProfileDetails build() { this.description, this.minOcpus, this.minMemoryInGBs, + this.minDiskSizeInGBs, + this.extendedInformation, this.definedTags, this.freeformTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -223,6 +257,12 @@ public Builder copy(CreateBatchTaskProfileDetails model) { if (model.wasPropertyExplicitlySet("minMemoryInGBs")) { this.minMemoryInGBs(model.getMinMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("minDiskSizeInGBs")) { + this.minDiskSizeInGBs(model.getMinDiskSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("extendedInformation")) { + this.extendedInformation(model.getExtendedInformation()); + } if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } @@ -318,6 +358,27 @@ public Integer getMinMemoryInGBs() { return minMemoryInGBs; } + /** + * The minimum required size of disk space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDiskSizeInGBs") + private final Integer minDiskSizeInGBs; + + /** + * The minimum required size of disk space in GBs. + * @return the value + **/ + public Integer getMinDiskSizeInGBs() { + return minDiskSizeInGBs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedInformation") + private final CreateBatchTaskProfileExtendedInformationDetails extendedInformation; + + public CreateBatchTaskProfileExtendedInformationDetails getExtendedInformation() { + return extendedInformation; + } + /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -381,6 +442,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", minOcpus=").append(String.valueOf(this.minOcpus)); sb.append(", minMemoryInGBs=").append(String.valueOf(this.minMemoryInGBs)); + sb.append(", minDiskSizeInGBs=").append(String.valueOf(this.minDiskSizeInGBs)); + sb.append(", extendedInformation=").append(String.valueOf(this.extendedInformation)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(")"); @@ -402,6 +465,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.minOcpus, other.minOcpus) && java.util.Objects.equals(this.minMemoryInGBs, other.minMemoryInGBs) + && java.util.Objects.equals(this.minDiskSizeInGBs, other.minDiskSizeInGBs) + && java.util.Objects.equals(this.extendedInformation, other.extendedInformation) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && super.equals(other); @@ -420,6 +485,14 @@ public int hashCode() { result = (result * PRIME) + (this.minMemoryInGBs == null ? 43 : this.minMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.minDiskSizeInGBs == null ? 43 : this.minDiskSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.extendedInformation == null + ? 43 + : this.extendedInformation.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileExtendedInformationDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileExtendedInformationDetails.java new file mode 100644 index 00000000000..169bdeba1c5 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateBatchTaskProfileExtendedInformationDetails.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information for the task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateBatchTaskProfileExtendedInformationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateGpuShapeTaskProfileExtendedInformationDetails.class, + name = "GPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateCpuShapeTaskProfileExtendedInformationDetails.class, + name = "CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateCpuArchitectureTaskProfileExtendedInformationDetails.class, + name = "CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateBatchTaskProfileExtendedInformationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateBatchTaskProfileExtendedInformationDetails() { + 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("CreateBatchTaskProfileExtendedInformationDetails("); + 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 CreateBatchTaskProfileExtendedInformationDetails)) { + return false; + } + + CreateBatchTaskProfileExtendedInformationDetails other = + (CreateBatchTaskProfileExtendedInformationDetails) 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 extended information. + **/ + public enum Type { + CpuArchitectureTaskProfileExtendedInformation( + "CPU_ARCHITECTURE_TASK_PROFILE_EXTENDED_INFORMATION"), + CpuShapeTaskProfileExtendedInformation("CPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION"), + GpuShapeTaskProfileExtendedInformation("GPU_SHAPE_TASK_PROFILE_EXTENDED_INFORMATION"), + ; + + 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-batch/src/main/java/com/oracle/bmc/batch/model/CreateCpuArchitectureTaskProfileExtendedInformationDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateCpuArchitectureTaskProfileExtendedInformationDetails.java new file mode 100644 index 00000000000..4326d73be54 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateCpuArchitectureTaskProfileExtendedInformationDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information about CPU architecture for the task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCpuArchitectureTaskProfileExtendedInformationDetails.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 CreateCpuArchitectureTaskProfileExtendedInformationDetails + extends CreateBatchTaskProfileExtendedInformationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of CPU architecture. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private Architecture architecture; + + /** + * Type of CPU architecture. + * @param architecture the value to set + * @return this builder + **/ + public Builder architecture(Architecture architecture) { + this.architecture = architecture; + this.__explicitlySet__.add("architecture"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCpuArchitectureTaskProfileExtendedInformationDetails build() { + CreateCpuArchitectureTaskProfileExtendedInformationDetails model = + new CreateCpuArchitectureTaskProfileExtendedInformationDetails( + this.architecture); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCpuArchitectureTaskProfileExtendedInformationDetails model) { + if (model.wasPropertyExplicitlySet("architecture")) { + this.architecture(model.getArchitecture()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateCpuArchitectureTaskProfileExtendedInformationDetails(Architecture architecture) { + super(); + this.architecture = architecture; + } + + /** + * Type of CPU architecture. + **/ + public enum Architecture { + GenericX86("GENERIC_X86"), + GenericArm("GENERIC_ARM"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Architecture v : Architecture.values()) { + map.put(v.getValue(), v); + } + } + + Architecture(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Architecture create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Architecture: " + key); + } + }; + /** + * Type of CPU architecture. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private final Architecture architecture; + + /** + * Type of CPU architecture. + * @return the value + **/ + public Architecture getArchitecture() { + return architecture; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCpuArchitectureTaskProfileExtendedInformationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", architecture=").append(String.valueOf(this.architecture)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCpuArchitectureTaskProfileExtendedInformationDetails)) { + return false; + } + + CreateCpuArchitectureTaskProfileExtendedInformationDetails other = + (CreateCpuArchitectureTaskProfileExtendedInformationDetails) o; + return java.util.Objects.equals(this.architecture, other.architecture) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.architecture == null ? 43 : this.architecture.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateCpuShapeTaskProfileExtendedInformationDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateCpuShapeTaskProfileExtendedInformationDetails.java new file mode 100644 index 00000000000..8e71a45bdd2 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateCpuShapeTaskProfileExtendedInformationDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information for the CPU-specific task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCpuShapeTaskProfileExtendedInformationDetails.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 CreateCpuShapeTaskProfileExtendedInformationDetails + extends CreateBatchTaskProfileExtendedInformationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A name of the CPU shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * A name of the CPU shape. + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCpuShapeTaskProfileExtendedInformationDetails build() { + CreateCpuShapeTaskProfileExtendedInformationDetails model = + new CreateCpuShapeTaskProfileExtendedInformationDetails(this.shapeName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCpuShapeTaskProfileExtendedInformationDetails model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateCpuShapeTaskProfileExtendedInformationDetails(String shapeName) { + super(); + this.shapeName = shapeName; + } + + /** + * A name of the CPU shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * A name of the CPU shape. + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCpuShapeTaskProfileExtendedInformationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCpuShapeTaskProfileExtendedInformationDetails)) { + return false; + } + + CreateCpuShapeTaskProfileExtendedInformationDetails other = + (CreateCpuShapeTaskProfileExtendedInformationDetails) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFixedGpuFleetShapeDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFixedGpuFleetShapeDetails.java new file mode 100644 index 00000000000..55cdddef18d --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFixedGpuFleetShapeDetails.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Fixed shape of the GPU fleet. Describes hardware resources of each node in the fleet. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateFixedGpuFleetShapeDetails.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 CreateFixedGpuFleetShapeDetails extends CreateGpuFleetShapeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the fixed GPU fleet shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * The name of the fixed GPU fleet shape. + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * Amount of disk space in GBs required for the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private Integer diskSizeInGBs; + + /** + * Amount of disk space in GBs required for the shape. + * @param diskSizeInGBs the value to set + * @return this builder + **/ + public Builder diskSizeInGBs(Integer diskSizeInGBs) { + this.diskSizeInGBs = diskSizeInGBs; + this.__explicitlySet__.add("diskSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateFixedGpuFleetShapeDetails build() { + CreateFixedGpuFleetShapeDetails model = + new CreateFixedGpuFleetShapeDetails(this.shapeName, this.diskSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateFixedGpuFleetShapeDetails model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("diskSizeInGBs")) { + this.diskSizeInGBs(model.getDiskSizeInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateFixedGpuFleetShapeDetails(String shapeName, Integer diskSizeInGBs) { + super(); + this.shapeName = shapeName; + this.diskSizeInGBs = diskSizeInGBs; + } + + /** + * The name of the fixed GPU fleet shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * The name of the fixed GPU fleet shape. + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + /** + * Amount of disk space in GBs required for the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private final Integer diskSizeInGBs; + + /** + * Amount of disk space in GBs required for the shape. + * @return the value + **/ + public Integer getDiskSizeInGBs() { + return diskSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateFixedGpuFleetShapeDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", diskSizeInGBs=").append(String.valueOf(this.diskSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFixedGpuFleetShapeDetails)) { + return false; + } + + CreateFixedGpuFleetShapeDetails other = (CreateFixedGpuFleetShapeDetails) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.diskSizeInGBs, other.diskSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = + (result * PRIME) + + (this.diskSizeInGBs == null ? 43 : this.diskSizeInGBs.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFleetDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFleetDetails.java index f8706e7d44a..66bf08d6b57 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFleetDetails.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateFleetDetails.java @@ -22,6 +22,10 @@ defaultImpl = CreateFleetDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateServiceManagedGpuFleetDetails.class, + name = "SERVICE_MANAGED_GPU_FLEET" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateServiceManagedFleetDetails.class, name = "SERVICE_MANAGED_FLEET" @@ -79,6 +83,7 @@ public int hashCode() { **/ public enum Type { ServiceManagedFleet("SERVICE_MANAGED_FLEET"), + ServiceManagedGpuFleet("SERVICE_MANAGED_GPU_FLEET"), ; private final String value; diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGpuFleetShapeDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGpuFleetShapeDetails.java new file mode 100644 index 00000000000..3f4c2aeda11 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGpuFleetShapeDetails.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Shape of the GPU fleet. Describes hardware resources of each node in the fleet. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateGpuFleetShapeDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateFixedGpuFleetShapeDetails.class, + name = "FIXED_GPU_FLEET_SHAPE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateGpuFleetShapeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateGpuFleetShapeDetails() { + 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("CreateGpuFleetShapeDetails("); + 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 CreateGpuFleetShapeDetails)) { + return false; + } + + CreateGpuFleetShapeDetails other = (CreateGpuFleetShapeDetails) 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 GPU fleet shape. Also serves as a discriminator for sub-entities. + **/ + public enum Type { + FixedGpuFleetShape("FIXED_GPU_FLEET_SHAPE"), + ; + + 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-batch/src/main/java/com/oracle/bmc/batch/model/CreateGpuShapeTaskProfileExtendedInformationDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGpuShapeTaskProfileExtendedInformationDetails.java new file mode 100644 index 00000000000..83fe4f30946 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGpuShapeTaskProfileExtendedInformationDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information for the GPU-specific task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGpuShapeTaskProfileExtendedInformationDetails.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 CreateGpuShapeTaskProfileExtendedInformationDetails + extends CreateBatchTaskProfileExtendedInformationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A name of the GPU shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * A name of the GPU shape. + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGpuShapeTaskProfileExtendedInformationDetails build() { + CreateGpuShapeTaskProfileExtendedInformationDetails model = + new CreateGpuShapeTaskProfileExtendedInformationDetails(this.shapeName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGpuShapeTaskProfileExtendedInformationDetails model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateGpuShapeTaskProfileExtendedInformationDetails(String shapeName) { + super(); + this.shapeName = shapeName; + } + + /** + * A name of the GPU shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * A name of the GPU shape. + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateGpuShapeTaskProfileExtendedInformationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGpuShapeTaskProfileExtendedInformationDetails)) { + return false; + } + + CreateGpuShapeTaskProfileExtendedInformationDetails other = + (CreateGpuShapeTaskProfileExtendedInformationDetails) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGroupTaskDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGroupTaskDetails.java new file mode 100644 index 00000000000..c2daa8cb9a0 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateGroupTaskDetails.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Group task is a construct that represents a container of tasks for execution. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGroupTaskDetails.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 CreateGroupTaskDetails extends CreateBatchTaskDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitlementClaims") + private java.util.List entitlementClaims; + + public Builder entitlementClaims(java.util.List entitlementClaims) { + this.entitlementClaims = entitlementClaims; + this.__explicitlySet__.add("entitlementClaims"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dependencies") + private java.util.List dependencies; + + public Builder dependencies(java.util.List dependencies) { + this.dependencies = dependencies; + this.__explicitlySet__.add("dependencies"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * A list of tasks to be executed within this group task. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tasks") + private java.util.List tasks; + + /** + * A list of tasks to be executed within this group task. + * @param tasks the value to set + * @return this builder + **/ + public Builder tasks(java.util.List tasks) { + this.tasks = tasks; + this.__explicitlySet__.add("tasks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGroupTaskDetails build() { + CreateGroupTaskDetails model = + new CreateGroupTaskDetails( + this.name, + this.description, + this.entitlementClaims, + this.dependencies, + this.environmentVariables, + this.tasks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGroupTaskDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("entitlementClaims")) { + this.entitlementClaims(model.getEntitlementClaims()); + } + if (model.wasPropertyExplicitlySet("dependencies")) { + this.dependencies(model.getDependencies()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("tasks")) { + this.tasks(model.getTasks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateGroupTaskDetails( + String name, + String description, + java.util.List entitlementClaims, + java.util.List dependencies, + java.util.List environmentVariables, + java.util.List tasks) { + super(name, description, entitlementClaims, dependencies, environmentVariables); + this.tasks = tasks; + } + + /** + * A list of tasks to be executed within this group task. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tasks") + private final java.util.List tasks; + + /** + * A list of tasks to be executed within this group task. + * @return the value + **/ + public java.util.List getTasks() { + return tasks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateGroupTaskDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", tasks=").append(String.valueOf(this.tasks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGroupTaskDetails)) { + return false; + } + + CreateGroupTaskDetails other = (CreateGroupTaskDetails) o; + return java.util.Objects.equals(this.tasks, other.tasks) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.tasks == null ? 43 : this.tasks.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateServiceManagedGpuFleetDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateServiceManagedGpuFleetDetails.java new file mode 100644 index 00000000000..f969406d61f --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/CreateServiceManagedGpuFleetDetails.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Service managed GPU Fleet configuration of the batch context. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateServiceManagedGpuFleetDetails.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 CreateServiceManagedGpuFleetDetails extends CreateFleetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the service managed GPU fleet. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private CreateGpuFleetShapeDetails shape; + + public Builder shape(CreateGpuFleetShapeDetails shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxConcurrentTasks") + private Integer maxConcurrentTasks; + + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + * @param maxConcurrentTasks the value to set + * @return this builder + **/ + public Builder maxConcurrentTasks(Integer maxConcurrentTasks) { + this.maxConcurrentTasks = maxConcurrentTasks; + this.__explicitlySet__.add("maxConcurrentTasks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateServiceManagedGpuFleetDetails build() { + CreateServiceManagedGpuFleetDetails model = + new CreateServiceManagedGpuFleetDetails( + this.name, this.shape, this.maxConcurrentTasks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateServiceManagedGpuFleetDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("maxConcurrentTasks")) { + this.maxConcurrentTasks(model.getMaxConcurrentTasks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateServiceManagedGpuFleetDetails( + String name, CreateGpuFleetShapeDetails shape, Integer maxConcurrentTasks) { + super(); + this.name = name; + this.shape = shape; + this.maxConcurrentTasks = maxConcurrentTasks; + } + + /** + * Name of the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the service managed GPU fleet. + * @return the value + **/ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final CreateGpuFleetShapeDetails shape; + + public CreateGpuFleetShapeDetails getShape() { + return shape; + } + + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxConcurrentTasks") + private final Integer maxConcurrentTasks; + + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + * @return the value + **/ + public Integer getMaxConcurrentTasks() { + return maxConcurrentTasks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateServiceManagedGpuFleetDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", maxConcurrentTasks=").append(String.valueOf(this.maxConcurrentTasks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateServiceManagedGpuFleetDetails)) { + return false; + } + + CreateServiceManagedGpuFleetDetails other = (CreateServiceManagedGpuFleetDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.maxConcurrentTasks, other.maxConcurrentTasks) + && 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()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.maxConcurrentTasks == null + ? 43 + : this.maxConcurrentTasks.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/IdcsAuthConfiguration.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FixedGpuFleetShape.java similarity index 55% rename from bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/IdcsAuthConfiguration.java rename to bmc-batch/src/main/java/com/oracle/bmc/batch/model/FixedGpuFleetShape.java index 7bb6872408b..e516b7b5d52 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/IdcsAuthConfiguration.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FixedGpuFleetShape.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.datascience.model; +package com.oracle.bmc.batch.model; /** - * Configuration of IDCS AuthN/Z for online prediction + * Fixed shape of the GPU fleet. Describes hardware resources of each node in the fleet. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,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: 20190101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = IdcsAuthConfiguration.Builder.class + builder = FixedGpuFleetShape.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, @@ -24,48 +24,47 @@ property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class IdcsAuthConfiguration extends AuthConfiguration { +public final class FixedGpuFleetShape extends GpuFleetShape { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Identity Domain OCID + * The name of the fixed GPU fleet shape. **/ - @com.fasterxml.jackson.annotation.JsonProperty("domainId") - private String domainId; + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; /** - * Identity Domain OCID - * @param domainId the value to set + * The name of the fixed GPU fleet shape. + * @param shapeName the value to set * @return this builder **/ - public Builder domainId(String domainId) { - this.domainId = domainId; - this.__explicitlySet__.add("domainId"); + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); return this; } /** - * Name of the IDCS application + * Amount of disk space in GBs required for the shape. **/ - @com.fasterxml.jackson.annotation.JsonProperty("applicationName") - private String applicationName; + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private Integer diskSizeInGBs; /** - * Name of the IDCS application - * @param applicationName the value to set + * Amount of disk space in GBs required for the shape. + * @param diskSizeInGBs the value to set * @return this builder **/ - public Builder applicationName(String applicationName) { - this.applicationName = applicationName; - this.__explicitlySet__.add("applicationName"); + public Builder diskSizeInGBs(Integer diskSizeInGBs) { + this.diskSizeInGBs = diskSizeInGBs; + this.__explicitlySet__.add("diskSizeInGBs"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public IdcsAuthConfiguration build() { - IdcsAuthConfiguration model = - new IdcsAuthConfiguration(this.domainId, this.applicationName); + public FixedGpuFleetShape build() { + FixedGpuFleetShape model = new FixedGpuFleetShape(this.shapeName, this.diskSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -73,12 +72,12 @@ public IdcsAuthConfiguration build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(IdcsAuthConfiguration model) { - if (model.wasPropertyExplicitlySet("domainId")) { - this.domainId(model.getDomainId()); + public Builder copy(FixedGpuFleetShape model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); } - if (model.wasPropertyExplicitlySet("applicationName")) { - this.applicationName(model.getApplicationName()); + if (model.wasPropertyExplicitlySet("diskSizeInGBs")) { + this.diskSizeInGBs(model.getDiskSizeInGBs()); } return this; } @@ -96,38 +95,38 @@ public Builder toBuilder() { } @Deprecated - public IdcsAuthConfiguration(String domainId, String applicationName) { + public FixedGpuFleetShape(String shapeName, Integer diskSizeInGBs) { super(); - this.domainId = domainId; - this.applicationName = applicationName; + this.shapeName = shapeName; + this.diskSizeInGBs = diskSizeInGBs; } /** - * Identity Domain OCID + * The name of the fixed GPU fleet shape. **/ - @com.fasterxml.jackson.annotation.JsonProperty("domainId") - private final String domainId; + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; /** - * Identity Domain OCID + * The name of the fixed GPU fleet shape. * @return the value **/ - public String getDomainId() { - return domainId; + public String getShapeName() { + return shapeName; } /** - * Name of the IDCS application + * Amount of disk space in GBs required for the shape. **/ - @com.fasterxml.jackson.annotation.JsonProperty("applicationName") - private final String applicationName; + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private final Integer diskSizeInGBs; /** - * Name of the IDCS application + * Amount of disk space in GBs required for the shape. * @return the value **/ - public String getApplicationName() { - return applicationName; + public Integer getDiskSizeInGBs() { + return diskSizeInGBs; } @Override @@ -142,10 +141,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("IdcsAuthConfiguration("); + sb.append("FixedGpuFleetShape("); sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", domainId=").append(String.valueOf(this.domainId)); - sb.append(", applicationName=").append(String.valueOf(this.applicationName)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", diskSizeInGBs=").append(String.valueOf(this.diskSizeInGBs)); sb.append(")"); return sb.toString(); } @@ -155,13 +154,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof IdcsAuthConfiguration)) { + if (!(o instanceof FixedGpuFleetShape)) { return false; } - IdcsAuthConfiguration other = (IdcsAuthConfiguration) o; - return java.util.Objects.equals(this.domainId, other.domainId) - && java.util.Objects.equals(this.applicationName, other.applicationName) + FixedGpuFleetShape other = (FixedGpuFleetShape) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.diskSizeInGBs, other.diskSizeInGBs) && super.equals(other); } @@ -169,10 +168,10 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); result = (result * PRIME) - + (this.applicationName == null ? 43 : this.applicationName.hashCode()); + + (this.diskSizeInGBs == null ? 43 : this.diskSizeInGBs.hashCode()); return result; } } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/Fleet.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/Fleet.java index b6e409eb932..4ab80e6fba2 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/Fleet.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/Fleet.java @@ -25,6 +25,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ServiceManagedFleet.class, name = "SERVICE_MANAGED_FLEET" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ServiceManagedGpuFleet.class, + name = "SERVICE_MANAGED_GPU_FLEET" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -79,6 +83,7 @@ public int hashCode() { **/ public enum Type { ServiceManagedFleet("SERVICE_MANAGED_FLEET"), + ServiceManagedGpuFleet("SERVICE_MANAGED_GPU_FLEET"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShape.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShape.java index f6686dbe066..8ca5b11f9d7 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShape.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShape.java @@ -19,12 +19,13 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class FleetShape extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"shapeName", "ocpus", "memoryInGBs"}) - public FleetShape(String shapeName, Integer ocpus, Integer memoryInGBs) { + @java.beans.ConstructorProperties({"shapeName", "ocpus", "memoryInGBs", "diskSizeInGBs"}) + public FleetShape(String shapeName, Integer ocpus, Integer memoryInGBs, Integer diskSizeInGBs) { super(); this.shapeName = shapeName; this.ocpus = ocpus; this.memoryInGBs = memoryInGBs; + this.diskSizeInGBs = diskSizeInGBs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,13 +47,13 @@ public Builder shapeName(String shapeName) { return this; } /** - * Number of OCPUs required by the shape. + * Number of OCPUs required for the shape. **/ @com.fasterxml.jackson.annotation.JsonProperty("ocpus") private Integer ocpus; /** - * Number of OCPUs required by the shape. + * Number of OCPUs required for the shape. * @param ocpus the value to set * @return this builder **/ @@ -62,13 +63,13 @@ public Builder ocpus(Integer ocpus) { return this; } /** - * Amount of memory in GBs required by the shape. + * Amount of memory in GBs required for the shape. **/ @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") private Integer memoryInGBs; /** - * Amount of memory in GBs required by the shape. + * Amount of memory in GBs required for the shape. * @param memoryInGBs the value to set * @return this builder **/ @@ -77,12 +78,30 @@ public Builder memoryInGBs(Integer memoryInGBs) { this.__explicitlySet__.add("memoryInGBs"); return this; } + /** + * Amount of disk space in GBs required for the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private Integer diskSizeInGBs; + + /** + * Amount of disk space in GBs required for the shape. + * @param diskSizeInGBs the value to set + * @return this builder + **/ + public Builder diskSizeInGBs(Integer diskSizeInGBs) { + this.diskSizeInGBs = diskSizeInGBs; + this.__explicitlySet__.add("diskSizeInGBs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public FleetShape build() { - FleetShape model = new FleetShape(this.shapeName, this.ocpus, this.memoryInGBs); + FleetShape model = + new FleetShape( + this.shapeName, this.ocpus, this.memoryInGBs, this.diskSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -100,6 +119,9 @@ public Builder copy(FleetShape model) { if (model.wasPropertyExplicitlySet("memoryInGBs")) { this.memoryInGBs(model.getMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("diskSizeInGBs")) { + this.diskSizeInGBs(model.getDiskSizeInGBs()); + } return this; } } @@ -130,13 +152,13 @@ public String getShapeName() { } /** - * Number of OCPUs required by the shape. + * Number of OCPUs required for the shape. **/ @com.fasterxml.jackson.annotation.JsonProperty("ocpus") private final Integer ocpus; /** - * Number of OCPUs required by the shape. + * Number of OCPUs required for the shape. * @return the value **/ public Integer getOcpus() { @@ -144,19 +166,33 @@ public Integer getOcpus() { } /** - * Amount of memory in GBs required by the shape. + * Amount of memory in GBs required for the shape. **/ @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") private final Integer memoryInGBs; /** - * Amount of memory in GBs required by the shape. + * Amount of memory in GBs required for the shape. * @return the value **/ public Integer getMemoryInGBs() { return memoryInGBs; } + /** + * Amount of disk space in GBs required for the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private final Integer diskSizeInGBs; + + /** + * Amount of disk space in GBs required for the shape. + * @return the value + **/ + public Integer getDiskSizeInGBs() { + return diskSizeInGBs; + } + @Override public String toString() { return this.toString(true); @@ -174,6 +210,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("shapeName=").append(String.valueOf(this.shapeName)); sb.append(", ocpus=").append(String.valueOf(this.ocpus)); sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", diskSizeInGBs=").append(String.valueOf(this.diskSizeInGBs)); sb.append(")"); return sb.toString(); } @@ -191,6 +228,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.ocpus, other.ocpus) && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.diskSizeInGBs, other.diskSizeInGBs) && super.equals(other); } @@ -201,6 +239,9 @@ public int hashCode() { result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.diskSizeInGBs == null ? 43 : this.diskSizeInGBs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShapeExecutionDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShapeExecutionDetails.java new file mode 100644 index 00000000000..6d26325466e --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/FleetShapeExecutionDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Details about the shape which was used for the task execution. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = FleetShapeExecutionDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CpuFleetShapeExecutionDetails.class, + name = "CPU_FLEET_SHAPE_EXECUTION_DETAILS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = GpuFleetShapeExecutionDetails.class, + name = "GPU_FLEET_SHAPE_EXECUTION_DETAILS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class FleetShapeExecutionDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected FleetShapeExecutionDetails() { + 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("FleetShapeExecutionDetails("); + 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 FleetShapeExecutionDetails)) { + return false; + } + + FleetShapeExecutionDetails other = (FleetShapeExecutionDetails) 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 shape. + **/ + public enum Type { + CpuFleetShapeExecutionDetails("CPU_FLEET_SHAPE_EXECUTION_DETAILS"), + GpuFleetShapeExecutionDetails("GPU_FLEET_SHAPE_EXECUTION_DETAILS"), + + /** + * This value is used if a service returns a value for this 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-batch/src/main/java/com/oracle/bmc/batch/model/GpuFleetShape.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuFleetShape.java new file mode 100644 index 00000000000..6897b97dd76 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuFleetShape.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Shape of the GPU fleet. Describes hardware resources of each node in the fleet. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = GpuFleetShape.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = FixedGpuFleetShape.class, + name = "FIXED_GPU_FLEET_SHAPE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class GpuFleetShape extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected GpuFleetShape() { + 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("GpuFleetShape("); + 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 GpuFleetShape)) { + return false; + } + + GpuFleetShape other = (GpuFleetShape) 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 GPU fleet shape. Also serves as a discriminator for sub-entities. + **/ + public enum Type { + FixedGpuFleetShape("FIXED_GPU_FLEET_SHAPE"), + + /** + * This value is used if a service returns a value for this 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-batch/src/main/java/com/oracle/bmc/batch/model/GpuFleetShapeExecutionDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuFleetShapeExecutionDetails.java new file mode 100644 index 00000000000..a01cff8a8c3 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuFleetShapeExecutionDetails.java @@ -0,0 +1,299 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Details about the GPU shape which was used for the task execution. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GpuFleetShapeExecutionDetails.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 GpuFleetShapeExecutionDetails extends FleetShapeExecutionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * Name of the shape. + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * Number of OCPUs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private Integer ocpus; + + /** + * Number of OCPUs provided by the shape. + * @param ocpus the value to set + * @return this builder + **/ + public Builder ocpus(Integer ocpus) { + this.ocpus = ocpus; + this.__explicitlySet__.add("ocpus"); + return this; + } + /** + * Amount of memory in GBs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Integer memoryInGBs; + + /** + * Amount of memory in GBs provided by the shape. + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Integer memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + /** + * Amount of disk space provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private Integer diskSizeInGBs; + + /** + * Amount of disk space provided by the shape. + * @param diskSizeInGBs the value to set + * @return this builder + **/ + public Builder diskSizeInGBs(Integer diskSizeInGBs) { + this.diskSizeInGBs = diskSizeInGBs; + this.__explicitlySet__.add("diskSizeInGBs"); + return this; + } + /** + * The number of GPUs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gpus") + private Integer gpus; + + /** + * The number of GPUs provided by the shape. + * @param gpus the value to set + * @return this builder + **/ + public Builder gpus(Integer gpus) { + this.gpus = gpus; + this.__explicitlySet__.add("gpus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GpuFleetShapeExecutionDetails build() { + GpuFleetShapeExecutionDetails model = + new GpuFleetShapeExecutionDetails( + this.shapeName, + this.ocpus, + this.memoryInGBs, + this.diskSizeInGBs, + this.gpus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GpuFleetShapeExecutionDetails model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("ocpus")) { + this.ocpus(model.getOcpus()); + } + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("diskSizeInGBs")) { + this.diskSizeInGBs(model.getDiskSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("gpus")) { + this.gpus(model.getGpus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public GpuFleetShapeExecutionDetails( + String shapeName, + Integer ocpus, + Integer memoryInGBs, + Integer diskSizeInGBs, + Integer gpus) { + super(); + this.shapeName = shapeName; + this.ocpus = ocpus; + this.memoryInGBs = memoryInGBs; + this.diskSizeInGBs = diskSizeInGBs; + this.gpus = gpus; + } + + /** + * Name of the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * Name of the shape. + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + /** + * Number of OCPUs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private final Integer ocpus; + + /** + * Number of OCPUs provided by the shape. + * @return the value + **/ + public Integer getOcpus() { + return ocpus; + } + + /** + * Amount of memory in GBs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Integer memoryInGBs; + + /** + * Amount of memory in GBs provided by the shape. + * @return the value + **/ + public Integer getMemoryInGBs() { + return memoryInGBs; + } + + /** + * Amount of disk space provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskSizeInGBs") + private final Integer diskSizeInGBs; + + /** + * Amount of disk space provided by the shape. + * @return the value + **/ + public Integer getDiskSizeInGBs() { + return diskSizeInGBs; + } + + /** + * The number of GPUs provided by the shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gpus") + private final Integer gpus; + + /** + * The number of GPUs provided by the shape. + * @return the value + **/ + public Integer getGpus() { + return gpus; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GpuFleetShapeExecutionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", ocpus=").append(String.valueOf(this.ocpus)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", diskSizeInGBs=").append(String.valueOf(this.diskSizeInGBs)); + sb.append(", gpus=").append(String.valueOf(this.gpus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GpuFleetShapeExecutionDetails)) { + return false; + } + + GpuFleetShapeExecutionDetails other = (GpuFleetShapeExecutionDetails) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.ocpus, other.ocpus) + && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.diskSizeInGBs, other.diskSizeInGBs) + && java.util.Objects.equals(this.gpus, other.gpus) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.diskSizeInGBs == null ? 43 : this.diskSizeInGBs.hashCode()); + result = (result * PRIME) + (this.gpus == null ? 43 : this.gpus.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuShapeTaskProfileExtendedInformation.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuShapeTaskProfileExtendedInformation.java new file mode 100644 index 00000000000..d55bcce1dd9 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GpuShapeTaskProfileExtendedInformation.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Extended information for the GPU-specific task profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GpuShapeTaskProfileExtendedInformation.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 GpuShapeTaskProfileExtendedInformation + extends BatchTaskProfileExtendedInformation { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A name of the GPU shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * A name of the GPU shape. + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GpuShapeTaskProfileExtendedInformation build() { + GpuShapeTaskProfileExtendedInformation model = + new GpuShapeTaskProfileExtendedInformation(this.shapeName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GpuShapeTaskProfileExtendedInformation model) { + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public GpuShapeTaskProfileExtendedInformation(String shapeName) { + super(); + this.shapeName = shapeName; + } + + /** + * A name of the GPU shape. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * A name of the GPU shape. + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GpuShapeTaskProfileExtendedInformation("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GpuShapeTaskProfileExtendedInformation)) { + return false; + } + + GpuShapeTaskProfileExtendedInformation other = (GpuShapeTaskProfileExtendedInformation) o; + return java.util.Objects.equals(this.shapeName, other.shapeName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GroupTask.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GroupTask.java new file mode 100644 index 00000000000..27d4e2ddc8b --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GroupTask.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Group task is a construct that represents a container of tasks for execution. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GroupTask.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 GroupTask extends BatchTask { + @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("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hierarchicalName") + private String hierarchicalName; + + public Builder hierarchicalName(String hierarchicalName) { + this.hierarchicalName = hierarchicalName; + this.__explicitlySet__.add("hierarchicalName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("groupTaskName") + private String groupTaskName; + + public Builder groupTaskName(String groupTaskName) { + this.groupTaskName = groupTaskName; + this.__explicitlySet__.add("groupTaskName"); + 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("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("entitlementClaims") + private java.util.List entitlementClaims; + + public Builder entitlementClaims(java.util.List entitlementClaims) { + this.entitlementClaims = entitlementClaims; + this.__explicitlySet__.add("entitlementClaims"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dependencies") + private java.util.List dependencies; + + public Builder dependencies(java.util.List dependencies) { + this.dependencies = dependencies; + this.__explicitlySet__.add("dependencies"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * The names of tasks contained directly (non-recursively) within this group task. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tasks") + private java.util.List tasks; + + /** + * The names of tasks contained directly (non-recursively) within this group task. + * @param tasks the value to set + * @return this builder + **/ + public Builder tasks(java.util.List tasks) { + this.tasks = tasks; + this.__explicitlySet__.add("tasks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GroupTask build() { + GroupTask model = + new GroupTask( + this.id, + this.name, + this.hierarchicalName, + this.groupTaskName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.entitlementClaims, + this.dependencies, + this.environmentVariables, + this.tasks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GroupTask model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("hierarchicalName")) { + this.hierarchicalName(model.getHierarchicalName()); + } + if (model.wasPropertyExplicitlySet("groupTaskName")) { + this.groupTaskName(model.getGroupTaskName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("entitlementClaims")) { + this.entitlementClaims(model.getEntitlementClaims()); + } + if (model.wasPropertyExplicitlySet("dependencies")) { + this.dependencies(model.getDependencies()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("tasks")) { + this.tasks(model.getTasks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public GroupTask( + String id, + String name, + String hierarchicalName, + String groupTaskName, + String description, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.List entitlementClaims, + java.util.List dependencies, + java.util.List environmentVariables, + java.util.List tasks) { + super( + id, + name, + hierarchicalName, + groupTaskName, + description, + lifecycleState, + lifecycleDetails, + entitlementClaims, + dependencies, + environmentVariables); + this.tasks = tasks; + } + + /** + * The names of tasks contained directly (non-recursively) within this group task. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tasks") + private final java.util.List tasks; + + /** + * The names of tasks contained directly (non-recursively) within this group task. + * @return the value + **/ + public java.util.List getTasks() { + return tasks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GroupTask("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", tasks=").append(String.valueOf(this.tasks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GroupTask)) { + return false; + } + + GroupTask other = (GroupTask) o; + return java.util.Objects.equals(this.tasks, other.tasks) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.tasks == null ? 43 : this.tasks.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GroupTaskSummary.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GroupTaskSummary.java new file mode 100644 index 00000000000..d08269c104d --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/GroupTaskSummary.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Summary information about a group task. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GroupTaskSummary.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 GroupTaskSummary extends BatchTaskSummary { + @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("jobId") + private String jobId; + + public Builder jobId(String jobId) { + this.jobId = jobId; + this.__explicitlySet__.add("jobId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hierarchicalName") + private String hierarchicalName; + + public Builder hierarchicalName(String hierarchicalName) { + this.hierarchicalName = hierarchicalName; + this.__explicitlySet__.add("hierarchicalName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("groupTaskName") + private String groupTaskName; + + public Builder groupTaskName(String groupTaskName) { + this.groupTaskName = groupTaskName; + this.__explicitlySet__.add("groupTaskName"); + 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("lifecycleState") + private BatchTask.LifecycleState lifecycleState; + + public Builder lifecycleState(BatchTask.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; + } + /** + * The count of tasks contained directly (non-recursively) within this group task. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("taskCount") + private Integer taskCount; + + /** + * The count of tasks contained directly (non-recursively) within this group task. + * @param taskCount the value to set + * @return this builder + **/ + public Builder taskCount(Integer taskCount) { + this.taskCount = taskCount; + this.__explicitlySet__.add("taskCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GroupTaskSummary build() { + GroupTaskSummary model = + new GroupTaskSummary( + this.id, + this.jobId, + this.name, + this.hierarchicalName, + this.groupTaskName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.taskCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GroupTaskSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("jobId")) { + this.jobId(model.getJobId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("hierarchicalName")) { + this.hierarchicalName(model.getHierarchicalName()); + } + if (model.wasPropertyExplicitlySet("groupTaskName")) { + this.groupTaskName(model.getGroupTaskName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("taskCount")) { + this.taskCount(model.getTaskCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public GroupTaskSummary( + String id, + String jobId, + String name, + String hierarchicalName, + String groupTaskName, + String description, + BatchTask.LifecycleState lifecycleState, + String lifecycleDetails, + Integer taskCount) { + super( + id, + jobId, + name, + hierarchicalName, + groupTaskName, + description, + lifecycleState, + lifecycleDetails); + this.taskCount = taskCount; + } + + /** + * The count of tasks contained directly (non-recursively) within this group task. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("taskCount") + private final Integer taskCount; + + /** + * The count of tasks contained directly (non-recursively) within this group task. + * @return the value + **/ + public Integer getTaskCount() { + return taskCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GroupTaskSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", taskCount=").append(String.valueOf(this.taskCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GroupTaskSummary)) { + return false; + } + + GroupTaskSummary other = (GroupTaskSummary) o; + return java.util.Objects.equals(this.taskCount, other.taskCount) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.taskCount == null ? 43 : this.taskCount.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/LoggingConfiguration.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/LoggingConfiguration.java index ac4ac712482..4b01a8920df 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/LoggingConfiguration.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/LoggingConfiguration.java @@ -5,7 +5,7 @@ package com.oracle.bmc.batch.model; /** - * Logging configuration for batch context. + * Logging configuration of the batch context. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -75,7 +75,7 @@ public int hashCode() { } /** - * Discriminator for sub-entities. + * Type of the logging configuration. Discriminator for sub-entities. **/ public enum Type { OciLogging("OCI_LOGGING"), diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/OciLoggingConfiguration.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/OciLoggingConfiguration.java index 6db51c4b263..be58847cff5 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/OciLoggingConfiguration.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/OciLoggingConfiguration.java @@ -59,13 +59,31 @@ public Builder logId(String logId) { this.__explicitlySet__.add("logId"); return this; } + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isJobTaskEventsPropagationEnabled") + private Boolean isJobTaskEventsPropagationEnabled; + + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + * @param isJobTaskEventsPropagationEnabled the value to set + * @return this builder + **/ + public Builder isJobTaskEventsPropagationEnabled( + Boolean isJobTaskEventsPropagationEnabled) { + this.isJobTaskEventsPropagationEnabled = isJobTaskEventsPropagationEnabled; + this.__explicitlySet__.add("isJobTaskEventsPropagationEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public OciLoggingConfiguration build() { OciLoggingConfiguration model = - new OciLoggingConfiguration(this.logGroupId, this.logId); + new OciLoggingConfiguration( + this.logGroupId, this.logId, this.isJobTaskEventsPropagationEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,6 +98,10 @@ public Builder copy(OciLoggingConfiguration model) { if (model.wasPropertyExplicitlySet("logId")) { this.logId(model.getLogId()); } + if (model.wasPropertyExplicitlySet("isJobTaskEventsPropagationEnabled")) { + this.isJobTaskEventsPropagationEnabled( + model.getIsJobTaskEventsPropagationEnabled()); + } return this; } } @@ -96,10 +118,12 @@ public Builder toBuilder() { } @Deprecated - public OciLoggingConfiguration(String logGroupId, String logId) { + public OciLoggingConfiguration( + String logGroupId, String logId, Boolean isJobTaskEventsPropagationEnabled) { super(); this.logGroupId = logGroupId; this.logId = logId; + this.isJobTaskEventsPropagationEnabled = isJobTaskEventsPropagationEnabled; } /** @@ -130,6 +154,20 @@ public String getLogId() { return logId; } + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isJobTaskEventsPropagationEnabled") + private final Boolean isJobTaskEventsPropagationEnabled; + + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + * @return the value + **/ + public Boolean getIsJobTaskEventsPropagationEnabled() { + return isJobTaskEventsPropagationEnabled; + } + @Override public String toString() { return this.toString(true); @@ -146,6 +184,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", logId=").append(String.valueOf(this.logId)); + sb.append(", isJobTaskEventsPropagationEnabled=") + .append(String.valueOf(this.isJobTaskEventsPropagationEnabled)); sb.append(")"); return sb.toString(); } @@ -162,6 +202,9 @@ public boolean equals(Object o) { OciLoggingConfiguration other = (OciLoggingConfiguration) o; return java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.logId, other.logId) + && java.util.Objects.equals( + this.isJobTaskEventsPropagationEnabled, + other.isJobTaskEventsPropagationEnabled) && super.equals(other); } @@ -171,6 +214,11 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.logId == null ? 43 : this.logId.hashCode()); + result = + (result * PRIME) + + (this.isJobTaskEventsPropagationEnabled == null + ? 43 + : this.isJobTaskEventsPropagationEnabled.hashCode()); return result; } } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedFleet.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedFleet.java index 18b4c112de8..5925254b5db 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedFleet.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedFleet.java @@ -85,13 +85,13 @@ public Builder state(String state) { return this; } /** - * A message that describes the current state of the service manage fleet configuration in more detail. + * A message that describes the current state of the service managed fleet configuration in more detail. **/ @com.fasterxml.jackson.annotation.JsonProperty("details") private String details; /** - * A message that describes the current state of the service manage fleet configuration in more detail. + * A message that describes the current state of the service managed fleet configuration in more detail. * @param details the value to set * @return this builder **/ @@ -215,13 +215,13 @@ public String getState() { } /** - * A message that describes the current state of the service manage fleet configuration in more detail. + * A message that describes the current state of the service managed fleet configuration in more detail. **/ @com.fasterxml.jackson.annotation.JsonProperty("details") private final String details; /** - * A message that describes the current state of the service manage fleet configuration in more detail. + * A message that describes the current state of the service managed fleet configuration in more detail. * @return the value **/ public String getDetails() { diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedGpuFleet.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedGpuFleet.java new file mode 100644 index 00000000000..4387d096d27 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ServiceManagedGpuFleet.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * Service managed GPU Fleet configuration of the batch context. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceManagedGpuFleet.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 ServiceManagedGpuFleet extends Fleet { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the service managed GPU fleet. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private GpuFleetShape shape; + + public Builder shape(GpuFleetShape shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxConcurrentTasks") + private Integer maxConcurrentTasks; + + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + * @param maxConcurrentTasks the value to set + * @return this builder + **/ + public Builder maxConcurrentTasks(Integer maxConcurrentTasks) { + this.maxConcurrentTasks = maxConcurrentTasks; + this.__explicitlySet__.add("maxConcurrentTasks"); + return this; + } + /** + * Current state of the service managed GPU fleet configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * Current state of the service managed GPU fleet configuration. + * @param state the value to set + * @return this builder + **/ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** + * A message that describes the current state of the service managed GPU fleet configuration in more detail. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private String details; + + /** + * A message that describes the current state of the service managed GPU fleet configuration in more detail. + * @param details the value to set + * @return this builder + **/ + public Builder details(String details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceManagedGpuFleet build() { + ServiceManagedGpuFleet model = + new ServiceManagedGpuFleet( + this.name, + this.shape, + this.maxConcurrentTasks, + this.state, + this.details); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceManagedGpuFleet model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("maxConcurrentTasks")) { + this.maxConcurrentTasks(model.getMaxConcurrentTasks()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ServiceManagedGpuFleet( + String name, + GpuFleetShape shape, + Integer maxConcurrentTasks, + String state, + String details) { + super(); + this.name = name; + this.shape = shape; + this.maxConcurrentTasks = maxConcurrentTasks; + this.state = state; + this.details = details; + } + + /** + * Name of the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the service managed GPU fleet. + * @return the value + **/ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final GpuFleetShape shape; + + public GpuFleetShape getShape() { + return shape; + } + + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxConcurrentTasks") + private final Integer maxConcurrentTasks; + + /** + * Maximum number of concurrent tasks for the service managed GPU fleet. + * @return the value + **/ + public Integer getMaxConcurrentTasks() { + return maxConcurrentTasks; + } + + /** + * Current state of the service managed GPU fleet configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * Current state of the service managed GPU fleet configuration. + * @return the value + **/ + public String getState() { + return state; + } + + /** + * A message that describes the current state of the service managed GPU fleet configuration in more detail. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final String details; + + /** + * A message that describes the current state of the service managed GPU fleet configuration in more detail. + * @return the value + **/ + public String getDetails() { + return details; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ServiceManagedGpuFleet("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", maxConcurrentTasks=").append(String.valueOf(this.maxConcurrentTasks)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceManagedGpuFleet)) { + return false; + } + + ServiceManagedGpuFleet other = (ServiceManagedGpuFleet) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.maxConcurrentTasks, other.maxConcurrentTasks) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.details, other.details) + && 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()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.maxConcurrentTasks == null + ? 43 + : this.maxConcurrentTasks.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ShapeType.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ShapeType.java new file mode 100644 index 00000000000..3ace53746e9 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/ShapeType.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * The type of a shape. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +public enum ShapeType { + Cpu("CPU"), + Gpu("GPU"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShapeType v : ShapeType.values()) { + map.put(v.getValue(), v); + } + } + + ShapeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShapeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ShapeType: " + key); + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateBatchContextDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateBatchContextDetails.java index 05b917b700e..f408a8fe4e1 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateBatchContextDetails.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateBatchContextDetails.java @@ -30,7 +30,8 @@ public final class UpdateBatchContextDetails "freeformTags", "definedTags", "jobPriorityConfigurations", - "entitlements" + "entitlements", + "loggingConfiguration" }) public UpdateBatchContextDetails( String displayName, @@ -38,7 +39,8 @@ public UpdateBatchContextDetails( java.util.Map freeformTags, java.util.Map> definedTags, java.util.List jobPriorityConfigurations, - java.util.Map entitlements) { + java.util.Map entitlements, + UpdateLoggingConfigurationDetails loggingConfiguration) { super(); this.displayName = displayName; this.description = description; @@ -46,6 +48,7 @@ public UpdateBatchContextDetails( this.definedTags = definedTags; this.jobPriorityConfigurations = jobPriorityConfigurations; this.entitlements = entitlements; + this.loggingConfiguration = loggingConfiguration; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -169,6 +172,16 @@ public Builder entitlements(java.util.Map entitlements) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("loggingConfiguration") + private UpdateLoggingConfigurationDetails loggingConfiguration; + + public Builder loggingConfiguration( + UpdateLoggingConfigurationDetails loggingConfiguration) { + this.loggingConfiguration = loggingConfiguration; + this.__explicitlySet__.add("loggingConfiguration"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -180,7 +193,8 @@ public UpdateBatchContextDetails build() { this.freeformTags, this.definedTags, this.jobPriorityConfigurations, - this.entitlements); + this.entitlements, + this.loggingConfiguration); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -207,6 +221,9 @@ public Builder copy(UpdateBatchContextDetails model) { if (model.wasPropertyExplicitlySet("entitlements")) { this.entitlements(model.getEntitlements()); } + if (model.wasPropertyExplicitlySet("loggingConfiguration")) { + this.loggingConfiguration(model.getLoggingConfiguration()); + } return this; } } @@ -326,6 +343,13 @@ public java.util.Map getEntitlements() { return entitlements; } + @com.fasterxml.jackson.annotation.JsonProperty("loggingConfiguration") + private final UpdateLoggingConfigurationDetails loggingConfiguration; + + public UpdateLoggingConfigurationDetails getLoggingConfiguration() { + return loggingConfiguration; + } + @Override public String toString() { return this.toString(true); @@ -347,6 +371,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", jobPriorityConfigurations=") .append(String.valueOf(this.jobPriorityConfigurations)); sb.append(", entitlements=").append(String.valueOf(this.entitlements)); + sb.append(", loggingConfiguration=").append(String.valueOf(this.loggingConfiguration)); sb.append(")"); return sb.toString(); } @@ -368,6 +393,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.jobPriorityConfigurations, other.jobPriorityConfigurations) && java.util.Objects.equals(this.entitlements, other.entitlements) + && java.util.Objects.equals(this.loggingConfiguration, other.loggingConfiguration) && super.equals(other); } @@ -385,6 +411,11 @@ public int hashCode() { ? 43 : this.jobPriorityConfigurations.hashCode()); result = (result * PRIME) + (this.entitlements == null ? 43 : this.entitlements.hashCode()); + result = + (result * PRIME) + + (this.loggingConfiguration == null + ? 43 + : this.loggingConfiguration.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateLoggingConfigurationDetails.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateLoggingConfigurationDetails.java new file mode 100644 index 00000000000..35b0c76ed7c --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateLoggingConfigurationDetails.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * The data to update logging configuration of the batch context. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateLoggingConfigurationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOciLoggingConfiguration.class, + name = "OCI_LOGGING" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateLoggingConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateLoggingConfigurationDetails() { + 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("UpdateLoggingConfigurationDetails("); + 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 UpdateLoggingConfigurationDetails)) { + return false; + } + + UpdateLoggingConfigurationDetails other = (UpdateLoggingConfigurationDetails) 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 logging configuration. Discriminator for sub-entities. + **/ + public enum Type { + OciLogging("OCI_LOGGING"), + ; + + 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-batch/src/main/java/com/oracle/bmc/batch/model/UpdateOciLoggingConfiguration.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateOciLoggingConfiguration.java new file mode 100644 index 00000000000..d81d90732b5 --- /dev/null +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/model/UpdateOciLoggingConfiguration.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.batch.model; + +/** + * The data to update logging configuration for OCI Logging service. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOciLoggingConfiguration.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 UpdateOciLoggingConfiguration extends UpdateLoggingConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isJobTaskEventsPropagationEnabled") + private Boolean isJobTaskEventsPropagationEnabled; + + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + * @param isJobTaskEventsPropagationEnabled the value to set + * @return this builder + **/ + public Builder isJobTaskEventsPropagationEnabled( + Boolean isJobTaskEventsPropagationEnabled) { + this.isJobTaskEventsPropagationEnabled = isJobTaskEventsPropagationEnabled; + this.__explicitlySet__.add("isJobTaskEventsPropagationEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOciLoggingConfiguration build() { + UpdateOciLoggingConfiguration model = + new UpdateOciLoggingConfiguration(this.isJobTaskEventsPropagationEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOciLoggingConfiguration model) { + if (model.wasPropertyExplicitlySet("isJobTaskEventsPropagationEnabled")) { + this.isJobTaskEventsPropagationEnabled( + model.getIsJobTaskEventsPropagationEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOciLoggingConfiguration(Boolean isJobTaskEventsPropagationEnabled) { + super(); + this.isJobTaskEventsPropagationEnabled = isJobTaskEventsPropagationEnabled; + } + + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isJobTaskEventsPropagationEnabled") + private final Boolean isJobTaskEventsPropagationEnabled; + + /** + * A switch to enable or disable propagation of job and task events to the customer's logs in OCI logging service. + * @return the value + **/ + public Boolean getIsJobTaskEventsPropagationEnabled() { + return isJobTaskEventsPropagationEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOciLoggingConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isJobTaskEventsPropagationEnabled=") + .append(String.valueOf(this.isJobTaskEventsPropagationEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOciLoggingConfiguration)) { + return false; + } + + UpdateOciLoggingConfiguration other = (UpdateOciLoggingConfiguration) o; + return java.util.Objects.equals( + this.isJobTaskEventsPropagationEnabled, + other.isJobTaskEventsPropagationEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isJobTaskEventsPropagationEnabled == null + ? 43 + : this.isJobTaskEventsPropagationEnabled.hashCode()); + return result; + } +} diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/GetBatchTaskRequest.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/GetBatchTaskRequest.java index 6d3bdae56c1..1f674b2a987 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/GetBatchTaskRequest.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/GetBatchTaskRequest.java @@ -23,12 +23,12 @@ public String getBatchJobId() { return batchJobId; } /** - * The name of the batch task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ private String taskName; /** - * The name of the batch task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ public String getTaskName() { return taskName; @@ -76,12 +76,12 @@ public Builder batchJobId(String batchJobId) { } /** - * The name of the batch task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ private String taskName = null; /** - * The name of the batch task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. * @param taskName the value to set * @return this builder instance */ diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchContextShapesRequest.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchContextShapesRequest.java index 47b56a3a81d..3aabd679f53 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchContextShapesRequest.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchContextShapesRequest.java @@ -68,6 +68,17 @@ public Integer getLimit() { public String getPage() { return page; } + /** + * The type of a shape. + */ + private com.oracle.bmc.batch.model.ShapeType shapeType; + + /** + * The type of a shape. + */ + public com.oracle.bmc.batch.model.ShapeType getShapeType() { + return shapeType; + } /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -167,6 +178,21 @@ public Builder page(String page) { return this; } + /** + * The type of a shape. + */ + private com.oracle.bmc.batch.model.ShapeType shapeType = null; + + /** + * The type of a shape. + * @param shapeType the value to set + * @return this builder instance + */ + public Builder shapeType(com.oracle.bmc.batch.model.ShapeType shapeType) { + this.shapeType = shapeType; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -222,6 +248,7 @@ public Builder copy(ListBatchContextShapesRequest o) { availabilityDomain(o.getAvailabilityDomain()); limit(o.getLimit()); page(o.getPage()); + shapeType(o.getShapeType()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -259,9 +286,10 @@ public ListBatchContextShapesRequest buildWithoutInvocationCallback() { request.availabilityDomain = availabilityDomain; request.limit = limit; request.page = page; + request.shapeType = shapeType; request.opcRequestId = opcRequestId; return request; - // new ListBatchContextShapesRequest(compartmentId, availabilityDomain, limit, page, opcRequestId); + // new ListBatchContextShapesRequest(compartmentId, availabilityDomain, limit, page, shapeType, opcRequestId); } } @@ -275,6 +303,7 @@ public Builder toBuilder() { .availabilityDomain(availabilityDomain) .limit(limit) .page(page) + .shapeType(shapeType) .opcRequestId(opcRequestId); } @@ -295,6 +324,7 @@ public String toString() { sb.append(",availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",shapeType=").append(String.valueOf(this.shapeType)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -315,6 +345,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.shapeType, other.shapeType) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -332,6 +363,7 @@ public int hashCode() { : this.availabilityDomain.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.shapeType == null ? 43 : this.shapeType.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchJobTasksRequest.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchJobTasksRequest.java index f609ab0078f..6962a801465 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchJobTasksRequest.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchJobTasksRequest.java @@ -38,16 +38,60 @@ public com.oracle.bmc.batch.model.BatchTask.LifecycleState getLifecycleState() { return lifecycleState; } /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ private String name; /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ public String getName() { return name; } + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + */ + private String taskId; + + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + */ + public String getTaskId() { + return taskId; + } + /** + * Hierarchical name of the group task. A filter to return only tasks contained within the selected group task. Omit to return top-level tasks only. Can be combined with task name query parameter, in which case task name becomes a hierarchical name relative to the selected group task, e.g. ?groupTaskName=A.B&taskName=C.D is equal to ?taskName=A.B.C.D. Mutually exclusive with the task id query parameter: you can't pass both. + */ + private String groupTaskName; + + /** + * Hierarchical name of the group task. A filter to return only tasks contained within the selected group task. Omit to return top-level tasks only. Can be combined with task name query parameter, in which case task name becomes a hierarchical name relative to the selected group task, e.g. ?groupTaskName=A.B&taskName=C.D is equal to ?taskName=A.B.C.D. Mutually exclusive with the task id query parameter: you can't pass both. + */ + public String getGroupTaskName() { + return groupTaskName; + } + /** + * Filter tasks by type. Valid values are: COMPUTE, GROUP. + */ + private com.oracle.bmc.batch.model.BatchTask.Type type; + + /** + * Filter tasks by type. Valid values are: COMPUTE, GROUP. + */ + public com.oracle.bmc.batch.model.BatchTask.Type getType() { + return type; + } + /** + * Defines the hierarchical scope of the tasks to be returned. When set to SHALLOW, which is default, only tasks contained directly (non-recursively) within current hierarchy entry are returned. When set to DEEP, tasks contained within current hierarchy entry and all its descendants recursively are returned. The default hierarchy entry is root, i.e. batch job itself. To use a different hierarchy entry, provide the group task name as a query parameter. The specified group task becomes the entry point instead of the batch job. + */ + private com.oracle.bmc.batch.model.BatchTaskHierarchyView hierarchyView; + + /** + * Defines the hierarchical scope of the tasks to be returned. When set to SHALLOW, which is default, only tasks contained directly (non-recursively) within current hierarchy entry are returned. When set to DEEP, tasks contained within current hierarchy entry and all its descendants recursively are returned. The default hierarchy entry is root, i.e. batch job itself. To use a different hierarchy entry, provide the group task name as a query parameter. The specified group task becomes the entry point instead of the batch job. + */ + public com.oracle.bmc.batch.model.BatchTaskHierarchyView getHierarchyView() { + return hierarchyView; + } /** * 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 @@ -169,12 +213,12 @@ public Builder lifecycleState( } /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ private String name = null; /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. * @param name the value to set * @return this builder instance */ @@ -183,6 +227,67 @@ public Builder name(String name) { return this; } + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + */ + private String taskId = null; + + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + * @param taskId the value to set + * @return this builder instance + */ + public Builder taskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * Hierarchical name of the group task. A filter to return only tasks contained within the selected group task. Omit to return top-level tasks only. Can be combined with task name query parameter, in which case task name becomes a hierarchical name relative to the selected group task, e.g. ?groupTaskName=A.B&taskName=C.D is equal to ?taskName=A.B.C.D. Mutually exclusive with the task id query parameter: you can't pass both. + */ + private String groupTaskName = null; + + /** + * Hierarchical name of the group task. A filter to return only tasks contained within the selected group task. Omit to return top-level tasks only. Can be combined with task name query parameter, in which case task name becomes a hierarchical name relative to the selected group task, e.g. ?groupTaskName=A.B&taskName=C.D is equal to ?taskName=A.B.C.D. Mutually exclusive with the task id query parameter: you can't pass both. + * @param groupTaskName the value to set + * @return this builder instance + */ + public Builder groupTaskName(String groupTaskName) { + this.groupTaskName = groupTaskName; + return this; + } + + /** + * Filter tasks by type. Valid values are: COMPUTE, GROUP. + */ + private com.oracle.bmc.batch.model.BatchTask.Type type = null; + + /** + * Filter tasks by type. Valid values are: COMPUTE, GROUP. + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.batch.model.BatchTask.Type type) { + this.type = type; + return this; + } + + /** + * Defines the hierarchical scope of the tasks to be returned. When set to SHALLOW, which is default, only tasks contained directly (non-recursively) within current hierarchy entry are returned. When set to DEEP, tasks contained within current hierarchy entry and all its descendants recursively are returned. The default hierarchy entry is root, i.e. batch job itself. To use a different hierarchy entry, provide the group task name as a query parameter. The specified group task becomes the entry point instead of the batch job. + */ + private com.oracle.bmc.batch.model.BatchTaskHierarchyView hierarchyView = null; + + /** + * Defines the hierarchical scope of the tasks to be returned. When set to SHALLOW, which is default, only tasks contained directly (non-recursively) within current hierarchy entry are returned. When set to DEEP, tasks contained within current hierarchy entry and all its descendants recursively are returned. The default hierarchy entry is root, i.e. batch job itself. To use a different hierarchy entry, provide the group task name as a query parameter. The specified group task becomes the entry point instead of the batch job. + * @param hierarchyView the value to set + * @return this builder instance + */ + public Builder hierarchyView( + com.oracle.bmc.batch.model.BatchTaskHierarchyView hierarchyView) { + this.hierarchyView = hierarchyView; + return this; + } + /** * For list pagination. The maximum number of results per page, or items to return in a * paginated "List" call. For important details about how pagination works, see @@ -311,6 +416,10 @@ public Builder copy(ListBatchJobTasksRequest o) { batchJobId(o.getBatchJobId()); lifecycleState(o.getLifecycleState()); name(o.getName()); + taskId(o.getTaskId()); + groupTaskName(o.getGroupTaskName()); + type(o.getType()); + hierarchyView(o.getHierarchyView()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -351,13 +460,17 @@ public ListBatchJobTasksRequest buildWithoutInvocationCallback() { request.batchJobId = batchJobId; request.lifecycleState = lifecycleState; request.name = name; + request.taskId = taskId; + request.groupTaskName = groupTaskName; + request.type = type; + request.hierarchyView = hierarchyView; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListBatchJobTasksRequest(batchJobId, lifecycleState, name, limit, page, sortOrder, sortBy, opcRequestId); + // new ListBatchJobTasksRequest(batchJobId, lifecycleState, name, taskId, groupTaskName, type, hierarchyView, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -370,6 +483,10 @@ public Builder toBuilder() { .batchJobId(batchJobId) .lifecycleState(lifecycleState) .name(name) + .taskId(taskId) + .groupTaskName(groupTaskName) + .type(type) + .hierarchyView(hierarchyView) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -393,6 +510,10 @@ public String toString() { sb.append(",batchJobId=").append(String.valueOf(this.batchJobId)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",taskId=").append(String.valueOf(this.taskId)); + sb.append(",groupTaskName=").append(String.valueOf(this.groupTaskName)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",hierarchyView=").append(String.valueOf(this.hierarchyView)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -416,6 +537,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.batchJobId, other.batchJobId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.taskId, other.taskId) + && java.util.Objects.equals(this.groupTaskName, other.groupTaskName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.hierarchyView, other.hierarchyView) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -432,6 +557,14 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.taskId == null ? 43 : this.taskId.hashCode()); + result = + (result * PRIME) + + (this.groupTaskName == null ? 43 : this.groupTaskName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.hierarchyView == null ? 43 : this.hierarchyView.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchTasksRequest.java b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchTasksRequest.java index 93122a111f4..2561fd15aeb 100644 --- a/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchTasksRequest.java +++ b/bmc-batch/src/main/java/com/oracle/bmc/batch/requests/ListBatchTasksRequest.java @@ -49,16 +49,27 @@ public com.oracle.bmc.batch.model.BatchTask.LifecycleState getLifecycleState() { return lifecycleState; } /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ private String name; /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ public String getName() { return name; } + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + */ + private String taskId; + + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + */ + public String getTaskId() { + return taskId; + } /** * 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 @@ -195,12 +206,12 @@ public Builder lifecycleState( } /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. */ private String name = null; /** - * The name of the task. + * The hierarchical name of the batch task. Mutually exclusive with the task id query parameter: you can't pass both. * @param name the value to set * @return this builder instance */ @@ -209,6 +220,21 @@ public Builder name(String name) { return this; } + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + */ + private String taskId = null; + + /** + * The UUID of the batch task. Mutually exclusive with the task name and group task name query parameters: you can't pass both. + * @param taskId the value to set + * @return this builder instance + */ + public Builder taskId(String taskId) { + this.taskId = taskId; + return this; + } + /** * For list pagination. The maximum number of results per page, or items to return in a * paginated "List" call. For important details about how pagination works, see @@ -338,6 +364,7 @@ public Builder copy(ListBatchTasksRequest o) { batchJobId(o.getBatchJobId()); lifecycleState(o.getLifecycleState()); name(o.getName()); + taskId(o.getTaskId()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -379,13 +406,14 @@ public ListBatchTasksRequest buildWithoutInvocationCallback() { request.batchJobId = batchJobId; request.lifecycleState = lifecycleState; request.name = name; + request.taskId = taskId; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListBatchTasksRequest(compartmentId, batchJobId, lifecycleState, name, limit, page, sortOrder, sortBy, opcRequestId); + // new ListBatchTasksRequest(compartmentId, batchJobId, lifecycleState, name, taskId, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -399,6 +427,7 @@ public Builder toBuilder() { .batchJobId(batchJobId) .lifecycleState(lifecycleState) .name(name) + .taskId(taskId) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -423,6 +452,7 @@ public String toString() { sb.append(",batchJobId=").append(String.valueOf(this.batchJobId)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",taskId=").append(String.valueOf(this.taskId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -447,6 +477,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.batchJobId, other.batchJobId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.taskId, other.taskId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -466,6 +497,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.taskId == null ? 43 : this.taskId.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 361699a560a..b176a466a2f 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-bds @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java index 830c03424c3..a735d9678b0 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java @@ -22,10 +22,22 @@ public final class ActivateBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"bdsApiKeyPassphrase", "clusterAdminPassword", "secretId"}) public ActivateBdsMetastoreConfigurationDetails( String bdsApiKeyPassphrase, String clusterAdminPassword, String secretId) { super(); + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"bdsApiKeyPassphrase", "clusterAdminPassword", "secretId"}) + public ActivateBdsMetastoreConfigurationDetails( + char[] bdsApiKeyPassphrase, char[] clusterAdminPassword, String secretId) { + super(); this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -37,34 +49,50 @@ public static class Builder { * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. **/ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private String bdsApiKeyPassphrase; + private char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. * @param bdsApiKeyPassphrase the value to set * @return this builder **/ - public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + public Builder bdsApiKeyPassphrase(char[] bdsApiKeyPassphrase) { this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.__explicitlySet__.add("bdsApiKeyPassphrase"); return this; } + + public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("bdsApiKeyPassphrase"); + return this; + } + /** * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -125,13 +153,25 @@ public Builder toBuilder() { * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. **/ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private final String bdsApiKeyPassphrase; + private final char[] bdsApiKeyPassphrase; + + /** + * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. + * return the value + * @Deprecated - Use getBdsApiKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getBdsApiKeyPassphrase() { + return bdsApiKeyPassphrase != null ? new String(bdsApiKeyPassphrase) : null; + } /** * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. * @return the value **/ - public String getBdsApiKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") + public char[] getBdsApiKeyPassphrase__AsCharArray() { return bdsApiKeyPassphrase; } @@ -139,13 +179,25 @@ public String getBdsApiKeyPassphrase() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java index ef70c4791db..21b712d01f2 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java @@ -22,13 +22,26 @@ public final class ActivateIamUserSyncConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public ActivateIamUserSyncConfigurationDetails( + String clusterAdminPassword, + String secretId, + Boolean isPosixAttributesAdditionRequired) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", "isPosixAttributesAdditionRequired" }) public ActivateIamUserSyncConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isPosixAttributesAdditionRequired) { super(); @@ -43,18 +56,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -135,13 +156,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java index 229d554f6b0..df7165c40f2 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java @@ -22,6 +22,21 @@ public final class ActivateUpstConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public ActivateUpstConfigurationDetails( + String clusterAdminPassword, + String secretId, + String vaultId, + String masterEncryptionKeyId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.vaultId = vaultId; + this.masterEncryptionKeyId = masterEncryptionKeyId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -29,7 +44,7 @@ public final class ActivateUpstConfigurationDetails "masterEncryptionKeyId" }) public ActivateUpstConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, String vaultId, String masterEncryptionKeyId) { @@ -46,18 +61,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -156,13 +179,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java index fcc10b09cc5..b8f7222ac5f 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java @@ -22,6 +22,27 @@ public final class AddAutoScalingConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public AddAutoScalingConfigurationDetails( + String displayName, + Node.NodeType nodeType, + Boolean isEnabled, + String clusterAdminPassword, + String secretId, + AutoScalePolicy policy, + AddAutoScalePolicyDetails policyDetails) { + super(); + this.displayName = displayName; + this.nodeType = nodeType; + this.isEnabled = isEnabled; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.policy = policy; + this.policyDetails = policyDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "nodeType", @@ -35,7 +56,7 @@ public AddAutoScalingConfigurationDetails( String displayName, Node.NodeType nodeType, Boolean isEnabled, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, AutoScalePolicy policy, AddAutoScalePolicyDetails policyDetails) { @@ -103,18 +124,26 @@ public Builder isEnabled(Boolean isEnabled) { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -253,13 +282,25 @@ public Boolean getIsEnabled() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java index d441e92689e..d0f74815234 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java @@ -22,6 +22,23 @@ public final class AddBlockStorageDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public AddBlockStorageDetails( + String clusterAdminPassword, + String secretId, + Long blockVolumeSizeInGBs, + NodeType nodeType, + java.util.List nodeIds) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.nodeType = nodeType; + this.nodeIds = nodeIds; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -30,7 +47,7 @@ public final class AddBlockStorageDetails "nodeIds" }) public AddBlockStorageDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Long blockVolumeSizeInGBs, NodeType nodeType, @@ -49,18 +66,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -193,13 +218,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java index defd6cbbd32..2f0e5c333bd 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java @@ -20,6 +20,21 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class AddCloudSqlDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public AddCloudSqlDetails( + String shape, + ShapeConfigDetails shapeConfig, + Long blockVolumeSizeInGBs, + String clusterAdminPassword) { + super(); + this.shape = shape; + this.shapeConfig = shapeConfig; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "shape", @@ -31,7 +46,7 @@ public AddCloudSqlDetails( String shape, ShapeConfigDetails shapeConfig, Long blockVolumeSizeInGBs, - String clusterAdminPassword) { + char[] clusterAdminPassword) { super(); this.shape = shape; this.shapeConfig = shapeConfig; @@ -88,19 +103,26 @@ public Builder blockVolumeSizeInGBs(Long blockVolumeSizeInGBs) { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -187,13 +209,25 @@ public Long getBlockVolumeSizeInGBs() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java index a2bb577f3a9..bca5a7207f2 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java @@ -18,6 +18,25 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AddKafkaDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class AddKafkaDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public AddKafkaDetails( + String shape, + Integer numberOfKafkaNodes, + ShapeConfigDetails shapeConfig, + Long blockVolumeSizeInGBs, + String clusterAdminPassword, + String secretId) { + super(); + this.shape = shape; + this.numberOfKafkaNodes = numberOfKafkaNodes; + this.shapeConfig = shapeConfig; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "shape", @@ -32,7 +51,7 @@ public AddKafkaDetails( Integer numberOfKafkaNodes, ShapeConfigDetails shapeConfig, Long blockVolumeSizeInGBs, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.shape = shape; @@ -108,18 +127,26 @@ public Builder blockVolumeSizeInGBs(Long blockVolumeSizeInGBs) { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -245,13 +272,25 @@ public Long getBlockVolumeSizeInGBs() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java index 790d6c16b9b..bc2e13a81b2 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java @@ -22,6 +22,25 @@ public final class AddMasterNodesDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public AddMasterNodesDetails( + String clusterAdminPassword, + String secretId, + Integer numberOfMasterNodes, + String shape, + Long blockVolumeSizeInGBs, + ShapeConfigDetails shapeConfig) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.numberOfMasterNodes = numberOfMasterNodes; + this.shape = shape; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.shapeConfig = shapeConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -31,7 +50,7 @@ public final class AddMasterNodesDetails "shapeConfig" }) public AddMasterNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer numberOfMasterNodes, String shape, @@ -52,18 +71,26 @@ public static class Builder { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -197,13 +224,25 @@ public Builder toBuilder() { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java index ee851089693..106c614be03 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java @@ -22,6 +22,25 @@ public final class AddUtilityNodesDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public AddUtilityNodesDetails( + String clusterAdminPassword, + String secretId, + Integer numberOfUtilityNodes, + String shape, + Long blockVolumeSizeInGBs, + ShapeConfigDetails shapeConfig) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.numberOfUtilityNodes = numberOfUtilityNodes; + this.shape = shape; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.shapeConfig = shapeConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -31,7 +50,7 @@ public final class AddUtilityNodesDetails "shapeConfig" }) public AddUtilityNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer numberOfUtilityNodes, String shape, @@ -52,18 +71,26 @@ public static class Builder { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -197,13 +224,25 @@ public Builder toBuilder() { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java index b118cc55d0e..48f87e63d02 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java @@ -22,6 +22,27 @@ public final class AddWorkerNodesDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public AddWorkerNodesDetails( + String clusterAdminPassword, + String secretId, + Integer numberOfWorkerNodes, + NodeType nodeType, + String shape, + Long blockVolumeSizeInGBs, + ShapeConfigDetails shapeConfig) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.numberOfWorkerNodes = numberOfWorkerNodes; + this.nodeType = nodeType; + this.shape = shape; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.shapeConfig = shapeConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -32,7 +53,7 @@ public final class AddWorkerNodesDetails "shapeConfig" }) public AddWorkerNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer numberOfWorkerNodes, NodeType nodeType, @@ -55,18 +76,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -222,13 +251,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCertificateConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCertificateConfiguration.java index 71d461201a8..4f6cc831e99 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCertificateConfiguration.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCertificateConfiguration.java @@ -364,6 +364,7 @@ public enum LifecycleState { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Updating("UPDATING"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java index 5aaca6fddd4..46632ba2e36 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java @@ -22,10 +22,21 @@ public final class BdsInstanceResetPasswordDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "service"}) public BdsInstanceResetPasswordDetails( String clusterAdminPassword, String secretId, Service service) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.service = service; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "service"}) + public BdsInstanceResetPasswordDetails( + char[] clusterAdminPassword, String secretId, Service service) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.service = service; @@ -37,18 +48,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the cluster admin user. **/ @@ -125,13 +144,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java index 5c8b34b54bd..aaf96b38737 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java @@ -21,10 +21,21 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class ChangeShapeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "nodes"}) public ChangeShapeDetails( String clusterAdminPassword, String secretId, ChangeShapeNodes nodes) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.nodes = nodes; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "nodes"}) + public ChangeShapeDetails( + char[] clusterAdminPassword, String secretId, ChangeShapeNodes nodes) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.nodes = nodes; @@ -36,18 +47,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -116,13 +135,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java index 1d98ffa13ac..16deb89654e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java @@ -22,6 +22,22 @@ public final class CreateBdsApiKeyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsApiKeyDetails( + String userId, + String passphrase, + String defaultRegion, + String keyAlias, + String domainOcid) { + super(); + this.userId = userId; + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.defaultRegion = defaultRegion; + this.keyAlias = keyAlias; + this.domainOcid = domainOcid; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "userId", "passphrase", @@ -31,7 +47,7 @@ public final class CreateBdsApiKeyDetails }) public CreateBdsApiKeyDetails( String userId, - String passphrase, + char[] passphrase, String defaultRegion, String keyAlias, String domainOcid) { @@ -65,18 +81,25 @@ public Builder userId(String userId) { * Base64 passphrase used to secure the private key which will be created on user behalf. **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private String passphrase; + private char[] passphrase; /** * Base64 passphrase used to secure the private key which will be created on user behalf. * @param passphrase the value to set * @return this builder **/ - public Builder passphrase(String passphrase) { + public Builder passphrase(char[] passphrase) { this.passphrase = passphrase; this.__explicitlySet__.add("passphrase"); return this; } + + public Builder passphrase(String passphrase) { + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.__explicitlySet__.add("passphrase"); + return this; + } + /** * The name of the region to establish the Object Storage endpoint. See https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/Region/ * for additional information. @@ -201,13 +224,25 @@ public String getUserId() { * Base64 passphrase used to secure the private key which will be created on user behalf. **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private final String passphrase; + private final char[] passphrase; + + /** + * Base64 passphrase used to secure the private key which will be created on user behalf. + * return the value + * @Deprecated - Use getPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassphrase() { + return passphrase != null ? new String(passphrase) : null; + } /** * Base64 passphrase used to secure the private key which will be created on user behalf. * @return the value **/ - public String getPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("passphrase") + public char[] getPassphrase__AsCharArray() { return passphrase; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java index ee9681bcd8e..ad47ff0ba90 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java @@ -26,24 +26,18 @@ public final class CreateBdsCertificateConfigurationDetails "displayName", "certificateAuthorityId", "certificateType", - "compartmentId", - "clusterAdminPassword", - "secretId" + "compartmentId" }) public CreateBdsCertificateConfigurationDetails( String displayName, String certificateAuthorityId, BdsCertificateConfiguration.Type certificateType, - String compartmentId, - String clusterAdminPassword, - String secretId) { + String compartmentId) { super(); this.displayName = displayName; this.certificateAuthorityId = certificateAuthorityId; this.certificateType = certificateType; this.compartmentId = compartmentId; - this.clusterAdminPassword = clusterAdminPassword; - this.secretId = secretId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -112,38 +106,6 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** - * Base-64 encoded password for the cluster admin user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; - - /** - * Base-64 encoded password for the cluster admin user. - * @param clusterAdminPassword the value to set - * @return this builder - **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { - this.clusterAdminPassword = clusterAdminPassword; - this.__explicitlySet__.add("clusterAdminPassword"); - return this; - } - /** - * The secretId for the clusterAdminPassword. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("secretId") - private String secretId; - - /** - * The secretId for the clusterAdminPassword. - * @param secretId the value to set - * @return this builder - **/ - public Builder secretId(String secretId) { - this.secretId = secretId; - this.__explicitlySet__.add("secretId"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -154,9 +116,7 @@ public CreateBdsCertificateConfigurationDetails build() { this.displayName, this.certificateAuthorityId, this.certificateType, - this.compartmentId, - this.clusterAdminPassword, - this.secretId); + this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -177,12 +137,6 @@ public Builder copy(CreateBdsCertificateConfigurationDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } - if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { - this.clusterAdminPassword(model.getClusterAdminPassword()); - } - if (model.wasPropertyExplicitlySet("secretId")) { - this.secretId(model.getSecretId()); - } return this; } } @@ -254,34 +208,6 @@ public String getCompartmentId() { return compartmentId; } - /** - * Base-64 encoded password for the cluster admin user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; - - /** - * Base-64 encoded password for the cluster admin user. - * @return the value - **/ - public String getClusterAdminPassword() { - return clusterAdminPassword; - } - - /** - * The secretId for the clusterAdminPassword. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("secretId") - private final String secretId; - - /** - * The secretId for the clusterAdminPassword. - * @return the value - **/ - public String getSecretId() { - return secretId; - } - @Override public String toString() { return this.toString(true); @@ -300,8 +226,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", certificateAuthorityId=").append(String.valueOf(this.certificateAuthorityId)); sb.append(", certificateType=").append(String.valueOf(this.certificateType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", clusterAdminPassword=").append(""); - sb.append(", secretId=").append(String.valueOf(this.secretId)); sb.append(")"); return sb.toString(); } @@ -322,8 +246,6 @@ public boolean equals(Object o) { this.certificateAuthorityId, other.certificateAuthorityId) && java.util.Objects.equals(this.certificateType, other.certificateType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) - && java.util.Objects.equals(this.secretId, other.secretId) && super.equals(other); } @@ -343,12 +265,6 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = - (result * PRIME) - + (this.clusterAdminPassword == null - ? 43 - : this.clusterAdminPassword.hashCode()); - result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java index fbef91ff9b3..9160ab52ccb 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java @@ -22,6 +22,49 @@ public final class CreateBdsInstanceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsInstanceDetails( + String compartmentId, + String displayName, + BdsInstance.ClusterVersion clusterVersion, + String clusterPublicKey, + String clusterAdminPassword, + String secretId, + Boolean isSecretReused, + Boolean isHighAvailability, + Boolean isSecure, + NetworkConfig networkConfig, + String bootstrapScriptUrl, + java.util.List nodes, + String kerberosRealmName, + java.util.Map freeformTags, + java.util.Map> definedTags, + String kmsKeyId, + BdsInstance.ClusterProfile clusterProfile, + BdsClusterVersionSummary bdsClusterVersionSummary) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.clusterVersion = clusterVersion; + this.clusterPublicKey = clusterPublicKey; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isSecretReused = isSecretReused; + this.isHighAvailability = isHighAvailability; + this.isSecure = isSecure; + this.networkConfig = networkConfig; + this.bootstrapScriptUrl = bootstrapScriptUrl; + this.nodes = nodes; + this.kerberosRealmName = kerberosRealmName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.kmsKeyId = kmsKeyId; + this.clusterProfile = clusterProfile; + this.bdsClusterVersionSummary = bdsClusterVersionSummary; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "compartmentId", "displayName", @@ -47,7 +90,7 @@ public CreateBdsInstanceDetails( String displayName, BdsInstance.ClusterVersion clusterVersion, String clusterPublicKey, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isSecretReused, Boolean isHighAvailability, @@ -152,18 +195,26 @@ public Builder clusterPublicKey(String clusterPublicKey) { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if the secretId is specified. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if the secretId is specified. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -529,13 +580,25 @@ public String getClusterPublicKey() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if the secretId is specified. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if the secretId is specified. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if the secretId is specified. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java index 366c5ceb9a7..719b2f502d3 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java @@ -22,6 +22,26 @@ public final class CreateBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsMetastoreConfigurationDetails( + String displayName, + String metastoreId, + String bdsApiKeyId, + String bdsApiKeyPassphrase, + String clusterAdminPassword, + String secretId) { + super(); + this.displayName = displayName; + this.metastoreId = metastoreId; + this.bdsApiKeyId = bdsApiKeyId; + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "metastoreId", @@ -34,8 +54,8 @@ public CreateBdsMetastoreConfigurationDetails( String displayName, String metastoreId, String bdsApiKeyId, - String bdsApiKeyPassphrase, - String clusterAdminPassword, + char[] bdsApiKeyPassphrase, + char[] clusterAdminPassword, String secretId) { super(); this.displayName = displayName; @@ -100,34 +120,50 @@ public Builder bdsApiKeyId(String bdsApiKeyId) { * Base-64 encoded passphrase of the BDS Api Key. **/ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private String bdsApiKeyPassphrase; + private char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. * @param bdsApiKeyPassphrase the value to set * @return this builder **/ - public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + public Builder bdsApiKeyPassphrase(char[] bdsApiKeyPassphrase) { this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.__explicitlySet__.add("bdsApiKeyPassphrase"); return this; } + + public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("bdsApiKeyPassphrase"); + return this; + } + /** * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -244,13 +280,25 @@ public String getBdsApiKeyId() { * Base-64 encoded passphrase of the BDS Api Key. **/ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private final String bdsApiKeyPassphrase; + private final char[] bdsApiKeyPassphrase; + + /** + * Base-64 encoded passphrase of the BDS Api Key. + * return the value + * @Deprecated - Use getBdsApiKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getBdsApiKeyPassphrase() { + return bdsApiKeyPassphrase != null ? new String(bdsApiKeyPassphrase) : null; + } /** * Base-64 encoded passphrase of the BDS Api Key. * @return the value **/ - public String getBdsApiKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") + public char[] getBdsApiKeyPassphrase__AsCharArray() { return bdsApiKeyPassphrase; } @@ -258,13 +306,25 @@ public String getBdsApiKeyPassphrase() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java index 49e0e00b8f7..61438c8ee9d 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java @@ -22,6 +22,27 @@ public final class CreateIdentityConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateIdentityConfigurationDetails( + String clusterAdminPassword, + String secretId, + String displayName, + String identityDomainId, + String confidentialApplicationId, + UpstConfigurationDetails upstConfigurationDetails, + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.displayName = displayName; + this.identityDomainId = identityDomainId; + this.confidentialApplicationId = confidentialApplicationId; + this.upstConfigurationDetails = upstConfigurationDetails; + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -32,7 +53,7 @@ public final class CreateIdentityConfigurationDetails "iamUserSyncConfigurationDetails" }) public CreateIdentityConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, String displayName, String identityDomainId, @@ -55,18 +76,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -212,13 +241,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java index 37734187a4c..a3a2488050a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java @@ -22,6 +22,25 @@ public final class CreateNodeReplaceConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateNodeReplaceConfigurationDetails( + LevelTypeDetails levelTypeDetails, + String displayName, + String clusterAdminPassword, + String secretId, + NodeReplaceConfiguration.MetricType metricType, + Integer durationInMinutes) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.displayName = displayName; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.metricType = metricType; + this.durationInMinutes = durationInMinutes; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "levelTypeDetails", "displayName", @@ -33,7 +52,7 @@ public final class CreateNodeReplaceConfigurationDetails public CreateNodeReplaceConfigurationDetails( LevelTypeDetails levelTypeDetails, String displayName, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, NodeReplaceConfiguration.MetricType metricType, Integer durationInMinutes) { @@ -77,18 +96,26 @@ public Builder displayName(String displayName) { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -216,13 +243,25 @@ public String getDisplayName() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java index ccd6a9d5256..19e66af29cd 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java @@ -22,6 +22,21 @@ public final class CreateResourcePrincipalConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateResourcePrincipalConfigurationDetails( + String displayName, + String clusterAdminPassword, + String secretId, + Integer sessionTokenLifeSpanDurationInHours) { + super(); + this.displayName = displayName; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.sessionTokenLifeSpanDurationInHours = sessionTokenLifeSpanDurationInHours; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "clusterAdminPassword", @@ -30,7 +45,7 @@ public final class CreateResourcePrincipalConfigurationDetails }) public CreateResourcePrincipalConfigurationDetails( String displayName, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer sessionTokenLifeSpanDurationInHours) { super(); @@ -62,18 +77,26 @@ public Builder displayName(String displayName) { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -172,13 +195,25 @@ public String getDisplayName() { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java index 9a3dda422ef..11f9f6307ef 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java @@ -22,8 +22,17 @@ public final class DeactivateIamUserSyncConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public DeactivateIamUserSyncConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public DeactivateIamUserSyncConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java index 9c695e2fe98..f9ba2dadaa1 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java @@ -22,8 +22,17 @@ public final class DeactivateUpstConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public DeactivateUpstConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public DeactivateUpstConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java index d29d11b43b7..3113eefce75 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java @@ -22,10 +22,21 @@ public final class DisableCertificateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "services"}) public DisableCertificateDetails( String clusterAdminPassword, String secretId, java.util.List services) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.services = services; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "services"}) + public DisableCertificateDetails( + char[] clusterAdminPassword, String secretId, java.util.List services) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.services = services; @@ -37,18 +48,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -125,13 +144,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java index 737d4e6be25..8ddd878d8b3 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java @@ -22,6 +22,25 @@ public final class EnableCertificateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public EnableCertificateDetails( + String clusterAdminPassword, + String secretId, + java.util.List services, + String rootCertificate, + java.util.List hostCertDetails, + String serverKeyPassword) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.services = services; + this.rootCertificate = rootCertificate; + this.hostCertDetails = hostCertDetails; + this.serverKeyPassword = serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -31,12 +50,12 @@ public final class EnableCertificateDetails "serverKeyPassword" }) public EnableCertificateDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, java.util.List services, String rootCertificate, java.util.List hostCertDetails, - String serverKeyPassword) { + char[] serverKeyPassword) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -52,18 +71,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -132,19 +159,26 @@ public Builder hostCertDetails(java.util.List hostCertDetails) * Base-64 encoded password for CA certificate's private key. This value can be empty. **/ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private String serverKeyPassword; + private char[] serverKeyPassword; /** * Base-64 encoded password for CA certificate's private key. This value can be empty. * @param serverKeyPassword the value to set * @return this builder **/ - public Builder serverKeyPassword(String serverKeyPassword) { + public Builder serverKeyPassword(char[] serverKeyPassword) { this.serverKeyPassword = serverKeyPassword; this.__explicitlySet__.add("serverKeyPassword"); return this; } + public Builder serverKeyPassword(String serverKeyPassword) { + this.serverKeyPassword = + serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("serverKeyPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -202,13 +236,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } @@ -272,13 +318,25 @@ public java.util.List getHostCertDetails() { * Base-64 encoded password for CA certificate's private key. This value can be empty. **/ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private final String serverKeyPassword; + private final char[] serverKeyPassword; + + /** + * Base-64 encoded password for CA certificate's private key. This value can be empty. + * return the value + * @Deprecated - Use getServerKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServerKeyPassword() { + return serverKeyPassword != null ? new String(serverKeyPassword) : null; + } /** * Base-64 encoded password for CA certificate's private key. This value can be empty. * @return the value **/ - public String getServerKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") + public char[] getServerKeyPassword__AsCharArray() { return serverKeyPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java index 989d87a3614..80bc833e761 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java @@ -22,10 +22,21 @@ public final class ExecuteBootstrapScriptDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "bootstrapScriptUrl"}) public ExecuteBootstrapScriptDetails( String clusterAdminPassword, String secretId, String bootstrapScriptUrl) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.bootstrapScriptUrl = bootstrapScriptUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "bootstrapScriptUrl"}) + public ExecuteBootstrapScriptDetails( + char[] clusterAdminPassword, String secretId, String bootstrapScriptUrl) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.bootstrapScriptUrl = bootstrapScriptUrl; @@ -37,18 +48,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -125,13 +144,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java index 73c5b2cc0e0..dc52a2dc35f 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java @@ -22,8 +22,17 @@ public final class ForceRefreshResourcePrincipalDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public ForceRefreshResourcePrincipalDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public ForceRefreshResourcePrincipalDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java index 219c613265d..fd821f68ffb 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java @@ -22,6 +22,19 @@ public final class GenerateBdsCertificateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public GenerateBdsCertificateDetails( + ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, + String clusterAdminPassword, + String secretId) { + super(); + this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "manageCertificateLevelTypeDetails", "clusterAdminPassword", @@ -29,7 +42,7 @@ public final class GenerateBdsCertificateDetails }) public GenerateBdsCertificateDetails( ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; @@ -53,18 +66,26 @@ public Builder manageCertificateLevelTypeDetails( * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -135,13 +156,25 @@ public ManageBdsCertificateLevelTypeDetails getManageCertificateLevelTypeDetails * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/HostCertDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/HostCertDetails.java index 06b9cb7a7d3..fb069abec87 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/HostCertDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/HostCertDetails.java @@ -19,8 +19,17 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class HostCertDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"hostName", "certificate", "privateKey"}) public HostCertDetails(String hostName, String certificate, String privateKey) { + super(); + this.hostName = hostName; + this.certificate = certificate; + this.privateKey = privateKey != null ? privateKey.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"hostName", "certificate", "privateKey"}) + public HostCertDetails(String hostName, String certificate, char[] privateKey) { super(); this.hostName = hostName; this.certificate = certificate; @@ -65,19 +74,25 @@ public Builder certificate(String certificate) { * Private key of the provided certificate **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKey") - private String privateKey; + private char[] privateKey; /** * Private key of the provided certificate * @param privateKey the value to set * @return this builder **/ - public Builder privateKey(String privateKey) { + public Builder privateKey(char[] privateKey) { this.privateKey = privateKey; this.__explicitlySet__.add("privateKey"); return this; } + public Builder privateKey(String privateKey) { + this.privateKey = privateKey != null ? privateKey.toCharArray() : null; + this.__explicitlySet__.add("privateKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -148,13 +163,25 @@ public String getCertificate() { * Private key of the provided certificate **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKey") - private final String privateKey; + private final char[] privateKey; + + /** + * Private key of the provided certificate + * return the value + * @Deprecated - Use getPrivateKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKey() { + return privateKey != null ? new String(privateKey) : null; + } /** * Private key of the provided certificate * @return the value **/ - public String getPrivateKey() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKey") + public char[] getPrivateKey__AsCharArray() { return privateKey; } @@ -174,7 +201,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("hostName=").append(String.valueOf(this.hostName)); sb.append(", certificate=").append(String.valueOf(this.certificate)); - sb.append(", privateKey=").append(String.valueOf(this.privateKey)); + sb.append(", privateKey=").append(""); sb.append(")"); return sb.toString(); } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java index c46d9db1f89..6314b56d4a1 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java @@ -22,6 +22,23 @@ public final class InstallOsPatchDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public InstallOsPatchDetails( + String osPatchVersion, + String clusterAdminPassword, + String secretId, + PatchingConfigs patchingConfigs, + Boolean isDryRun) { + super(); + this.osPatchVersion = osPatchVersion; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.patchingConfigs = patchingConfigs; + this.isDryRun = isDryRun; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "osPatchVersion", "clusterAdminPassword", @@ -31,7 +48,7 @@ public final class InstallOsPatchDetails }) public InstallOsPatchDetails( String osPatchVersion, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, PatchingConfigs patchingConfigs, Boolean isDryRun) { @@ -65,18 +82,26 @@ public Builder osPatchVersion(String osPatchVersion) { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -186,13 +211,25 @@ public String getOsPatchVersion() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java index 5b716ceccfb..24cfde80815 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java @@ -20,6 +20,21 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class InstallPatchDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public InstallPatchDetails( + String version, + String clusterAdminPassword, + String secretId, + OdhPatchingConfig patchingConfig) { + super(); + this.version = version; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.patchingConfig = patchingConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "version", @@ -29,7 +44,7 @@ public final class InstallPatchDetails extends com.oracle.bmc.http.internal.Expl }) public InstallPatchDetails( String version, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, OdhPatchingConfig patchingConfig) { super(); @@ -61,18 +76,26 @@ public Builder version(String version) { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -162,13 +185,25 @@ public String getVersion() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/PasswordSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/PasswordSummary.java index af39935df49..7c818b41cea 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/PasswordSummary.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/PasswordSummary.java @@ -19,8 +19,15 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class PasswordSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"adminPassword"}) public PasswordSummary(String adminPassword) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"adminPassword"}) + public PasswordSummary(char[] adminPassword) { super(); this.adminPassword = adminPassword; } @@ -31,19 +38,25 @@ public static class Builder { * Base-64 encoded new admin password for the requested service after the reset operation. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * Base-64 encoded new admin password for the requested service after the reset operation. * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -79,13 +92,25 @@ public Builder toBuilder() { * Base-64 encoded new admin password for the requested service after the reset operation. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * Base-64 encoded new admin password for the requested service after the reset operation. + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * Base-64 encoded new admin password for the requested service after the reset operation. * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } @@ -103,7 +128,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("PasswordSummary("); sb.append("super=").append(super.toString()); - sb.append("adminPassword=").append(String.valueOf(this.adminPassword)); + sb.append("adminPassword=").append(""); sb.append(")"); return sb.toString(); } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java index 7cdfdf54442..88fa7b9f427 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java @@ -22,8 +22,17 @@ public final class RefreshConfidentialApplicationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RefreshConfidentialApplicationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RefreshConfidentialApplicationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java index 3711361651f..10443d46a9a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java @@ -22,8 +22,17 @@ public final class RefreshUpstTokenExchangeKeytabDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RefreshUpstTokenExchangeKeytabDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RefreshUpstTokenExchangeKeytabDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java index b7cd5307ab2..a19754fc440 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java @@ -22,8 +22,17 @@ public final class RemoveAutoScalingConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveAutoScalingConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveAutoScalingConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java index eb45d719601..6d78f9224d1 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java @@ -22,8 +22,16 @@ public final class RemoveCloudSqlDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword"}) public RemoveCloudSqlDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public RemoveCloudSqlDetails(char[] clusterAdminPassword) { super(); this.clusterAdminPassword = clusterAdminPassword; } @@ -34,19 +42,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -82,13 +97,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java index c7264af1b67..87a84d82297 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java @@ -21,8 +21,17 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class RemoveKafkaDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveKafkaDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveKafkaDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,18 +43,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -102,13 +119,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java index 6de876acf4f..066980ac9b5 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java @@ -20,6 +20,21 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class RemoveNodeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public RemoveNodeDetails( + String clusterAdminPassword, + String secretId, + Boolean isForceRemoveEnabled, + String nodeId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isForceRemoveEnabled = isForceRemoveEnabled; + this.nodeId = nodeId; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", @@ -28,7 +43,7 @@ public final class RemoveNodeDetails extends com.oracle.bmc.http.internal.Explic "nodeId" }) public RemoveNodeDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isForceRemoveEnabled, String nodeId) { @@ -45,18 +60,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -159,13 +182,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java index 3efd158ac75..1c39627df7a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java @@ -22,8 +22,17 @@ public final class RemoveNodeReplaceConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveNodeReplaceConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveNodeReplaceConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java index 43ca3ca6d0b..c1927b643d9 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java @@ -20,6 +20,21 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class RemoveNodesDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public RemoveNodesDetails( + String clusterAdminPassword, + String secretId, + Boolean isForceRemoveEnabled, + java.util.List instanceIds) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isForceRemoveEnabled = isForceRemoveEnabled; + this.instanceIds = instanceIds; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", @@ -28,7 +43,7 @@ public final class RemoveNodesDetails extends com.oracle.bmc.http.internal.Expli "instanceIds" }) public RemoveNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isForceRemoveEnabled, java.util.List instanceIds) { @@ -45,18 +60,26 @@ public static class Builder { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -157,13 +180,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java index 9c3be4b2c12..09546cc3dd1 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java @@ -22,10 +22,20 @@ public final class RemoveResourcePrincipalConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveResourcePrincipalConfigurationDetails( String clusterAdminPassword, String secretId) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveResourcePrincipalConfigurationDetails( + char[] clusterAdminPassword, String secretId) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; } @@ -36,18 +46,26 @@ public static class Builder { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -105,13 +123,25 @@ public Builder toBuilder() { * Base-64 encoded Cluster Admin Password for cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded Cluster Admin Password for cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java index 9fcee41c3f6..5aa3767d55e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java @@ -22,6 +22,19 @@ public final class RenewBdsCertificateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public RenewBdsCertificateDetails( + ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, + String clusterAdminPassword, + String secretId) { + super(); + this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "manageCertificateLevelTypeDetails", "clusterAdminPassword", @@ -29,7 +42,7 @@ public final class RenewBdsCertificateDetails }) public RenewBdsCertificateDetails( ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; @@ -53,18 +66,26 @@ public Builder manageCertificateLevelTypeDetails( * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -135,13 +156,25 @@ public ManageBdsCertificateLevelTypeDetails getManageCertificateLevelTypeDetails * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java index 5d98dddc933..f2eca6823ed 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java @@ -22,6 +22,25 @@ public final class RenewCertificateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public RenewCertificateDetails( + String clusterAdminPassword, + String secretId, + java.util.List services, + String rootCertificate, + java.util.List hostCertDetails, + String serverKeyPassword) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.services = services; + this.rootCertificate = rootCertificate; + this.hostCertDetails = hostCertDetails; + this.serverKeyPassword = serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -31,12 +50,12 @@ public final class RenewCertificateDetails "serverKeyPassword" }) public RenewCertificateDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, java.util.List services, String rootCertificate, java.util.List hostCertDetails, - String serverKeyPassword) { + char[] serverKeyPassword) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -52,18 +71,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -132,19 +159,26 @@ public Builder hostCertDetails(java.util.List hostCertDetails) * Base-64 encoded password for CA certificate's private key. This value can be empty. **/ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private String serverKeyPassword; + private char[] serverKeyPassword; /** * Base-64 encoded password for CA certificate's private key. This value can be empty. * @param serverKeyPassword the value to set * @return this builder **/ - public Builder serverKeyPassword(String serverKeyPassword) { + public Builder serverKeyPassword(char[] serverKeyPassword) { this.serverKeyPassword = serverKeyPassword; this.__explicitlySet__.add("serverKeyPassword"); return this; } + public Builder serverKeyPassword(String serverKeyPassword) { + this.serverKeyPassword = + serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("serverKeyPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -202,13 +236,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } @@ -272,13 +318,25 @@ public java.util.List getHostCertDetails() { * Base-64 encoded password for CA certificate's private key. This value can be empty. **/ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private final String serverKeyPassword; + private final char[] serverKeyPassword; + + /** + * Base-64 encoded password for CA certificate's private key. This value can be empty. + * return the value + * @Deprecated - Use getServerKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServerKeyPassword() { + return serverKeyPassword != null ? new String(serverKeyPassword) : null; + } /** * Base-64 encoded password for CA certificate's private key. This value can be empty. * @return the value **/ - public String getServerKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") + public char[] getServerKeyPassword__AsCharArray() { return serverKeyPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java index b6aa5ec58d9..766a2be4225 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java @@ -20,24 +20,46 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class ReplaceNodeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public ReplaceNodeDetails( + String nodeHostName, + String nodeBackupId, + String clusterAdminPassword, + java.util.List heterogeneousShapes, + String secretId, + String shape) { + super(); + this.nodeHostName = nodeHostName; + this.nodeBackupId = nodeBackupId; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.heterogeneousShapes = heterogeneousShapes; + this.secretId = secretId; + this.shape = shape; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "nodeHostName", "nodeBackupId", "clusterAdminPassword", + "heterogeneousShapes", "secretId", "shape" }) public ReplaceNodeDetails( String nodeHostName, String nodeBackupId, - String clusterAdminPassword, + char[] clusterAdminPassword, + java.util.List heterogeneousShapes, String secretId, String shape) { super(); this.nodeHostName = nodeHostName; this.nodeBackupId = nodeBackupId; this.clusterAdminPassword = clusterAdminPassword; + this.heterogeneousShapes = heterogeneousShapes; this.secretId = secretId; this.shape = shape; } @@ -80,18 +102,42 @@ public Builder nodeBackupId(String nodeBackupId) { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + /** + * Heterogeneous shape of the node if the default shape is not available. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("heterogeneousShapes") + private java.util.List heterogeneousShapes; + + /** + * Heterogeneous shape of the node if the default shape is not available. + * @param heterogeneousShapes the value to set + * @return this builder + **/ + public Builder heterogeneousShapes(java.util.List heterogeneousShapes) { + this.heterogeneousShapes = heterogeneousShapes; + this.__explicitlySet__.add("heterogeneousShapes"); + return this; + } /** * The secretId for the clusterAdminPassword. **/ @@ -134,6 +180,7 @@ public ReplaceNodeDetails build() { this.nodeHostName, this.nodeBackupId, this.clusterAdminPassword, + this.heterogeneousShapes, this.secretId, this.shape); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -153,6 +200,9 @@ public Builder copy(ReplaceNodeDetails model) { if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { this.clusterAdminPassword(model.getClusterAdminPassword()); } + if (model.wasPropertyExplicitlySet("heterogeneousShapes")) { + this.heterogeneousShapes(model.getHeterogeneousShapes()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -206,16 +256,42 @@ public String getNodeBackupId() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } + /** + * Heterogeneous shape of the node if the default shape is not available. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("heterogeneousShapes") + private final java.util.List heterogeneousShapes; + + /** + * Heterogeneous shape of the node if the default shape is not available. + * @return the value + **/ + public java.util.List getHeterogeneousShapes() { + return heterogeneousShapes; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -261,6 +337,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("nodeHostName=").append(String.valueOf(this.nodeHostName)); sb.append(", nodeBackupId=").append(String.valueOf(this.nodeBackupId)); sb.append(", clusterAdminPassword=").append(""); + sb.append(", heterogeneousShapes=").append(String.valueOf(this.heterogeneousShapes)); sb.append(", secretId=").append(String.valueOf(this.secretId)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(")"); @@ -280,6 +357,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.nodeHostName, other.nodeHostName) && java.util.Objects.equals(this.nodeBackupId, other.nodeBackupId) && java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals(this.heterogeneousShapes, other.heterogeneousShapes) && java.util.Objects.equals(this.secretId, other.secretId) && java.util.Objects.equals(this.shape, other.shape) && super.equals(other); @@ -296,6 +374,11 @@ public int hashCode() { + (this.clusterAdminPassword == null ? 43 : this.clusterAdminPassword.hashCode()); + result = + (result * PRIME) + + (this.heterogeneousShapes == null + ? 43 + : this.heterogeneousShapes.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java index a5faf7afa16..e992059673f 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java @@ -22,10 +22,20 @@ public final class SetDefaultBdsCertificateConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public SetDefaultBdsCertificateConfigurationDetails( String clusterAdminPassword, String secretId) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public SetDefaultBdsCertificateConfigurationDetails( + char[] clusterAdminPassword, String secretId) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; } @@ -36,18 +46,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -105,13 +123,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java index df44341f734..98b524fd6ed 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java @@ -22,13 +22,26 @@ public final class StartBdsInstanceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public StartBdsInstanceDetails( + String clusterAdminPassword, + String secretId, + StartClusterShapeConfigs startClusterShapeConfigs) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.startClusterShapeConfigs = startClusterShapeConfigs; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", "startClusterShapeConfigs" }) public StartBdsInstanceDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, StartClusterShapeConfigs startClusterShapeConfigs) { super(); @@ -43,18 +56,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -126,13 +147,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java index 6ee649add73..9048c46df7e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java @@ -22,11 +22,22 @@ public final class StopBdsInstanceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"isForceStopJobs", "clusterAdminPassword", "secretId"}) public StopBdsInstanceDetails( Boolean isForceStopJobs, String clusterAdminPassword, String secretId) { super(); this.isForceStopJobs = isForceStopJobs; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"isForceStopJobs", "clusterAdminPassword", "secretId"}) + public StopBdsInstanceDetails( + Boolean isForceStopJobs, char[] clusterAdminPassword, String secretId) { + super(); + this.isForceStopJobs = isForceStopJobs; this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; } @@ -53,18 +64,26 @@ public Builder isForceStopJobs(Boolean isForceStopJobs) { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -139,13 +158,25 @@ public Boolean getIsForceStopJobs() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java index 87f9ca5b91e..eac9c0cd515 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java @@ -22,8 +22,17 @@ public final class TestBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public TestBdsMetastoreConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public TestBdsMetastoreConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,18 +44,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -104,13 +121,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java index 7403a778259..85cca43b59d 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java @@ -22,11 +22,21 @@ public final class TestBdsObjectStorageConnectionDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"objectStorageUri", "passphrase", "objectStorageRegion"}) public TestBdsObjectStorageConnectionDetails( String objectStorageUri, String passphrase, String objectStorageRegion) { super(); this.objectStorageUri = objectStorageUri; + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.objectStorageRegion = objectStorageRegion; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"objectStorageUri", "passphrase", "objectStorageRegion"}) + public TestBdsObjectStorageConnectionDetails( + String objectStorageUri, char[] passphrase, String objectStorageRegion) { + super(); + this.objectStorageUri = objectStorageUri; this.passphrase = passphrase; this.objectStorageRegion = objectStorageRegion; } @@ -53,18 +63,25 @@ public Builder objectStorageUri(String objectStorageUri) { * Base64 passphrase used to secure the private key which will be created on user behalf. **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private String passphrase; + private char[] passphrase; /** * Base64 passphrase used to secure the private key which will be created on user behalf. * @param passphrase the value to set * @return this builder **/ - public Builder passphrase(String passphrase) { + public Builder passphrase(char[] passphrase) { this.passphrase = passphrase; this.__explicitlySet__.add("passphrase"); return this; } + + public Builder passphrase(String passphrase) { + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.__explicitlySet__.add("passphrase"); + return this; + } + /** * The name of the region to establish the Object Storage endpoint. Example us-phoenix-1 . **/ @@ -139,13 +156,25 @@ public String getObjectStorageUri() { * Base64 passphrase used to secure the private key which will be created on user behalf. **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private final String passphrase; + private final char[] passphrase; + + /** + * Base64 passphrase used to secure the private key which will be created on user behalf. + * return the value + * @Deprecated - Use getPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassphrase() { + return passphrase != null ? new String(passphrase) : null; + } /** * Base64 passphrase used to secure the private key which will be created on user behalf. * @return the value **/ - public String getPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("passphrase") + public char[] getPassphrase__AsCharArray() { return passphrase; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java index f83a10592ce..9d54561a781 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java @@ -22,6 +22,25 @@ public final class UpdateAutoScalingConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateAutoScalingConfigurationDetails( + String displayName, + Boolean isEnabled, + String clusterAdminPassword, + String secretId, + AutoScalePolicy policy, + UpdateAutoScalePolicyDetails policyDetails) { + super(); + this.displayName = displayName; + this.isEnabled = isEnabled; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.policy = policy; + this.policyDetails = policyDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "isEnabled", @@ -33,7 +52,7 @@ public final class UpdateAutoScalingConfigurationDetails public UpdateAutoScalingConfigurationDetails( String displayName, Boolean isEnabled, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, AutoScalePolicy policy, UpdateAutoScalePolicyDetails policyDetails) { @@ -84,18 +103,26 @@ public Builder isEnabled(Boolean isEnabled) { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -216,13 +243,25 @@ public Boolean getIsEnabled() { * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java index 6a83ebeea43..f515c31ebc7 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java @@ -22,6 +22,24 @@ public final class UpdateBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateBdsMetastoreConfigurationDetails( + String displayName, + String bdsApiKeyId, + String bdsApiKeyPassphrase, + String clusterAdminPassword, + String secretId) { + super(); + this.displayName = displayName; + this.bdsApiKeyId = bdsApiKeyId; + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "bdsApiKeyId", @@ -32,8 +50,8 @@ public final class UpdateBdsMetastoreConfigurationDetails public UpdateBdsMetastoreConfigurationDetails( String displayName, String bdsApiKeyId, - String bdsApiKeyPassphrase, - String clusterAdminPassword, + char[] bdsApiKeyPassphrase, + char[] clusterAdminPassword, String secretId) { super(); this.displayName = displayName; @@ -81,34 +99,50 @@ public Builder bdsApiKeyId(String bdsApiKeyId) { * Base-64 encoded passphrase of the BDS Api Key. **/ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private String bdsApiKeyPassphrase; + private char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. * @param bdsApiKeyPassphrase the value to set * @return this builder **/ - public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + public Builder bdsApiKeyPassphrase(char[] bdsApiKeyPassphrase) { this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.__explicitlySet__.add("bdsApiKeyPassphrase"); return this; } + + public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("bdsApiKeyPassphrase"); + return this; + } + /** * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -207,13 +241,25 @@ public String getBdsApiKeyId() { * Base-64 encoded passphrase of the BDS Api Key. **/ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private final String bdsApiKeyPassphrase; + private final char[] bdsApiKeyPassphrase; + + /** + * Base-64 encoded passphrase of the BDS Api Key. + * return the value + * @Deprecated - Use getBdsApiKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getBdsApiKeyPassphrase() { + return bdsApiKeyPassphrase != null ? new String(bdsApiKeyPassphrase) : null; + } /** * Base-64 encoded passphrase of the BDS Api Key. * @return the value **/ - public String getBdsApiKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") + public char[] getBdsApiKeyPassphrase__AsCharArray() { return bdsApiKeyPassphrase; } @@ -221,13 +267,25 @@ public String getBdsApiKeyPassphrase() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java index 6cb8c9532f5..d411cefdb94 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java @@ -22,6 +22,21 @@ public final class UpdateIdentityConfigurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateIdentityConfigurationDetails( + String clusterAdminPassword, + String secretId, + UpstConfigurationDetails upstConfigurationDetails, + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.upstConfigurationDetails = upstConfigurationDetails; + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -29,7 +44,7 @@ public final class UpdateIdentityConfigurationDetails "iamUserSyncConfigurationDetails" }) public UpdateIdentityConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, UpstConfigurationDetails upstConfigurationDetails, IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { @@ -46,18 +61,26 @@ public static class Builder { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * @param clusterAdminPassword the value to set * @return this builder **/ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** * The secretId for the clusterAdminPassword. **/ @@ -143,13 +166,25 @@ public Builder toBuilder() { * Base-64 encoded password for the cluster admin user. **/ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * return the value + * @Deprecated - Use getClusterAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } /** * Base-64 encoded password for the cluster admin user. * @return the value **/ - public String getClusterAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 20dc91ee77c..ce884a2a00d 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-blockchain @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 14344ddc4fa..0c6bb61338f 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-bom @@ -19,1061 +19,1073 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-audit - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-core - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-database - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dns - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-email - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-identity - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-addons-graalvm - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-waas - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-ons - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-budget - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-limits - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-functions - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-events - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-oce - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-oda - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-integration - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-vault - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-bds - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-cims - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-logging - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-sch - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-rover - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-jms - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-devops - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-waf - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-usage - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-adm - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-waa - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-opa - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-queue - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-redis - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-psql - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-iot - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-psa - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-dif - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-batch - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-self - 2.91.0 + 2.93.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 2.91.0 + 2.93.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-databasetoolsruntime + 2.93.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-costad + 2.93.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 50f84548240..abf1a3aa08c 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-budget @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index e575e6a4a0f..51c70929a36 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index c0c3123a40b..36ba6ae4691 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-certificates @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 8fde4e46390..6a15fef5277 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 767dd3fe3d9..d2ef4af6ff5 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-cims @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/GetIncidentConverter.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/GetIncidentConverter.java index 98780a598a1..292dd78a63d 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/GetIncidentConverter.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/GetIncidentConverter.java @@ -55,10 +55,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-request-id", request.getOpcRequestId()); } - if (request.getCsi() != null) { - ib.header("csi", request.getCsi()); - } - if (request.getOcid() != null) { ib.header("ocid", request.getOcid()); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentResourceTypesConverter.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentResourceTypesConverter.java index b8d5cf37e58..bcdc2554560 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentResourceTypesConverter.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentResourceTypesConverter.java @@ -99,10 +99,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-request-id", request.getOpcRequestId()); } - if (request.getCsi() != null) { - ib.header("csi", request.getCsi()); - } - if (request.getOcid() != null) { ib.header("ocid", request.getOcid()); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentsConverter.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentsConverter.java index dddfe1d312f..b8ff5417b16 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentsConverter.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ListIncidentsConverter.java @@ -64,6 +64,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortOrder().getValue())); } + if (request.getTimeUpdatedGreaterThanOrEqualTo() != null) { + target = + target.queryParam( + "timeUpdatedGreaterThanOrEqualTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdatedGreaterThanOrEqualTo())); + } + if (request.getLifecycleState() != null) { target = target.queryParam( @@ -92,10 +100,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getCsi() != null) { - ib.header("csi", request.getCsi()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/PutAttachmentConverter.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/PutAttachmentConverter.java index cebc860d508..6b397067f7c 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/PutAttachmentConverter.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/PutAttachmentConverter.java @@ -67,10 +67,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getCsi() != null) { - ib.header("csi", request.getCsi()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/UpdateIncidentConverter.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/UpdateIncidentConverter.java index 3112e87069a..6526309dd75 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/UpdateIncidentConverter.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/UpdateIncidentConverter.java @@ -52,10 +52,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getCsi() != null) { - ib.header("csi", request.getCsi()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ValidateUserConverter.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ValidateUserConverter.java index 9a08e4d4d43..7647bcf3d26 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ValidateUserConverter.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/internal/http/ValidateUserConverter.java @@ -50,10 +50,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getCsi() != null) { - ib.header("csi", request.getCsi()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java index e301d8677b0..a9b838494b6 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java @@ -23,7 +23,6 @@ public final class CreateIncident extends com.oracle.bmc.http.internal.Explicitl @java.beans.ConstructorProperties({ "compartmentId", "ticket", - "csi", "userGroupId", "problemType", "contacts", @@ -32,7 +31,6 @@ public final class CreateIncident extends com.oracle.bmc.http.internal.Explicitl public CreateIncident( String compartmentId, CreateTicketDetails ticket, - String csi, String userGroupId, ProblemType problemType, java.util.List contacts, @@ -40,7 +38,6 @@ public CreateIncident( super(); this.compartmentId = compartmentId; this.ticket = ticket; - this.csi = csi; this.userGroupId = userGroupId; this.problemType = problemType; this.contacts = contacts; @@ -74,26 +71,6 @@ public Builder ticket(CreateTicketDetails ticket) { this.__explicitlySet__.add("ticket"); return this; } - /** - * Deprecated. The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("csi") - private String csi; - - /** - * Deprecated. The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - * @param csi the value to set - * @return this builder - **/ - public Builder csi(String csi) { - this.csi = csi; - this.__explicitlySet__.add("csi"); - return this; - } /** * Technical support type ({@code TECH}) only: Identifier of the user group to assign the new support request to. * To find identifiers of user groups that you have access to, run the @@ -191,7 +168,6 @@ public CreateIncident build() { new CreateIncident( this.compartmentId, this.ticket, - this.csi, this.userGroupId, this.problemType, this.contacts, @@ -210,9 +186,6 @@ public Builder copy(CreateIncident model) { if (model.wasPropertyExplicitlySet("ticket")) { this.ticket(model.getTicket()); } - if (model.wasPropertyExplicitlySet("csi")) { - this.csi(model.getCsi()); - } if (model.wasPropertyExplicitlySet("userGroupId")) { this.userGroupId(model.getUserGroupId()); } @@ -261,24 +234,6 @@ public CreateTicketDetails getTicket() { return ticket; } - /** - * Deprecated. The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("csi") - private final String csi; - - /** - * Deprecated. The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - * @return the value - **/ - public String getCsi() { - return csi; - } - /** * Technical support type ({@code TECH}) only: Identifier of the user group to assign the new support request to. * To find identifiers of user groups that you have access to, run the @@ -375,7 +330,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", ticket=").append(String.valueOf(this.ticket)); - sb.append(", csi=").append(String.valueOf(this.csi)); sb.append(", userGroupId=").append(String.valueOf(this.userGroupId)); sb.append(", problemType=").append(String.valueOf(this.problemType)); sb.append(", contacts=").append(String.valueOf(this.contacts)); @@ -396,7 +350,6 @@ public boolean equals(Object o) { CreateIncident other = (CreateIncident) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.ticket, other.ticket) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.userGroupId, other.userGroupId) && java.util.Objects.equals(this.problemType, other.problemType) && java.util.Objects.equals(this.contacts, other.contacts) @@ -412,7 +365,6 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.ticket == null ? 43 : this.ticket.hashCode()); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.userGroupId == null ? 43 : this.userGroupId.hashCode()); result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java index 40175187db3..10bfa52d199 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java @@ -94,7 +94,6 @@ public Builder title(String title) { return this; } /** - * Important: On January 27, 2026, the Max Length value will change to 1500. * The description of the support request. Avoid entering confidential information. * **/ @@ -102,7 +101,6 @@ public Builder title(String title) { private String description; /** - * Important: On January 27, 2026, the Max Length value will change to 1500. * The description of the support request. Avoid entering confidential information. * * @param description the value to set @@ -252,7 +250,6 @@ public String getTitle() { } /** - * Important: On January 27, 2026, the Max Length value will change to 1500. * The description of the support request. Avoid entering confidential information. * **/ @@ -260,7 +257,6 @@ public String getTitle() { private final String description; /** - * Important: On January 27, 2026, the Max Length value will change to 1500. * The description of the support request. Avoid entering confidential information. * * @return the value diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java index 810d741238c..04051ca5646 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java @@ -25,7 +25,6 @@ public final class CreateUserDetails extends com.oracle.bmc.http.internal.Explic "compartmentId", "firstName", "lastName", - "csi", "phone", "timezone", "organizationName", @@ -35,7 +34,6 @@ public CreateUserDetails( String compartmentId, String firstName, String lastName, - String csi, String phone, String timezone, String organizationName, @@ -44,7 +42,6 @@ public CreateUserDetails( this.compartmentId = compartmentId; this.firstName = firstName; this.lastName = lastName; - this.csi = csi; this.phone = phone; this.timezone = timezone; this.organizationName = organizationName; @@ -101,22 +98,6 @@ public Builder lastName(String lastName) { this.__explicitlySet__.add("lastName"); return this; } - /** - * CSI associated with the user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("csi") - private String csi; - - /** - * CSI associated with the user. - * @param csi the value to set - * @return this builder - **/ - public Builder csi(String csi) { - this.csi = csi; - this.__explicitlySet__.add("csi"); - return this; - } /** * Contact number of the user. **/ @@ -205,7 +186,6 @@ public CreateUserDetails build() { this.compartmentId, this.firstName, this.lastName, - this.csi, this.phone, this.timezone, this.organizationName, @@ -227,9 +207,6 @@ public Builder copy(CreateUserDetails model) { if (model.wasPropertyExplicitlySet("lastName")) { this.lastName(model.getLastName()); } - if (model.wasPropertyExplicitlySet("csi")) { - this.csi(model.getCsi()); - } if (model.wasPropertyExplicitlySet("phone")) { this.phone(model.getPhone()); } @@ -299,20 +276,6 @@ public String getLastName() { return lastName; } - /** - * CSI associated with the user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("csi") - private final String csi; - - /** - * CSI associated with the user. - * @return the value - **/ - public String getCsi() { - return csi; - } - /** * Contact number of the user. **/ @@ -400,7 +363,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", firstName=").append(String.valueOf(this.firstName)); sb.append(", lastName=").append(String.valueOf(this.lastName)); - sb.append(", csi=").append(String.valueOf(this.csi)); sb.append(", phone=").append(String.valueOf(this.phone)); sb.append(", timezone=").append(String.valueOf(this.timezone)); sb.append(", organizationName=").append(String.valueOf(this.organizationName)); @@ -422,7 +384,6 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.firstName, other.firstName) && java.util.Objects.equals(this.lastName, other.lastName) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.phone, other.phone) && java.util.Objects.equals(this.timezone, other.timezone) && java.util.Objects.equals(this.organizationName, other.organizationName) @@ -439,7 +400,6 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.phone == null ? 43 : this.phone.hashCode()); result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); result = diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java index cad5c1e73e4..d464b1db4bc 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java @@ -21,31 +21,14 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class TenancyInformation extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"customerSupportKey", "tenancyId"}) - public TenancyInformation(String customerSupportKey, String tenancyId) { + @java.beans.ConstructorProperties({"tenancyId"}) + public TenancyInformation(String tenancyId) { super(); - this.customerSupportKey = customerSupportKey; this.tenancyId = tenancyId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** - * The Customer Support Identifier (CSI) number associated with the tenancy. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("customerSupportKey") - private String customerSupportKey; - - /** - * The Customer Support Identifier (CSI) number associated with the tenancy. - * @param customerSupportKey the value to set - * @return this builder - **/ - public Builder customerSupportKey(String customerSupportKey) { - this.customerSupportKey = customerSupportKey; - this.__explicitlySet__.add("customerSupportKey"); - return this; - } /** * The OCID of the tenancy. **/ @@ -67,8 +50,7 @@ public Builder tenancyId(String tenancyId) { private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public TenancyInformation build() { - TenancyInformation model = - new TenancyInformation(this.customerSupportKey, this.tenancyId); + TenancyInformation model = new TenancyInformation(this.tenancyId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -77,9 +59,6 @@ public TenancyInformation build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(TenancyInformation model) { - if (model.wasPropertyExplicitlySet("customerSupportKey")) { - this.customerSupportKey(model.getCustomerSupportKey()); - } if (model.wasPropertyExplicitlySet("tenancyId")) { this.tenancyId(model.getTenancyId()); } @@ -98,20 +77,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * The Customer Support Identifier (CSI) number associated with the tenancy. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("customerSupportKey") - private final String customerSupportKey; - - /** - * The Customer Support Identifier (CSI) number associated with the tenancy. - * @return the value - **/ - public String getCustomerSupportKey() { - return customerSupportKey; - } - /** * The OCID of the tenancy. **/ @@ -140,8 +105,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("TenancyInformation("); sb.append("super=").append(super.toString()); - sb.append("customerSupportKey=").append(String.valueOf(this.customerSupportKey)); - sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append("tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(")"); return sb.toString(); } @@ -156,20 +120,13 @@ public boolean equals(Object o) { } TenancyInformation other = (TenancyInformation) o; - return java.util.Objects.equals(this.customerSupportKey, other.customerSupportKey) - && java.util.Objects.equals(this.tenancyId, other.tenancyId) - && super.equals(other); + return java.util.Objects.equals(this.tenancyId, other.tenancyId) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; - result = - (result * PRIME) - + (this.customerSupportKey == null - ? 43 - : this.customerSupportKey.hashCode()); result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java index 20f37cfafad..12d6767e57f 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java @@ -24,7 +24,6 @@ public final class User extends com.oracle.bmc.http.internal.ExplicitlySetBmcMod "firstName", "lastName", "country", - "csi", "phone", "timezone", "organizationName", @@ -37,7 +36,6 @@ public User( String firstName, String lastName, String country, - String csi, String phone, String timezone, String organizationName, @@ -49,7 +47,6 @@ public User( this.firstName = firstName; this.lastName = lastName; this.country = country; - this.csi = csi; this.phone = phone; this.timezone = timezone; this.organizationName = organizationName; @@ -124,22 +121,6 @@ public Builder country(String country) { this.__explicitlySet__.add("country"); return this; } - /** - * The CSI associated with the user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("csi") - private String csi; - - /** - * The CSI associated with the user. - * @param csi the value to set - * @return this builder - **/ - public Builder csi(String csi) { - this.csi = csi; - this.__explicitlySet__.add("csi"); - return this; - } /** * The user's contact phone number. **/ @@ -261,7 +242,6 @@ public User build() { this.firstName, this.lastName, this.country, - this.csi, this.phone, this.timezone, this.organizationName, @@ -288,9 +268,6 @@ public Builder copy(User model) { if (model.wasPropertyExplicitlySet("country")) { this.country(model.getCountry()); } - if (model.wasPropertyExplicitlySet("csi")) { - this.csi(model.getCsi()); - } if (model.wasPropertyExplicitlySet("phone")) { this.phone(model.getPhone()); } @@ -380,20 +357,6 @@ public String getCountry() { return country; } - /** - * The CSI associated with the user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("csi") - private final String csi; - - /** - * The CSI associated with the user. - * @return the value - **/ - public String getCsi() { - return csi; - } - /** * The user's contact phone number. **/ @@ -510,7 +473,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", firstName=").append(String.valueOf(this.firstName)); sb.append(", lastName=").append(String.valueOf(this.lastName)); sb.append(", country=").append(String.valueOf(this.country)); - sb.append(", csi=").append(String.valueOf(this.csi)); sb.append(", phone=").append(String.valueOf(this.phone)); sb.append(", timezone=").append(String.valueOf(this.timezone)); sb.append(", organizationName=").append(String.valueOf(this.organizationName)); @@ -535,7 +497,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.firstName, other.firstName) && java.util.Objects.equals(this.lastName, other.lastName) && java.util.Objects.equals(this.country, other.country) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.phone, other.phone) && java.util.Objects.equals(this.timezone, other.timezone) && java.util.Objects.equals(this.organizationName, other.organizationName) @@ -553,7 +514,6 @@ public int hashCode() { result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.phone == null ? 43 : this.phone.hashCode()); result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); result = diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java index ba22b1a37fd..caed09ca43f 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java @@ -44,21 +44,6 @@ public String getCompartmentId() { public String getOpcRequestId() { return opcRequestId; } - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - private String csi; - - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - public String getCsi() { - return csi; - } /** * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. * User OCID is mandatory for OCI Users and optional for Multicloud users. @@ -197,25 +182,6 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - private String csi = null; - - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - * @param csi the value to set - * @return this builder instance - */ - public Builder csi(String csi) { - this.csi = csi; - return this; - } - /** * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. * User OCID is mandatory for OCI Users and optional for Multicloud users. @@ -360,7 +326,6 @@ public Builder copy(GetIncidentRequest o) { incidentKey(o.getIncidentKey()); compartmentId(o.getCompartmentId()); opcRequestId(o.getOpcRequestId()); - csi(o.getCsi()); ocid(o.getOcid()); homeregion(o.getHomeregion()); problemtype(o.getProblemtype()); @@ -403,7 +368,6 @@ public GetIncidentRequest buildWithoutInvocationCallback() { request.incidentKey = incidentKey; request.compartmentId = compartmentId; request.opcRequestId = opcRequestId; - request.csi = csi; request.ocid = ocid; request.homeregion = homeregion; request.problemtype = problemtype; @@ -412,7 +376,7 @@ public GetIncidentRequest buildWithoutInvocationCallback() { request.idtoken = idtoken; request.domainid = domainid; return request; - // new GetIncidentRequest(incidentKey, compartmentId, opcRequestId, csi, ocid, homeregion, problemtype, bearertokentype, bearertoken, idtoken, domainid); + // new GetIncidentRequest(incidentKey, compartmentId, opcRequestId, ocid, homeregion, problemtype, bearertokentype, bearertoken, idtoken, domainid); } } @@ -425,7 +389,6 @@ public Builder toBuilder() { .incidentKey(incidentKey) .compartmentId(compartmentId) .opcRequestId(opcRequestId) - .csi(csi) .ocid(ocid) .homeregion(homeregion) .problemtype(problemtype) @@ -451,7 +414,6 @@ public String toString() { sb.append(",incidentKey=").append(String.valueOf(this.incidentKey)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); sb.append(",problemtype=").append(String.valueOf(this.problemtype)); @@ -477,7 +439,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.incidentKey, other.incidentKey) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.homeregion, other.homeregion) && java.util.Objects.equals(this.problemtype, other.problemtype) @@ -496,7 +457,6 @@ 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.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); result = (result * PRIME) + (this.problemtype == null ? 43 : this.problemtype.hashCode()); diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java index f42fb10565e..83e31085e3e 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java @@ -104,21 +104,6 @@ public com.oracle.bmc.cims.model.SortOrder getSortOrder() { public String getName() { return name; } - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - private String csi; - - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - public String getCsi() { - return csi; - } /** * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. * User OCID is mandatory for OCI Users and optional for Multicloud users. @@ -292,25 +277,6 @@ public Builder name(String name) { return this; } - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - private String csi = null; - - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - * @param csi the value to set - * @return this builder instance - */ - public Builder csi(String csi) { - this.csi = csi; - return this; - } - /** * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. * User OCID is mandatory for OCI Users and optional for Multicloud users. @@ -400,7 +366,6 @@ public Builder copy(ListIncidentResourceTypesRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); name(o.getName()); - csi(o.getCsi()); ocid(o.getOcid()); homeregion(o.getHomeregion()); domainid(o.getDomainid()); @@ -444,12 +409,11 @@ public ListIncidentResourceTypesRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.name = name; - request.csi = csi; request.ocid = ocid; request.homeregion = homeregion; request.domainid = domainid; return request; - // new ListIncidentResourceTypesRequest(problemType, compartmentId, opcRequestId, limit, page, sortBy, sortOrder, name, csi, ocid, homeregion, domainid); + // new ListIncidentResourceTypesRequest(problemType, compartmentId, opcRequestId, limit, page, sortBy, sortOrder, name, ocid, homeregion, domainid); } } @@ -467,7 +431,6 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .name(name) - .csi(csi) .ocid(ocid) .homeregion(homeregion) .domainid(domainid); @@ -494,7 +457,6 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",name=").append(String.valueOf(this.name)); - sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); sb.append(",domainid=").append(String.valueOf(this.domainid)); @@ -521,7 +483,6 @@ 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.name, other.name) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.homeregion, other.homeregion) && java.util.Objects.equals(this.domainid, other.domainid); @@ -541,7 +502,6 @@ 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.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java index 13dd069d8e2..7f91f097119 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java @@ -22,21 +22,6 @@ public class ListIncidentsRequest extends com.oracle.bmc.requests.BmcRequest { - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - private String csi; - - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - public String getCsi() { - return csi; - } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. */ @@ -130,25 +115,6 @@ public static class Builder invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - */ - private String csi = null; - - /** - * The Customer Support Identifier (CSI) number associated with the support account. - * The CSI is optional for all support request types. - * - * @param csi the value to set - * @return this builder instance - */ - public Builder csi(String csi) { - this.csi = csi; - return this; - } - /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. */ @@ -305,7 +271,6 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ValidateUserRequest o) { - csi(o.getCsi()); opcRequestId(o.getOpcRequestId()); problemType(o.getProblemType()); ocid(o.getOcid()); @@ -346,7 +311,6 @@ public ValidateUserRequest build() { */ public ValidateUserRequest buildWithoutInvocationCallback() { ValidateUserRequest request = new ValidateUserRequest(); - request.csi = csi; request.opcRequestId = opcRequestId; request.problemType = problemType; request.ocid = ocid; @@ -356,7 +320,7 @@ public ValidateUserRequest buildWithoutInvocationCallback() { request.idtoken = idtoken; request.domainid = domainid; return request; - // new ValidateUserRequest(csi, opcRequestId, problemType, ocid, homeregion, bearertokentype, bearertoken, idtoken, domainid); + // new ValidateUserRequest(opcRequestId, problemType, ocid, homeregion, bearertokentype, bearertoken, idtoken, domainid); } } @@ -366,7 +330,6 @@ public ValidateUserRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .csi(csi) .opcRequestId(opcRequestId) .problemType(problemType) .ocid(ocid) @@ -390,7 +353,6 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",problemType=").append(String.valueOf(this.problemType)); sb.append(",ocid=").append(String.valueOf(this.ocid)); @@ -414,7 +376,6 @@ public boolean equals(Object o) { ValidateUserRequest other = (ValidateUserRequest) o; return super.equals(o) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.problemType, other.problemType) && java.util.Objects.equals(this.ocid, other.ocid) @@ -429,7 +390,6 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 00744856527..9974aaa4790 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/JaxRsCircuitBreakerImplTest.java b/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/JaxRsCircuitBreakerImplTest.java index be066476302..6bfd3301a76 100644 --- a/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/JaxRsCircuitBreakerImplTest.java +++ b/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/JaxRsCircuitBreakerImplTest.java @@ -539,22 +539,63 @@ public void testCircuitBreakerEventListenerOnFailureRateExceeded() { } @Test - public void testMaxWaitDurationInHalfOpenState() { + public void testAutomaticTransitionToHalfOpenState() throws InterruptedException { + JaxRsCircuitBreakerImpl circuitBreaker = + new JaxRsCircuitBreakerImpl( + CircuitBreakerConfiguration.builder() + .failureRateThreshold(50) + .permittedNumberOfCallsInHalfOpenState(4) + .slidingWindowSize(SLIDING_WINDOW_SIZE) + .minimumNumberOfCalls(MIN_NUM_CALLS) + .waitDurationInOpenState(Duration.ofSeconds(2)) + .circuitBreakerEventListener(eventListener) + .build()); + + openCircuitBreaker(circuitBreaker); + + assertEquals( + com.oracle.bmc.circuitbreaker.CircuitBreakerState.OPEN, circuitBreaker.getState()); + assertEventuallyState( + circuitBreaker, + com.oracle.bmc.circuitbreaker.CircuitBreakerState.HALF_OPEN, + Duration.ofSeconds(5)); + } + + @Test + public void testMaxWaitDurationInHalfOpenState() throws InterruptedException { Duration maxWaitDurationInHalfOpenState = Duration.ofSeconds(1); - CircuitBreakerConfiguration config = - CircuitBreakerConfiguration.builder() - .failureRateThreshold(50) - .permittedNumberOfCallsInHalfOpenState(4) - .slidingWindowSize(SLIDING_WINDOW_SIZE) - .minimumNumberOfCalls(MIN_NUM_CALLS) - .waitDurationInOpenState(Duration.ofSeconds(2)) - .circuitBreakerEventListener(eventListener) - .maxWaitDurationInHalfOpenState(maxWaitDurationInHalfOpenState) - .build(); + JaxRsCircuitBreakerImpl circuitBreaker = + new JaxRsCircuitBreakerImpl( + CircuitBreakerConfiguration.builder() + .failureRateThreshold(50) + .permittedNumberOfCallsInHalfOpenState(4) + .slidingWindowSize(SLIDING_WINDOW_SIZE) + .minimumNumberOfCalls(MIN_NUM_CALLS) + .waitDurationInOpenState(Duration.ofSeconds(2)) + .circuitBreakerEventListener(eventListener) + .maxWaitDurationInHalfOpenState(maxWaitDurationInHalfOpenState) + .build()); + + circuitBreaker.getInternalCircuitBreaker().transitionToOpenState(); + circuitBreaker.getInternalCircuitBreaker().transitionToHalfOpenState(); - JaxRsCircuitBreakerImpl circuitBreaker = new JaxRsCircuitBreakerImpl(config); + assertEquals( + com.oracle.bmc.circuitbreaker.CircuitBreakerState.HALF_OPEN, + circuitBreaker.getState()); + + Response response = circuitBreaker.decorateSupplier(invocation200::invoke).get(); + assertEquals(200, response.getStatus()); + assertEquals( + com.oracle.bmc.circuitbreaker.CircuitBreakerState.HALF_OPEN, + circuitBreaker.getState()); - // Open the circuit breaker + assertEventuallyState( + circuitBreaker, + com.oracle.bmc.circuitbreaker.CircuitBreakerState.OPEN, + maxWaitDurationInHalfOpenState.plusSeconds(2)); + } + + private void openCircuitBreaker(JaxRsCircuitBreakerImpl circuitBreaker) { for (int i = 0; i < MIN_NUM_CALLS + 2; i++) { Supplier clientCall = circuitBreaker.decorateSupplier(invocation503::invoke); try { @@ -563,39 +604,21 @@ public void testMaxWaitDurationInHalfOpenState() { break; } } - assertEquals( - CircuitBreaker.State.OPEN, circuitBreaker.getInternalCircuitBreaker().getState()); - - // Wait for the circuit breaker to transition to HALF_OPEN state - try { - Thread.sleep(3000); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - } - assertEquals( - CircuitBreaker.State.HALF_OPEN, - circuitBreaker.getInternalCircuitBreaker().getState()); - - // Make a call in HALF_OPEN state - Supplier clientCall = circuitBreaker.decorateSupplier(invocation503::invoke); - try { - clientCall.get(); - } catch (CallNotAllowedException ex) { - verify(eventListener, atLeastOnce()).onCallNotPermitted(); - } + } - // Wait for maxWaitDurationInHalfOpenState - try { - Thread.sleep( - maxWaitDurationInHalfOpenState.toMillis() - + 100); // add some extra time to account for test variability - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); + private void assertEventuallyState( + JaxRsCircuitBreakerImpl circuitBreaker, + com.oracle.bmc.circuitbreaker.CircuitBreakerState expectedState, + Duration timeout) + throws InterruptedException { + long deadline = System.nanoTime() + timeout.toNanos(); + while (System.nanoTime() < deadline) { + if (circuitBreaker.getState() == expectedState) { + return; + } + Thread.sleep(25); } - - // The circuit breaker should still be in OPEN state because maxWaitDurationInHalfOpenState has passed - assertEquals( - CircuitBreaker.State.OPEN, circuitBreaker.getInternalCircuitBreaker().getState()); + assertEquals(expectedState, circuitBreaker.getState()); } @Test diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index d825f634aff..bf6094b0873 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-cloudbridge @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/AnalyzeAssetsConverter.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/AnalyzeAssetsConverter.java index 33141da99a7..2810e19215b 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/AnalyzeAssetsConverter.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/AnalyzeAssetsConverter.java @@ -121,6 +121,22 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInventoryId())); } + if (request.getAssetClassName() != null) { + target = + target.queryParam( + "assetClassName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssetClassName())); + } + + if (request.getAssetClassVersion() != null) { + target = + target.queryParam( + "assetClassVersion", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssetClassVersion())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/ListAssetsConverter.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/ListAssetsConverter.java index 202db69a12f..e5e80a8f884 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/ListAssetsConverter.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/internal/http/ListAssetsConverter.java @@ -128,6 +128,22 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInventoryId())); } + if (request.getAssetClassName() != null) { + target = + target.queryParam( + "assetClassName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssetClassName())); + } + + if (request.getAssetClassVersion() != null) { + target = + target.queryParam( + "assetClassVersion", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssetClassVersion())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/ApplianceImageSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/ApplianceImageSummary.java index 19e50457afc..c472b7dfcd7 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/ApplianceImageSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/ApplianceImageSummary.java @@ -34,9 +34,7 @@ public final class ApplianceImageSummary "timeCreated", "timeUpdated", "lifecycleState", - "downloadUrl", - "freeformTags", - "definedTags" + "downloadUrl" }) public ApplianceImageSummary( String id, @@ -50,9 +48,7 @@ public ApplianceImageSummary( java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, - String downloadUrl, - java.util.Map freeformTags, - java.util.Map> definedTags) { + String downloadUrl) { super(); this.id = id; this.fileName = fileName; @@ -66,8 +62,6 @@ public ApplianceImageSummary( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.downloadUrl = downloadUrl; - this.freeformTags = freeformTags; - this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -264,51 +258,6 @@ public Builder downloadUrl(String downloadUrl) { this.__explicitlySet__.add("downloadUrl"); return this; } - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -327,9 +276,7 @@ public ApplianceImageSummary build() { this.timeCreated, this.timeUpdated, this.lifecycleState, - this.downloadUrl, - this.freeformTags, - this.definedTags); + this.downloadUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -374,12 +321,6 @@ public Builder copy(ApplianceImageSummary model) { if (model.wasPropertyExplicitlySet("downloadUrl")) { this.downloadUrl(model.getDownloadUrl()); } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } return this; } } @@ -615,46 +556,6 @@ public String getDownloadUrl() { return downloadUrl; } - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - @Override public String toString() { return this.toString(true); @@ -681,8 +582,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", downloadUrl=").append(String.valueOf(this.downloadUrl)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -709,8 +608,6 @@ 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.downloadUrl, other.downloadUrl) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -732,8 +629,6 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.downloadUrl == null ? 43 : this.downloadUrl.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-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Asset.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Asset.java index 65f7bb6be35..8343244e5d7 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Asset.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Asset.java @@ -26,6 +26,10 @@ value = AwsEc2Asset.class, name = "AWS_EC2" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = InventoryAsset.class, + name = "INVENTORY_ASSET" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = VmwareVmAsset.class, name = "VMWARE_VM" @@ -52,7 +56,8 @@ public class Asset extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { "lifecycleState", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "environmentType" }) protected Asset( String displayName, @@ -67,7 +72,8 @@ protected Asset( LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + EnvironmentType environmentType) { super(); this.displayName = displayName; this.inventoryId = inventoryId; @@ -82,6 +88,7 @@ protected Asset( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.environmentType = environmentType; } /** @@ -332,6 +339,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + @Override public String toString() { return this.toString(true); @@ -359,6 +380,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(", environmentType=").append(String.valueOf(this.environmentType)); sb.append(")"); return sb.toString(); } @@ -386,6 +408,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.environmentType, other.environmentType) && super.equals(other); } @@ -414,6 +437,9 @@ 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.environmentType == null ? 43 : this.environmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSource.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSource.java index f3cf357d50b..257187801ca 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSource.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSource.java @@ -26,6 +26,10 @@ value = VmWareAssetSource.class, name = "VMWARE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OlvmAssetSource.class, + name = "OLVM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = AwsAssetSource.class, name = "AWS") }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -45,7 +49,8 @@ public class AssetSource extends com.oracle.bmc.http.internal.ExplicitlySetBmcMo "timeUpdated", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "environmentType" }) protected AssetSource( String id, @@ -61,7 +66,8 @@ protected AssetSource( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + EnvironmentType environmentType) { super(); this.id = id; this.compartmentId = compartmentId; @@ -77,6 +83,7 @@ protected AssetSource( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.environmentType = environmentType; } /** @@ -297,6 +304,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + @Override public String toString() { return this.toString(true); @@ -325,6 +346,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(", environmentType=").append(String.valueOf(this.environmentType)); sb.append(")"); return sb.toString(); } @@ -353,6 +375,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.environmentType, other.environmentType) && super.equals(other); } @@ -390,6 +413,9 @@ 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.environmentType == null ? 43 : this.environmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceSummary.java index 9ca4afc7120..6b0a9ab7022 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceSummary.java @@ -26,6 +26,10 @@ value = VmWareAssetSourceSummary.class, name = "VMWARE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OlvmAssetSourceSummary.class, + name = "OLVM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AwsAssetSourceSummary.class, name = "AWS" @@ -47,7 +51,8 @@ public class AssetSourceSummary extends com.oracle.bmc.http.internal.ExplicitlyS "timeUpdated", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "environmentType" }) protected AssetSourceSummary( String id, @@ -62,7 +67,8 @@ protected AssetSourceSummary( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + EnvironmentType environmentType) { super(); this.id = id; this.compartmentId = compartmentId; @@ -77,6 +83,7 @@ protected AssetSourceSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.environmentType = environmentType; } /** @@ -283,6 +290,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + @Override public String toString() { return this.toString(true); @@ -310,6 +331,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(", environmentType=").append(String.valueOf(this.environmentType)); sb.append(")"); return sb.toString(); } @@ -337,6 +359,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.environmentType, other.environmentType) && super.equals(other); } @@ -369,6 +392,9 @@ 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.environmentType == null ? 43 : this.environmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceType.java index 9e488cc9164..6e96f03424f 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceType.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceType.java @@ -11,6 +11,7 @@ public enum AssetSourceType { Vmware("VMWARE"), Aws("AWS"), + Olvm("OLVM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSummary.java index a7f37da8e5e..53617ab1d85 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSummary.java @@ -33,7 +33,10 @@ public final class AssetSummary extends com.oracle.bmc.http.internal.ExplicitlyS "lifecycleState", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "assetClassName", + "assetClassVersion", + "environmentType" }) public AssetSummary( String displayName, @@ -49,7 +52,10 @@ public AssetSummary( Asset.LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + String assetClassName, + String assetClassVersion, + EnvironmentType environmentType) { super(); this.displayName = displayName; this.inventoryId = inventoryId; @@ -65,6 +71,9 @@ public AssetSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.assetClassName = assetClassName; + this.assetClassVersion = assetClassVersion; + this.environmentType = environmentType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -312,6 +321,54 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * The name of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private String assetClassName; + + /** + * The name of the asset class. + * @param assetClassName the value to set + * @return this builder + **/ + public Builder assetClassName(String assetClassName) { + this.assetClassName = assetClassName; + this.__explicitlySet__.add("assetClassName"); + return this; + } + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private String assetClassVersion; + + /** + * The version of the asset class. + * @param assetClassVersion the value to set + * @return this builder + **/ + public Builder assetClassVersion(String assetClassVersion) { + this.assetClassVersion = assetClassVersion; + this.__explicitlySet__.add("assetClassVersion"); + return this; + } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @param environmentType the value to set + * @return this builder + **/ + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -332,7 +389,10 @@ public AssetSummary build() { this.lifecycleState, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.assetClassName, + this.assetClassVersion, + this.environmentType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -383,6 +443,15 @@ public Builder copy(AssetSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("assetClassName")) { + this.assetClassName(model.getAssetClassName()); + } + if (model.wasPropertyExplicitlySet("assetClassVersion")) { + this.assetClassVersion(model.getAssetClassVersion()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } return this; } } @@ -612,6 +681,48 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * The name of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private final String assetClassName; + + /** + * The name of the asset class. + * @return the value + **/ + public String getAssetClassName() { + return assetClassName; + } + + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private final String assetClassVersion; + + /** + * The version of the asset class. + * @return the value + **/ + public String getAssetClassVersion() { + return assetClassVersion; + } + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + @Override public String toString() { return this.toString(true); @@ -640,6 +751,9 @@ 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(", assetClassName=").append(String.valueOf(this.assetClassName)); + sb.append(", assetClassVersion=").append(String.valueOf(this.assetClassVersion)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); sb.append(")"); return sb.toString(); } @@ -668,6 +782,9 @@ 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.assetClassName, other.assetClassName) + && java.util.Objects.equals(this.assetClassVersion, other.assetClassVersion) + && java.util.Objects.equals(this.environmentType, other.environmentType) && super.equals(other); } @@ -697,6 +814,15 @@ 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.assetClassName == null ? 43 : this.assetClassName.hashCode()); + result = + (result * PRIME) + + (this.assetClassVersion == null ? 43 : this.assetClassVersion.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetType.java index 04b2acf14e1..88366021be7 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetType.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetType.java @@ -11,6 +11,7 @@ public enum AssetType { VmwareVm("VMWARE_VM"), Vm("VM"), + InventoryAsset("INVENTORY_ASSET"), AwsEc2("AWS_EC2"), AwsEbs("AWS_EBS"), diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSource.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSource.java index e851728981f..e1877901515 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSource.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSource.java @@ -153,6 +153,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") private AssetSourceCredentials discoveryCredentials; @@ -271,6 +280,7 @@ public AwsAssetSource build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.discoveryCredentials, this.replicationCredentials, this.awsRegion, @@ -328,6 +338,9 @@ public Builder copy(AwsAssetSource model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("discoveryCredentials")) { this.discoveryCredentials(model.getDiscoveryCredentials()); } @@ -380,6 +393,7 @@ public AwsAssetSource( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, AssetSourceCredentials discoveryCredentials, AssetSourceCredentials replicationCredentials, String awsRegion, @@ -401,7 +415,8 @@ public AwsAssetSource( timeUpdated, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.discoveryCredentials = discoveryCredentials; this.replicationCredentials = replicationCredentials; this.awsRegion = awsRegion; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSourceSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSourceSummary.java index 59d3c326b58..59e2735c858 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSourceSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsAssetSourceSummary.java @@ -144,6 +144,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } /** * AWS region information, from where the resources are discovered. **/ @@ -196,6 +205,7 @@ public AwsAssetSourceSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.awsRegion, this.awsAccountKey); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -245,6 +255,9 @@ public Builder copy(AwsAssetSourceSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("awsRegion")) { this.awsRegion(model.getAwsRegion()); } @@ -281,6 +294,7 @@ public AwsAssetSourceSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, String awsRegion, String awsAccountKey) { super( @@ -296,7 +310,8 @@ public AwsAssetSourceSummary( timeUpdated, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.awsRegion = awsRegion; this.awsAccountKey = awsAccountKey; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAsset.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAsset.java index ab56089eab2..72beade25a5 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAsset.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAsset.java @@ -143,6 +143,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("awsEbs") private AwsEbsProperties awsEbs; @@ -171,6 +180,7 @@ public AwsEbsAsset build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.awsEbs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -219,6 +229,9 @@ public Builder copy(AwsEbsAsset model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("awsEbs")) { this.awsEbs(model.getAwsEbs()); } @@ -252,6 +265,7 @@ public AwsEbsAsset( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, AwsEbsProperties awsEbs) { super( displayName, @@ -266,7 +280,8 @@ public AwsEbsAsset( lifecycleState, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.awsEbs = awsEbs; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2Asset.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2Asset.java index f7371276862..1955900163d 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2Asset.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2Asset.java @@ -143,6 +143,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("compute") private ComputeProperties compute; @@ -207,6 +216,7 @@ public AwsEc2Asset build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.compute, this.vm, this.awsEc2, @@ -259,6 +269,9 @@ public Builder copy(AwsEc2Asset model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("compute")) { this.compute(model.getCompute()); } @@ -304,6 +317,7 @@ public AwsEc2Asset( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, ComputeProperties compute, VmProperties vm, AwsEc2Properties awsEc2, @@ -322,7 +336,8 @@ public AwsEc2Asset( lifecycleState, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.compute = compute; this.vm = vm; this.awsEc2 = awsEc2; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetDetails.java index 843b8563119..52c099a5fc9 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetDetails.java @@ -30,6 +30,10 @@ value = CreateVmwareVmAssetDetails.class, name = "VMWARE_VM" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateInventoryAssetDetails.class, + name = "INVENTORY_ASSET" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAwsEc2AssetDetails.class, name = "AWS_EC2" diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetSourceDetails.java index 2cb751c6c14..a21f7510662 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetSourceDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAssetSourceDetails.java @@ -26,6 +26,10 @@ value = CreateVmWareAssetSourceDetails.class, name = "VMWARE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOlvmAssetSourceDetails.class, + name = "OLVM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAwsAssetSourceDetails.class, name = "AWS" @@ -43,7 +47,8 @@ public class CreateAssetSourceDetails extends com.oracle.bmc.http.internal.Expli "discoveryScheduleId", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "environmentType" }) protected CreateAssetSourceDetails( String displayName, @@ -54,7 +59,8 @@ protected CreateAssetSourceDetails( String discoveryScheduleId, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + EnvironmentType environmentType) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -65,6 +71,7 @@ protected CreateAssetSourceDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.environmentType = environmentType; } /** @@ -217,6 +224,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + @Override public String toString() { return this.toString(true); @@ -240,6 +261,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(", environmentType=").append(String.valueOf(this.environmentType)); sb.append(")"); return sb.toString(); } @@ -263,6 +285,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.environmentType, other.environmentType) && super.equals(other); } @@ -291,6 +314,9 @@ 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.environmentType == null ? 43 : this.environmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAwsAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAwsAssetSourceDetails.java index 094ea1d7d2c..85071e10409 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAwsAssetSourceDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateAwsAssetSourceDetails.java @@ -109,6 +109,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") private AssetSourceCredentials discoveryCredentials; @@ -222,6 +231,7 @@ public CreateAwsAssetSourceDetails build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.discoveryCredentials, this.replicationCredentials, this.awsRegion, @@ -264,6 +274,9 @@ public Builder copy(CreateAwsAssetSourceDetails model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("discoveryCredentials")) { this.discoveryCredentials(model.getDiscoveryCredentials()); } @@ -311,6 +324,7 @@ public CreateAwsAssetSourceDetails( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, AssetSourceCredentials discoveryCredentials, AssetSourceCredentials replicationCredentials, String awsRegion, @@ -327,7 +341,8 @@ public CreateAwsAssetSourceDetails( discoveryScheduleId, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.discoveryCredentials = discoveryCredentials; this.replicationCredentials = replicationCredentials; this.awsRegion = awsRegion; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateInventoryAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateInventoryAssetDetails.java new file mode 100644 index 00000000000..0f1610a9f75 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateInventoryAssetDetails.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Create a JSON formatted type of asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateInventoryAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "assetType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateInventoryAssetDetails extends CreateAssetDetails { + @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("inventoryId") + private String inventoryId; + + public Builder inventoryId(String inventoryId) { + this.inventoryId = inventoryId; + this.__explicitlySet__.add("inventoryId"); + 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("sourceKey") + private String sourceKey; + + public Builder sourceKey(String sourceKey) { + this.sourceKey = sourceKey; + this.__explicitlySet__.add("sourceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalAssetKey") + private String externalAssetKey; + + public Builder externalAssetKey(String externalAssetKey) { + this.externalAssetKey = externalAssetKey; + this.__explicitlySet__.add("externalAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("assetSourceIds") + private java.util.List assetSourceIds; + + public Builder assetSourceIds(java.util.List assetSourceIds) { + this.assetSourceIds = assetSourceIds; + this.__explicitlySet__.add("assetSourceIds"); + 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 class name of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private String assetClassName; + + /** + * The class name of the asset. + * @param assetClassName the value to set + * @return this builder + **/ + public Builder assetClassName(String assetClassName) { + this.assetClassName = assetClassName; + this.__explicitlySet__.add("assetClassName"); + return this; + } + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private String assetClassVersion; + + /** + * The version of the asset class. + * @param assetClassVersion the value to set + * @return this builder + **/ + public Builder assetClassVersion(String assetClassVersion) { + this.assetClassVersion = assetClassVersion; + this.__explicitlySet__.add("assetClassVersion"); + return this; + } + /** + * The details of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetDetails") + private java.util.Map assetDetails; + + /** + * The details of the asset. + * @param assetDetails the value to set + * @return this builder + **/ + public Builder assetDetails(java.util.Map assetDetails) { + this.assetDetails = assetDetails; + this.__explicitlySet__.add("assetDetails"); + return this; + } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @param environmentType the value to set + * @return this builder + **/ + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateInventoryAssetDetails build() { + CreateInventoryAssetDetails model = + new CreateInventoryAssetDetails( + this.displayName, + this.inventoryId, + this.compartmentId, + this.sourceKey, + this.externalAssetKey, + this.assetSourceIds, + this.freeformTags, + this.definedTags, + this.assetClassName, + this.assetClassVersion, + this.assetDetails, + this.environmentType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateInventoryAssetDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("inventoryId")) { + this.inventoryId(model.getInventoryId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sourceKey")) { + this.sourceKey(model.getSourceKey()); + } + if (model.wasPropertyExplicitlySet("externalAssetKey")) { + this.externalAssetKey(model.getExternalAssetKey()); + } + if (model.wasPropertyExplicitlySet("assetSourceIds")) { + this.assetSourceIds(model.getAssetSourceIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("assetClassName")) { + this.assetClassName(model.getAssetClassName()); + } + if (model.wasPropertyExplicitlySet("assetClassVersion")) { + this.assetClassVersion(model.getAssetClassVersion()); + } + if (model.wasPropertyExplicitlySet("assetDetails")) { + this.assetDetails(model.getAssetDetails()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateInventoryAssetDetails( + String displayName, + String inventoryId, + String compartmentId, + String sourceKey, + String externalAssetKey, + java.util.List assetSourceIds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String assetClassName, + String assetClassVersion, + java.util.Map assetDetails, + EnvironmentType environmentType) { + super( + displayName, + inventoryId, + compartmentId, + sourceKey, + externalAssetKey, + assetSourceIds, + freeformTags, + definedTags); + this.assetClassName = assetClassName; + this.assetClassVersion = assetClassVersion; + this.assetDetails = assetDetails; + this.environmentType = environmentType; + } + + /** + * The class name of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private final String assetClassName; + + /** + * The class name of the asset. + * @return the value + **/ + public String getAssetClassName() { + return assetClassName; + } + + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private final String assetClassVersion; + + /** + * The version of the asset class. + * @return the value + **/ + public String getAssetClassVersion() { + return assetClassVersion; + } + + /** + * The details of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetDetails") + private final java.util.Map assetDetails; + + /** + * The details of the asset. + * @return the value + **/ + public java.util.Map getAssetDetails() { + return assetDetails; + } + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateInventoryAssetDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", assetClassName=").append(String.valueOf(this.assetClassName)); + sb.append(", assetClassVersion=").append(String.valueOf(this.assetClassVersion)); + sb.append(", assetDetails=").append(String.valueOf(this.assetDetails)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInventoryAssetDetails)) { + return false; + } + + CreateInventoryAssetDetails other = (CreateInventoryAssetDetails) o; + return java.util.Objects.equals(this.assetClassName, other.assetClassName) + && java.util.Objects.equals(this.assetClassVersion, other.assetClassVersion) + && java.util.Objects.equals(this.assetDetails, other.assetDetails) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.assetClassName == null ? 43 : this.assetClassName.hashCode()); + result = + (result * PRIME) + + (this.assetClassVersion == null ? 43 : this.assetClassVersion.hashCode()); + result = (result * PRIME) + (this.assetDetails == null ? 43 : this.assetDetails.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateOlvmAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateOlvmAssetSourceDetails.java new file mode 100644 index 00000000000..d543fc04497 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateOlvmAssetSourceDetails.java @@ -0,0 +1,440 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM asset source creation 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOlvmAssetSourceDetails.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 CreateOlvmAssetSourceDetails extends CreateAssetSourceDetails { + @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("environmentId") + private String environmentId; + + public Builder environmentId(String environmentId) { + this.environmentId = environmentId; + this.__explicitlySet__.add("environmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("inventoryId") + private String inventoryId; + + public Builder inventoryId(String inventoryId) { + this.inventoryId = inventoryId; + this.__explicitlySet__.add("inventoryId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("assetsCompartmentId") + private String assetsCompartmentId; + + public Builder assetsCompartmentId(String assetsCompartmentId) { + this.assetsCompartmentId = assetsCompartmentId; + this.__explicitlySet__.add("assetsCompartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryScheduleId") + private String discoveryScheduleId; + + public Builder discoveryScheduleId(String discoveryScheduleId) { + this.discoveryScheduleId = discoveryScheduleId; + this.__explicitlySet__.add("discoveryScheduleId"); + 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("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @param olvmEndpoint the value to set + * @return this builder + **/ + public Builder olvmEndpoint(String olvmEndpoint) { + this.olvmEndpoint = olvmEndpoint; + this.__explicitlySet__.add("olvmEndpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") + private AssetSourceCredentials discoveryCredentials; + + public Builder discoveryCredentials(AssetSourceCredentials discoveryCredentials) { + this.discoveryCredentials = discoveryCredentials; + this.__explicitlySet__.add("discoveryCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") + private AssetSourceCredentials replicationCredentials; + + public Builder replicationCredentials(AssetSourceCredentials replicationCredentials) { + this.replicationCredentials = replicationCredentials; + this.__explicitlySet__.add("replicationCredentials"); + return this; + } + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areHistoricalMetricsCollected") + private Boolean areHistoricalMetricsCollected; + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + * @param areHistoricalMetricsCollected the value to set + * @return this builder + **/ + public Builder areHistoricalMetricsCollected(Boolean areHistoricalMetricsCollected) { + this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; + this.__explicitlySet__.add("areHistoricalMetricsCollected"); + return this; + } + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areRealtimeMetricsCollected") + private Boolean areRealtimeMetricsCollected; + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + * @param areRealtimeMetricsCollected the value to set + * @return this builder + **/ + public Builder areRealtimeMetricsCollected(Boolean areRealtimeMetricsCollected) { + this.areRealtimeMetricsCollected = areRealtimeMetricsCollected; + this.__explicitlySet__.add("areRealtimeMetricsCollected"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOlvmAssetSourceDetails build() { + CreateOlvmAssetSourceDetails model = + new CreateOlvmAssetSourceDetails( + this.displayName, + this.compartmentId, + this.environmentId, + this.inventoryId, + this.assetsCompartmentId, + this.discoveryScheduleId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.environmentType, + this.olvmEndpoint, + this.discoveryCredentials, + this.replicationCredentials, + this.areHistoricalMetricsCollected, + this.areRealtimeMetricsCollected); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOlvmAssetSourceDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("environmentId")) { + this.environmentId(model.getEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("inventoryId")) { + this.inventoryId(model.getInventoryId()); + } + if (model.wasPropertyExplicitlySet("assetsCompartmentId")) { + this.assetsCompartmentId(model.getAssetsCompartmentId()); + } + if (model.wasPropertyExplicitlySet("discoveryScheduleId")) { + this.discoveryScheduleId(model.getDiscoveryScheduleId()); + } + 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("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("olvmEndpoint")) { + this.olvmEndpoint(model.getOlvmEndpoint()); + } + if (model.wasPropertyExplicitlySet("discoveryCredentials")) { + this.discoveryCredentials(model.getDiscoveryCredentials()); + } + if (model.wasPropertyExplicitlySet("replicationCredentials")) { + this.replicationCredentials(model.getReplicationCredentials()); + } + if (model.wasPropertyExplicitlySet("areHistoricalMetricsCollected")) { + this.areHistoricalMetricsCollected(model.getAreHistoricalMetricsCollected()); + } + if (model.wasPropertyExplicitlySet("areRealtimeMetricsCollected")) { + this.areRealtimeMetricsCollected(model.getAreRealtimeMetricsCollected()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOlvmAssetSourceDetails( + String displayName, + String compartmentId, + String environmentId, + String inventoryId, + String assetsCompartmentId, + String discoveryScheduleId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + EnvironmentType environmentType, + String olvmEndpoint, + AssetSourceCredentials discoveryCredentials, + AssetSourceCredentials replicationCredentials, + Boolean areHistoricalMetricsCollected, + Boolean areRealtimeMetricsCollected) { + super( + displayName, + compartmentId, + environmentId, + inventoryId, + assetsCompartmentId, + discoveryScheduleId, + freeformTags, + definedTags, + systemTags, + environmentType); + this.olvmEndpoint = olvmEndpoint; + this.discoveryCredentials = discoveryCredentials; + this.replicationCredentials = replicationCredentials; + this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; + this.areRealtimeMetricsCollected = areRealtimeMetricsCollected; + } + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private final String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @return the value + **/ + public String getOlvmEndpoint() { + return olvmEndpoint; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") + private final AssetSourceCredentials discoveryCredentials; + + public AssetSourceCredentials getDiscoveryCredentials() { + return discoveryCredentials; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") + private final AssetSourceCredentials replicationCredentials; + + public AssetSourceCredentials getReplicationCredentials() { + return replicationCredentials; + } + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areHistoricalMetricsCollected") + private final Boolean areHistoricalMetricsCollected; + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + * @return the value + **/ + public Boolean getAreHistoricalMetricsCollected() { + return areHistoricalMetricsCollected; + } + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areRealtimeMetricsCollected") + private final Boolean areRealtimeMetricsCollected; + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + * @return the value + **/ + public Boolean getAreRealtimeMetricsCollected() { + return areRealtimeMetricsCollected; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOlvmAssetSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", olvmEndpoint=").append(String.valueOf(this.olvmEndpoint)); + sb.append(", discoveryCredentials=").append(String.valueOf(this.discoveryCredentials)); + sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials)); + sb.append(", areHistoricalMetricsCollected=") + .append(String.valueOf(this.areHistoricalMetricsCollected)); + sb.append(", areRealtimeMetricsCollected=") + .append(String.valueOf(this.areRealtimeMetricsCollected)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOlvmAssetSourceDetails)) { + return false; + } + + CreateOlvmAssetSourceDetails other = (CreateOlvmAssetSourceDetails) o; + return java.util.Objects.equals(this.olvmEndpoint, other.olvmEndpoint) + && java.util.Objects.equals(this.discoveryCredentials, other.discoveryCredentials) + && java.util.Objects.equals( + this.replicationCredentials, other.replicationCredentials) + && java.util.Objects.equals( + this.areHistoricalMetricsCollected, other.areHistoricalMetricsCollected) + && java.util.Objects.equals( + this.areRealtimeMetricsCollected, other.areRealtimeMetricsCollected) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.olvmEndpoint == null ? 43 : this.olvmEndpoint.hashCode()); + result = + (result * PRIME) + + (this.discoveryCredentials == null + ? 43 + : this.discoveryCredentials.hashCode()); + result = + (result * PRIME) + + (this.replicationCredentials == null + ? 43 + : this.replicationCredentials.hashCode()); + result = + (result * PRIME) + + (this.areHistoricalMetricsCollected == null + ? 43 + : this.areHistoricalMetricsCollected.hashCode()); + result = + (result * PRIME) + + (this.areRealtimeMetricsCollected == null + ? 43 + : this.areRealtimeMetricsCollected.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateVmWareAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateVmWareAssetSourceDetails.java index 1a557ace8d4..87da34ebf36 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateVmWareAssetSourceDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/CreateVmWareAssetSourceDetails.java @@ -108,6 +108,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } /** * Endpoint for VMware asset discovery and replication in the form of {@code https://:/sdk} **/ @@ -190,6 +199,7 @@ public CreateVmWareAssetSourceDetails build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.vcenterEndpoint, this.discoveryCredentials, this.replicationCredentials, @@ -230,6 +240,9 @@ public Builder copy(CreateVmWareAssetSourceDetails model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("vcenterEndpoint")) { this.vcenterEndpoint(model.getVcenterEndpoint()); } @@ -271,6 +284,7 @@ public CreateVmWareAssetSourceDetails( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, String vcenterEndpoint, AssetSourceCredentials discoveryCredentials, AssetSourceCredentials replicationCredentials, @@ -285,7 +299,8 @@ public CreateVmWareAssetSourceDetails( discoveryScheduleId, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.vcenterEndpoint = vcenterEndpoint; this.discoveryCredentials = discoveryCredentials; this.replicationCredentials = replicationCredentials; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/EnvironmentType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/EnvironmentType.java new file mode 100644 index 00000000000..21553580402 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/EnvironmentType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Specifies if this is the Source or Destination point for migration - different assets are discovered depending on setting. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +public enum EnvironmentType { + Source("SOURCE"), + Destination("DESTINATION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(EnvironmentType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (EnvironmentType v : EnvironmentType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + EnvironmentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static EnvironmentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'EnvironmentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/InventoryAsset.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/InventoryAsset.java new file mode 100644 index 00000000000..703b8d4d28c --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/InventoryAsset.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * A JSON formatted type of asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = InventoryAsset.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "assetType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InventoryAsset extends Asset { + @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("inventoryId") + private String inventoryId; + + public Builder inventoryId(String inventoryId) { + this.inventoryId = inventoryId; + this.__explicitlySet__.add("inventoryId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceKey") + private String sourceKey; + + public Builder sourceKey(String sourceKey) { + this.sourceKey = sourceKey; + this.__explicitlySet__.add("sourceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalAssetKey") + private String externalAssetKey; + + public Builder externalAssetKey(String externalAssetKey) { + this.externalAssetKey = externalAssetKey; + this.__explicitlySet__.add("externalAssetKey"); + 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("assetSourceIds") + private java.util.List assetSourceIds; + + public Builder assetSourceIds(java.util.List assetSourceIds) { + this.assetSourceIds = assetSourceIds; + this.__explicitlySet__.add("assetSourceIds"); + 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("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("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** + * The class name of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private String assetClassName; + + /** + * The class name of the asset. + * @param assetClassName the value to set + * @return this builder + **/ + public Builder assetClassName(String assetClassName) { + this.assetClassName = assetClassName; + this.__explicitlySet__.add("assetClassName"); + return this; + } + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private String assetClassVersion; + + /** + * The version of the asset class. + * @param assetClassVersion the value to set + * @return this builder + **/ + public Builder assetClassVersion(String assetClassVersion) { + this.assetClassVersion = assetClassVersion; + this.__explicitlySet__.add("assetClassVersion"); + return this; + } + /** + * The details of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetDetails") + private java.util.Map assetDetails; + + /** + * The details of the asset. + * @param assetDetails the value to set + * @return this builder + **/ + public Builder assetDetails(java.util.Map assetDetails) { + this.assetDetails = assetDetails; + this.__explicitlySet__.add("assetDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InventoryAsset build() { + InventoryAsset model = + new InventoryAsset( + this.displayName, + this.inventoryId, + this.id, + this.compartmentId, + this.sourceKey, + this.externalAssetKey, + this.timeCreated, + this.timeUpdated, + this.assetSourceIds, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags, + this.environmentType, + this.assetClassName, + this.assetClassVersion, + this.assetDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InventoryAsset model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("inventoryId")) { + this.inventoryId(model.getInventoryId()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sourceKey")) { + this.sourceKey(model.getSourceKey()); + } + if (model.wasPropertyExplicitlySet("externalAssetKey")) { + this.externalAssetKey(model.getExternalAssetKey()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("assetSourceIds")) { + this.assetSourceIds(model.getAssetSourceIds()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("assetClassName")) { + this.assetClassName(model.getAssetClassName()); + } + if (model.wasPropertyExplicitlySet("assetClassVersion")) { + this.assetClassVersion(model.getAssetClassVersion()); + } + if (model.wasPropertyExplicitlySet("assetDetails")) { + this.assetDetails(model.getAssetDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public InventoryAsset( + String displayName, + String inventoryId, + String id, + String compartmentId, + String sourceKey, + String externalAssetKey, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.List assetSourceIds, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + EnvironmentType environmentType, + String assetClassName, + String assetClassVersion, + java.util.Map assetDetails) { + super( + displayName, + inventoryId, + id, + compartmentId, + sourceKey, + externalAssetKey, + timeCreated, + timeUpdated, + assetSourceIds, + lifecycleState, + freeformTags, + definedTags, + systemTags, + environmentType); + this.assetClassName = assetClassName; + this.assetClassVersion = assetClassVersion; + this.assetDetails = assetDetails; + } + + /** + * The class name of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private final String assetClassName; + + /** + * The class name of the asset. + * @return the value + **/ + public String getAssetClassName() { + return assetClassName; + } + + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private final String assetClassVersion; + + /** + * The version of the asset class. + * @return the value + **/ + public String getAssetClassVersion() { + return assetClassVersion; + } + + /** + * The details of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetDetails") + private final java.util.Map assetDetails; + + /** + * The details of the asset. + * @return the value + **/ + public java.util.Map getAssetDetails() { + return assetDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InventoryAsset("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", assetClassName=").append(String.valueOf(this.assetClassName)); + sb.append(", assetClassVersion=").append(String.valueOf(this.assetClassVersion)); + sb.append(", assetDetails=").append(String.valueOf(this.assetDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InventoryAsset)) { + return false; + } + + InventoryAsset other = (InventoryAsset) o; + return java.util.Objects.equals(this.assetClassName, other.assetClassName) + && java.util.Objects.equals(this.assetClassVersion, other.assetClassVersion) + && java.util.Objects.equals(this.assetDetails, other.assetDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.assetClassName == null ? 43 : this.assetClassName.hashCode()); + result = + (result * PRIME) + + (this.assetClassVersion == null ? 43 : this.assetClassVersion.hashCode()); + result = (result * PRIME) + (this.assetDetails == null ? 43 : this.assetDetails.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Ksm.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Ksm.java new file mode 100644 index 00000000000..083eae5b663 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Ksm.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Kernal Same-page Merging + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Ksm.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Ksm extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled", "isMergeAcrossNodes"}) + public Ksm(Boolean isEnabled, Boolean isMergeAcrossNodes) { + super(); + this.isEnabled = isEnabled; + this.isMergeAcrossNodes = isMergeAcrossNodes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates if KSM is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Indicates if KSM is enabled. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Indicates if KSM should merge across nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMergeAcrossNodes") + private Boolean isMergeAcrossNodes; + + /** + * Indicates if KSM should merge across nodes. + * @param isMergeAcrossNodes the value to set + * @return this builder + **/ + public Builder isMergeAcrossNodes(Boolean isMergeAcrossNodes) { + this.isMergeAcrossNodes = isMergeAcrossNodes; + this.__explicitlySet__.add("isMergeAcrossNodes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Ksm build() { + Ksm model = new Ksm(this.isEnabled, this.isMergeAcrossNodes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Ksm model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("isMergeAcrossNodes")) { + this.isMergeAcrossNodes(model.getIsMergeAcrossNodes()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates if KSM is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Indicates if KSM is enabled. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Indicates if KSM should merge across nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMergeAcrossNodes") + private final Boolean isMergeAcrossNodes; + + /** + * Indicates if KSM should merge across nodes. + * @return the value + **/ + public Boolean getIsMergeAcrossNodes() { + return isMergeAcrossNodes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Ksm("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", isMergeAcrossNodes=").append(String.valueOf(this.isMergeAcrossNodes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Ksm)) { + return false; + } + + Ksm other = (Ksm) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.isMergeAcrossNodes, other.isMergeAcrossNodes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.isMergeAcrossNodes == null + ? 43 + : this.isMergeAcrossNodes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/LogicalUnit.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/LogicalUnit.java new file mode 100644 index 00000000000..b9479b15e4d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/LogicalUnit.java @@ -0,0 +1,969 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Logical unit of the host storage. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LogicalUnit.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LogicalUnit extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public LogicalUnit( + String address, + Long discardMaxSizeInBytes, + Boolean isDiscardZeroesData, + String diskId, + String id, + Integer lunMapping, + LunStatus lunStatus, + String password, + Integer paths, + Integer port, + String portal, + String productId, + String serial, + Integer size, + String storageDomainId, + String target, + String username, + String vendorId, + String volumeGroupId) { + super(); + this.address = address; + this.discardMaxSizeInBytes = discardMaxSizeInBytes; + this.isDiscardZeroesData = isDiscardZeroesData; + this.diskId = diskId; + this.id = id; + this.lunMapping = lunMapping; + this.lunStatus = lunStatus; + this.password = password != null ? password.toCharArray() : null; + this.paths = paths; + this.port = port; + this.portal = portal; + this.productId = productId; + this.serial = serial; + this.size = size; + this.storageDomainId = storageDomainId; + this.target = target; + this.username = username; + this.vendorId = vendorId; + this.volumeGroupId = volumeGroupId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "address", + "discardMaxSizeInBytes", + "isDiscardZeroesData", + "diskId", + "id", + "lunMapping", + "lunStatus", + "password", + "paths", + "port", + "portal", + "productId", + "serial", + "size", + "storageDomainId", + "target", + "username", + "vendorId", + "volumeGroupId" + }) + public LogicalUnit( + String address, + Long discardMaxSizeInBytes, + Boolean isDiscardZeroesData, + String diskId, + String id, + Integer lunMapping, + LunStatus lunStatus, + char[] password, + Integer paths, + Integer port, + String portal, + String productId, + String serial, + Integer size, + String storageDomainId, + String target, + String username, + String vendorId, + String volumeGroupId) { + super(); + this.address = address; + this.discardMaxSizeInBytes = discardMaxSizeInBytes; + this.isDiscardZeroesData = isDiscardZeroesData; + this.diskId = diskId; + this.id = id; + this.lunMapping = lunMapping; + this.lunStatus = lunStatus; + this.password = password; + this.paths = paths; + this.port = port; + this.portal = portal; + this.productId = productId; + this.serial = serial; + this.size = size; + this.storageDomainId = storageDomainId; + this.target = target; + this.username = username; + this.vendorId = vendorId; + this.volumeGroupId = volumeGroupId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Address of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * Address of the logical unit. + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * The maximum number of bytes that can be discarded by the logical unit\u2019s underlying storage in a single operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("discardMaxSizeInBytes") + private Long discardMaxSizeInBytes; + + /** + * The maximum number of bytes that can be discarded by the logical unit\u2019s underlying storage in a single operation. + * @param discardMaxSizeInBytes the value to set + * @return this builder + **/ + public Builder discardMaxSizeInBytes(Long discardMaxSizeInBytes) { + this.discardMaxSizeInBytes = discardMaxSizeInBytes; + this.__explicitlySet__.add("discardMaxSizeInBytes"); + return this; + } + /** + * True, if previously discarded blocks in the logical unit\u2019s underlying storage are read back as zeros. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDiscardZeroesData") + private Boolean isDiscardZeroesData; + + /** + * True, if previously discarded blocks in the logical unit\u2019s underlying storage are read back as zeros. + * @param isDiscardZeroesData the value to set + * @return this builder + **/ + public Builder isDiscardZeroesData(Boolean isDiscardZeroesData) { + this.isDiscardZeroesData = isDiscardZeroesData; + this.__explicitlySet__.add("isDiscardZeroesData"); + return this; + } + /** + * Disk ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskId") + private String diskId; + + /** + * Disk ID of the logical unit. + * @param diskId the value to set + * @return this builder + **/ + public Builder diskId(String diskId) { + this.diskId = diskId; + this.__explicitlySet__.add("diskId"); + return this; + } + /** + * a unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * a unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * LUN Mapping + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lunMapping") + private Integer lunMapping; + + /** + * LUN Mapping + * @param lunMapping the value to set + * @return this builder + **/ + public Builder lunMapping(Integer lunMapping) { + this.lunMapping = lunMapping; + this.__explicitlySet__.add("lunMapping"); + return this; + } + /** + * LUN Status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lunStatus") + private LunStatus lunStatus; + + /** + * LUN Status + * @param lunStatus the value to set + * @return this builder + **/ + public Builder lunStatus(LunStatus lunStatus) { + this.lunStatus = lunStatus; + this.__explicitlySet__.add("lunStatus"); + return this; + } + /** + * Password of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private char[] password; + + /** + * Password of the logical unit. + * @param password the value to set + * @return this builder + **/ + public Builder password(char[] password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + + /** + * Paths of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("paths") + private Integer paths; + + /** + * Paths of the logical unit. + * @param paths the value to set + * @return this builder + **/ + public Builder paths(Integer paths) { + this.paths = paths; + this.__explicitlySet__.add("paths"); + return this; + } + /** + * Port of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Port of the logical unit. + * @param port the value to set + * @return this builder + **/ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** + * Portal of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("portal") + private String portal; + + /** + * Portal of the logical unit. + * @param portal the value to set + * @return this builder + **/ + public Builder portal(String portal) { + this.portal = portal; + this.__explicitlySet__.add("portal"); + return this; + } + /** + * Product ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("productId") + private String productId; + + /** + * Product ID of the logical unit. + * @param productId the value to set + * @return this builder + **/ + public Builder productId(String productId) { + this.productId = productId; + this.__explicitlySet__.add("productId"); + return this; + } + /** + * Serial of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serial") + private String serial; + + /** + * Serial of the logical unit. + * @param serial the value to set + * @return this builder + **/ + public Builder serial(String serial) { + this.serial = serial; + this.__explicitlySet__.add("serial"); + return this; + } + /** + * Size of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Integer size; + + /** + * Size of the logical unit. + * @param size the value to set + * @return this builder + **/ + public Builder size(Integer size) { + this.size = size; + this.__explicitlySet__.add("size"); + return this; + } + /** + * Storage Domain ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainId") + private String storageDomainId; + + /** + * Storage Domain ID of the logical unit. + * @param storageDomainId the value to set + * @return this builder + **/ + public Builder storageDomainId(String storageDomainId) { + this.storageDomainId = storageDomainId; + this.__explicitlySet__.add("storageDomainId"); + return this; + } + /** + * Target of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * Target of the logical unit. + * @param target the value to set + * @return this builder + **/ + public Builder target(String target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + /** + * Username of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * Username of the logical unit. + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * Vendor ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vendorId") + private String vendorId; + + /** + * Vendor ID of the logical unit. + * @param vendorId the value to set + * @return this builder + **/ + public Builder vendorId(String vendorId) { + this.vendorId = vendorId; + this.__explicitlySet__.add("vendorId"); + return this; + } + /** + * Volume Group ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupId") + private String volumeGroupId; + + /** + * Volume Group ID of the logical unit. + * @param volumeGroupId the value to set + * @return this builder + **/ + public Builder volumeGroupId(String volumeGroupId) { + this.volumeGroupId = volumeGroupId; + this.__explicitlySet__.add("volumeGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LogicalUnit build() { + LogicalUnit model = + new LogicalUnit( + this.address, + this.discardMaxSizeInBytes, + this.isDiscardZeroesData, + this.diskId, + this.id, + this.lunMapping, + this.lunStatus, + this.password, + this.paths, + this.port, + this.portal, + this.productId, + this.serial, + this.size, + this.storageDomainId, + this.target, + this.username, + this.vendorId, + this.volumeGroupId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogicalUnit model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("discardMaxSizeInBytes")) { + this.discardMaxSizeInBytes(model.getDiscardMaxSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("isDiscardZeroesData")) { + this.isDiscardZeroesData(model.getIsDiscardZeroesData()); + } + if (model.wasPropertyExplicitlySet("diskId")) { + this.diskId(model.getDiskId()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("lunMapping")) { + this.lunMapping(model.getLunMapping()); + } + if (model.wasPropertyExplicitlySet("lunStatus")) { + this.lunStatus(model.getLunStatus()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("paths")) { + this.paths(model.getPaths()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("portal")) { + this.portal(model.getPortal()); + } + if (model.wasPropertyExplicitlySet("productId")) { + this.productId(model.getProductId()); + } + if (model.wasPropertyExplicitlySet("serial")) { + this.serial(model.getSerial()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + if (model.wasPropertyExplicitlySet("storageDomainId")) { + this.storageDomainId(model.getStorageDomainId()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("vendorId")) { + this.vendorId(model.getVendorId()); + } + if (model.wasPropertyExplicitlySet("volumeGroupId")) { + this.volumeGroupId(model.getVolumeGroupId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Address of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * Address of the logical unit. + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * The maximum number of bytes that can be discarded by the logical unit\u2019s underlying storage in a single operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("discardMaxSizeInBytes") + private final Long discardMaxSizeInBytes; + + /** + * The maximum number of bytes that can be discarded by the logical unit\u2019s underlying storage in a single operation. + * @return the value + **/ + public Long getDiscardMaxSizeInBytes() { + return discardMaxSizeInBytes; + } + + /** + * True, if previously discarded blocks in the logical unit\u2019s underlying storage are read back as zeros. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDiscardZeroesData") + private final Boolean isDiscardZeroesData; + + /** + * True, if previously discarded blocks in the logical unit\u2019s underlying storage are read back as zeros. + * @return the value + **/ + public Boolean getIsDiscardZeroesData() { + return isDiscardZeroesData; + } + + /** + * Disk ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskId") + private final String diskId; + + /** + * Disk ID of the logical unit. + * @return the value + **/ + public String getDiskId() { + return diskId; + } + + /** + * a unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * a unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * LUN Mapping + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lunMapping") + private final Integer lunMapping; + + /** + * LUN Mapping + * @return the value + **/ + public Integer getLunMapping() { + return lunMapping; + } + + /** + * LUN Status + **/ + public enum LunStatus { + Free("FREE"), + Unusable("UNUSABLE"), + Used("USED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LunStatus v : LunStatus.values()) { + map.put(v.getValue(), v); + } + } + + LunStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LunStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LunStatus: " + key); + } + }; + /** + * LUN Status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lunStatus") + private final LunStatus lunStatus; + + /** + * LUN Status + * @return the value + **/ + public LunStatus getLunStatus() { + return lunStatus; + } + + /** + * Password of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final char[] password; + + /** + * Password of the logical unit. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Password of the logical unit. + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } + + /** + * Paths of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("paths") + private final Integer paths; + + /** + * Paths of the logical unit. + * @return the value + **/ + public Integer getPaths() { + return paths; + } + + /** + * Port of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Port of the logical unit. + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * Portal of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("portal") + private final String portal; + + /** + * Portal of the logical unit. + * @return the value + **/ + public String getPortal() { + return portal; + } + + /** + * Product ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("productId") + private final String productId; + + /** + * Product ID of the logical unit. + * @return the value + **/ + public String getProductId() { + return productId; + } + + /** + * Serial of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serial") + private final String serial; + + /** + * Serial of the logical unit. + * @return the value + **/ + public String getSerial() { + return serial; + } + + /** + * Size of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private final Integer size; + + /** + * Size of the logical unit. + * @return the value + **/ + public Integer getSize() { + return size; + } + + /** + * Storage Domain ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainId") + private final String storageDomainId; + + /** + * Storage Domain ID of the logical unit. + * @return the value + **/ + public String getStorageDomainId() { + return storageDomainId; + } + + /** + * Target of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * Target of the logical unit. + * @return the value + **/ + public String getTarget() { + return target; + } + + /** + * Username of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * Username of the logical unit. + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * Vendor ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vendorId") + private final String vendorId; + + /** + * Vendor ID of the logical unit. + * @return the value + **/ + public String getVendorId() { + return vendorId; + } + + /** + * Volume Group ID of the logical unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupId") + private final String volumeGroupId; + + /** + * Volume Group ID of the logical unit. + * @return the value + **/ + public String getVolumeGroupId() { + return volumeGroupId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LogicalUnit("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", discardMaxSizeInBytes=").append(String.valueOf(this.discardMaxSizeInBytes)); + sb.append(", isDiscardZeroesData=").append(String.valueOf(this.isDiscardZeroesData)); + sb.append(", diskId=").append(String.valueOf(this.diskId)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", lunMapping=").append(String.valueOf(this.lunMapping)); + sb.append(", lunStatus=").append(String.valueOf(this.lunStatus)); + sb.append(", password=").append(""); + sb.append(", paths=").append(String.valueOf(this.paths)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", portal=").append(String.valueOf(this.portal)); + sb.append(", productId=").append(String.valueOf(this.productId)); + sb.append(", serial=").append(String.valueOf(this.serial)); + sb.append(", size=").append(String.valueOf(this.size)); + sb.append(", storageDomainId=").append(String.valueOf(this.storageDomainId)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", vendorId=").append(String.valueOf(this.vendorId)); + sb.append(", volumeGroupId=").append(String.valueOf(this.volumeGroupId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LogicalUnit)) { + return false; + } + + LogicalUnit other = (LogicalUnit) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.discardMaxSizeInBytes, other.discardMaxSizeInBytes) + && java.util.Objects.equals(this.isDiscardZeroesData, other.isDiscardZeroesData) + && java.util.Objects.equals(this.diskId, other.diskId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.lunMapping, other.lunMapping) + && java.util.Objects.equals(this.lunStatus, other.lunStatus) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.paths, other.paths) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.portal, other.portal) + && java.util.Objects.equals(this.productId, other.productId) + && java.util.Objects.equals(this.serial, other.serial) + && java.util.Objects.equals(this.size, other.size) + && java.util.Objects.equals(this.storageDomainId, other.storageDomainId) + && java.util.Objects.equals(this.target, other.target) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.vendorId, other.vendorId) + && java.util.Objects.equals(this.volumeGroupId, other.volumeGroupId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = + (result * PRIME) + + (this.discardMaxSizeInBytes == null + ? 43 + : this.discardMaxSizeInBytes.hashCode()); + result = + (result * PRIME) + + (this.isDiscardZeroesData == null + ? 43 + : this.isDiscardZeroesData.hashCode()); + result = (result * PRIME) + (this.diskId == null ? 43 : this.diskId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.lunMapping == null ? 43 : this.lunMapping.hashCode()); + result = (result * PRIME) + (this.lunStatus == null ? 43 : this.lunStatus.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + (this.paths == null ? 43 : this.paths.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.portal == null ? 43 : this.portal.hashCode()); + result = (result * PRIME) + (this.productId == null ? 43 : this.productId.hashCode()); + result = (result * PRIME) + (this.serial == null ? 43 : this.serial.hashCode()); + result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); + result = + (result * PRIME) + + (this.storageDomainId == null ? 43 : this.storageDomainId.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.vendorId == null ? 43 : this.vendorId.hashCode()); + result = + (result * PRIME) + + (this.volumeGroupId == null ? 43 : this.volumeGroupId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MemoryOverCommit.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MemoryOverCommit.java new file mode 100644 index 00000000000..1ddf42f1bdd --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MemoryOverCommit.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Memory over commit + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MemoryOverCommit.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MemoryOverCommit extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"percentage"}) + public MemoryOverCommit(Integer percentage) { + super(); + this.percentage = percentage; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Percentage of memory over commit + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentage") + private Integer percentage; + + /** + * Percentage of memory over commit + * @param percentage the value to set + * @return this builder + **/ + public Builder percentage(Integer percentage) { + this.percentage = percentage; + this.__explicitlySet__.add("percentage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MemoryOverCommit build() { + MemoryOverCommit model = new MemoryOverCommit(this.percentage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MemoryOverCommit model) { + if (model.wasPropertyExplicitlySet("percentage")) { + this.percentage(model.getPercentage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Percentage of memory over commit + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentage") + private final Integer percentage; + + /** + * Percentage of memory over commit + * @return the value + **/ + public Integer getPercentage() { + return percentage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MemoryOverCommit("); + sb.append("super=").append(super.toString()); + sb.append("percentage=").append(String.valueOf(this.percentage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MemoryOverCommit)) { + return false; + } + + MemoryOverCommit other = (MemoryOverCommit) o; + return java.util.Objects.equals(this.percentage, other.percentage) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.percentage == null ? 43 : this.percentage.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MigrationBandwidth.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MigrationBandwidth.java new file mode 100644 index 00000000000..0e57484d78f --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MigrationBandwidth.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Defines the bandwidth used by 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MigrationBandwidth.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MigrationBandwidth extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"assignmentMethod"}) + public MigrationBandwidth(AssignmentMethod assignmentMethod) { + super(); + this.assignmentMethod = assignmentMethod; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Defines how the migration bandwidth is assigned + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assignmentMethod") + private AssignmentMethod assignmentMethod; + + /** + * Defines how the migration bandwidth is assigned + * @param assignmentMethod the value to set + * @return this builder + **/ + public Builder assignmentMethod(AssignmentMethod assignmentMethod) { + this.assignmentMethod = assignmentMethod; + this.__explicitlySet__.add("assignmentMethod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MigrationBandwidth build() { + MigrationBandwidth model = new MigrationBandwidth(this.assignmentMethod); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MigrationBandwidth model) { + if (model.wasPropertyExplicitlySet("assignmentMethod")) { + this.assignmentMethod(model.getAssignmentMethod()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Defines how the migration bandwidth is assigned + **/ + public enum AssignmentMethod { + Auto("AUTO"), + Custom("CUSTOM"), + HypervisorDefault("HYPERVISOR_DEFAULT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AssignmentMethod v : AssignmentMethod.values()) { + map.put(v.getValue(), v); + } + } + + AssignmentMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AssignmentMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AssignmentMethod: " + key); + } + }; + /** + * Defines how the migration bandwidth is assigned + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assignmentMethod") + private final AssignmentMethod assignmentMethod; + + /** + * Defines how the migration bandwidth is assigned + * @return the value + **/ + public AssignmentMethod getAssignmentMethod() { + return assignmentMethod; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MigrationBandwidth("); + sb.append("super=").append(super.toString()); + sb.append("assignmentMethod=").append(String.valueOf(this.assignmentMethod)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MigrationBandwidth)) { + return false; + } + + MigrationBandwidth other = (MigrationBandwidth) o; + return java.util.Objects.equals(this.assignmentMethod, other.assignmentMethod) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.assignmentMethod == null ? 43 : this.assignmentMethod.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAgent.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAgent.java new file mode 100644 index 00000000000..ceee31e1254 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAgent.java @@ -0,0 +1,540 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type representing a fence agent. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmAgent.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmAgent extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "address", + "comment", + "isConcurrent", + "description", + "isEncryptOptions", + "id", + "name", + "order", + "port", + "type", + "username" + }) + public OlvmAgent( + String address, + String comment, + Boolean isConcurrent, + String description, + Boolean isEncryptOptions, + String id, + String name, + Integer order, + Integer port, + String type, + String username) { + super(); + this.address = address; + this.comment = comment; + this.isConcurrent = isConcurrent; + this.description = description; + this.isEncryptOptions = isEncryptOptions; + this.id = id; + this.name = name; + this.order = order; + this.port = port; + this.type = type; + this.username = username; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Fence agent address + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * Fence agent address + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Specified whether the agent should be used concurrently or sequentially + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isConcurrent") + private Boolean isConcurrent; + + /** + * Specified whether the agent should be used concurrently or sequentially + * @param isConcurrent the value to set + * @return this builder + **/ + public Builder isConcurrent(Boolean isConcurrent) { + this.isConcurrent = isConcurrent; + this.__explicitlySet__.add("isConcurrent"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Free text containing comments about this object. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Specifies whether the options should be encrypted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptOptions") + private Boolean isEncryptOptions; + + /** + * Specifies whether the options should be encrypted. + * @param isEncryptOptions the value to set + * @return this builder + **/ + public Builder isEncryptOptions(Boolean isEncryptOptions) { + this.isEncryptOptions = isEncryptOptions; + this.__explicitlySet__.add("isEncryptOptions"); + return this; + } + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A human-readable name in plain text + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A human-readable name in plain text + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The order of this agent if used with other agents. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("order") + private Integer order; + + /** + * The order of this agent if used with other agents. + * @param order the value to set + * @return this builder + **/ + public Builder order(Integer order) { + this.order = order; + this.__explicitlySet__.add("order"); + return this; + } + /** + * Fence agent port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Fence agent port. + * @param port the value to set + * @return this builder + **/ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** + * Fence agent type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Fence agent type. + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Fence agent user name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * Fence agent user name. + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmAgent build() { + OlvmAgent model = + new OlvmAgent( + this.address, + this.comment, + this.isConcurrent, + this.description, + this.isEncryptOptions, + this.id, + this.name, + this.order, + this.port, + this.type, + this.username); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmAgent model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("isConcurrent")) { + this.isConcurrent(model.getIsConcurrent()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isEncryptOptions")) { + this.isEncryptOptions(model.getIsEncryptOptions()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("order")) { + this.order(model.getOrder()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Fence agent address + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * Fence agent address + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * Specified whether the agent should be used concurrently or sequentially + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isConcurrent") + private final Boolean isConcurrent; + + /** + * Specified whether the agent should be used concurrently or sequentially + * @return the value + **/ + public Boolean getIsConcurrent() { + return isConcurrent; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Specifies whether the options should be encrypted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptOptions") + private final Boolean isEncryptOptions; + + /** + * Specifies whether the options should be encrypted. + * @return the value + **/ + public Boolean getIsEncryptOptions() { + return isEncryptOptions; + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A human-readable name in plain text + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A human-readable name in plain text + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The order of this agent if used with other agents. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("order") + private final Integer order; + + /** + * The order of this agent if used with other agents. + * @return the value + **/ + public Integer getOrder() { + return order; + } + + /** + * Fence agent port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Fence agent port. + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * Fence agent type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Fence agent type. + * @return the value + **/ + public String getType() { + return type; + } + + /** + * Fence agent user name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * Fence agent user name. + * @return the value + **/ + public String getUsername() { + return username; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmAgent("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", isConcurrent=").append(String.valueOf(this.isConcurrent)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isEncryptOptions=").append(String.valueOf(this.isEncryptOptions)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", order=").append(String.valueOf(this.order)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmAgent)) { + return false; + } + + OlvmAgent other = (OlvmAgent) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.isConcurrent, other.isConcurrent) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.isEncryptOptions, other.isEncryptOptions) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.order, other.order) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.username, other.username) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.isConcurrent == null ? 43 : this.isConcurrent.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.isEncryptOptions == null ? 43 : this.isEncryptOptions.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.order == null ? 43 : this.order.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAssetSource.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAssetSource.java new file mode 100644 index 00000000000..5a6c212920e --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAssetSource.java @@ -0,0 +1,514 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM asset source. Used for discovery of clusters and storage domains registered in the OLVM environment. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmAssetSource.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 OlvmAssetSource extends AssetSource { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentId") + private String environmentId; + + public Builder environmentId(String environmentId) { + this.environmentId = environmentId; + this.__explicitlySet__.add("environmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("inventoryId") + private String inventoryId; + + public Builder inventoryId(String inventoryId) { + this.inventoryId = inventoryId; + this.__explicitlySet__.add("inventoryId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("assetsCompartmentId") + private String assetsCompartmentId; + + public Builder assetsCompartmentId(String assetsCompartmentId) { + this.assetsCompartmentId = assetsCompartmentId; + this.__explicitlySet__.add("assetsCompartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryScheduleId") + private String discoveryScheduleId; + + public Builder discoveryScheduleId(String discoveryScheduleId) { + this.discoveryScheduleId = discoveryScheduleId; + this.__explicitlySet__.add("discoveryScheduleId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private AssetSourceLifecycleState lifecycleState; + + public Builder lifecycleState(AssetSourceLifecycleState 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("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("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @param olvmEndpoint the value to set + * @return this builder + **/ + public Builder olvmEndpoint(String olvmEndpoint) { + this.olvmEndpoint = olvmEndpoint; + this.__explicitlySet__.add("olvmEndpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") + private AssetSourceCredentials discoveryCredentials; + + public Builder discoveryCredentials(AssetSourceCredentials discoveryCredentials) { + this.discoveryCredentials = discoveryCredentials; + this.__explicitlySet__.add("discoveryCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") + private AssetSourceCredentials replicationCredentials; + + public Builder replicationCredentials(AssetSourceCredentials replicationCredentials) { + this.replicationCredentials = replicationCredentials; + this.__explicitlySet__.add("replicationCredentials"); + return this; + } + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areHistoricalMetricsCollected") + private Boolean areHistoricalMetricsCollected; + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + * @param areHistoricalMetricsCollected the value to set + * @return this builder + **/ + public Builder areHistoricalMetricsCollected(Boolean areHistoricalMetricsCollected) { + this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; + this.__explicitlySet__.add("areHistoricalMetricsCollected"); + return this; + } + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areRealtimeMetricsCollected") + private Boolean areRealtimeMetricsCollected; + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + * @param areRealtimeMetricsCollected the value to set + * @return this builder + **/ + public Builder areRealtimeMetricsCollected(Boolean areRealtimeMetricsCollected) { + this.areRealtimeMetricsCollected = areRealtimeMetricsCollected; + this.__explicitlySet__.add("areRealtimeMetricsCollected"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmAssetSource build() { + OlvmAssetSource model = + new OlvmAssetSource( + this.id, + this.compartmentId, + this.displayName, + this.environmentId, + this.inventoryId, + this.assetsCompartmentId, + this.discoveryScheduleId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.environmentType, + this.olvmEndpoint, + this.discoveryCredentials, + this.replicationCredentials, + this.areHistoricalMetricsCollected, + this.areRealtimeMetricsCollected); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmAssetSource 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("environmentId")) { + this.environmentId(model.getEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("inventoryId")) { + this.inventoryId(model.getInventoryId()); + } + if (model.wasPropertyExplicitlySet("assetsCompartmentId")) { + this.assetsCompartmentId(model.getAssetsCompartmentId()); + } + if (model.wasPropertyExplicitlySet("discoveryScheduleId")) { + this.discoveryScheduleId(model.getDiscoveryScheduleId()); + } + 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("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("olvmEndpoint")) { + this.olvmEndpoint(model.getOlvmEndpoint()); + } + if (model.wasPropertyExplicitlySet("discoveryCredentials")) { + this.discoveryCredentials(model.getDiscoveryCredentials()); + } + if (model.wasPropertyExplicitlySet("replicationCredentials")) { + this.replicationCredentials(model.getReplicationCredentials()); + } + if (model.wasPropertyExplicitlySet("areHistoricalMetricsCollected")) { + this.areHistoricalMetricsCollected(model.getAreHistoricalMetricsCollected()); + } + if (model.wasPropertyExplicitlySet("areRealtimeMetricsCollected")) { + this.areRealtimeMetricsCollected(model.getAreRealtimeMetricsCollected()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OlvmAssetSource( + String id, + String compartmentId, + String displayName, + String environmentId, + String inventoryId, + String assetsCompartmentId, + String discoveryScheduleId, + AssetSourceLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + EnvironmentType environmentType, + String olvmEndpoint, + AssetSourceCredentials discoveryCredentials, + AssetSourceCredentials replicationCredentials, + Boolean areHistoricalMetricsCollected, + Boolean areRealtimeMetricsCollected) { + super( + id, + compartmentId, + displayName, + environmentId, + inventoryId, + assetsCompartmentId, + discoveryScheduleId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags, + environmentType); + this.olvmEndpoint = olvmEndpoint; + this.discoveryCredentials = discoveryCredentials; + this.replicationCredentials = replicationCredentials; + this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; + this.areRealtimeMetricsCollected = areRealtimeMetricsCollected; + } + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private final String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @return the value + **/ + public String getOlvmEndpoint() { + return olvmEndpoint; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") + private final AssetSourceCredentials discoveryCredentials; + + public AssetSourceCredentials getDiscoveryCredentials() { + return discoveryCredentials; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") + private final AssetSourceCredentials replicationCredentials; + + public AssetSourceCredentials getReplicationCredentials() { + return replicationCredentials; + } + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areHistoricalMetricsCollected") + private final Boolean areHistoricalMetricsCollected; + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + * @return the value + **/ + public Boolean getAreHistoricalMetricsCollected() { + return areHistoricalMetricsCollected; + } + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areRealtimeMetricsCollected") + private final Boolean areRealtimeMetricsCollected; + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + * @return the value + **/ + public Boolean getAreRealtimeMetricsCollected() { + return areRealtimeMetricsCollected; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmAssetSource("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", olvmEndpoint=").append(String.valueOf(this.olvmEndpoint)); + sb.append(", discoveryCredentials=").append(String.valueOf(this.discoveryCredentials)); + sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials)); + sb.append(", areHistoricalMetricsCollected=") + .append(String.valueOf(this.areHistoricalMetricsCollected)); + sb.append(", areRealtimeMetricsCollected=") + .append(String.valueOf(this.areRealtimeMetricsCollected)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmAssetSource)) { + return false; + } + + OlvmAssetSource other = (OlvmAssetSource) o; + return java.util.Objects.equals(this.olvmEndpoint, other.olvmEndpoint) + && java.util.Objects.equals(this.discoveryCredentials, other.discoveryCredentials) + && java.util.Objects.equals( + this.replicationCredentials, other.replicationCredentials) + && java.util.Objects.equals( + this.areHistoricalMetricsCollected, other.areHistoricalMetricsCollected) + && java.util.Objects.equals( + this.areRealtimeMetricsCollected, other.areRealtimeMetricsCollected) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.olvmEndpoint == null ? 43 : this.olvmEndpoint.hashCode()); + result = + (result * PRIME) + + (this.discoveryCredentials == null + ? 43 + : this.discoveryCredentials.hashCode()); + result = + (result * PRIME) + + (this.replicationCredentials == null + ? 43 + : this.replicationCredentials.hashCode()); + result = + (result * PRIME) + + (this.areHistoricalMetricsCollected == null + ? 43 + : this.areHistoricalMetricsCollected.hashCode()); + result = + (result * PRIME) + + (this.areRealtimeMetricsCollected == null + ? 43 + : this.areRealtimeMetricsCollected.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAssetSourceSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAssetSourceSummary.java new file mode 100644 index 00000000000..633efdba7ce --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmAssetSourceSummary.java @@ -0,0 +1,351 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Summary of an OLVM asset source provided in the list. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmAssetSourceSummary.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 OlvmAssetSourceSummary extends AssetSourceSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentId") + private String environmentId; + + public Builder environmentId(String environmentId) { + this.environmentId = environmentId; + this.__explicitlySet__.add("environmentId"); + 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("lifecycleState") + private AssetSourceLifecycleState lifecycleState; + + public Builder lifecycleState(AssetSourceLifecycleState 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("inventoryId") + private String inventoryId; + + public Builder inventoryId(String inventoryId) { + this.inventoryId = inventoryId; + this.__explicitlySet__.add("inventoryId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("assetsCompartmentId") + private String assetsCompartmentId; + + public Builder assetsCompartmentId(String assetsCompartmentId) { + this.assetsCompartmentId = assetsCompartmentId; + this.__explicitlySet__.add("assetsCompartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @param olvmEndpoint the value to set + * @return this builder + **/ + public Builder olvmEndpoint(String olvmEndpoint) { + this.olvmEndpoint = olvmEndpoint; + this.__explicitlySet__.add("olvmEndpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmAssetSourceSummary build() { + OlvmAssetSourceSummary model = + new OlvmAssetSourceSummary( + this.id, + this.compartmentId, + this.environmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.inventoryId, + this.assetsCompartmentId, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.environmentType, + this.olvmEndpoint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmAssetSourceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("environmentId")) { + this.environmentId(model.getEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("inventoryId")) { + this.inventoryId(model.getInventoryId()); + } + if (model.wasPropertyExplicitlySet("assetsCompartmentId")) { + this.assetsCompartmentId(model.getAssetsCompartmentId()); + } + 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("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("olvmEndpoint")) { + this.olvmEndpoint(model.getOlvmEndpoint()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OlvmAssetSourceSummary( + String id, + String compartmentId, + String environmentId, + String displayName, + AssetSourceLifecycleState lifecycleState, + String lifecycleDetails, + String inventoryId, + String assetsCompartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + EnvironmentType environmentType, + String olvmEndpoint) { + super( + id, + compartmentId, + environmentId, + displayName, + lifecycleState, + lifecycleDetails, + inventoryId, + assetsCompartmentId, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags, + environmentType); + this.olvmEndpoint = olvmEndpoint; + } + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private final String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @return the value + **/ + public String getOlvmEndpoint() { + return olvmEndpoint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmAssetSourceSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", olvmEndpoint=").append(String.valueOf(this.olvmEndpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmAssetSourceSummary)) { + return false; + } + + OlvmAssetSourceSummary other = (OlvmAssetSourceSummary) o; + return java.util.Objects.equals(this.olvmEndpoint, other.olvmEndpoint) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.olvmEndpoint == null ? 43 : this.olvmEndpoint.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBios.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBios.java new file mode 100644 index 00000000000..68a1bc0d8c5 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBios.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Bios + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmBios.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmBios extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"bootMenu", "biosType"}) + public OlvmBios(OlvmBootMenu bootMenu, OlvmBiosType biosType) { + super(); + this.bootMenu = bootMenu; + this.biosType = biosType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("bootMenu") + private OlvmBootMenu bootMenu; + + public Builder bootMenu(OlvmBootMenu bootMenu) { + this.bootMenu = bootMenu; + this.__explicitlySet__.add("bootMenu"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("biosType") + private OlvmBiosType biosType; + + public Builder biosType(OlvmBiosType biosType) { + this.biosType = biosType; + this.__explicitlySet__.add("biosType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmBios build() { + OlvmBios model = new OlvmBios(this.bootMenu, this.biosType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmBios model) { + if (model.wasPropertyExplicitlySet("bootMenu")) { + this.bootMenu(model.getBootMenu()); + } + if (model.wasPropertyExplicitlySet("biosType")) { + this.biosType(model.getBiosType()); + } + 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("bootMenu") + private final OlvmBootMenu bootMenu; + + public OlvmBootMenu getBootMenu() { + return bootMenu; + } + + @com.fasterxml.jackson.annotation.JsonProperty("biosType") + private final OlvmBiosType biosType; + + public OlvmBiosType getBiosType() { + return biosType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmBios("); + sb.append("super=").append(super.toString()); + sb.append("bootMenu=").append(String.valueOf(this.bootMenu)); + sb.append(", biosType=").append(String.valueOf(this.biosType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmBios)) { + return false; + } + + OlvmBios other = (OlvmBios) o; + return java.util.Objects.equals(this.bootMenu, other.bootMenu) + && java.util.Objects.equals(this.biosType, other.biosType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.bootMenu == null ? 43 : this.bootMenu.hashCode()); + result = (result * PRIME) + (this.biosType == null ? 43 : this.biosType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBiosType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBiosType.java new file mode 100644 index 00000000000..a9bb7c6f9e6 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBiosType.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Chipset and BIOS type combination. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmBiosType.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmBiosType extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type"}) + public OlvmBiosType(Type type) { + super(); + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Chipset and BIOS type combination. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Chipset and BIOS type combination. + * @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 OlvmBiosType build() { + OlvmBiosType model = new OlvmBiosType(this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmBiosType model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Chipset and BIOS type combination. + **/ + public enum Type { + ClusterDefault("CLUSTER_DEFAULT"), + I440FxSeaBios("I440FX_SEA_BIOS"), + Q35Ovmf("Q35_OVMF"), + Q35SeaBios("Q35_SEA_BIOS"), + Q35SecureBoot("Q35_SECURE_BOOT"), + ; + + 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); + } + }; + /** + * Chipset and BIOS type combination. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Chipset and BIOS type combination. + * @return the value + **/ + public Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmBiosType("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmBiosType)) { + return false; + } + + OlvmBiosType other = (OlvmBiosType) o; + return java.util.Objects.equals(this.type, other.type) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootDevice.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootDevice.java new file mode 100644 index 00000000000..b2bd1b0ce19 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootDevice.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents the kinds of devices that a virtual machine can boot from. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +public enum OlvmBootDevice { + Cdrom("CDROM"), + Hd("HD"), + Network("NETWORK"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OlvmBootDevice v : OlvmBootDevice.values()) { + map.put(v.getValue(), v); + } + } + + OlvmBootDevice(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OlvmBootDevice create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OlvmBootDevice: " + key); + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootMenu.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootMenu.java new file mode 100644 index 00000000000..ad2defad6ed --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootMenu.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents boot menu configuration for OLVM virtual machines and templates. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmBootMenu.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmBootMenu extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled"}) + public OlvmBootMenu(Boolean isEnabled) { + super(); + this.isEnabled = isEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Whether the boot menu is enabled for this virtual machine (or template), or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Whether the boot menu is enabled for this virtual machine (or template), or not. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmBootMenu build() { + OlvmBootMenu model = new OlvmBootMenu(this.isEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmBootMenu model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Whether the boot menu is enabled for this virtual machine (or template), or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Whether the boot menu is enabled for this virtual machine (or template), or not. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmBootMenu("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmBootMenu)) { + return false; + } + + OlvmBootMenu other = (OlvmBootMenu) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootProtocol.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootProtocol.java new file mode 100644 index 00000000000..9cc3f4b113d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmBootProtocol.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Defines the options of the IP address assignment method to a NIC. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmBootProtocol.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmBootProtocol extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"protocol"}) + public OlvmBootProtocol(Protocol protocol) { + super(); + this.protocol = protocol; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * IP address assignment methods to a NIC. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private Protocol protocol; + + /** + * IP address assignment methods to a NIC. + * @param protocol the value to set + * @return this builder + **/ + public Builder protocol(Protocol protocol) { + this.protocol = protocol; + this.__explicitlySet__.add("protocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmBootProtocol build() { + OlvmBootProtocol model = new OlvmBootProtocol(this.protocol); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmBootProtocol model) { + if (model.wasPropertyExplicitlySet("protocol")) { + this.protocol(model.getProtocol()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * IP address assignment methods to a NIC. + **/ + public enum Protocol { + Autoconf("AUTOCONF"), + Dhcp("DHCP"), + None("NONE"), + PolyDhcpAutoconf("POLY_DHCP_AUTOCONF"), + Static("STATIC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Protocol v : Protocol.values()) { + map.put(v.getValue(), v); + } + } + + Protocol(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Protocol create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Protocol: " + key); + } + }; + /** + * IP address assignment methods to a NIC. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private final Protocol protocol; + + /** + * IP address assignment methods to a NIC. + * @return the value + **/ + public Protocol getProtocol() { + return protocol; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmBootProtocol("); + sb.append("super=").append(super.toString()); + sb.append("protocol=").append(String.valueOf(this.protocol)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmBootProtocol)) { + return false; + } + + OlvmBootProtocol other = (OlvmBootProtocol) o; + return java.util.Objects.equals(this.protocol, other.protocol) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCertificate.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCertificate.java new file mode 100644 index 00000000000..d8042804235 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCertificate.java @@ -0,0 +1,383 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The TLS certificate in case of a TLS 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmCertificate.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmCertificate extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "comment", + "content", + "certificateDescription", + "id", + "name", + "organization", + "subject" + }) + public OlvmCertificate( + String comment, + String content, + String certificateDescription, + String id, + String name, + String organization, + String subject) { + super(); + this.comment = comment; + this.content = content; + this.certificateDescription = certificateDescription; + this.id = id; + this.name = name; + this.organization = organization; + this.subject = subject; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Content of the certificate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private String content; + + /** + * Content of the certificate. + * @param content the value to set + * @return this builder + **/ + public Builder content(String content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateDescription") + private String certificateDescription; + + /** + * A human-readable description in plain text. + * @param certificateDescription the value to set + * @return this builder + **/ + public Builder certificateDescription(String certificateDescription) { + this.certificateDescription = certificateDescription; + this.__explicitlySet__.add("certificateDescription"); + return this; + } + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A human-readable name in plain text. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Organization of the certificate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organization") + private String organization; + + /** + * Organization of the certificate + * @param organization the value to set + * @return this builder + **/ + public Builder organization(String organization) { + this.organization = organization; + this.__explicitlySet__.add("organization"); + return this; + } + /** + * Subject of the certificate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subject") + private String subject; + + /** + * Subject of the certificate + * @param subject the value to set + * @return this builder + **/ + public Builder subject(String subject) { + this.subject = subject; + this.__explicitlySet__.add("subject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmCertificate build() { + OlvmCertificate model = + new OlvmCertificate( + this.comment, + this.content, + this.certificateDescription, + this.id, + this.name, + this.organization, + this.subject); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmCertificate model) { + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("certificateDescription")) { + this.certificateDescription(model.getCertificateDescription()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("organization")) { + this.organization(model.getOrganization()); + } + if (model.wasPropertyExplicitlySet("subject")) { + this.subject(model.getSubject()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * Content of the certificate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final String content; + + /** + * Content of the certificate. + * @return the value + **/ + public String getContent() { + return content; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateDescription") + private final String certificateDescription; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getCertificateDescription() { + return certificateDescription; + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A human-readable name in plain text. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Organization of the certificate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organization") + private final String organization; + + /** + * Organization of the certificate + * @return the value + **/ + public String getOrganization() { + return organization; + } + + /** + * Subject of the certificate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subject") + private final String subject; + + /** + * Subject of the certificate + * @return the value + **/ + public String getSubject() { + return subject; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmCertificate("); + sb.append("super=").append(super.toString()); + sb.append("comment=").append(String.valueOf(this.comment)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(", certificateDescription=").append(String.valueOf(this.certificateDescription)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", organization=").append(String.valueOf(this.organization)); + sb.append(", subject=").append(String.valueOf(this.subject)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmCertificate)) { + return false; + } + + OlvmCertificate other = (OlvmCertificate) o; + return java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals( + this.certificateDescription, other.certificateDescription) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.organization, other.organization) + && java.util.Objects.equals(this.subject, other.subject) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = + (result * PRIME) + + (this.certificateDescription == null + ? 43 + : this.certificateDescription.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.organization == null ? 43 : this.organization.hashCode()); + result = (result * PRIME) + (this.subject == null ? 43 : this.subject.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmClusterAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmClusterAssetDetails.java new file mode 100644 index 00000000000..46c8783003c --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmClusterAssetDetails.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Cluster type of asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmClusterAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmClusterAssetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"olvmCluster"}) + public OlvmClusterAssetDetails(OlvmClusterProperties olvmCluster) { + super(); + this.olvmCluster = olvmCluster; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("olvmCluster") + private OlvmClusterProperties olvmCluster; + + public Builder olvmCluster(OlvmClusterProperties olvmCluster) { + this.olvmCluster = olvmCluster; + this.__explicitlySet__.add("olvmCluster"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmClusterAssetDetails build() { + OlvmClusterAssetDetails model = new OlvmClusterAssetDetails(this.olvmCluster); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmClusterAssetDetails model) { + if (model.wasPropertyExplicitlySet("olvmCluster")) { + this.olvmCluster(model.getOlvmCluster()); + } + 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("olvmCluster") + private final OlvmClusterProperties olvmCluster; + + public OlvmClusterProperties getOlvmCluster() { + return olvmCluster; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmClusterAssetDetails("); + sb.append("super=").append(super.toString()); + sb.append("olvmCluster=").append(String.valueOf(this.olvmCluster)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmClusterAssetDetails)) { + return false; + } + + OlvmClusterAssetDetails other = (OlvmClusterAssetDetails) o; + return java.util.Objects.equals(this.olvmCluster, other.olvmCluster) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.olvmCluster == null ? 43 : this.olvmCluster.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmClusterProperties.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmClusterProperties.java new file mode 100644 index 00000000000..9ad83891f36 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmClusterProperties.java @@ -0,0 +1,1536 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Cluster properties. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmClusterProperties.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmClusterProperties + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "clusterName", + "clusterDescription", + "comment", + "isBallooningEnabled", + "biosType", + "cpu", + "customSchedulingPolicyProperties", + "display", + "errorHandling", + "fencingPolicy", + "fipsMode", + "firewallType", + "isGlusterService", + "glusterTunedProfile", + "isHaReservation", + "ksm", + "logMaxMemoryUsedThreshold", + "logMaxMemoryUsedThresholdType", + "memoryPolicy", + "migrationPolicy", + "requiredRngSources", + "serialNumber", + "supportedVersions", + "switchType", + "isUseThreadsAsCores", + "isTrustedService", + "isTunnelMigration", + "upgradeCorrelationId", + "isUpdateInProgress", + "upgradePercentComplete", + "version", + "isVirtService", + "isVncEncryption", + "dataCenters" + }) + public OlvmClusterProperties( + String clusterName, + String clusterDescription, + String comment, + Boolean isBallooningEnabled, + OlvmBiosType biosType, + OlvmCpu cpu, + java.util.List customSchedulingPolicyProperties, + OlvmDisplay display, + OlvmErrorHandling errorHandling, + OlvmFencingPolicy fencingPolicy, + FipsMode fipsMode, + FirewallType firewallType, + Boolean isGlusterService, + String glusterTunedProfile, + Boolean isHaReservation, + Ksm ksm, + Integer logMaxMemoryUsedThreshold, + LogMaxMemoryUsedThresholdType logMaxMemoryUsedThresholdType, + OlvmMemoryPolicy memoryPolicy, + OlvmMigrationOptions migrationPolicy, + java.util.List requiredRngSources, + OlvmSerialNumber serialNumber, + java.util.List supportedVersions, + SwitchType switchType, + Boolean isUseThreadsAsCores, + Boolean isTrustedService, + Boolean isTunnelMigration, + String upgradeCorrelationId, + Boolean isUpdateInProgress, + Integer upgradePercentComplete, + OlvmVersion version, + Boolean isVirtService, + Boolean isVncEncryption, + java.util.List dataCenters) { + super(); + this.clusterName = clusterName; + this.clusterDescription = clusterDescription; + this.comment = comment; + this.isBallooningEnabled = isBallooningEnabled; + this.biosType = biosType; + this.cpu = cpu; + this.customSchedulingPolicyProperties = customSchedulingPolicyProperties; + this.display = display; + this.errorHandling = errorHandling; + this.fencingPolicy = fencingPolicy; + this.fipsMode = fipsMode; + this.firewallType = firewallType; + this.isGlusterService = isGlusterService; + this.glusterTunedProfile = glusterTunedProfile; + this.isHaReservation = isHaReservation; + this.ksm = ksm; + this.logMaxMemoryUsedThreshold = logMaxMemoryUsedThreshold; + this.logMaxMemoryUsedThresholdType = logMaxMemoryUsedThresholdType; + this.memoryPolicy = memoryPolicy; + this.migrationPolicy = migrationPolicy; + this.requiredRngSources = requiredRngSources; + this.serialNumber = serialNumber; + this.supportedVersions = supportedVersions; + this.switchType = switchType; + this.isUseThreadsAsCores = isUseThreadsAsCores; + this.isTrustedService = isTrustedService; + this.isTunnelMigration = isTunnelMigration; + this.upgradeCorrelationId = upgradeCorrelationId; + this.isUpdateInProgress = isUpdateInProgress; + this.upgradePercentComplete = upgradePercentComplete; + this.version = version; + this.isVirtService = isVirtService; + this.isVncEncryption = isVncEncryption; + this.dataCenters = dataCenters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterName") + private String clusterName; + + /** + * A human-readable name in plain text. + * @param clusterName the value to set + * @return this builder + **/ + public Builder clusterName(String clusterName) { + this.clusterName = clusterName; + this.__explicitlySet__.add("clusterName"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterDescription") + private String clusterDescription; + + /** + * A human-readable description in plain text. + * @param clusterDescription the value to set + * @return this builder + **/ + public Builder clusterDescription(String clusterDescription) { + this.clusterDescription = clusterDescription; + this.__explicitlySet__.add("clusterDescription"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Whether ballooning is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBallooningEnabled") + private Boolean isBallooningEnabled; + + /** + * Whether ballooning is enabled. + * @param isBallooningEnabled the value to set + * @return this builder + **/ + public Builder isBallooningEnabled(Boolean isBallooningEnabled) { + this.isBallooningEnabled = isBallooningEnabled; + this.__explicitlySet__.add("isBallooningEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("biosType") + private OlvmBiosType biosType; + + public Builder biosType(OlvmBiosType biosType) { + this.biosType = biosType; + this.__explicitlySet__.add("biosType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private OlvmCpu cpu; + + public Builder cpu(OlvmCpu cpu) { + this.cpu = cpu; + this.__explicitlySet__.add("cpu"); + return this; + } + /** + * Custom scheduling policy properties of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customSchedulingPolicyProperties") + private java.util.List customSchedulingPolicyProperties; + + /** + * Custom scheduling policy properties of the cluster. + * @param customSchedulingPolicyProperties the value to set + * @return this builder + **/ + public Builder customSchedulingPolicyProperties( + java.util.List customSchedulingPolicyProperties) { + this.customSchedulingPolicyProperties = customSchedulingPolicyProperties; + this.__explicitlySet__.add("customSchedulingPolicyProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private OlvmDisplay display; + + public Builder display(OlvmDisplay display) { + this.display = display; + this.__explicitlySet__.add("display"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("errorHandling") + private OlvmErrorHandling errorHandling; + + public Builder errorHandling(OlvmErrorHandling errorHandling) { + this.errorHandling = errorHandling; + this.__explicitlySet__.add("errorHandling"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fencingPolicy") + private OlvmFencingPolicy fencingPolicy; + + public Builder fencingPolicy(OlvmFencingPolicy fencingPolicy) { + this.fencingPolicy = fencingPolicy; + this.__explicitlySet__.add("fencingPolicy"); + return this; + } + /** + * FIPS mode of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fipsMode") + private FipsMode fipsMode; + + /** + * FIPS mode of the cluster. + * @param fipsMode the value to set + * @return this builder + **/ + public Builder fipsMode(FipsMode fipsMode) { + this.fipsMode = fipsMode; + this.__explicitlySet__.add("fipsMode"); + return this; + } + /** + * The type of firewall to be used on hosts in this cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("firewallType") + private FirewallType firewallType; + + /** + * The type of firewall to be used on hosts in this cluster. + * @param firewallType the value to set + * @return this builder + **/ + public Builder firewallType(FirewallType firewallType) { + this.firewallType = firewallType; + this.__explicitlySet__.add("firewallType"); + return this; + } + /** + * Indicates if Gluster service is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isGlusterService") + private Boolean isGlusterService; + + /** + * Indicates if Gluster service is used. + * @param isGlusterService the value to set + * @return this builder + **/ + public Builder isGlusterService(Boolean isGlusterService) { + this.isGlusterService = isGlusterService; + this.__explicitlySet__.add("isGlusterService"); + return this; + } + /** + * The name of the tuned profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glusterTunedProfile") + private String glusterTunedProfile; + + /** + * The name of the tuned profile. + * @param glusterTunedProfile the value to set + * @return this builder + **/ + public Builder glusterTunedProfile(String glusterTunedProfile) { + this.glusterTunedProfile = glusterTunedProfile; + this.__explicitlySet__.add("glusterTunedProfile"); + return this; + } + /** + * Indicates whether HA reservation is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isHaReservation") + private Boolean isHaReservation; + + /** + * Indicates whether HA reservation is enabled. + * @param isHaReservation the value to set + * @return this builder + **/ + public Builder isHaReservation(Boolean isHaReservation) { + this.isHaReservation = isHaReservation; + this.__explicitlySet__.add("isHaReservation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ksm") + private Ksm ksm; + + public Builder ksm(Ksm ksm) { + this.ksm = ksm; + this.__explicitlySet__.add("ksm"); + return this; + } + /** + * The memory consumption threshold for logging audit log events + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logMaxMemoryUsedThreshold") + private Integer logMaxMemoryUsedThreshold; + + /** + * The memory consumption threshold for logging audit log events + * @param logMaxMemoryUsedThreshold the value to set + * @return this builder + **/ + public Builder logMaxMemoryUsedThreshold(Integer logMaxMemoryUsedThreshold) { + this.logMaxMemoryUsedThreshold = logMaxMemoryUsedThreshold; + this.__explicitlySet__.add("logMaxMemoryUsedThreshold"); + return this; + } + /** + * The memory consumption threshold type for logging audit log events. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logMaxMemoryUsedThresholdType") + private LogMaxMemoryUsedThresholdType logMaxMemoryUsedThresholdType; + + /** + * The memory consumption threshold type for logging audit log events. + * @param logMaxMemoryUsedThresholdType the value to set + * @return this builder + **/ + public Builder logMaxMemoryUsedThresholdType( + LogMaxMemoryUsedThresholdType logMaxMemoryUsedThresholdType) { + this.logMaxMemoryUsedThresholdType = logMaxMemoryUsedThresholdType; + this.__explicitlySet__.add("logMaxMemoryUsedThresholdType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryPolicy") + private OlvmMemoryPolicy memoryPolicy; + + public Builder memoryPolicy(OlvmMemoryPolicy memoryPolicy) { + this.memoryPolicy = memoryPolicy; + this.__explicitlySet__.add("memoryPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationPolicy") + private OlvmMigrationOptions migrationPolicy; + + public Builder migrationPolicy(OlvmMigrationOptions migrationPolicy) { + this.migrationPolicy = migrationPolicy; + this.__explicitlySet__.add("migrationPolicy"); + return this; + } + /** + * Set of random number generator (RNG) sources required from each host in the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requiredRngSources") + private java.util.List requiredRngSources; + + /** + * Set of random number generator (RNG) sources required from each host in the cluster. + * @param requiredRngSources the value to set + * @return this builder + **/ + public Builder requiredRngSources(java.util.List requiredRngSources) { + this.requiredRngSources = requiredRngSources; + this.__explicitlySet__.add("requiredRngSources"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private OlvmSerialNumber serialNumber; + + public Builder serialNumber(OlvmSerialNumber serialNumber) { + this.serialNumber = serialNumber; + this.__explicitlySet__.add("serialNumber"); + return this; + } + /** + * List of supported versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedVersions") + private java.util.List supportedVersions; + + /** + * List of supported versions. + * @param supportedVersions the value to set + * @return this builder + **/ + public Builder supportedVersions(java.util.List supportedVersions) { + this.supportedVersions = supportedVersions; + this.__explicitlySet__.add("supportedVersions"); + return this; + } + /** + * Describes all switch types supported by the Manager + **/ + @com.fasterxml.jackson.annotation.JsonProperty("switchType") + private SwitchType switchType; + + /** + * Describes all switch types supported by the Manager + * @param switchType the value to set + * @return this builder + **/ + public Builder switchType(SwitchType switchType) { + this.switchType = switchType; + this.__explicitlySet__.add("switchType"); + return this; + } + /** + * Indicates if threads should be used as cores + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUseThreadsAsCores") + private Boolean isUseThreadsAsCores; + + /** + * Indicates if threads should be used as cores + * @param isUseThreadsAsCores the value to set + * @return this builder + **/ + public Builder isUseThreadsAsCores(Boolean isUseThreadsAsCores) { + this.isUseThreadsAsCores = isUseThreadsAsCores; + this.__explicitlySet__.add("isUseThreadsAsCores"); + return this; + } + /** + * Indicates if trusted service is enabled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTrustedService") + private Boolean isTrustedService; + + /** + * Indicates if trusted service is enabled + * @param isTrustedService the value to set + * @return this builder + **/ + public Builder isTrustedService(Boolean isTrustedService) { + this.isTrustedService = isTrustedService; + this.__explicitlySet__.add("isTrustedService"); + return this; + } + /** + * Indicates if tunnel migration is enabled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTunnelMigration") + private Boolean isTunnelMigration; + + /** + * Indicates if tunnel migration is enabled + * @param isTunnelMigration the value to set + * @return this builder + **/ + public Builder isTunnelMigration(Boolean isTunnelMigration) { + this.isTunnelMigration = isTunnelMigration; + this.__explicitlySet__.add("isTunnelMigration"); + return this; + } + /** + * The upgrade correlation identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("upgradeCorrelationId") + private String upgradeCorrelationId; + + /** + * The upgrade correlation identifier. + * @param upgradeCorrelationId the value to set + * @return this builder + **/ + public Builder upgradeCorrelationId(String upgradeCorrelationId) { + this.upgradeCorrelationId = upgradeCorrelationId; + this.__explicitlySet__.add("upgradeCorrelationId"); + return this; + } + /** + * Indicates if an upgrade has been started for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpdateInProgress") + private Boolean isUpdateInProgress; + + /** + * Indicates if an upgrade has been started for the cluster. + * @param isUpdateInProgress the value to set + * @return this builder + **/ + public Builder isUpdateInProgress(Boolean isUpdateInProgress) { + this.isUpdateInProgress = isUpdateInProgress; + this.__explicitlySet__.add("isUpdateInProgress"); + return this; + } + /** + * If an upgrade is in progress, the upgrade\u2019s reported percent complete. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("upgradePercentComplete") + private Integer upgradePercentComplete; + + /** + * If an upgrade is in progress, the upgrade\u2019s reported percent complete. + * @param upgradePercentComplete the value to set + * @return this builder + **/ + public Builder upgradePercentComplete(Integer upgradePercentComplete) { + this.upgradePercentComplete = upgradePercentComplete; + this.__explicitlySet__.add("upgradePercentComplete"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private OlvmVersion version; + + public Builder version(OlvmVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * Indicates if virt service is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtService") + private Boolean isVirtService; + + /** + * Indicates if virt service is enabled. + * @param isVirtService the value to set + * @return this builder + **/ + public Builder isVirtService(Boolean isVirtService) { + this.isVirtService = isVirtService; + this.__explicitlySet__.add("isVirtService"); + return this; + } + /** + * Indicates if VNC encryption is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVncEncryption") + private Boolean isVncEncryption; + + /** + * Indicates if VNC encryption is enabled. + * @param isVncEncryption the value to set + * @return this builder + **/ + public Builder isVncEncryption(Boolean isVncEncryption) { + this.isVncEncryption = isVncEncryption; + this.__explicitlySet__.add("isVncEncryption"); + return this; + } + /** + * List of data centers where storage domain belongs + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataCenters") + private java.util.List dataCenters; + + /** + * List of data centers where storage domain belongs + * @param dataCenters the value to set + * @return this builder + **/ + public Builder dataCenters(java.util.List dataCenters) { + this.dataCenters = dataCenters; + this.__explicitlySet__.add("dataCenters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmClusterProperties build() { + OlvmClusterProperties model = + new OlvmClusterProperties( + this.clusterName, + this.clusterDescription, + this.comment, + this.isBallooningEnabled, + this.biosType, + this.cpu, + this.customSchedulingPolicyProperties, + this.display, + this.errorHandling, + this.fencingPolicy, + this.fipsMode, + this.firewallType, + this.isGlusterService, + this.glusterTunedProfile, + this.isHaReservation, + this.ksm, + this.logMaxMemoryUsedThreshold, + this.logMaxMemoryUsedThresholdType, + this.memoryPolicy, + this.migrationPolicy, + this.requiredRngSources, + this.serialNumber, + this.supportedVersions, + this.switchType, + this.isUseThreadsAsCores, + this.isTrustedService, + this.isTunnelMigration, + this.upgradeCorrelationId, + this.isUpdateInProgress, + this.upgradePercentComplete, + this.version, + this.isVirtService, + this.isVncEncryption, + this.dataCenters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmClusterProperties model) { + if (model.wasPropertyExplicitlySet("clusterName")) { + this.clusterName(model.getClusterName()); + } + if (model.wasPropertyExplicitlySet("clusterDescription")) { + this.clusterDescription(model.getClusterDescription()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("isBallooningEnabled")) { + this.isBallooningEnabled(model.getIsBallooningEnabled()); + } + if (model.wasPropertyExplicitlySet("biosType")) { + this.biosType(model.getBiosType()); + } + if (model.wasPropertyExplicitlySet("cpu")) { + this.cpu(model.getCpu()); + } + if (model.wasPropertyExplicitlySet("customSchedulingPolicyProperties")) { + this.customSchedulingPolicyProperties(model.getCustomSchedulingPolicyProperties()); + } + if (model.wasPropertyExplicitlySet("display")) { + this.display(model.getDisplay()); + } + if (model.wasPropertyExplicitlySet("errorHandling")) { + this.errorHandling(model.getErrorHandling()); + } + if (model.wasPropertyExplicitlySet("fencingPolicy")) { + this.fencingPolicy(model.getFencingPolicy()); + } + if (model.wasPropertyExplicitlySet("fipsMode")) { + this.fipsMode(model.getFipsMode()); + } + if (model.wasPropertyExplicitlySet("firewallType")) { + this.firewallType(model.getFirewallType()); + } + if (model.wasPropertyExplicitlySet("isGlusterService")) { + this.isGlusterService(model.getIsGlusterService()); + } + if (model.wasPropertyExplicitlySet("glusterTunedProfile")) { + this.glusterTunedProfile(model.getGlusterTunedProfile()); + } + if (model.wasPropertyExplicitlySet("isHaReservation")) { + this.isHaReservation(model.getIsHaReservation()); + } + if (model.wasPropertyExplicitlySet("ksm")) { + this.ksm(model.getKsm()); + } + if (model.wasPropertyExplicitlySet("logMaxMemoryUsedThreshold")) { + this.logMaxMemoryUsedThreshold(model.getLogMaxMemoryUsedThreshold()); + } + if (model.wasPropertyExplicitlySet("logMaxMemoryUsedThresholdType")) { + this.logMaxMemoryUsedThresholdType(model.getLogMaxMemoryUsedThresholdType()); + } + if (model.wasPropertyExplicitlySet("memoryPolicy")) { + this.memoryPolicy(model.getMemoryPolicy()); + } + if (model.wasPropertyExplicitlySet("migrationPolicy")) { + this.migrationPolicy(model.getMigrationPolicy()); + } + if (model.wasPropertyExplicitlySet("requiredRngSources")) { + this.requiredRngSources(model.getRequiredRngSources()); + } + if (model.wasPropertyExplicitlySet("serialNumber")) { + this.serialNumber(model.getSerialNumber()); + } + if (model.wasPropertyExplicitlySet("supportedVersions")) { + this.supportedVersions(model.getSupportedVersions()); + } + if (model.wasPropertyExplicitlySet("switchType")) { + this.switchType(model.getSwitchType()); + } + if (model.wasPropertyExplicitlySet("isUseThreadsAsCores")) { + this.isUseThreadsAsCores(model.getIsUseThreadsAsCores()); + } + if (model.wasPropertyExplicitlySet("isTrustedService")) { + this.isTrustedService(model.getIsTrustedService()); + } + if (model.wasPropertyExplicitlySet("isTunnelMigration")) { + this.isTunnelMigration(model.getIsTunnelMigration()); + } + if (model.wasPropertyExplicitlySet("upgradeCorrelationId")) { + this.upgradeCorrelationId(model.getUpgradeCorrelationId()); + } + if (model.wasPropertyExplicitlySet("isUpdateInProgress")) { + this.isUpdateInProgress(model.getIsUpdateInProgress()); + } + if (model.wasPropertyExplicitlySet("upgradePercentComplete")) { + this.upgradePercentComplete(model.getUpgradePercentComplete()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("isVirtService")) { + this.isVirtService(model.getIsVirtService()); + } + if (model.wasPropertyExplicitlySet("isVncEncryption")) { + this.isVncEncryption(model.getIsVncEncryption()); + } + if (model.wasPropertyExplicitlySet("dataCenters")) { + this.dataCenters(model.getDataCenters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterName") + private final String clusterName; + + /** + * A human-readable name in plain text. + * @return the value + **/ + public String getClusterName() { + return clusterName; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterDescription") + private final String clusterDescription; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getClusterDescription() { + return clusterDescription; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * Whether ballooning is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBallooningEnabled") + private final Boolean isBallooningEnabled; + + /** + * Whether ballooning is enabled. + * @return the value + **/ + public Boolean getIsBallooningEnabled() { + return isBallooningEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("biosType") + private final OlvmBiosType biosType; + + public OlvmBiosType getBiosType() { + return biosType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private final OlvmCpu cpu; + + public OlvmCpu getCpu() { + return cpu; + } + + /** + * Custom scheduling policy properties of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customSchedulingPolicyProperties") + private final java.util.List customSchedulingPolicyProperties; + + /** + * Custom scheduling policy properties of the cluster. + * @return the value + **/ + public java.util.List getCustomSchedulingPolicyProperties() { + return customSchedulingPolicyProperties; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private final OlvmDisplay display; + + public OlvmDisplay getDisplay() { + return display; + } + + @com.fasterxml.jackson.annotation.JsonProperty("errorHandling") + private final OlvmErrorHandling errorHandling; + + public OlvmErrorHandling getErrorHandling() { + return errorHandling; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fencingPolicy") + private final OlvmFencingPolicy fencingPolicy; + + public OlvmFencingPolicy getFencingPolicy() { + return fencingPolicy; + } + + /** + * FIPS mode of the cluster. + **/ + public enum FipsMode { + Disabled("DISABLED"), + Enabled("ENABLED"), + Undefined("UNDEFINED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FipsMode v : FipsMode.values()) { + map.put(v.getValue(), v); + } + } + + FipsMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FipsMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid FipsMode: " + key); + } + }; + /** + * FIPS mode of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fipsMode") + private final FipsMode fipsMode; + + /** + * FIPS mode of the cluster. + * @return the value + **/ + public FipsMode getFipsMode() { + return fipsMode; + } + + /** + * The type of firewall to be used on hosts in this cluster. + **/ + public enum FirewallType { + Firewalld("FIREWALLD"), + Iptables("IPTABLES"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FirewallType v : FirewallType.values()) { + map.put(v.getValue(), v); + } + } + + FirewallType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FirewallType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid FirewallType: " + key); + } + }; + /** + * The type of firewall to be used on hosts in this cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("firewallType") + private final FirewallType firewallType; + + /** + * The type of firewall to be used on hosts in this cluster. + * @return the value + **/ + public FirewallType getFirewallType() { + return firewallType; + } + + /** + * Indicates if Gluster service is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isGlusterService") + private final Boolean isGlusterService; + + /** + * Indicates if Gluster service is used. + * @return the value + **/ + public Boolean getIsGlusterService() { + return isGlusterService; + } + + /** + * The name of the tuned profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glusterTunedProfile") + private final String glusterTunedProfile; + + /** + * The name of the tuned profile. + * @return the value + **/ + public String getGlusterTunedProfile() { + return glusterTunedProfile; + } + + /** + * Indicates whether HA reservation is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isHaReservation") + private final Boolean isHaReservation; + + /** + * Indicates whether HA reservation is enabled. + * @return the value + **/ + public Boolean getIsHaReservation() { + return isHaReservation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ksm") + private final Ksm ksm; + + public Ksm getKsm() { + return ksm; + } + + /** + * The memory consumption threshold for logging audit log events + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logMaxMemoryUsedThreshold") + private final Integer logMaxMemoryUsedThreshold; + + /** + * The memory consumption threshold for logging audit log events + * @return the value + **/ + public Integer getLogMaxMemoryUsedThreshold() { + return logMaxMemoryUsedThreshold; + } + + /** + * The memory consumption threshold type for logging audit log events. + **/ + public enum LogMaxMemoryUsedThresholdType { + AbsoluteValueInMb("ABSOLUTE_VALUE_IN_MB"), + Percentage("PERCENTAGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LogMaxMemoryUsedThresholdType v : LogMaxMemoryUsedThresholdType.values()) { + map.put(v.getValue(), v); + } + } + + LogMaxMemoryUsedThresholdType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LogMaxMemoryUsedThresholdType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LogMaxMemoryUsedThresholdType: " + key); + } + }; + /** + * The memory consumption threshold type for logging audit log events. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logMaxMemoryUsedThresholdType") + private final LogMaxMemoryUsedThresholdType logMaxMemoryUsedThresholdType; + + /** + * The memory consumption threshold type for logging audit log events. + * @return the value + **/ + public LogMaxMemoryUsedThresholdType getLogMaxMemoryUsedThresholdType() { + return logMaxMemoryUsedThresholdType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryPolicy") + private final OlvmMemoryPolicy memoryPolicy; + + public OlvmMemoryPolicy getMemoryPolicy() { + return memoryPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationPolicy") + private final OlvmMigrationOptions migrationPolicy; + + public OlvmMigrationOptions getMigrationPolicy() { + return migrationPolicy; + } + + /** + * Set of random number generator (RNG) sources required from each host in the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requiredRngSources") + private final java.util.List requiredRngSources; + + /** + * Set of random number generator (RNG) sources required from each host in the cluster. + * @return the value + **/ + public java.util.List getRequiredRngSources() { + return requiredRngSources; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private final OlvmSerialNumber serialNumber; + + public OlvmSerialNumber getSerialNumber() { + return serialNumber; + } + + /** + * List of supported versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedVersions") + private final java.util.List supportedVersions; + + /** + * List of supported versions. + * @return the value + **/ + public java.util.List getSupportedVersions() { + return supportedVersions; + } + + /** + * Describes all switch types supported by the Manager + **/ + public enum SwitchType { + Legacy("LEGACY"), + Ovs("OVS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SwitchType v : SwitchType.values()) { + map.put(v.getValue(), v); + } + } + + SwitchType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SwitchType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SwitchType: " + key); + } + }; + /** + * Describes all switch types supported by the Manager + **/ + @com.fasterxml.jackson.annotation.JsonProperty("switchType") + private final SwitchType switchType; + + /** + * Describes all switch types supported by the Manager + * @return the value + **/ + public SwitchType getSwitchType() { + return switchType; + } + + /** + * Indicates if threads should be used as cores + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUseThreadsAsCores") + private final Boolean isUseThreadsAsCores; + + /** + * Indicates if threads should be used as cores + * @return the value + **/ + public Boolean getIsUseThreadsAsCores() { + return isUseThreadsAsCores; + } + + /** + * Indicates if trusted service is enabled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTrustedService") + private final Boolean isTrustedService; + + /** + * Indicates if trusted service is enabled + * @return the value + **/ + public Boolean getIsTrustedService() { + return isTrustedService; + } + + /** + * Indicates if tunnel migration is enabled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTunnelMigration") + private final Boolean isTunnelMigration; + + /** + * Indicates if tunnel migration is enabled + * @return the value + **/ + public Boolean getIsTunnelMigration() { + return isTunnelMigration; + } + + /** + * The upgrade correlation identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("upgradeCorrelationId") + private final String upgradeCorrelationId; + + /** + * The upgrade correlation identifier. + * @return the value + **/ + public String getUpgradeCorrelationId() { + return upgradeCorrelationId; + } + + /** + * Indicates if an upgrade has been started for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpdateInProgress") + private final Boolean isUpdateInProgress; + + /** + * Indicates if an upgrade has been started for the cluster. + * @return the value + **/ + public Boolean getIsUpdateInProgress() { + return isUpdateInProgress; + } + + /** + * If an upgrade is in progress, the upgrade\u2019s reported percent complete. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("upgradePercentComplete") + private final Integer upgradePercentComplete; + + /** + * If an upgrade is in progress, the upgrade\u2019s reported percent complete. + * @return the value + **/ + public Integer getUpgradePercentComplete() { + return upgradePercentComplete; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmVersion version; + + public OlvmVersion getVersion() { + return version; + } + + /** + * Indicates if virt service is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtService") + private final Boolean isVirtService; + + /** + * Indicates if virt service is enabled. + * @return the value + **/ + public Boolean getIsVirtService() { + return isVirtService; + } + + /** + * Indicates if VNC encryption is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVncEncryption") + private final Boolean isVncEncryption; + + /** + * Indicates if VNC encryption is enabled. + * @return the value + **/ + public Boolean getIsVncEncryption() { + return isVncEncryption; + } + + /** + * List of data centers where storage domain belongs + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataCenters") + private final java.util.List dataCenters; + + /** + * List of data centers where storage domain belongs + * @return the value + **/ + public java.util.List getDataCenters() { + return dataCenters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmClusterProperties("); + sb.append("super=").append(super.toString()); + sb.append("clusterName=").append(String.valueOf(this.clusterName)); + sb.append(", clusterDescription=").append(String.valueOf(this.clusterDescription)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", isBallooningEnabled=").append(String.valueOf(this.isBallooningEnabled)); + sb.append(", biosType=").append(String.valueOf(this.biosType)); + sb.append(", cpu=").append(String.valueOf(this.cpu)); + sb.append(", customSchedulingPolicyProperties=") + .append(String.valueOf(this.customSchedulingPolicyProperties)); + sb.append(", display=").append(String.valueOf(this.display)); + sb.append(", errorHandling=").append(String.valueOf(this.errorHandling)); + sb.append(", fencingPolicy=").append(String.valueOf(this.fencingPolicy)); + sb.append(", fipsMode=").append(String.valueOf(this.fipsMode)); + sb.append(", firewallType=").append(String.valueOf(this.firewallType)); + sb.append(", isGlusterService=").append(String.valueOf(this.isGlusterService)); + sb.append(", glusterTunedProfile=").append(String.valueOf(this.glusterTunedProfile)); + sb.append(", isHaReservation=").append(String.valueOf(this.isHaReservation)); + sb.append(", ksm=").append(String.valueOf(this.ksm)); + sb.append(", logMaxMemoryUsedThreshold=") + .append(String.valueOf(this.logMaxMemoryUsedThreshold)); + sb.append(", logMaxMemoryUsedThresholdType=") + .append(String.valueOf(this.logMaxMemoryUsedThresholdType)); + sb.append(", memoryPolicy=").append(String.valueOf(this.memoryPolicy)); + sb.append(", migrationPolicy=").append(String.valueOf(this.migrationPolicy)); + sb.append(", requiredRngSources=").append(String.valueOf(this.requiredRngSources)); + sb.append(", serialNumber=").append(String.valueOf(this.serialNumber)); + sb.append(", supportedVersions=").append(String.valueOf(this.supportedVersions)); + sb.append(", switchType=").append(String.valueOf(this.switchType)); + sb.append(", isUseThreadsAsCores=").append(String.valueOf(this.isUseThreadsAsCores)); + sb.append(", isTrustedService=").append(String.valueOf(this.isTrustedService)); + sb.append(", isTunnelMigration=").append(String.valueOf(this.isTunnelMigration)); + sb.append(", upgradeCorrelationId=").append(String.valueOf(this.upgradeCorrelationId)); + sb.append(", isUpdateInProgress=").append(String.valueOf(this.isUpdateInProgress)); + sb.append(", upgradePercentComplete=").append(String.valueOf(this.upgradePercentComplete)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", isVirtService=").append(String.valueOf(this.isVirtService)); + sb.append(", isVncEncryption=").append(String.valueOf(this.isVncEncryption)); + sb.append(", dataCenters=").append(String.valueOf(this.dataCenters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmClusterProperties)) { + return false; + } + + OlvmClusterProperties other = (OlvmClusterProperties) o; + return java.util.Objects.equals(this.clusterName, other.clusterName) + && java.util.Objects.equals(this.clusterDescription, other.clusterDescription) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.isBallooningEnabled, other.isBallooningEnabled) + && java.util.Objects.equals(this.biosType, other.biosType) + && java.util.Objects.equals(this.cpu, other.cpu) + && java.util.Objects.equals( + this.customSchedulingPolicyProperties, + other.customSchedulingPolicyProperties) + && java.util.Objects.equals(this.display, other.display) + && java.util.Objects.equals(this.errorHandling, other.errorHandling) + && java.util.Objects.equals(this.fencingPolicy, other.fencingPolicy) + && java.util.Objects.equals(this.fipsMode, other.fipsMode) + && java.util.Objects.equals(this.firewallType, other.firewallType) + && java.util.Objects.equals(this.isGlusterService, other.isGlusterService) + && java.util.Objects.equals(this.glusterTunedProfile, other.glusterTunedProfile) + && java.util.Objects.equals(this.isHaReservation, other.isHaReservation) + && java.util.Objects.equals(this.ksm, other.ksm) + && java.util.Objects.equals( + this.logMaxMemoryUsedThreshold, other.logMaxMemoryUsedThreshold) + && java.util.Objects.equals( + this.logMaxMemoryUsedThresholdType, other.logMaxMemoryUsedThresholdType) + && java.util.Objects.equals(this.memoryPolicy, other.memoryPolicy) + && java.util.Objects.equals(this.migrationPolicy, other.migrationPolicy) + && java.util.Objects.equals(this.requiredRngSources, other.requiredRngSources) + && java.util.Objects.equals(this.serialNumber, other.serialNumber) + && java.util.Objects.equals(this.supportedVersions, other.supportedVersions) + && java.util.Objects.equals(this.switchType, other.switchType) + && java.util.Objects.equals(this.isUseThreadsAsCores, other.isUseThreadsAsCores) + && java.util.Objects.equals(this.isTrustedService, other.isTrustedService) + && java.util.Objects.equals(this.isTunnelMigration, other.isTunnelMigration) + && java.util.Objects.equals(this.upgradeCorrelationId, other.upgradeCorrelationId) + && java.util.Objects.equals(this.isUpdateInProgress, other.isUpdateInProgress) + && java.util.Objects.equals( + this.upgradePercentComplete, other.upgradePercentComplete) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.isVirtService, other.isVirtService) + && java.util.Objects.equals(this.isVncEncryption, other.isVncEncryption) + && java.util.Objects.equals(this.dataCenters, other.dataCenters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.clusterName == null ? 43 : this.clusterName.hashCode()); + result = + (result * PRIME) + + (this.clusterDescription == null + ? 43 + : this.clusterDescription.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = + (result * PRIME) + + (this.isBallooningEnabled == null + ? 43 + : this.isBallooningEnabled.hashCode()); + result = (result * PRIME) + (this.biosType == null ? 43 : this.biosType.hashCode()); + result = (result * PRIME) + (this.cpu == null ? 43 : this.cpu.hashCode()); + result = + (result * PRIME) + + (this.customSchedulingPolicyProperties == null + ? 43 + : this.customSchedulingPolicyProperties.hashCode()); + result = (result * PRIME) + (this.display == null ? 43 : this.display.hashCode()); + result = + (result * PRIME) + + (this.errorHandling == null ? 43 : this.errorHandling.hashCode()); + result = + (result * PRIME) + + (this.fencingPolicy == null ? 43 : this.fencingPolicy.hashCode()); + result = (result * PRIME) + (this.fipsMode == null ? 43 : this.fipsMode.hashCode()); + result = (result * PRIME) + (this.firewallType == null ? 43 : this.firewallType.hashCode()); + result = + (result * PRIME) + + (this.isGlusterService == null ? 43 : this.isGlusterService.hashCode()); + result = + (result * PRIME) + + (this.glusterTunedProfile == null + ? 43 + : this.glusterTunedProfile.hashCode()); + result = + (result * PRIME) + + (this.isHaReservation == null ? 43 : this.isHaReservation.hashCode()); + result = (result * PRIME) + (this.ksm == null ? 43 : this.ksm.hashCode()); + result = + (result * PRIME) + + (this.logMaxMemoryUsedThreshold == null + ? 43 + : this.logMaxMemoryUsedThreshold.hashCode()); + result = + (result * PRIME) + + (this.logMaxMemoryUsedThresholdType == null + ? 43 + : this.logMaxMemoryUsedThresholdType.hashCode()); + result = (result * PRIME) + (this.memoryPolicy == null ? 43 : this.memoryPolicy.hashCode()); + result = + (result * PRIME) + + (this.migrationPolicy == null ? 43 : this.migrationPolicy.hashCode()); + result = + (result * PRIME) + + (this.requiredRngSources == null + ? 43 + : this.requiredRngSources.hashCode()); + result = (result * PRIME) + (this.serialNumber == null ? 43 : this.serialNumber.hashCode()); + result = + (result * PRIME) + + (this.supportedVersions == null ? 43 : this.supportedVersions.hashCode()); + result = (result * PRIME) + (this.switchType == null ? 43 : this.switchType.hashCode()); + result = + (result * PRIME) + + (this.isUseThreadsAsCores == null + ? 43 + : this.isUseThreadsAsCores.hashCode()); + result = + (result * PRIME) + + (this.isTrustedService == null ? 43 : this.isTrustedService.hashCode()); + result = + (result * PRIME) + + (this.isTunnelMigration == null ? 43 : this.isTunnelMigration.hashCode()); + result = + (result * PRIME) + + (this.upgradeCorrelationId == null + ? 43 + : this.upgradeCorrelationId.hashCode()); + result = + (result * PRIME) + + (this.isUpdateInProgress == null + ? 43 + : this.isUpdateInProgress.hashCode()); + result = + (result * PRIME) + + (this.upgradePercentComplete == null + ? 43 + : this.upgradePercentComplete.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.isVirtService == null ? 43 : this.isVirtService.hashCode()); + result = + (result * PRIME) + + (this.isVncEncryption == null ? 43 : this.isVncEncryption.hashCode()); + result = (result * PRIME) + (this.dataCenters == null ? 43 : this.dataCenters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmConfiguration.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmConfiguration.java new file mode 100644 index 00000000000..c53f040ef54 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmConfiguration.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Configuration of the OLVM virtual machine. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmConfiguration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"data", "configurationType"}) + public OlvmConfiguration(String data, ConfigurationType configurationType) { + super(); + this.data = data; + this.configurationType = configurationType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The document describing the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("data") + private String data; + + /** + * The document describing the virtual machine. + * @param data the value to set + * @return this builder + **/ + public Builder data(String data) { + this.data = data; + this.__explicitlySet__.add("data"); + return this; + } + /** + * Configuration format types. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configurationType") + private ConfigurationType configurationType; + + /** + * Configuration format types. + * @param configurationType the value to set + * @return this builder + **/ + public Builder configurationType(ConfigurationType configurationType) { + this.configurationType = configurationType; + this.__explicitlySet__.add("configurationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmConfiguration build() { + OlvmConfiguration model = new OlvmConfiguration(this.data, this.configurationType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmConfiguration model) { + if (model.wasPropertyExplicitlySet("data")) { + this.data(model.getData()); + } + if (model.wasPropertyExplicitlySet("configurationType")) { + this.configurationType(model.getConfigurationType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The document describing the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("data") + private final String data; + + /** + * The document describing the virtual machine. + * @return the value + **/ + public String getData() { + return data; + } + + /** + * Configuration format types. + **/ + public enum ConfigurationType { + Ova("OVA"), + Ovf("OVF"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConfigurationType v : ConfigurationType.values()) { + map.put(v.getValue(), v); + } + } + + ConfigurationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConfigurationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ConfigurationType: " + key); + } + }; + /** + * Configuration format types. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configurationType") + private final ConfigurationType configurationType; + + /** + * Configuration format types. + * @return the value + **/ + public ConfigurationType getConfigurationType() { + return configurationType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("data=").append(String.valueOf(this.data)); + sb.append(", configurationType=").append(String.valueOf(this.configurationType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmConfiguration)) { + return false; + } + + OlvmConfiguration other = (OlvmConfiguration) o; + return java.util.Objects.equals(this.data, other.data) + && java.util.Objects.equals(this.configurationType, other.configurationType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.data == null ? 43 : this.data.hashCode()); + result = + (result * PRIME) + + (this.configurationType == null ? 43 : this.configurationType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmConsole.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmConsole.java new file mode 100644 index 00000000000..278261523bb --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmConsole.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Representation for serial console device. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmConsole.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmConsole extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled"}) + public OlvmConsole(Boolean isEnabled) { + super(); + this.isEnabled = isEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable/disable the serial console device. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Enable/disable the serial console device. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmConsole build() { + OlvmConsole model = new OlvmConsole(this.isEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmConsole model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable/disable the serial console device. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Enable/disable the serial console device. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmConsole("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmConsole)) { + return false; + } + + OlvmConsole other = (OlvmConsole) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCore.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCore.java new file mode 100644 index 00000000000..64da9a717ce --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCore.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Core of the CPU in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmCore.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmCore extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"index", "socket"}) + public OlvmCore(Integer index, Integer socket) { + super(); + this.index = index; + this.socket = socket; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Index of this CPU core + **/ + @com.fasterxml.jackson.annotation.JsonProperty("index") + private Integer index; + + /** + * Index of this CPU core + * @param index the value to set + * @return this builder + **/ + public Builder index(Integer index) { + this.index = index; + this.__explicitlySet__.add("index"); + return this; + } + /** + * Socket of this CPU core + **/ + @com.fasterxml.jackson.annotation.JsonProperty("socket") + private Integer socket; + + /** + * Socket of this CPU core + * @param socket the value to set + * @return this builder + **/ + public Builder socket(Integer socket) { + this.socket = socket; + this.__explicitlySet__.add("socket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmCore build() { + OlvmCore model = new OlvmCore(this.index, this.socket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmCore model) { + if (model.wasPropertyExplicitlySet("index")) { + this.index(model.getIndex()); + } + if (model.wasPropertyExplicitlySet("socket")) { + this.socket(model.getSocket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Index of this CPU core + **/ + @com.fasterxml.jackson.annotation.JsonProperty("index") + private final Integer index; + + /** + * Index of this CPU core + * @return the value + **/ + public Integer getIndex() { + return index; + } + + /** + * Socket of this CPU core + **/ + @com.fasterxml.jackson.annotation.JsonProperty("socket") + private final Integer socket; + + /** + * Socket of this CPU core + * @return the value + **/ + public Integer getSocket() { + return socket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmCore("); + sb.append("super=").append(super.toString()); + sb.append("index=").append(String.valueOf(this.index)); + sb.append(", socket=").append(String.valueOf(this.socket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmCore)) { + return false; + } + + OlvmCore other = (OlvmCore) o; + return java.util.Objects.equals(this.index, other.index) + && java.util.Objects.equals(this.socket, other.socket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.index == null ? 43 : this.index.hashCode()); + result = (result * PRIME) + (this.socket == null ? 43 : this.socket.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpu.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpu.java new file mode 100644 index 00000000000..b98ffe1e2c0 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpu.java @@ -0,0 +1,504 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * CPU attributes in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmCpu.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmCpu extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "architecture", + "core", + "cpuTune", + "level", + "mode", + "name", + "speed", + "cpuTopology", + "type" + }) + public OlvmCpu( + Architecture architecture, + java.util.List core, + OlvmCpuTune cpuTune, + Integer level, + Mode mode, + String name, + Float speed, + OlvmCpuTopology cpuTopology, + String type) { + super(); + this.architecture = architecture; + this.core = core; + this.cpuTune = cpuTune; + this.level = level; + this.mode = mode; + this.name = name; + this.speed = speed; + this.cpuTopology = cpuTopology; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * CPU architecture + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private Architecture architecture; + + /** + * CPU architecture + * @param architecture the value to set + * @return this builder + **/ + public Builder architecture(Architecture architecture) { + this.architecture = architecture; + this.__explicitlySet__.add("architecture"); + return this; + } + /** + * List of cores of this CPU + **/ + @com.fasterxml.jackson.annotation.JsonProperty("core") + private java.util.List core; + + /** + * List of cores of this CPU + * @param core the value to set + * @return this builder + **/ + public Builder core(java.util.List core) { + this.core = core; + this.__explicitlySet__.add("core"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuTune") + private OlvmCpuTune cpuTune; + + public Builder cpuTune(OlvmCpuTune cpuTune) { + this.cpuTune = cpuTune; + this.__explicitlySet__.add("cpuTune"); + return this; + } + /** + * Level of this CPU + **/ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private Integer level; + + /** + * Level of this CPU + * @param level the value to set + * @return this builder + **/ + public Builder level(Integer level) { + this.level = level; + this.__explicitlySet__.add("level"); + return this; + } + /** + * CPU mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * CPU mode + * @param mode the value to set + * @return this builder + **/ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A human-readable name in plain text. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Speed of this CPU + **/ + @com.fasterxml.jackson.annotation.JsonProperty("speed") + private Float speed; + + /** + * Speed of this CPU + * @param speed the value to set + * @return this builder + **/ + public Builder speed(Float speed) { + this.speed = speed; + this.__explicitlySet__.add("speed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuTopology") + private OlvmCpuTopology cpuTopology; + + public Builder cpuTopology(OlvmCpuTopology cpuTopology) { + this.cpuTopology = cpuTopology; + this.__explicitlySet__.add("cpuTopology"); + return this; + } + /** + * CPU type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * CPU type + * @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 OlvmCpu build() { + OlvmCpu model = + new OlvmCpu( + this.architecture, + this.core, + this.cpuTune, + this.level, + this.mode, + this.name, + this.speed, + this.cpuTopology, + this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmCpu model) { + if (model.wasPropertyExplicitlySet("architecture")) { + this.architecture(model.getArchitecture()); + } + if (model.wasPropertyExplicitlySet("core")) { + this.core(model.getCore()); + } + if (model.wasPropertyExplicitlySet("cpuTune")) { + this.cpuTune(model.getCpuTune()); + } + if (model.wasPropertyExplicitlySet("level")) { + this.level(model.getLevel()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("speed")) { + this.speed(model.getSpeed()); + } + if (model.wasPropertyExplicitlySet("cpuTopology")) { + this.cpuTopology(model.getCpuTopology()); + } + 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); + } + + /** + * CPU architecture + **/ + public enum Architecture { + Aarch64("AARCH64"), + Ppc64("PPC64"), + S390X("S390X"), + Undefined("UNDEFINED"), + X8664("X86_64"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Architecture v : Architecture.values()) { + map.put(v.getValue(), v); + } + } + + Architecture(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Architecture create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Architecture: " + key); + } + }; + /** + * CPU architecture + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private final Architecture architecture; + + /** + * CPU architecture + * @return the value + **/ + public Architecture getArchitecture() { + return architecture; + } + + /** + * List of cores of this CPU + **/ + @com.fasterxml.jackson.annotation.JsonProperty("core") + private final java.util.List core; + + /** + * List of cores of this CPU + * @return the value + **/ + public java.util.List getCore() { + return core; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuTune") + private final OlvmCpuTune cpuTune; + + public OlvmCpuTune getCpuTune() { + return cpuTune; + } + + /** + * Level of this CPU + **/ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private final Integer level; + + /** + * Level of this CPU + * @return the value + **/ + public Integer getLevel() { + return level; + } + + /** + * CPU mode + **/ + public enum Mode { + Custom("CUSTOM"), + HostModel("HOST_MODEL"), + HostPassthrough("HOST_PASSTHROUGH"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + map.put(v.getValue(), v); + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Mode: " + key); + } + }; + /** + * CPU mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * CPU mode + * @return the value + **/ + public Mode getMode() { + return mode; + } + + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A human-readable name in plain text. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Speed of this CPU + **/ + @com.fasterxml.jackson.annotation.JsonProperty("speed") + private final Float speed; + + /** + * Speed of this CPU + * @return the value + **/ + public Float getSpeed() { + return speed; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuTopology") + private final OlvmCpuTopology cpuTopology; + + public OlvmCpuTopology getCpuTopology() { + return cpuTopology; + } + + /** + * CPU type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * CPU type + * @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("OlvmCpu("); + sb.append("super=").append(super.toString()); + sb.append("architecture=").append(String.valueOf(this.architecture)); + sb.append(", core=").append(String.valueOf(this.core)); + sb.append(", cpuTune=").append(String.valueOf(this.cpuTune)); + sb.append(", level=").append(String.valueOf(this.level)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", speed=").append(String.valueOf(this.speed)); + sb.append(", cpuTopology=").append(String.valueOf(this.cpuTopology)); + 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 OlvmCpu)) { + return false; + } + + OlvmCpu other = (OlvmCpu) o; + return java.util.Objects.equals(this.architecture, other.architecture) + && java.util.Objects.equals(this.core, other.core) + && java.util.Objects.equals(this.cpuTune, other.cpuTune) + && java.util.Objects.equals(this.level, other.level) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.speed, other.speed) + && java.util.Objects.equals(this.cpuTopology, other.cpuTopology) + && 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.architecture == null ? 43 : this.architecture.hashCode()); + result = (result * PRIME) + (this.core == null ? 43 : this.core.hashCode()); + result = (result * PRIME) + (this.cpuTune == null ? 43 : this.cpuTune.hashCode()); + result = (result * PRIME) + (this.level == null ? 43 : this.level.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.speed == null ? 43 : this.speed.hashCode()); + result = (result * PRIME) + (this.cpuTopology == null ? 43 : this.cpuTopology.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpuTopology.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpuTopology.java new file mode 100644 index 00000000000..fd9682ef581 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpuTopology.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * CPU Topology in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmCpuTopology.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmCpuTopology extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"cores", "sockets", "threads"}) + public OlvmCpuTopology(Integer cores, Integer sockets, Integer threads) { + super(); + this.cores = cores; + this.sockets = sockets; + this.threads = threads; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Number of cores + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cores") + private Integer cores; + + /** + * Number of cores + * @param cores the value to set + * @return this builder + **/ + public Builder cores(Integer cores) { + this.cores = cores; + this.__explicitlySet__.add("cores"); + return this; + } + /** + * Number of sockets + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sockets") + private Integer sockets; + + /** + * Number of sockets + * @param sockets the value to set + * @return this builder + **/ + public Builder sockets(Integer sockets) { + this.sockets = sockets; + this.__explicitlySet__.add("sockets"); + return this; + } + /** + * Number of threads + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threads") + private Integer threads; + + /** + * Number of threads + * @param threads the value to set + * @return this builder + **/ + public Builder threads(Integer threads) { + this.threads = threads; + this.__explicitlySet__.add("threads"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmCpuTopology build() { + OlvmCpuTopology model = new OlvmCpuTopology(this.cores, this.sockets, this.threads); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmCpuTopology model) { + if (model.wasPropertyExplicitlySet("cores")) { + this.cores(model.getCores()); + } + if (model.wasPropertyExplicitlySet("sockets")) { + this.sockets(model.getSockets()); + } + if (model.wasPropertyExplicitlySet("threads")) { + this.threads(model.getThreads()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Number of cores + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cores") + private final Integer cores; + + /** + * Number of cores + * @return the value + **/ + public Integer getCores() { + return cores; + } + + /** + * Number of sockets + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sockets") + private final Integer sockets; + + /** + * Number of sockets + * @return the value + **/ + public Integer getSockets() { + return sockets; + } + + /** + * Number of threads + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threads") + private final Integer threads; + + /** + * Number of threads + * @return the value + **/ + public Integer getThreads() { + return threads; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmCpuTopology("); + sb.append("super=").append(super.toString()); + sb.append("cores=").append(String.valueOf(this.cores)); + sb.append(", sockets=").append(String.valueOf(this.sockets)); + sb.append(", threads=").append(String.valueOf(this.threads)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmCpuTopology)) { + return false; + } + + OlvmCpuTopology other = (OlvmCpuTopology) o; + return java.util.Objects.equals(this.cores, other.cores) + && java.util.Objects.equals(this.sockets, other.sockets) + && java.util.Objects.equals(this.threads, other.threads) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.cores == null ? 43 : this.cores.hashCode()); + result = (result * PRIME) + (this.sockets == null ? 43 : this.sockets.hashCode()); + result = (result * PRIME) + (this.threads == null ? 43 : this.threads.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpuTune.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpuTune.java new file mode 100644 index 00000000000..3ab685115bd --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCpuTune.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * CPU Tune in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmCpuTune.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmCpuTune extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vcpuPin"}) + public OlvmCpuTune(java.util.List vcpuPin) { + super(); + this.vcpuPin = vcpuPin; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of vCPU Pins + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcpuPin") + private java.util.List vcpuPin; + + /** + * List of vCPU Pins + * @param vcpuPin the value to set + * @return this builder + **/ + public Builder vcpuPin(java.util.List vcpuPin) { + this.vcpuPin = vcpuPin; + this.__explicitlySet__.add("vcpuPin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmCpuTune build() { + OlvmCpuTune model = new OlvmCpuTune(this.vcpuPin); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmCpuTune model) { + if (model.wasPropertyExplicitlySet("vcpuPin")) { + this.vcpuPin(model.getVcpuPin()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of vCPU Pins + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcpuPin") + private final java.util.List vcpuPin; + + /** + * List of vCPU Pins + * @return the value + **/ + public java.util.List getVcpuPin() { + return vcpuPin; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmCpuTune("); + sb.append("super=").append(super.toString()); + sb.append("vcpuPin=").append(String.valueOf(this.vcpuPin)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmCpuTune)) { + return false; + } + + OlvmCpuTune other = (OlvmCpuTune) o; + return java.util.Objects.equals(this.vcpuPin, other.vcpuPin) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vcpuPin == null ? 43 : this.vcpuPin.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCustomProperty.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCustomProperty.java new file mode 100644 index 00000000000..92ea116769c --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmCustomProperty.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Custom properties applied to the vNIC Profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmCustomProperty.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmCustomProperty extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "regexp", "value"}) + public OlvmCustomProperty(String name, String regexp, String value) { + super(); + this.name = name; + this.regexp = regexp; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Property name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Property name + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * A regular expression defining the available values a custom property can get. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("regexp") + private String regexp; + + /** + * A regular expression defining the available values a custom property can get. + * @param regexp the value to set + * @return this builder + **/ + public Builder regexp(String regexp) { + this.regexp = regexp; + this.__explicitlySet__.add("regexp"); + return this; + } + /** + * Property value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Property value + * @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 OlvmCustomProperty build() { + OlvmCustomProperty model = new OlvmCustomProperty(this.name, this.regexp, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmCustomProperty model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("regexp")) { + this.regexp(model.getRegexp()); + } + 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); + } + + /** + * Property name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Property name + * @return the value + **/ + public String getName() { + return name; + } + + /** + * A regular expression defining the available values a custom property can get. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("regexp") + private final String regexp; + + /** + * A regular expression defining the available values a custom property can get. + * @return the value + **/ + public String getRegexp() { + return regexp; + } + + /** + * Property value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Property value + * @return the value + **/ + public String 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("OlvmCustomProperty("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", regexp=").append(String.valueOf(this.regexp)); + 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 OlvmCustomProperty)) { + return false; + } + + OlvmCustomProperty other = (OlvmCustomProperty) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.regexp, other.regexp) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.regexp == null ? 43 : this.regexp.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDataCenter.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDataCenter.java new file mode 100644 index 00000000000..176aaa1f035 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDataCenter.java @@ -0,0 +1,605 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * An OLVM Data Center. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmDataCenter.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmDataCenter extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "comment", + "description", + "id", + "name", + "isLocal", + "quotaModeType", + "dataCenterStatus", + "storageFormat", + "supportedVersions", + "version" + }) + public OlvmDataCenter( + String comment, + String description, + String id, + String name, + Boolean isLocal, + QuotaModeType quotaModeType, + DataCenterStatus dataCenterStatus, + StorageFormat storageFormat, + java.util.List supportedVersions, + OlvmVersion version) { + super(); + this.comment = comment; + this.description = description; + this.id = id; + this.name = name; + this.isLocal = isLocal; + this.quotaModeType = quotaModeType; + this.dataCenterStatus = dataCenterStatus; + this.storageFormat = storageFormat; + this.supportedVersions = supportedVersions; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A human-readable name in plain text. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Whether the data center is local. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocal") + private Boolean isLocal; + + /** + * Whether the data center is local. + * @param isLocal the value to set + * @return this builder + **/ + public Builder isLocal(Boolean isLocal) { + this.isLocal = isLocal; + this.__explicitlySet__.add("isLocal"); + return this; + } + /** + * The type of quota mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("quotaModeType") + private QuotaModeType quotaModeType; + + /** + * The type of quota mode + * @param quotaModeType the value to set + * @return this builder + **/ + public Builder quotaModeType(QuotaModeType quotaModeType) { + this.quotaModeType = quotaModeType; + this.__explicitlySet__.add("quotaModeType"); + return this; + } + /** + * The status of data center + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataCenterStatus") + private DataCenterStatus dataCenterStatus; + + /** + * The status of data center + * @param dataCenterStatus the value to set + * @return this builder + **/ + public Builder dataCenterStatus(DataCenterStatus dataCenterStatus) { + this.dataCenterStatus = dataCenterStatus; + this.__explicitlySet__.add("dataCenterStatus"); + return this; + } + /** + * Type which represents a format of storage domain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageFormat") + private StorageFormat storageFormat; + + /** + * Type which represents a format of storage domain + * @param storageFormat the value to set + * @return this builder + **/ + public Builder storageFormat(StorageFormat storageFormat) { + this.storageFormat = storageFormat; + this.__explicitlySet__.add("storageFormat"); + return this; + } + /** + * List of supported versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedVersions") + private java.util.List supportedVersions; + + /** + * List of supported versions. + * @param supportedVersions the value to set + * @return this builder + **/ + public Builder supportedVersions(java.util.List supportedVersions) { + this.supportedVersions = supportedVersions; + this.__explicitlySet__.add("supportedVersions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private OlvmVersion version; + + public Builder version(OlvmVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmDataCenter build() { + OlvmDataCenter model = + new OlvmDataCenter( + this.comment, + this.description, + this.id, + this.name, + this.isLocal, + this.quotaModeType, + this.dataCenterStatus, + this.storageFormat, + this.supportedVersions, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmDataCenter model) { + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("isLocal")) { + this.isLocal(model.getIsLocal()); + } + if (model.wasPropertyExplicitlySet("quotaModeType")) { + this.quotaModeType(model.getQuotaModeType()); + } + if (model.wasPropertyExplicitlySet("dataCenterStatus")) { + this.dataCenterStatus(model.getDataCenterStatus()); + } + if (model.wasPropertyExplicitlySet("storageFormat")) { + this.storageFormat(model.getStorageFormat()); + } + if (model.wasPropertyExplicitlySet("supportedVersions")) { + this.supportedVersions(model.getSupportedVersions()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A human-readable name in plain text. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Whether the data center is local. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocal") + private final Boolean isLocal; + + /** + * Whether the data center is local. + * @return the value + **/ + public Boolean getIsLocal() { + return isLocal; + } + + /** + * The type of quota mode + **/ + public enum QuotaModeType { + Audit("AUDIT"), + Disabled("DISABLED"), + Enabled("ENABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (QuotaModeType v : QuotaModeType.values()) { + map.put(v.getValue(), v); + } + } + + QuotaModeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static QuotaModeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid QuotaModeType: " + key); + } + }; + /** + * The type of quota mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("quotaModeType") + private final QuotaModeType quotaModeType; + + /** + * The type of quota mode + * @return the value + **/ + public QuotaModeType getQuotaModeType() { + return quotaModeType; + } + + /** + * The status of data center + **/ + public enum DataCenterStatus { + Contend("CONTEND"), + Maintenance("MAINTENANCE"), + NotOperational("NOT_OPERATIONAL"), + Problematic("PROBLEMATIC"), + Uninitialized("UNINITIALIZED"), + Up("UP"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DataCenterStatus v : DataCenterStatus.values()) { + map.put(v.getValue(), v); + } + } + + DataCenterStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DataCenterStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DataCenterStatus: " + key); + } + }; + /** + * The status of data center + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataCenterStatus") + private final DataCenterStatus dataCenterStatus; + + /** + * The status of data center + * @return the value + **/ + public DataCenterStatus getDataCenterStatus() { + return dataCenterStatus; + } + + /** + * Type which represents a format of storage domain + **/ + public enum StorageFormat { + V1("V1"), + V2("V2"), + V3("V3"), + V4("V4"), + V5("V5"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageFormat v : StorageFormat.values()) { + map.put(v.getValue(), v); + } + } + + StorageFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageFormat: " + key); + } + }; + /** + * Type which represents a format of storage domain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageFormat") + private final StorageFormat storageFormat; + + /** + * Type which represents a format of storage domain + * @return the value + **/ + public StorageFormat getStorageFormat() { + return storageFormat; + } + + /** + * List of supported versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedVersions") + private final java.util.List supportedVersions; + + /** + * List of supported versions. + * @return the value + **/ + public java.util.List getSupportedVersions() { + return supportedVersions; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmVersion version; + + public OlvmVersion getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmDataCenter("); + sb.append("super=").append(super.toString()); + sb.append("comment=").append(String.valueOf(this.comment)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", isLocal=").append(String.valueOf(this.isLocal)); + sb.append(", quotaModeType=").append(String.valueOf(this.quotaModeType)); + sb.append(", dataCenterStatus=").append(String.valueOf(this.dataCenterStatus)); + sb.append(", storageFormat=").append(String.valueOf(this.storageFormat)); + sb.append(", supportedVersions=").append(String.valueOf(this.supportedVersions)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmDataCenter)) { + return false; + } + + OlvmDataCenter other = (OlvmDataCenter) o; + return java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.isLocal, other.isLocal) + && java.util.Objects.equals(this.quotaModeType, other.quotaModeType) + && java.util.Objects.equals(this.dataCenterStatus, other.dataCenterStatus) + && java.util.Objects.equals(this.storageFormat, other.storageFormat) + && java.util.Objects.equals(this.supportedVersions, other.supportedVersions) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.isLocal == null ? 43 : this.isLocal.hashCode()); + result = + (result * PRIME) + + (this.quotaModeType == null ? 43 : this.quotaModeType.hashCode()); + result = + (result * PRIME) + + (this.dataCenterStatus == null ? 43 : this.dataCenterStatus.hashCode()); + result = + (result * PRIME) + + (this.storageFormat == null ? 43 : this.storageFormat.hashCode()); + result = + (result * PRIME) + + (this.supportedVersions == null ? 43 : this.supportedVersions.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDisplay.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDisplay.java new file mode 100644 index 00000000000..f892773abaa --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDisplay.java @@ -0,0 +1,701 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Display object in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmDisplay.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmDisplay extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "address", + "isAllowOverride", + "certificate", + "isCopyPasteEnabled", + "disconnectAction", + "disconnectActionDelayInMinutes", + "isFileTransferEnabled", + "keyboardLayout", + "monitors", + "port", + "proxy", + "securePort", + "isSingleQxlPci", + "displayType" + }) + public OlvmDisplay( + String address, + Boolean isAllowOverride, + OlvmCertificate certificate, + Boolean isCopyPasteEnabled, + String disconnectAction, + Integer disconnectActionDelayInMinutes, + Boolean isFileTransferEnabled, + String keyboardLayout, + Integer monitors, + Integer port, + String proxy, + Integer securePort, + Boolean isSingleQxlPci, + DisplayType displayType) { + super(); + this.address = address; + this.isAllowOverride = isAllowOverride; + this.certificate = certificate; + this.isCopyPasteEnabled = isCopyPasteEnabled; + this.disconnectAction = disconnectAction; + this.disconnectActionDelayInMinutes = disconnectActionDelayInMinutes; + this.isFileTransferEnabled = isFileTransferEnabled; + this.keyboardLayout = keyboardLayout; + this.monitors = monitors; + this.port = port; + this.proxy = proxy; + this.securePort = securePort; + this.isSingleQxlPci = isSingleQxlPci; + this.displayType = displayType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The IP address of the guest to connect the graphic console client to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * The IP address of the guest to connect the graphic console client to. + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * Indicates if to override the display address per host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAllowOverride") + private Boolean isAllowOverride; + + /** + * Indicates if to override the display address per host. + * @param isAllowOverride the value to set + * @return this builder + **/ + public Builder isAllowOverride(Boolean isAllowOverride) { + this.isAllowOverride = isAllowOverride; + this.__explicitlySet__.add("isAllowOverride"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificate") + private OlvmCertificate certificate; + + public Builder certificate(OlvmCertificate certificate) { + this.certificate = certificate; + this.__explicitlySet__.add("certificate"); + return this; + } + /** + * Indicates whether a user is able to copy and paste content from an external host into the graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCopyPasteEnabled") + private Boolean isCopyPasteEnabled; + + /** + * Indicates whether a user is able to copy and paste content from an external host into the graphic console. + * @param isCopyPasteEnabled the value to set + * @return this builder + **/ + public Builder isCopyPasteEnabled(Boolean isCopyPasteEnabled) { + this.isCopyPasteEnabled = isCopyPasteEnabled; + this.__explicitlySet__.add("isCopyPasteEnabled"); + return this; + } + /** + * Returns the action that will take place when the graphic console is disconnected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disconnectAction") + private String disconnectAction; + + /** + * Returns the action that will take place when the graphic console is disconnected. + * @param disconnectAction the value to set + * @return this builder + **/ + public Builder disconnectAction(String disconnectAction) { + this.disconnectAction = disconnectAction; + this.__explicitlySet__.add("disconnectAction"); + return this; + } + /** + * Delay (in minutes) before the graphic console disconnect action is carried out. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disconnectActionDelayInMinutes") + private Integer disconnectActionDelayInMinutes; + + /** + * Delay (in minutes) before the graphic console disconnect action is carried out. + * @param disconnectActionDelayInMinutes the value to set + * @return this builder + **/ + public Builder disconnectActionDelayInMinutes(Integer disconnectActionDelayInMinutes) { + this.disconnectActionDelayInMinutes = disconnectActionDelayInMinutes; + this.__explicitlySet__.add("disconnectActionDelayInMinutes"); + return this; + } + /** + * Indicates if a user is able to drag and drop files from an external host into the graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isFileTransferEnabled") + private Boolean isFileTransferEnabled; + + /** + * Indicates if a user is able to drag and drop files from an external host into the graphic console. + * @param isFileTransferEnabled the value to set + * @return this builder + **/ + public Builder isFileTransferEnabled(Boolean isFileTransferEnabled) { + this.isFileTransferEnabled = isFileTransferEnabled; + this.__explicitlySet__.add("isFileTransferEnabled"); + return this; + } + /** + * The keyboard layout to use with this graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyboardLayout") + private String keyboardLayout; + + /** + * The keyboard layout to use with this graphic console. + * @param keyboardLayout the value to set + * @return this builder + **/ + public Builder keyboardLayout(String keyboardLayout) { + this.keyboardLayout = keyboardLayout; + this.__explicitlySet__.add("keyboardLayout"); + return this; + } + /** + * The number of monitors opened for this graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("monitors") + private Integer monitors; + + /** + * The number of monitors opened for this graphic console. + * @param monitors the value to set + * @return this builder + **/ + public Builder monitors(Integer monitors) { + this.monitors = monitors; + this.__explicitlySet__.add("monitors"); + return this; + } + /** + * The port address on the guest to connect the graphic console client to + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port address on the guest to connect the graphic console client to + * @param port the value to set + * @return this builder + **/ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** + * The proxy IP which will be used by the graphic console client to connect to the guest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxy") + private String proxy; + + /** + * The proxy IP which will be used by the graphic console client to connect to the guest. + * @param proxy the value to set + * @return this builder + **/ + public Builder proxy(String proxy) { + this.proxy = proxy; + this.__explicitlySet__.add("proxy"); + return this; + } + /** + * The secured port address on the guest, in case of using TLS, to connect the graphic console client to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securePort") + private Integer securePort; + + /** + * The secured port address on the guest, in case of using TLS, to connect the graphic console client to. + * @param securePort the value to set + * @return this builder + **/ + public Builder securePort(Integer securePort) { + this.securePort = securePort; + this.__explicitlySet__.add("securePort"); + return this; + } + /** + * The engine now sets it automatically according to the operating system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleQxlPci") + private Boolean isSingleQxlPci; + + /** + * The engine now sets it automatically according to the operating system. + * @param isSingleQxlPci the value to set + * @return this builder + **/ + public Builder isSingleQxlPci(Boolean isSingleQxlPci) { + this.isSingleQxlPci = isSingleQxlPci; + this.__explicitlySet__.add("isSingleQxlPci"); + return this; + } + /** + * The graphic console protocol type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayType") + private DisplayType displayType; + + /** + * The graphic console protocol type. + * @param displayType the value to set + * @return this builder + **/ + public Builder displayType(DisplayType displayType) { + this.displayType = displayType; + this.__explicitlySet__.add("displayType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmDisplay build() { + OlvmDisplay model = + new OlvmDisplay( + this.address, + this.isAllowOverride, + this.certificate, + this.isCopyPasteEnabled, + this.disconnectAction, + this.disconnectActionDelayInMinutes, + this.isFileTransferEnabled, + this.keyboardLayout, + this.monitors, + this.port, + this.proxy, + this.securePort, + this.isSingleQxlPci, + this.displayType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmDisplay model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("isAllowOverride")) { + this.isAllowOverride(model.getIsAllowOverride()); + } + if (model.wasPropertyExplicitlySet("certificate")) { + this.certificate(model.getCertificate()); + } + if (model.wasPropertyExplicitlySet("isCopyPasteEnabled")) { + this.isCopyPasteEnabled(model.getIsCopyPasteEnabled()); + } + if (model.wasPropertyExplicitlySet("disconnectAction")) { + this.disconnectAction(model.getDisconnectAction()); + } + if (model.wasPropertyExplicitlySet("disconnectActionDelayInMinutes")) { + this.disconnectActionDelayInMinutes(model.getDisconnectActionDelayInMinutes()); + } + if (model.wasPropertyExplicitlySet("isFileTransferEnabled")) { + this.isFileTransferEnabled(model.getIsFileTransferEnabled()); + } + if (model.wasPropertyExplicitlySet("keyboardLayout")) { + this.keyboardLayout(model.getKeyboardLayout()); + } + if (model.wasPropertyExplicitlySet("monitors")) { + this.monitors(model.getMonitors()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("proxy")) { + this.proxy(model.getProxy()); + } + if (model.wasPropertyExplicitlySet("securePort")) { + this.securePort(model.getSecurePort()); + } + if (model.wasPropertyExplicitlySet("isSingleQxlPci")) { + this.isSingleQxlPci(model.getIsSingleQxlPci()); + } + if (model.wasPropertyExplicitlySet("displayType")) { + this.displayType(model.getDisplayType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The IP address of the guest to connect the graphic console client to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * The IP address of the guest to connect the graphic console client to. + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * Indicates if to override the display address per host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAllowOverride") + private final Boolean isAllowOverride; + + /** + * Indicates if to override the display address per host. + * @return the value + **/ + public Boolean getIsAllowOverride() { + return isAllowOverride; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificate") + private final OlvmCertificate certificate; + + public OlvmCertificate getCertificate() { + return certificate; + } + + /** + * Indicates whether a user is able to copy and paste content from an external host into the graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCopyPasteEnabled") + private final Boolean isCopyPasteEnabled; + + /** + * Indicates whether a user is able to copy and paste content from an external host into the graphic console. + * @return the value + **/ + public Boolean getIsCopyPasteEnabled() { + return isCopyPasteEnabled; + } + + /** + * Returns the action that will take place when the graphic console is disconnected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disconnectAction") + private final String disconnectAction; + + /** + * Returns the action that will take place when the graphic console is disconnected. + * @return the value + **/ + public String getDisconnectAction() { + return disconnectAction; + } + + /** + * Delay (in minutes) before the graphic console disconnect action is carried out. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disconnectActionDelayInMinutes") + private final Integer disconnectActionDelayInMinutes; + + /** + * Delay (in minutes) before the graphic console disconnect action is carried out. + * @return the value + **/ + public Integer getDisconnectActionDelayInMinutes() { + return disconnectActionDelayInMinutes; + } + + /** + * Indicates if a user is able to drag and drop files from an external host into the graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isFileTransferEnabled") + private final Boolean isFileTransferEnabled; + + /** + * Indicates if a user is able to drag and drop files from an external host into the graphic console. + * @return the value + **/ + public Boolean getIsFileTransferEnabled() { + return isFileTransferEnabled; + } + + /** + * The keyboard layout to use with this graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyboardLayout") + private final String keyboardLayout; + + /** + * The keyboard layout to use with this graphic console. + * @return the value + **/ + public String getKeyboardLayout() { + return keyboardLayout; + } + + /** + * The number of monitors opened for this graphic console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("monitors") + private final Integer monitors; + + /** + * The number of monitors opened for this graphic console. + * @return the value + **/ + public Integer getMonitors() { + return monitors; + } + + /** + * The port address on the guest to connect the graphic console client to + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port address on the guest to connect the graphic console client to + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * The proxy IP which will be used by the graphic console client to connect to the guest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxy") + private final String proxy; + + /** + * The proxy IP which will be used by the graphic console client to connect to the guest. + * @return the value + **/ + public String getProxy() { + return proxy; + } + + /** + * The secured port address on the guest, in case of using TLS, to connect the graphic console client to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securePort") + private final Integer securePort; + + /** + * The secured port address on the guest, in case of using TLS, to connect the graphic console client to. + * @return the value + **/ + public Integer getSecurePort() { + return securePort; + } + + /** + * The engine now sets it automatically according to the operating system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleQxlPci") + private final Boolean isSingleQxlPci; + + /** + * The engine now sets it automatically according to the operating system. + * @return the value + **/ + public Boolean getIsSingleQxlPci() { + return isSingleQxlPci; + } + + /** + * The graphic console protocol type. + **/ + public enum DisplayType { + Spice("SPICE"), + Vnc("VNC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DisplayType v : DisplayType.values()) { + map.put(v.getValue(), v); + } + } + + DisplayType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DisplayType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DisplayType: " + key); + } + }; + /** + * The graphic console protocol type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayType") + private final DisplayType displayType; + + /** + * The graphic console protocol type. + * @return the value + **/ + public DisplayType getDisplayType() { + return displayType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmDisplay("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", isAllowOverride=").append(String.valueOf(this.isAllowOverride)); + sb.append(", certificate=").append(String.valueOf(this.certificate)); + sb.append(", isCopyPasteEnabled=").append(String.valueOf(this.isCopyPasteEnabled)); + sb.append(", disconnectAction=").append(String.valueOf(this.disconnectAction)); + sb.append(", disconnectActionDelayInMinutes=") + .append(String.valueOf(this.disconnectActionDelayInMinutes)); + sb.append(", isFileTransferEnabled=").append(String.valueOf(this.isFileTransferEnabled)); + sb.append(", keyboardLayout=").append(String.valueOf(this.keyboardLayout)); + sb.append(", monitors=").append(String.valueOf(this.monitors)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", proxy=").append(String.valueOf(this.proxy)); + sb.append(", securePort=").append(String.valueOf(this.securePort)); + sb.append(", isSingleQxlPci=").append(String.valueOf(this.isSingleQxlPci)); + sb.append(", displayType=").append(String.valueOf(this.displayType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmDisplay)) { + return false; + } + + OlvmDisplay other = (OlvmDisplay) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.isAllowOverride, other.isAllowOverride) + && java.util.Objects.equals(this.certificate, other.certificate) + && java.util.Objects.equals(this.isCopyPasteEnabled, other.isCopyPasteEnabled) + && java.util.Objects.equals(this.disconnectAction, other.disconnectAction) + && java.util.Objects.equals( + this.disconnectActionDelayInMinutes, other.disconnectActionDelayInMinutes) + && java.util.Objects.equals(this.isFileTransferEnabled, other.isFileTransferEnabled) + && java.util.Objects.equals(this.keyboardLayout, other.keyboardLayout) + && java.util.Objects.equals(this.monitors, other.monitors) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.proxy, other.proxy) + && java.util.Objects.equals(this.securePort, other.securePort) + && java.util.Objects.equals(this.isSingleQxlPci, other.isSingleQxlPci) + && java.util.Objects.equals(this.displayType, other.displayType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = + (result * PRIME) + + (this.isAllowOverride == null ? 43 : this.isAllowOverride.hashCode()); + result = (result * PRIME) + (this.certificate == null ? 43 : this.certificate.hashCode()); + result = + (result * PRIME) + + (this.isCopyPasteEnabled == null + ? 43 + : this.isCopyPasteEnabled.hashCode()); + result = + (result * PRIME) + + (this.disconnectAction == null ? 43 : this.disconnectAction.hashCode()); + result = + (result * PRIME) + + (this.disconnectActionDelayInMinutes == null + ? 43 + : this.disconnectActionDelayInMinutes.hashCode()); + result = + (result * PRIME) + + (this.isFileTransferEnabled == null + ? 43 + : this.isFileTransferEnabled.hashCode()); + result = + (result * PRIME) + + (this.keyboardLayout == null ? 43 : this.keyboardLayout.hashCode()); + result = (result * PRIME) + (this.monitors == null ? 43 : this.monitors.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.proxy == null ? 43 : this.proxy.hashCode()); + result = (result * PRIME) + (this.securePort == null ? 43 : this.securePort.hashCode()); + result = + (result * PRIME) + + (this.isSingleQxlPci == null ? 43 : this.isSingleQxlPci.hashCode()); + result = (result * PRIME) + (this.displayType == null ? 43 : this.displayType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDomain.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDomain.java new file mode 100644 index 00000000000..1a30751e209 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmDomain.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * This type represents a directory service domain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmDomain.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmDomain extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"comment", "description", "id", "name"}) + public OlvmDomain(String comment, String description, String id, String name) { + super(); + this.comment = comment; + this.description = description; + this.id = id; + this.name = name; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the property. + * @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 OlvmDomain build() { + OlvmDomain model = new OlvmDomain(this.comment, this.description, this.id, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmDomain model) { + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + 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); + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the property. + * @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("OlvmDomain("); + sb.append("super=").append(super.toString()); + sb.append("comment=").append(String.valueOf(this.comment)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", id=").append(String.valueOf(this.id)); + 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 OlvmDomain)) { + return false; + } + + OlvmDomain other = (OlvmDomain) o; + return java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmErrorHandling.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmErrorHandling.java new file mode 100644 index 00000000000..5a20989d190 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmErrorHandling.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Error Handling in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmErrorHandling.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmErrorHandling extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"onError"}) + public OlvmErrorHandling(OnError onError) { + super(); + this.onError = onError; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Migrate on error + **/ + @com.fasterxml.jackson.annotation.JsonProperty("onError") + private OnError onError; + + /** + * Migrate on error + * @param onError the value to set + * @return this builder + **/ + public Builder onError(OnError onError) { + this.onError = onError; + this.__explicitlySet__.add("onError"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmErrorHandling build() { + OlvmErrorHandling model = new OlvmErrorHandling(this.onError); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmErrorHandling model) { + if (model.wasPropertyExplicitlySet("onError")) { + this.onError(model.getOnError()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Migrate on error + **/ + public enum OnError { + DoNotMigrate("DO_NOT_MIGRATE"), + Migrate("MIGRATE"), + MigrateHighlyAvailable("MIGRATE_HIGHLY_AVAILABLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OnError v : OnError.values()) { + map.put(v.getValue(), v); + } + } + + OnError(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OnError create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OnError: " + key); + } + }; + /** + * Migrate on error + **/ + @com.fasterxml.jackson.annotation.JsonProperty("onError") + private final OnError onError; + + /** + * Migrate on error + * @return the value + **/ + public OnError getOnError() { + return onError; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmErrorHandling("); + sb.append("super=").append(super.toString()); + sb.append("onError=").append(String.valueOf(this.onError)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmErrorHandling)) { + return false; + } + + OlvmErrorHandling other = (OlvmErrorHandling) o; + return java.util.Objects.equals(this.onError, other.onError) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.onError == null ? 43 : this.onError.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmFencingPolicy.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmFencingPolicy.java new file mode 100644 index 00000000000..023c01afbcc --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmFencingPolicy.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents a cluster fencing policy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmFencingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmFencingPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "skipIfConnectivityBroken", + "isSkipIfGlusterBricksUp", + "isSkipIfGlusterQuorumNotMet", + "skipIfSdActive" + }) + public OlvmFencingPolicy( + Boolean isEnabled, + SkipIfConnectivityBroken skipIfConnectivityBroken, + Boolean isSkipIfGlusterBricksUp, + Boolean isSkipIfGlusterQuorumNotMet, + SkipIfSdActive skipIfSdActive) { + super(); + this.isEnabled = isEnabled; + this.skipIfConnectivityBroken = skipIfConnectivityBroken; + this.isSkipIfGlusterBricksUp = isSkipIfGlusterBricksUp; + this.isSkipIfGlusterQuorumNotMet = isSkipIfGlusterQuorumNotMet; + this.skipIfSdActive = skipIfSdActive; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable or disable fencing on this cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Enable or disable fencing on this cluster. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("skipIfConnectivityBroken") + private SkipIfConnectivityBroken skipIfConnectivityBroken; + + public Builder skipIfConnectivityBroken(SkipIfConnectivityBroken skipIfConnectivityBroken) { + this.skipIfConnectivityBroken = skipIfConnectivityBroken; + this.__explicitlySet__.add("skipIfConnectivityBroken"); + return this; + } + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running in the host being fenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipIfGlusterBricksUp") + private Boolean isSkipIfGlusterBricksUp; + + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running in the host being fenced. + * @param isSkipIfGlusterBricksUp the value to set + * @return this builder + **/ + public Builder isSkipIfGlusterBricksUp(Boolean isSkipIfGlusterBricksUp) { + this.isSkipIfGlusterBricksUp = isSkipIfGlusterBricksUp; + this.__explicitlySet__.add("isSkipIfGlusterBricksUp"); + return this; + } + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running and Gluster quorum will not be met without those bricks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipIfGlusterQuorumNotMet") + private Boolean isSkipIfGlusterQuorumNotMet; + + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running and Gluster quorum will not be met without those bricks. + * @param isSkipIfGlusterQuorumNotMet the value to set + * @return this builder + **/ + public Builder isSkipIfGlusterQuorumNotMet(Boolean isSkipIfGlusterQuorumNotMet) { + this.isSkipIfGlusterQuorumNotMet = isSkipIfGlusterQuorumNotMet; + this.__explicitlySet__.add("isSkipIfGlusterQuorumNotMet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("skipIfSdActive") + private SkipIfSdActive skipIfSdActive; + + public Builder skipIfSdActive(SkipIfSdActive skipIfSdActive) { + this.skipIfSdActive = skipIfSdActive; + this.__explicitlySet__.add("skipIfSdActive"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmFencingPolicy build() { + OlvmFencingPolicy model = + new OlvmFencingPolicy( + this.isEnabled, + this.skipIfConnectivityBroken, + this.isSkipIfGlusterBricksUp, + this.isSkipIfGlusterQuorumNotMet, + this.skipIfSdActive); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmFencingPolicy model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("skipIfConnectivityBroken")) { + this.skipIfConnectivityBroken(model.getSkipIfConnectivityBroken()); + } + if (model.wasPropertyExplicitlySet("isSkipIfGlusterBricksUp")) { + this.isSkipIfGlusterBricksUp(model.getIsSkipIfGlusterBricksUp()); + } + if (model.wasPropertyExplicitlySet("isSkipIfGlusterQuorumNotMet")) { + this.isSkipIfGlusterQuorumNotMet(model.getIsSkipIfGlusterQuorumNotMet()); + } + if (model.wasPropertyExplicitlySet("skipIfSdActive")) { + this.skipIfSdActive(model.getSkipIfSdActive()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable or disable fencing on this cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Enable or disable fencing on this cluster. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("skipIfConnectivityBroken") + private final SkipIfConnectivityBroken skipIfConnectivityBroken; + + public SkipIfConnectivityBroken getSkipIfConnectivityBroken() { + return skipIfConnectivityBroken; + } + + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running in the host being fenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipIfGlusterBricksUp") + private final Boolean isSkipIfGlusterBricksUp; + + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running in the host being fenced. + * @return the value + **/ + public Boolean getIsSkipIfGlusterBricksUp() { + return isSkipIfGlusterBricksUp; + } + + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running and Gluster quorum will not be met without those bricks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipIfGlusterQuorumNotMet") + private final Boolean isSkipIfGlusterQuorumNotMet; + + /** + * A flag indicating if fencing should be skipped if Gluster bricks are up and running and Gluster quorum will not be met without those bricks. + * @return the value + **/ + public Boolean getIsSkipIfGlusterQuorumNotMet() { + return isSkipIfGlusterQuorumNotMet; + } + + @com.fasterxml.jackson.annotation.JsonProperty("skipIfSdActive") + private final SkipIfSdActive skipIfSdActive; + + public SkipIfSdActive getSkipIfSdActive() { + return skipIfSdActive; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmFencingPolicy("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", skipIfConnectivityBroken=") + .append(String.valueOf(this.skipIfConnectivityBroken)); + sb.append(", isSkipIfGlusterBricksUp=") + .append(String.valueOf(this.isSkipIfGlusterBricksUp)); + sb.append(", isSkipIfGlusterQuorumNotMet=") + .append(String.valueOf(this.isSkipIfGlusterQuorumNotMet)); + sb.append(", skipIfSdActive=").append(String.valueOf(this.skipIfSdActive)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmFencingPolicy)) { + return false; + } + + OlvmFencingPolicy other = (OlvmFencingPolicy) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals( + this.skipIfConnectivityBroken, other.skipIfConnectivityBroken) + && java.util.Objects.equals( + this.isSkipIfGlusterBricksUp, other.isSkipIfGlusterBricksUp) + && java.util.Objects.equals( + this.isSkipIfGlusterQuorumNotMet, other.isSkipIfGlusterQuorumNotMet) + && java.util.Objects.equals(this.skipIfSdActive, other.skipIfSdActive) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.skipIfConnectivityBroken == null + ? 43 + : this.skipIfConnectivityBroken.hashCode()); + result = + (result * PRIME) + + (this.isSkipIfGlusterBricksUp == null + ? 43 + : this.isSkipIfGlusterBricksUp.hashCode()); + result = + (result * PRIME) + + (this.isSkipIfGlusterQuorumNotMet == null + ? 43 + : this.isSkipIfGlusterQuorumNotMet.hashCode()); + result = + (result * PRIME) + + (this.skipIfSdActive == null ? 43 : this.skipIfSdActive.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmGuestOperatingSystem.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmGuestOperatingSystem.java new file mode 100644 index 00000000000..41309987fa3 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmGuestOperatingSystem.java @@ -0,0 +1,313 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents an operating system installed on the virtual machine. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmGuestOperatingSystem.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmGuestOperatingSystem + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "architecture", + "codename", + "distribution", + "family", + "kernel", + "version" + }) + public OlvmGuestOperatingSystem( + String architecture, + String codename, + String distribution, + String family, + OlvmKernel kernel, + OlvmVersion version) { + super(); + this.architecture = architecture; + this.codename = codename; + this.distribution = distribution; + this.family = family; + this.kernel = kernel; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The architecture of the operating system, such as x86_64. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private String architecture; + + /** + * The architecture of the operating system, such as x86_64. + * @param architecture the value to set + * @return this builder + **/ + public Builder architecture(String architecture) { + this.architecture = architecture; + this.__explicitlySet__.add("architecture"); + return this; + } + /** + * Code name of the operating system, such as Maipo. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("codename") + private String codename; + + /** + * Code name of the operating system, such as Maipo. + * @param codename the value to set + * @return this builder + **/ + public Builder codename(String codename) { + this.codename = codename; + this.__explicitlySet__.add("codename"); + return this; + } + /** + * Full name of operating system distribution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distribution") + private String distribution; + + /** + * Full name of operating system distribution. + * @param distribution the value to set + * @return this builder + **/ + public Builder distribution(String distribution) { + this.distribution = distribution; + this.__explicitlySet__.add("distribution"); + return this; + } + /** + * Family of operating system, such as Linux. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("family") + private String family; + + /** + * Family of operating system, such as Linux. + * @param family the value to set + * @return this builder + **/ + public Builder family(String family) { + this.family = family; + this.__explicitlySet__.add("family"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("kernel") + private OlvmKernel kernel; + + public Builder kernel(OlvmKernel kernel) { + this.kernel = kernel; + this.__explicitlySet__.add("kernel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private OlvmVersion version; + + public Builder version(OlvmVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmGuestOperatingSystem build() { + OlvmGuestOperatingSystem model = + new OlvmGuestOperatingSystem( + this.architecture, + this.codename, + this.distribution, + this.family, + this.kernel, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmGuestOperatingSystem model) { + if (model.wasPropertyExplicitlySet("architecture")) { + this.architecture(model.getArchitecture()); + } + if (model.wasPropertyExplicitlySet("codename")) { + this.codename(model.getCodename()); + } + if (model.wasPropertyExplicitlySet("distribution")) { + this.distribution(model.getDistribution()); + } + if (model.wasPropertyExplicitlySet("family")) { + this.family(model.getFamily()); + } + if (model.wasPropertyExplicitlySet("kernel")) { + this.kernel(model.getKernel()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The architecture of the operating system, such as x86_64. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architecture") + private final String architecture; + + /** + * The architecture of the operating system, such as x86_64. + * @return the value + **/ + public String getArchitecture() { + return architecture; + } + + /** + * Code name of the operating system, such as Maipo. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("codename") + private final String codename; + + /** + * Code name of the operating system, such as Maipo. + * @return the value + **/ + public String getCodename() { + return codename; + } + + /** + * Full name of operating system distribution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distribution") + private final String distribution; + + /** + * Full name of operating system distribution. + * @return the value + **/ + public String getDistribution() { + return distribution; + } + + /** + * Family of operating system, such as Linux. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("family") + private final String family; + + /** + * Family of operating system, such as Linux. + * @return the value + **/ + public String getFamily() { + return family; + } + + @com.fasterxml.jackson.annotation.JsonProperty("kernel") + private final OlvmKernel kernel; + + public OlvmKernel getKernel() { + return kernel; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmVersion version; + + public OlvmVersion getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmGuestOperatingSystem("); + sb.append("super=").append(super.toString()); + sb.append("architecture=").append(String.valueOf(this.architecture)); + sb.append(", codename=").append(String.valueOf(this.codename)); + sb.append(", distribution=").append(String.valueOf(this.distribution)); + sb.append(", family=").append(String.valueOf(this.family)); + sb.append(", kernel=").append(String.valueOf(this.kernel)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmGuestOperatingSystem)) { + return false; + } + + OlvmGuestOperatingSystem other = (OlvmGuestOperatingSystem) o; + return java.util.Objects.equals(this.architecture, other.architecture) + && java.util.Objects.equals(this.codename, other.codename) + && java.util.Objects.equals(this.distribution, other.distribution) + && java.util.Objects.equals(this.family, other.family) + && java.util.Objects.equals(this.kernel, other.kernel) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.architecture == null ? 43 : this.architecture.hashCode()); + result = (result * PRIME) + (this.codename == null ? 43 : this.codename.hashCode()); + result = (result * PRIME) + (this.distribution == null ? 43 : this.distribution.hashCode()); + result = (result * PRIME) + (this.family == null ? 43 : this.family.hashCode()); + result = (result * PRIME) + (this.kernel == null ? 43 : this.kernel.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHardwareInformation.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHardwareInformation.java new file mode 100644 index 00000000000..ee4be4cf89e --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHardwareInformation.java @@ -0,0 +1,385 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents hardware information of 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmHardwareInformation.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmHardwareInformation + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "family", + "manufacturer", + "productName", + "serialNumber", + "supportedRngSources", + "uuid", + "version" + }) + public OlvmHardwareInformation( + String family, + String manufacturer, + String productName, + String serialNumber, + java.util.List supportedRngSources, + String uuid, + String version) { + super(); + this.family = family; + this.manufacturer = manufacturer; + this.productName = productName; + this.serialNumber = serialNumber; + this.supportedRngSources = supportedRngSources; + this.uuid = uuid; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of host\u2019s CPU. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("family") + private String family; + + /** + * Type of host\u2019s CPU. + * @param family the value to set + * @return this builder + **/ + public Builder family(String family) { + this.family = family; + this.__explicitlySet__.add("family"); + return this; + } + /** + * Manufacturer of the host\u2019s machine and hardware vendor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("manufacturer") + private String manufacturer; + + /** + * Manufacturer of the host\u2019s machine and hardware vendor. + * @param manufacturer the value to set + * @return this builder + **/ + public Builder manufacturer(String manufacturer) { + this.manufacturer = manufacturer; + this.__explicitlySet__.add("manufacturer"); + return this; + } + /** + * Host\u2019s product name (for example RHEV Hypervisor). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("productName") + private String productName; + + /** + * Host\u2019s product name (for example RHEV Hypervisor). + * @param productName the value to set + * @return this builder + **/ + public Builder productName(String productName) { + this.productName = productName; + this.__explicitlySet__.add("productName"); + return this; + } + /** + * Unique ID for host\u2019s chassis. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private String serialNumber; + + /** + * Unique ID for host\u2019s chassis. + * @param serialNumber the value to set + * @return this builder + **/ + public Builder serialNumber(String serialNumber) { + this.serialNumber = serialNumber; + this.__explicitlySet__.add("serialNumber"); + return this; + } + /** + * Supported sources of random number generator. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedRngSources") + private java.util.List supportedRngSources; + + /** + * Supported sources of random number generator. + * @param supportedRngSources the value to set + * @return this builder + **/ + public Builder supportedRngSources(java.util.List supportedRngSources) { + this.supportedRngSources = supportedRngSources; + this.__explicitlySet__.add("supportedRngSources"); + return this; + } + /** + * Unique ID for each host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uuid") + private String uuid; + + /** + * Unique ID for each host. + * @param uuid the value to set + * @return this builder + **/ + public Builder uuid(String uuid) { + this.uuid = uuid; + this.__explicitlySet__.add("uuid"); + return this; + } + /** + * Unique name for each of the manufacturer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Unique name for each of the manufacturer. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmHardwareInformation build() { + OlvmHardwareInformation model = + new OlvmHardwareInformation( + this.family, + this.manufacturer, + this.productName, + this.serialNumber, + this.supportedRngSources, + this.uuid, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmHardwareInformation model) { + if (model.wasPropertyExplicitlySet("family")) { + this.family(model.getFamily()); + } + if (model.wasPropertyExplicitlySet("manufacturer")) { + this.manufacturer(model.getManufacturer()); + } + if (model.wasPropertyExplicitlySet("productName")) { + this.productName(model.getProductName()); + } + if (model.wasPropertyExplicitlySet("serialNumber")) { + this.serialNumber(model.getSerialNumber()); + } + if (model.wasPropertyExplicitlySet("supportedRngSources")) { + this.supportedRngSources(model.getSupportedRngSources()); + } + if (model.wasPropertyExplicitlySet("uuid")) { + this.uuid(model.getUuid()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of host\u2019s CPU. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("family") + private final String family; + + /** + * Type of host\u2019s CPU. + * @return the value + **/ + public String getFamily() { + return family; + } + + /** + * Manufacturer of the host\u2019s machine and hardware vendor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("manufacturer") + private final String manufacturer; + + /** + * Manufacturer of the host\u2019s machine and hardware vendor. + * @return the value + **/ + public String getManufacturer() { + return manufacturer; + } + + /** + * Host\u2019s product name (for example RHEV Hypervisor). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("productName") + private final String productName; + + /** + * Host\u2019s product name (for example RHEV Hypervisor). + * @return the value + **/ + public String getProductName() { + return productName; + } + + /** + * Unique ID for host\u2019s chassis. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private final String serialNumber; + + /** + * Unique ID for host\u2019s chassis. + * @return the value + **/ + public String getSerialNumber() { + return serialNumber; + } + + /** + * Supported sources of random number generator. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedRngSources") + private final java.util.List supportedRngSources; + + /** + * Supported sources of random number generator. + * @return the value + **/ + public java.util.List getSupportedRngSources() { + return supportedRngSources; + } + + /** + * Unique ID for each host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uuid") + private final String uuid; + + /** + * Unique ID for each host. + * @return the value + **/ + public String getUuid() { + return uuid; + } + + /** + * Unique name for each of the manufacturer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Unique name for each of the manufacturer. + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmHardwareInformation("); + sb.append("super=").append(super.toString()); + sb.append("family=").append(String.valueOf(this.family)); + sb.append(", manufacturer=").append(String.valueOf(this.manufacturer)); + sb.append(", productName=").append(String.valueOf(this.productName)); + sb.append(", serialNumber=").append(String.valueOf(this.serialNumber)); + sb.append(", supportedRngSources=").append(String.valueOf(this.supportedRngSources)); + sb.append(", uuid=").append(String.valueOf(this.uuid)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmHardwareInformation)) { + return false; + } + + OlvmHardwareInformation other = (OlvmHardwareInformation) o; + return java.util.Objects.equals(this.family, other.family) + && java.util.Objects.equals(this.manufacturer, other.manufacturer) + && java.util.Objects.equals(this.productName, other.productName) + && java.util.Objects.equals(this.serialNumber, other.serialNumber) + && java.util.Objects.equals(this.supportedRngSources, other.supportedRngSources) + && java.util.Objects.equals(this.uuid, other.uuid) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.family == null ? 43 : this.family.hashCode()); + result = (result * PRIME) + (this.manufacturer == null ? 43 : this.manufacturer.hashCode()); + result = (result * PRIME) + (this.productName == null ? 43 : this.productName.hashCode()); + result = (result * PRIME) + (this.serialNumber == null ? 43 : this.serialNumber.hashCode()); + result = + (result * PRIME) + + (this.supportedRngSources == null + ? 43 + : this.supportedRngSources.hashCode()); + result = (result * PRIME) + (this.uuid == null ? 43 : this.uuid.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHighAvailability.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHighAvailability.java new file mode 100644 index 00000000000..427edba951d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHighAvailability.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type representing high availability of a virtual machine. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmHighAvailability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmHighAvailability extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled", "priority"}) + public OlvmHighAvailability(Boolean isEnabled, Integer priority) { + super(); + this.isEnabled = isEnabled; + this.priority = priority; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Define if the virtual machine is considered highly available. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Define if the virtual machine is considered highly available. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Indicates the priority of the virtual machine inside the run and migration queues. The higher the value, the higher the priority. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private Integer priority; + + /** + * Indicates the priority of the virtual machine inside the run and migration queues. The higher the value, the higher the priority. + * @param priority the value to set + * @return this builder + **/ + public Builder priority(Integer priority) { + this.priority = priority; + this.__explicitlySet__.add("priority"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmHighAvailability build() { + OlvmHighAvailability model = new OlvmHighAvailability(this.isEnabled, this.priority); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmHighAvailability model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("priority")) { + this.priority(model.getPriority()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Define if the virtual machine is considered highly available. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Define if the virtual machine is considered highly available. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Indicates the priority of the virtual machine inside the run and migration queues. The higher the value, the higher the priority. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private final Integer priority; + + /** + * Indicates the priority of the virtual machine inside the run and migration queues. The higher the value, the higher the priority. + * @return the value + **/ + public Integer getPriority() { + return priority; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmHighAvailability("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", priority=").append(String.valueOf(this.priority)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmHighAvailability)) { + return false; + } + + OlvmHighAvailability other = (OlvmHighAvailability) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.priority, other.priority) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.priority == null ? 43 : this.priority.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHost.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHost.java new file mode 100644 index 00000000000..788d2c8c4b8 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHost.java @@ -0,0 +1,1555 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type representing a 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmHost.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmHost extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "address", + "autoNumaStatus", + "certificate", + "comment", + "cpu", + "description", + "isHostDevicePassthrough", + "display", + "externalStatus", + "hardwareInformation", + "hostedEngine", + "id", + "iscsi", + "kdumpStatus", + "ksm", + "libvirtVersion", + "maxSchedulingMemoryInBytes", + "memoryInBytes", + "name", + "isNetworkOperationInProgress", + "isNumaSupported", + "os", + "isOverrideIpTables", + "isOvnConfigured", + "port", + "powerManagement", + "isReinstallationRequired", + "seLinux", + "spm", + "hostStatus", + "statusDetail", + "summary", + "isTransparentHugePagesEnabled", + "type", + "isUpdateAvailable", + "version", + "vgpuPlacement" + }) + public OlvmHost( + String address, + AutoNumaStatus autoNumaStatus, + OlvmCertificate certificate, + String comment, + OlvmCpu cpu, + String description, + Boolean isHostDevicePassthrough, + OlvmDisplay display, + ExternalStatus externalStatus, + OlvmHardwareInformation hardwareInformation, + OlvmHostedEngine hostedEngine, + String id, + OlvmIscsiDetails iscsi, + KdumpStatus kdumpStatus, + Ksm ksm, + OlvmVersion libvirtVersion, + Long maxSchedulingMemoryInBytes, + Long memoryInBytes, + String name, + Boolean isNetworkOperationInProgress, + Boolean isNumaSupported, + OlvmOperatingSystem os, + Boolean isOverrideIpTables, + Boolean isOvnConfigured, + Integer port, + OlvmPowerManagement powerManagement, + Boolean isReinstallationRequired, + OlvmSelinux seLinux, + OlvmSpm spm, + OlvmHostStatus hostStatus, + String statusDetail, + OlvmVmSummary summary, + Boolean isTransparentHugePagesEnabled, + OlvmHostType type, + Boolean isUpdateAvailable, + OlvmVersion version, + VgpuPlacement vgpuPlacement) { + super(); + this.address = address; + this.autoNumaStatus = autoNumaStatus; + this.certificate = certificate; + this.comment = comment; + this.cpu = cpu; + this.description = description; + this.isHostDevicePassthrough = isHostDevicePassthrough; + this.display = display; + this.externalStatus = externalStatus; + this.hardwareInformation = hardwareInformation; + this.hostedEngine = hostedEngine; + this.id = id; + this.iscsi = iscsi; + this.kdumpStatus = kdumpStatus; + this.ksm = ksm; + this.libvirtVersion = libvirtVersion; + this.maxSchedulingMemoryInBytes = maxSchedulingMemoryInBytes; + this.memoryInBytes = memoryInBytes; + this.name = name; + this.isNetworkOperationInProgress = isNetworkOperationInProgress; + this.isNumaSupported = isNumaSupported; + this.os = os; + this.isOverrideIpTables = isOverrideIpTables; + this.isOvnConfigured = isOvnConfigured; + this.port = port; + this.powerManagement = powerManagement; + this.isReinstallationRequired = isReinstallationRequired; + this.seLinux = seLinux; + this.spm = spm; + this.hostStatus = hostStatus; + this.statusDetail = statusDetail; + this.summary = summary; + this.isTransparentHugePagesEnabled = isTransparentHugePagesEnabled; + this.type = type; + this.isUpdateAvailable = isUpdateAvailable; + this.version = version; + this.vgpuPlacement = vgpuPlacement; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The host address (FQDN/IP). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * The host address (FQDN/IP). + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * The host auto non uniform memory access (NUMA) status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoNumaStatus") + private AutoNumaStatus autoNumaStatus; + + /** + * The host auto non uniform memory access (NUMA) status. + * @param autoNumaStatus the value to set + * @return this builder + **/ + public Builder autoNumaStatus(AutoNumaStatus autoNumaStatus) { + this.autoNumaStatus = autoNumaStatus; + this.__explicitlySet__.add("autoNumaStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificate") + private OlvmCertificate certificate; + + public Builder certificate(OlvmCertificate certificate) { + this.certificate = certificate; + this.__explicitlySet__.add("certificate"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private OlvmCpu cpu; + + public Builder cpu(OlvmCpu cpu) { + this.cpu = cpu; + this.__explicitlySet__.add("cpu"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Specifies whether host device passthrough is enabled on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isHostDevicePassthrough") + private Boolean isHostDevicePassthrough; + + /** + * Specifies whether host device passthrough is enabled on this host. + * @param isHostDevicePassthrough the value to set + * @return this builder + **/ + public Builder isHostDevicePassthrough(Boolean isHostDevicePassthrough) { + this.isHostDevicePassthrough = isHostDevicePassthrough; + this.__explicitlySet__.add("isHostDevicePassthrough"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private OlvmDisplay display; + + public Builder display(OlvmDisplay display) { + this.display = display; + this.__explicitlySet__.add("display"); + return this; + } + /** + * Status of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalStatus") + private ExternalStatus externalStatus; + + /** + * Status of storage domain. + * @param externalStatus the value to set + * @return this builder + **/ + public Builder externalStatus(ExternalStatus externalStatus) { + this.externalStatus = externalStatus; + this.__explicitlySet__.add("externalStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hardwareInformation") + private OlvmHardwareInformation hardwareInformation; + + public Builder hardwareInformation(OlvmHardwareInformation hardwareInformation) { + this.hardwareInformation = hardwareInformation; + this.__explicitlySet__.add("hardwareInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hostedEngine") + private OlvmHostedEngine hostedEngine; + + public Builder hostedEngine(OlvmHostedEngine hostedEngine) { + this.hostedEngine = hostedEngine; + this.__explicitlySet__.add("hostedEngine"); + return this; + } + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @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.JsonProperty("iscsi") + private OlvmIscsiDetails iscsi; + + public Builder iscsi(OlvmIscsiDetails iscsi) { + this.iscsi = iscsi; + this.__explicitlySet__.add("iscsi"); + return this; + } + /** + * The host KDUMP status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kdumpStatus") + private KdumpStatus kdumpStatus; + + /** + * The host KDUMP status. + * @param kdumpStatus the value to set + * @return this builder + **/ + public Builder kdumpStatus(KdumpStatus kdumpStatus) { + this.kdumpStatus = kdumpStatus; + this.__explicitlySet__.add("kdumpStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ksm") + private Ksm ksm; + + public Builder ksm(Ksm ksm) { + this.ksm = ksm; + this.__explicitlySet__.add("ksm"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("libvirtVersion") + private OlvmVersion libvirtVersion; + + public Builder libvirtVersion(OlvmVersion libvirtVersion) { + this.libvirtVersion = libvirtVersion; + this.__explicitlySet__.add("libvirtVersion"); + return this; + } + /** + * The max scheduling memory on this host in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxSchedulingMemoryInBytes") + private Long maxSchedulingMemoryInBytes; + + /** + * The max scheduling memory on this host in bytes. + * @param maxSchedulingMemoryInBytes the value to set + * @return this builder + **/ + public Builder maxSchedulingMemoryInBytes(Long maxSchedulingMemoryInBytes) { + this.maxSchedulingMemoryInBytes = maxSchedulingMemoryInBytes; + this.__explicitlySet__.add("maxSchedulingMemoryInBytes"); + return this; + } + /** + * The amount of physical memory on this host in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInBytes") + private Long memoryInBytes; + + /** + * The amount of physical memory on this host in bytes. + * @param memoryInBytes the value to set + * @return this builder + **/ + public Builder memoryInBytes(Long memoryInBytes) { + this.memoryInBytes = memoryInBytes; + this.__explicitlySet__.add("memoryInBytes"); + return this; + } + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the property. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Specifies whether a network-related operation, such as 'setup networks', 'sync networks', or 'refresh capabilities', is currently being executed on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNetworkOperationInProgress") + private Boolean isNetworkOperationInProgress; + + /** + * Specifies whether a network-related operation, such as 'setup networks', 'sync networks', or 'refresh capabilities', is currently being executed on this host. + * @param isNetworkOperationInProgress the value to set + * @return this builder + **/ + public Builder isNetworkOperationInProgress(Boolean isNetworkOperationInProgress) { + this.isNetworkOperationInProgress = isNetworkOperationInProgress; + this.__explicitlySet__.add("isNetworkOperationInProgress"); + return this; + } + /** + * Specifies whether non uniform memory access (NUMA) is supported on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNumaSupported") + private Boolean isNumaSupported; + + /** + * Specifies whether non uniform memory access (NUMA) is supported on this host. + * @param isNumaSupported the value to set + * @return this builder + **/ + public Builder isNumaSupported(Boolean isNumaSupported) { + this.isNumaSupported = isNumaSupported; + this.__explicitlySet__.add("isNumaSupported"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("os") + private OlvmOperatingSystem os; + + public Builder os(OlvmOperatingSystem os) { + this.os = os; + this.__explicitlySet__.add("os"); + return this; + } + /** + * Specifies whether we should override firewall definitions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOverrideIpTables") + private Boolean isOverrideIpTables; + + /** + * Specifies whether we should override firewall definitions + * @param isOverrideIpTables the value to set + * @return this builder + **/ + public Builder isOverrideIpTables(Boolean isOverrideIpTables) { + this.isOverrideIpTables = isOverrideIpTables; + this.__explicitlySet__.add("isOverrideIpTables"); + return this; + } + /** + * Indicates if the host has correctly configured OVN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOvnConfigured") + private Boolean isOvnConfigured; + + /** + * Indicates if the host has correctly configured OVN. + * @param isOvnConfigured the value to set + * @return this builder + **/ + public Builder isOvnConfigured(Boolean isOvnConfigured) { + this.isOvnConfigured = isOvnConfigured; + this.__explicitlySet__.add("isOvnConfigured"); + return this; + } + /** + * The host port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The host port. + * @param port the value to set + * @return this builder + **/ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("powerManagement") + private OlvmPowerManagement powerManagement; + + public Builder powerManagement(OlvmPowerManagement powerManagement) { + this.powerManagement = powerManagement; + this.__explicitlySet__.add("powerManagement"); + return this; + } + /** + * Specifies whether the host should be reinstalled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isReinstallationRequired") + private Boolean isReinstallationRequired; + + /** + * Specifies whether the host should be reinstalled. + * @param isReinstallationRequired the value to set + * @return this builder + **/ + public Builder isReinstallationRequired(Boolean isReinstallationRequired) { + this.isReinstallationRequired = isReinstallationRequired; + this.__explicitlySet__.add("isReinstallationRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("seLinux") + private OlvmSelinux seLinux; + + public Builder seLinux(OlvmSelinux seLinux) { + this.seLinux = seLinux; + this.__explicitlySet__.add("seLinux"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("spm") + private OlvmSpm spm; + + public Builder spm(OlvmSpm spm) { + this.spm = spm; + this.__explicitlySet__.add("spm"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hostStatus") + private OlvmHostStatus hostStatus; + + public Builder hostStatus(OlvmHostStatus hostStatus) { + this.hostStatus = hostStatus; + this.__explicitlySet__.add("hostStatus"); + return this; + } + /** + * The host status details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetail") + private String statusDetail; + + /** + * The host status details. + * @param statusDetail the value to set + * @return this builder + **/ + public Builder statusDetail(String statusDetail) { + this.statusDetail = statusDetail; + this.__explicitlySet__.add("statusDetail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private OlvmVmSummary summary; + + public Builder summary(OlvmVmSummary summary) { + this.summary = summary; + this.__explicitlySet__.add("summary"); + return this; + } + /** + * Indicates if transparent huge pages (THP) support is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTransparentHugePagesEnabled") + private Boolean isTransparentHugePagesEnabled; + + /** + * Indicates if transparent huge pages (THP) support is enabled. + * @param isTransparentHugePagesEnabled the value to set + * @return this builder + **/ + public Builder isTransparentHugePagesEnabled(Boolean isTransparentHugePagesEnabled) { + this.isTransparentHugePagesEnabled = isTransparentHugePagesEnabled; + this.__explicitlySet__.add("isTransparentHugePagesEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private OlvmHostType type; + + public Builder type(OlvmHostType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Specified whether there is an oVirt-related update on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpdateAvailable") + private Boolean isUpdateAvailable; + + /** + * Specified whether there is an oVirt-related update on this host. + * @param isUpdateAvailable the value to set + * @return this builder + **/ + public Builder isUpdateAvailable(Boolean isUpdateAvailable) { + this.isUpdateAvailable = isUpdateAvailable; + this.__explicitlySet__.add("isUpdateAvailable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private OlvmVersion version; + + public Builder version(OlvmVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * Specifies the vGPU placement strategy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vgpuPlacement") + private VgpuPlacement vgpuPlacement; + + /** + * Specifies the vGPU placement strategy. + * @param vgpuPlacement the value to set + * @return this builder + **/ + public Builder vgpuPlacement(VgpuPlacement vgpuPlacement) { + this.vgpuPlacement = vgpuPlacement; + this.__explicitlySet__.add("vgpuPlacement"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmHost build() { + OlvmHost model = + new OlvmHost( + this.address, + this.autoNumaStatus, + this.certificate, + this.comment, + this.cpu, + this.description, + this.isHostDevicePassthrough, + this.display, + this.externalStatus, + this.hardwareInformation, + this.hostedEngine, + this.id, + this.iscsi, + this.kdumpStatus, + this.ksm, + this.libvirtVersion, + this.maxSchedulingMemoryInBytes, + this.memoryInBytes, + this.name, + this.isNetworkOperationInProgress, + this.isNumaSupported, + this.os, + this.isOverrideIpTables, + this.isOvnConfigured, + this.port, + this.powerManagement, + this.isReinstallationRequired, + this.seLinux, + this.spm, + this.hostStatus, + this.statusDetail, + this.summary, + this.isTransparentHugePagesEnabled, + this.type, + this.isUpdateAvailable, + this.version, + this.vgpuPlacement); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmHost model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("autoNumaStatus")) { + this.autoNumaStatus(model.getAutoNumaStatus()); + } + if (model.wasPropertyExplicitlySet("certificate")) { + this.certificate(model.getCertificate()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("cpu")) { + this.cpu(model.getCpu()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isHostDevicePassthrough")) { + this.isHostDevicePassthrough(model.getIsHostDevicePassthrough()); + } + if (model.wasPropertyExplicitlySet("display")) { + this.display(model.getDisplay()); + } + if (model.wasPropertyExplicitlySet("externalStatus")) { + this.externalStatus(model.getExternalStatus()); + } + if (model.wasPropertyExplicitlySet("hardwareInformation")) { + this.hardwareInformation(model.getHardwareInformation()); + } + if (model.wasPropertyExplicitlySet("hostedEngine")) { + this.hostedEngine(model.getHostedEngine()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("iscsi")) { + this.iscsi(model.getIscsi()); + } + if (model.wasPropertyExplicitlySet("kdumpStatus")) { + this.kdumpStatus(model.getKdumpStatus()); + } + if (model.wasPropertyExplicitlySet("ksm")) { + this.ksm(model.getKsm()); + } + if (model.wasPropertyExplicitlySet("libvirtVersion")) { + this.libvirtVersion(model.getLibvirtVersion()); + } + if (model.wasPropertyExplicitlySet("maxSchedulingMemoryInBytes")) { + this.maxSchedulingMemoryInBytes(model.getMaxSchedulingMemoryInBytes()); + } + if (model.wasPropertyExplicitlySet("memoryInBytes")) { + this.memoryInBytes(model.getMemoryInBytes()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("isNetworkOperationInProgress")) { + this.isNetworkOperationInProgress(model.getIsNetworkOperationInProgress()); + } + if (model.wasPropertyExplicitlySet("isNumaSupported")) { + this.isNumaSupported(model.getIsNumaSupported()); + } + if (model.wasPropertyExplicitlySet("os")) { + this.os(model.getOs()); + } + if (model.wasPropertyExplicitlySet("isOverrideIpTables")) { + this.isOverrideIpTables(model.getIsOverrideIpTables()); + } + if (model.wasPropertyExplicitlySet("isOvnConfigured")) { + this.isOvnConfigured(model.getIsOvnConfigured()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("powerManagement")) { + this.powerManagement(model.getPowerManagement()); + } + if (model.wasPropertyExplicitlySet("isReinstallationRequired")) { + this.isReinstallationRequired(model.getIsReinstallationRequired()); + } + if (model.wasPropertyExplicitlySet("seLinux")) { + this.seLinux(model.getSeLinux()); + } + if (model.wasPropertyExplicitlySet("spm")) { + this.spm(model.getSpm()); + } + if (model.wasPropertyExplicitlySet("hostStatus")) { + this.hostStatus(model.getHostStatus()); + } + if (model.wasPropertyExplicitlySet("statusDetail")) { + this.statusDetail(model.getStatusDetail()); + } + if (model.wasPropertyExplicitlySet("summary")) { + this.summary(model.getSummary()); + } + if (model.wasPropertyExplicitlySet("isTransparentHugePagesEnabled")) { + this.isTransparentHugePagesEnabled(model.getIsTransparentHugePagesEnabled()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("isUpdateAvailable")) { + this.isUpdateAvailable(model.getIsUpdateAvailable()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("vgpuPlacement")) { + this.vgpuPlacement(model.getVgpuPlacement()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The host address (FQDN/IP). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * The host address (FQDN/IP). + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * The host auto non uniform memory access (NUMA) status. + **/ + public enum AutoNumaStatus { + Disable("DISABLE"), + Enable("ENABLE"), + Unknown("UNKNOWN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoNumaStatus v : AutoNumaStatus.values()) { + map.put(v.getValue(), v); + } + } + + AutoNumaStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoNumaStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AutoNumaStatus: " + key); + } + }; + /** + * The host auto non uniform memory access (NUMA) status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoNumaStatus") + private final AutoNumaStatus autoNumaStatus; + + /** + * The host auto non uniform memory access (NUMA) status. + * @return the value + **/ + public AutoNumaStatus getAutoNumaStatus() { + return autoNumaStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificate") + private final OlvmCertificate certificate; + + public OlvmCertificate getCertificate() { + return certificate; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private final OlvmCpu cpu; + + public OlvmCpu getCpu() { + return cpu; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Specifies whether host device passthrough is enabled on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isHostDevicePassthrough") + private final Boolean isHostDevicePassthrough; + + /** + * Specifies whether host device passthrough is enabled on this host. + * @return the value + **/ + public Boolean getIsHostDevicePassthrough() { + return isHostDevicePassthrough; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private final OlvmDisplay display; + + public OlvmDisplay getDisplay() { + return display; + } + + /** + * Status of storage domain. + **/ + public enum ExternalStatus { + Error("ERROR"), + Failure("FAILURE"), + Info("INFO"), + Ok("OK"), + Warning("WARNING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ExternalStatus v : ExternalStatus.values()) { + map.put(v.getValue(), v); + } + } + + ExternalStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ExternalStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ExternalStatus: " + key); + } + }; + /** + * Status of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalStatus") + private final ExternalStatus externalStatus; + + /** + * Status of storage domain. + * @return the value + **/ + public ExternalStatus getExternalStatus() { + return externalStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hardwareInformation") + private final OlvmHardwareInformation hardwareInformation; + + public OlvmHardwareInformation getHardwareInformation() { + return hardwareInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hostedEngine") + private final OlvmHostedEngine hostedEngine; + + public OlvmHostedEngine getHostedEngine() { + return hostedEngine; + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + @com.fasterxml.jackson.annotation.JsonProperty("iscsi") + private final OlvmIscsiDetails iscsi; + + public OlvmIscsiDetails getIscsi() { + return iscsi; + } + + /** + * The host KDUMP status. + **/ + public enum KdumpStatus { + Disabled("DISABLED"), + Enabled("ENABLED"), + Unknown("UNKNOWN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (KdumpStatus v : KdumpStatus.values()) { + map.put(v.getValue(), v); + } + } + + KdumpStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static KdumpStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid KdumpStatus: " + key); + } + }; + /** + * The host KDUMP status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kdumpStatus") + private final KdumpStatus kdumpStatus; + + /** + * The host KDUMP status. + * @return the value + **/ + public KdumpStatus getKdumpStatus() { + return kdumpStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ksm") + private final Ksm ksm; + + public Ksm getKsm() { + return ksm; + } + + @com.fasterxml.jackson.annotation.JsonProperty("libvirtVersion") + private final OlvmVersion libvirtVersion; + + public OlvmVersion getLibvirtVersion() { + return libvirtVersion; + } + + /** + * The max scheduling memory on this host in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxSchedulingMemoryInBytes") + private final Long maxSchedulingMemoryInBytes; + + /** + * The max scheduling memory on this host in bytes. + * @return the value + **/ + public Long getMaxSchedulingMemoryInBytes() { + return maxSchedulingMemoryInBytes; + } + + /** + * The amount of physical memory on this host in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInBytes") + private final Long memoryInBytes; + + /** + * The amount of physical memory on this host in bytes. + * @return the value + **/ + public Long getMemoryInBytes() { + return memoryInBytes; + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the property. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Specifies whether a network-related operation, such as 'setup networks', 'sync networks', or 'refresh capabilities', is currently being executed on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNetworkOperationInProgress") + private final Boolean isNetworkOperationInProgress; + + /** + * Specifies whether a network-related operation, such as 'setup networks', 'sync networks', or 'refresh capabilities', is currently being executed on this host. + * @return the value + **/ + public Boolean getIsNetworkOperationInProgress() { + return isNetworkOperationInProgress; + } + + /** + * Specifies whether non uniform memory access (NUMA) is supported on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNumaSupported") + private final Boolean isNumaSupported; + + /** + * Specifies whether non uniform memory access (NUMA) is supported on this host. + * @return the value + **/ + public Boolean getIsNumaSupported() { + return isNumaSupported; + } + + @com.fasterxml.jackson.annotation.JsonProperty("os") + private final OlvmOperatingSystem os; + + public OlvmOperatingSystem getOs() { + return os; + } + + /** + * Specifies whether we should override firewall definitions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOverrideIpTables") + private final Boolean isOverrideIpTables; + + /** + * Specifies whether we should override firewall definitions + * @return the value + **/ + public Boolean getIsOverrideIpTables() { + return isOverrideIpTables; + } + + /** + * Indicates if the host has correctly configured OVN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOvnConfigured") + private final Boolean isOvnConfigured; + + /** + * Indicates if the host has correctly configured OVN. + * @return the value + **/ + public Boolean getIsOvnConfigured() { + return isOvnConfigured; + } + + /** + * The host port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The host port. + * @return the value + **/ + public Integer getPort() { + return port; + } + + @com.fasterxml.jackson.annotation.JsonProperty("powerManagement") + private final OlvmPowerManagement powerManagement; + + public OlvmPowerManagement getPowerManagement() { + return powerManagement; + } + + /** + * Specifies whether the host should be reinstalled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isReinstallationRequired") + private final Boolean isReinstallationRequired; + + /** + * Specifies whether the host should be reinstalled. + * @return the value + **/ + public Boolean getIsReinstallationRequired() { + return isReinstallationRequired; + } + + @com.fasterxml.jackson.annotation.JsonProperty("seLinux") + private final OlvmSelinux seLinux; + + public OlvmSelinux getSeLinux() { + return seLinux; + } + + @com.fasterxml.jackson.annotation.JsonProperty("spm") + private final OlvmSpm spm; + + public OlvmSpm getSpm() { + return spm; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hostStatus") + private final OlvmHostStatus hostStatus; + + public OlvmHostStatus getHostStatus() { + return hostStatus; + } + + /** + * The host status details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetail") + private final String statusDetail; + + /** + * The host status details. + * @return the value + **/ + public String getStatusDetail() { + return statusDetail; + } + + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private final OlvmVmSummary summary; + + public OlvmVmSummary getSummary() { + return summary; + } + + /** + * Indicates if transparent huge pages (THP) support is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTransparentHugePagesEnabled") + private final Boolean isTransparentHugePagesEnabled; + + /** + * Indicates if transparent huge pages (THP) support is enabled. + * @return the value + **/ + public Boolean getIsTransparentHugePagesEnabled() { + return isTransparentHugePagesEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final OlvmHostType type; + + public OlvmHostType getType() { + return type; + } + + /** + * Specified whether there is an oVirt-related update on this host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpdateAvailable") + private final Boolean isUpdateAvailable; + + /** + * Specified whether there is an oVirt-related update on this host. + * @return the value + **/ + public Boolean getIsUpdateAvailable() { + return isUpdateAvailable; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmVersion version; + + public OlvmVersion getVersion() { + return version; + } + + /** + * Specifies the vGPU placement strategy. + **/ + public enum VgpuPlacement { + Consolidated("CONSOLIDATED"), + Separated("SEPARATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VgpuPlacement v : VgpuPlacement.values()) { + map.put(v.getValue(), v); + } + } + + VgpuPlacement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VgpuPlacement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VgpuPlacement: " + key); + } + }; + /** + * Specifies the vGPU placement strategy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vgpuPlacement") + private final VgpuPlacement vgpuPlacement; + + /** + * Specifies the vGPU placement strategy. + * @return the value + **/ + public VgpuPlacement getVgpuPlacement() { + return vgpuPlacement; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmHost("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", autoNumaStatus=").append(String.valueOf(this.autoNumaStatus)); + sb.append(", certificate=").append(String.valueOf(this.certificate)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", cpu=").append(String.valueOf(this.cpu)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isHostDevicePassthrough=") + .append(String.valueOf(this.isHostDevicePassthrough)); + sb.append(", display=").append(String.valueOf(this.display)); + sb.append(", externalStatus=").append(String.valueOf(this.externalStatus)); + sb.append(", hardwareInformation=").append(String.valueOf(this.hardwareInformation)); + sb.append(", hostedEngine=").append(String.valueOf(this.hostedEngine)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", iscsi=").append(String.valueOf(this.iscsi)); + sb.append(", kdumpStatus=").append(String.valueOf(this.kdumpStatus)); + sb.append(", ksm=").append(String.valueOf(this.ksm)); + sb.append(", libvirtVersion=").append(String.valueOf(this.libvirtVersion)); + sb.append(", maxSchedulingMemoryInBytes=") + .append(String.valueOf(this.maxSchedulingMemoryInBytes)); + sb.append(", memoryInBytes=").append(String.valueOf(this.memoryInBytes)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", isNetworkOperationInProgress=") + .append(String.valueOf(this.isNetworkOperationInProgress)); + sb.append(", isNumaSupported=").append(String.valueOf(this.isNumaSupported)); + sb.append(", os=").append(String.valueOf(this.os)); + sb.append(", isOverrideIpTables=").append(String.valueOf(this.isOverrideIpTables)); + sb.append(", isOvnConfigured=").append(String.valueOf(this.isOvnConfigured)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", powerManagement=").append(String.valueOf(this.powerManagement)); + sb.append(", isReinstallationRequired=") + .append(String.valueOf(this.isReinstallationRequired)); + sb.append(", seLinux=").append(String.valueOf(this.seLinux)); + sb.append(", spm=").append(String.valueOf(this.spm)); + sb.append(", hostStatus=").append(String.valueOf(this.hostStatus)); + sb.append(", statusDetail=").append(String.valueOf(this.statusDetail)); + sb.append(", summary=").append(String.valueOf(this.summary)); + sb.append(", isTransparentHugePagesEnabled=") + .append(String.valueOf(this.isTransparentHugePagesEnabled)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", isUpdateAvailable=").append(String.valueOf(this.isUpdateAvailable)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", vgpuPlacement=").append(String.valueOf(this.vgpuPlacement)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmHost)) { + return false; + } + + OlvmHost other = (OlvmHost) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.autoNumaStatus, other.autoNumaStatus) + && java.util.Objects.equals(this.certificate, other.certificate) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.cpu, other.cpu) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.isHostDevicePassthrough, other.isHostDevicePassthrough) + && java.util.Objects.equals(this.display, other.display) + && java.util.Objects.equals(this.externalStatus, other.externalStatus) + && java.util.Objects.equals(this.hardwareInformation, other.hardwareInformation) + && java.util.Objects.equals(this.hostedEngine, other.hostedEngine) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iscsi, other.iscsi) + && java.util.Objects.equals(this.kdumpStatus, other.kdumpStatus) + && java.util.Objects.equals(this.ksm, other.ksm) + && java.util.Objects.equals(this.libvirtVersion, other.libvirtVersion) + && java.util.Objects.equals( + this.maxSchedulingMemoryInBytes, other.maxSchedulingMemoryInBytes) + && java.util.Objects.equals(this.memoryInBytes, other.memoryInBytes) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals( + this.isNetworkOperationInProgress, other.isNetworkOperationInProgress) + && java.util.Objects.equals(this.isNumaSupported, other.isNumaSupported) + && java.util.Objects.equals(this.os, other.os) + && java.util.Objects.equals(this.isOverrideIpTables, other.isOverrideIpTables) + && java.util.Objects.equals(this.isOvnConfigured, other.isOvnConfigured) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.powerManagement, other.powerManagement) + && java.util.Objects.equals( + this.isReinstallationRequired, other.isReinstallationRequired) + && java.util.Objects.equals(this.seLinux, other.seLinux) + && java.util.Objects.equals(this.spm, other.spm) + && java.util.Objects.equals(this.hostStatus, other.hostStatus) + && java.util.Objects.equals(this.statusDetail, other.statusDetail) + && java.util.Objects.equals(this.summary, other.summary) + && java.util.Objects.equals( + this.isTransparentHugePagesEnabled, other.isTransparentHugePagesEnabled) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.isUpdateAvailable, other.isUpdateAvailable) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.vgpuPlacement, other.vgpuPlacement) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = + (result * PRIME) + + (this.autoNumaStatus == null ? 43 : this.autoNumaStatus.hashCode()); + result = (result * PRIME) + (this.certificate == null ? 43 : this.certificate.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.cpu == null ? 43 : this.cpu.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.isHostDevicePassthrough == null + ? 43 + : this.isHostDevicePassthrough.hashCode()); + result = (result * PRIME) + (this.display == null ? 43 : this.display.hashCode()); + result = + (result * PRIME) + + (this.externalStatus == null ? 43 : this.externalStatus.hashCode()); + result = + (result * PRIME) + + (this.hardwareInformation == null + ? 43 + : this.hardwareInformation.hashCode()); + result = (result * PRIME) + (this.hostedEngine == null ? 43 : this.hostedEngine.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iscsi == null ? 43 : this.iscsi.hashCode()); + result = (result * PRIME) + (this.kdumpStatus == null ? 43 : this.kdumpStatus.hashCode()); + result = (result * PRIME) + (this.ksm == null ? 43 : this.ksm.hashCode()); + result = + (result * PRIME) + + (this.libvirtVersion == null ? 43 : this.libvirtVersion.hashCode()); + result = + (result * PRIME) + + (this.maxSchedulingMemoryInBytes == null + ? 43 + : this.maxSchedulingMemoryInBytes.hashCode()); + result = + (result * PRIME) + + (this.memoryInBytes == null ? 43 : this.memoryInBytes.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.isNetworkOperationInProgress == null + ? 43 + : this.isNetworkOperationInProgress.hashCode()); + result = + (result * PRIME) + + (this.isNumaSupported == null ? 43 : this.isNumaSupported.hashCode()); + result = (result * PRIME) + (this.os == null ? 43 : this.os.hashCode()); + result = + (result * PRIME) + + (this.isOverrideIpTables == null + ? 43 + : this.isOverrideIpTables.hashCode()); + result = + (result * PRIME) + + (this.isOvnConfigured == null ? 43 : this.isOvnConfigured.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = + (result * PRIME) + + (this.powerManagement == null ? 43 : this.powerManagement.hashCode()); + result = + (result * PRIME) + + (this.isReinstallationRequired == null + ? 43 + : this.isReinstallationRequired.hashCode()); + result = (result * PRIME) + (this.seLinux == null ? 43 : this.seLinux.hashCode()); + result = (result * PRIME) + (this.spm == null ? 43 : this.spm.hashCode()); + result = (result * PRIME) + (this.hostStatus == null ? 43 : this.hostStatus.hashCode()); + result = (result * PRIME) + (this.statusDetail == null ? 43 : this.statusDetail.hashCode()); + result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); + result = + (result * PRIME) + + (this.isTransparentHugePagesEnabled == null + ? 43 + : this.isTransparentHugePagesEnabled.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.isUpdateAvailable == null ? 43 : this.isUpdateAvailable.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.vgpuPlacement == null ? 43 : this.vgpuPlacement.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostStatus.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostStatus.java new file mode 100644 index 00000000000..07fb4534e06 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostStatus.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type representing a host status. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmHostStatus.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmHostStatus extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"status"}) + public OlvmHostStatus(Status status) { + super(); + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type representing a host status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Type representing a host status. + * @param status the value to set + * @return this builder + **/ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmHostStatus build() { + OlvmHostStatus model = new OlvmHostStatus(this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmHostStatus model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type representing a host status. + **/ + public enum Status { + Connecting("CONNECTING"), + Down("DOWN"), + Error("ERROR"), + Initializing("INITIALIZING"), + InstallFailed("INSTALL_FAILED"), + Installing("INSTALLING"), + InstallingOs("INSTALLING_OS"), + Kdumping("KDUMPING"), + Maintenance("MAINTENANCE"), + NonOperational("NON_OPERATIONAL"), + NonResponsive("NON_RESPONSIVE"), + PendingApproval("PENDING_APPROVAL"), + PreparingForMaintenance("PREPARING_FOR_MAINTENANCE"), + Reboot("REBOOT"), + Unassigned("UNASSIGNED"), + Up("UP"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + map.put(v.getValue(), v); + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + /** + * Type representing a host status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Type representing a host status. + * @return the value + **/ + public Status getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmHostStatus("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmHostStatus)) { + return false; + } + + OlvmHostStatus other = (OlvmHostStatus) o; + return java.util.Objects.equals(this.status, other.status) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostType.java new file mode 100644 index 00000000000..09f75f53ffc --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostType.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Indicates if the host contains a full installation of the operating system or a scaled-down version intended only to host virtual machines. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmHostType.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmHostType extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"hostType"}) + public OlvmHostType(HostType hostType) { + super(); + this.hostType = hostType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * This enumerated type is used to determine which type of operating system is used by the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostType") + private HostType hostType; + + /** + * This enumerated type is used to determine which type of operating system is used by the host. + * @param hostType the value to set + * @return this builder + **/ + public Builder hostType(HostType hostType) { + this.hostType = hostType; + this.__explicitlySet__.add("hostType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmHostType build() { + OlvmHostType model = new OlvmHostType(this.hostType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmHostType model) { + if (model.wasPropertyExplicitlySet("hostType")) { + this.hostType(model.getHostType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * This enumerated type is used to determine which type of operating system is used by the host. + **/ + public enum HostType { + OvirtNode("OVIRT_NODE"), + Rhel("RHEL"), + RhevH("RHEV_H"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HostType v : HostType.values()) { + map.put(v.getValue(), v); + } + } + + HostType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HostType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid HostType: " + key); + } + }; + /** + * This enumerated type is used to determine which type of operating system is used by the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostType") + private final HostType hostType; + + /** + * This enumerated type is used to determine which type of operating system is used by the host. + * @return the value + **/ + public HostType getHostType() { + return hostType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmHostType("); + sb.append("super=").append(super.toString()); + sb.append("hostType=").append(String.valueOf(this.hostType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmHostType)) { + return false; + } + + OlvmHostType other = (OlvmHostType) o; + return java.util.Objects.equals(this.hostType, other.hostType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostType == null ? 43 : this.hostType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostedEngine.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostedEngine.java new file mode 100644 index 00000000000..4a82e0e96b8 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmHostedEngine.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The self-hosted engine status of this 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmHostedEngine.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmHostedEngine extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isActive", + "isConfigured", + "isGlobalMaintenance", + "isLocalMaintenance", + "score" + }) + public OlvmHostedEngine( + Boolean isActive, + Boolean isConfigured, + Boolean isGlobalMaintenance, + Boolean isLocalMaintenance, + Integer score) { + super(); + this.isActive = isActive; + this.isConfigured = isConfigured; + this.isGlobalMaintenance = isGlobalMaintenance; + this.isLocalMaintenance = isLocalMaintenance; + this.score = score; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates if this hosted engine is active. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Indicates if this hosted engine is active. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * Indicates if this hosted engine is configured. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isConfigured") + private Boolean isConfigured; + + /** + * Indicates if this hosted engine is configured. + * @param isConfigured the value to set + * @return this builder + **/ + public Builder isConfigured(Boolean isConfigured) { + this.isConfigured = isConfigured; + this.__explicitlySet__.add("isConfigured"); + return this; + } + /** + * Indicates if this hosted engine under global maintenance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isGlobalMaintenance") + private Boolean isGlobalMaintenance; + + /** + * Indicates if this hosted engine under global maintenance. + * @param isGlobalMaintenance the value to set + * @return this builder + **/ + public Builder isGlobalMaintenance(Boolean isGlobalMaintenance) { + this.isGlobalMaintenance = isGlobalMaintenance; + this.__explicitlySet__.add("isGlobalMaintenance"); + return this; + } + /** + * Indicates if this hosted engine under local maintenance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocalMaintenance") + private Boolean isLocalMaintenance; + + /** + * Indicates if this hosted engine under local maintenance. + * @param isLocalMaintenance the value to set + * @return this builder + **/ + public Builder isLocalMaintenance(Boolean isLocalMaintenance) { + this.isLocalMaintenance = isLocalMaintenance; + this.__explicitlySet__.add("isLocalMaintenance"); + return this; + } + /** + * A numerical value representing the health and status of the Manager virtual machine + **/ + @com.fasterxml.jackson.annotation.JsonProperty("score") + private Integer score; + + /** + * A numerical value representing the health and status of the Manager virtual machine + * @param score the value to set + * @return this builder + **/ + public Builder score(Integer score) { + this.score = score; + this.__explicitlySet__.add("score"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmHostedEngine build() { + OlvmHostedEngine model = + new OlvmHostedEngine( + this.isActive, + this.isConfigured, + this.isGlobalMaintenance, + this.isLocalMaintenance, + this.score); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmHostedEngine model) { + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("isConfigured")) { + this.isConfigured(model.getIsConfigured()); + } + if (model.wasPropertyExplicitlySet("isGlobalMaintenance")) { + this.isGlobalMaintenance(model.getIsGlobalMaintenance()); + } + if (model.wasPropertyExplicitlySet("isLocalMaintenance")) { + this.isLocalMaintenance(model.getIsLocalMaintenance()); + } + if (model.wasPropertyExplicitlySet("score")) { + this.score(model.getScore()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates if this hosted engine is active. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Indicates if this hosted engine is active. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * Indicates if this hosted engine is configured. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isConfigured") + private final Boolean isConfigured; + + /** + * Indicates if this hosted engine is configured. + * @return the value + **/ + public Boolean getIsConfigured() { + return isConfigured; + } + + /** + * Indicates if this hosted engine under global maintenance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isGlobalMaintenance") + private final Boolean isGlobalMaintenance; + + /** + * Indicates if this hosted engine under global maintenance. + * @return the value + **/ + public Boolean getIsGlobalMaintenance() { + return isGlobalMaintenance; + } + + /** + * Indicates if this hosted engine under local maintenance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocalMaintenance") + private final Boolean isLocalMaintenance; + + /** + * Indicates if this hosted engine under local maintenance. + * @return the value + **/ + public Boolean getIsLocalMaintenance() { + return isLocalMaintenance; + } + + /** + * A numerical value representing the health and status of the Manager virtual machine + **/ + @com.fasterxml.jackson.annotation.JsonProperty("score") + private final Integer score; + + /** + * A numerical value representing the health and status of the Manager virtual machine + * @return the value + **/ + public Integer getScore() { + return score; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmHostedEngine("); + sb.append("super=").append(super.toString()); + sb.append("isActive=").append(String.valueOf(this.isActive)); + sb.append(", isConfigured=").append(String.valueOf(this.isConfigured)); + sb.append(", isGlobalMaintenance=").append(String.valueOf(this.isGlobalMaintenance)); + sb.append(", isLocalMaintenance=").append(String.valueOf(this.isLocalMaintenance)); + sb.append(", score=").append(String.valueOf(this.score)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmHostedEngine)) { + return false; + } + + OlvmHostedEngine other = (OlvmHostedEngine) o; + return java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.isConfigured, other.isConfigured) + && java.util.Objects.equals(this.isGlobalMaintenance, other.isGlobalMaintenance) + && java.util.Objects.equals(this.isLocalMaintenance, other.isLocalMaintenance) + && java.util.Objects.equals(this.score, other.score) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); + result = (result * PRIME) + (this.isConfigured == null ? 43 : this.isConfigured.hashCode()); + result = + (result * PRIME) + + (this.isGlobalMaintenance == null + ? 43 + : this.isGlobalMaintenance.hashCode()); + result = + (result * PRIME) + + (this.isLocalMaintenance == null + ? 43 + : this.isLocalMaintenance.hashCode()); + result = (result * PRIME) + (this.score == null ? 43 : this.score.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIcon.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIcon.java new file mode 100644 index 00000000000..27c1a475bbc --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIcon.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Icon of virtual machine or template. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmIcon.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmIcon extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"comment", "data", "description", "id", "mediaType", "name"}) + public OlvmIcon( + String comment, + String data, + String description, + String id, + String mediaType, + String name) { + super(); + this.comment = comment; + this.data = data; + this.description = description; + this.id = id; + this.mediaType = mediaType; + this.name = name; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Base64 encode content of the icon file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("data") + private String data; + + /** + * Base64 encode content of the icon file. + * @param data the value to set + * @return this builder + **/ + public Builder data(String data) { + this.data = data; + this.__explicitlySet__.add("data"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Format of icon file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mediaType") + private String mediaType; + + /** + * Format of icon file. + * @param mediaType the value to set + * @return this builder + **/ + public Builder mediaType(String mediaType) { + this.mediaType = mediaType; + this.__explicitlySet__.add("mediaType"); + return this; + } + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the property. + * @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 OlvmIcon build() { + OlvmIcon model = + new OlvmIcon( + this.comment, + this.data, + this.description, + this.id, + this.mediaType, + this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmIcon model) { + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("data")) { + this.data(model.getData()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("mediaType")) { + this.mediaType(model.getMediaType()); + } + 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); + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * Base64 encode content of the icon file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("data") + private final String data; + + /** + * Base64 encode content of the icon file. + * @return the value + **/ + public String getData() { + return data; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Format of icon file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mediaType") + private final String mediaType; + + /** + * Format of icon file. + * @return the value + **/ + public String getMediaType() { + return mediaType; + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the property. + * @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("OlvmIcon("); + sb.append("super=").append(super.toString()); + sb.append("comment=").append(String.valueOf(this.comment)); + sb.append(", data=").append(String.valueOf(this.data)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", mediaType=").append(String.valueOf(this.mediaType)); + 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 OlvmIcon)) { + return false; + } + + OlvmIcon other = (OlvmIcon) o; + return java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.data, other.data) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.mediaType, other.mediaType) + && java.util.Objects.equals(this.name, other.name) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.data == null ? 43 : this.data.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.mediaType == null ? 43 : this.mediaType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmInitialization.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmInitialization.java new file mode 100644 index 00000000000..7d2e2687c7a --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmInitialization.java @@ -0,0 +1,901 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type representing initialization configuration of a virtual machine. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmInitialization.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmInitialization extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "activeDirectoryOu", + "cloudInitNetworkProtocol", + "configuration", + "customScript", + "dnsSearch", + "dnsServers", + "domain", + "hostName", + "inputLocale", + "nicConfigurations", + "orgName", + "isRegenerateIds", + "isRegenerateSshKeys", + "systemLocale", + "timezone", + "uiLanguage", + "userLocale", + "username", + "windowsLicenseKey" + }) + public OlvmInitialization( + String activeDirectoryOu, + CloudInitNetworkProtocol cloudInitNetworkProtocol, + OlvmConfiguration configuration, + String customScript, + String dnsSearch, + String dnsServers, + String domain, + String hostName, + String inputLocale, + java.util.List nicConfigurations, + String orgName, + Boolean isRegenerateIds, + Boolean isRegenerateSshKeys, + String systemLocale, + String timezone, + String uiLanguage, + String userLocale, + String username, + String windowsLicenseKey) { + super(); + this.activeDirectoryOu = activeDirectoryOu; + this.cloudInitNetworkProtocol = cloudInitNetworkProtocol; + this.configuration = configuration; + this.customScript = customScript; + this.dnsSearch = dnsSearch; + this.dnsServers = dnsServers; + this.domain = domain; + this.hostName = hostName; + this.inputLocale = inputLocale; + this.nicConfigurations = nicConfigurations; + this.orgName = orgName; + this.isRegenerateIds = isRegenerateIds; + this.isRegenerateSshKeys = isRegenerateSshKeys; + this.systemLocale = systemLocale; + this.timezone = timezone; + this.uiLanguage = uiLanguage; + this.userLocale = userLocale; + this.username = username; + this.windowsLicenseKey = windowsLicenseKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Active Directory Organizational Unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activeDirectoryOu") + private String activeDirectoryOu; + + /** + * Active Directory Organizational Unit. + * @param activeDirectoryOu the value to set + * @return this builder + **/ + public Builder activeDirectoryOu(String activeDirectoryOu) { + this.activeDirectoryOu = activeDirectoryOu; + this.__explicitlySet__.add("activeDirectoryOu"); + return this; + } + /** + * Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudInitNetworkProtocol") + private CloudInitNetworkProtocol cloudInitNetworkProtocol; + + /** + * Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init. + * @param cloudInitNetworkProtocol the value to set + * @return this builder + **/ + public Builder cloudInitNetworkProtocol(CloudInitNetworkProtocol cloudInitNetworkProtocol) { + this.cloudInitNetworkProtocol = cloudInitNetworkProtocol; + this.__explicitlySet__.add("cloudInitNetworkProtocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + private OlvmConfiguration configuration; + + public Builder configuration(OlvmConfiguration configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + return this; + } + /** + * Custom script that will be run when the VM starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customScript") + private String customScript; + + /** + * Custom script that will be run when the VM starts. + * @param customScript the value to set + * @return this builder + **/ + public Builder customScript(String customScript) { + this.customScript = customScript; + this.__explicitlySet__.add("customScript"); + return this; + } + /** + * DNS Search of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsSearch") + private String dnsSearch; + + /** + * DNS Search of the virtual machine. + * @param dnsSearch the value to set + * @return this builder + **/ + public Builder dnsSearch(String dnsSearch) { + this.dnsSearch = dnsSearch; + this.__explicitlySet__.add("dnsSearch"); + return this; + } + /** + * DNS Servers of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private String dnsServers; + + /** + * DNS Servers of the virtual machine. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(String dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * Domain of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private String domain; + + /** + * Domain of the virtual machine. + * @param domain the value to set + * @return this builder + **/ + public Builder domain(String domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } + /** + * Host name of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + /** + * Host name of the virtual machine. + * @param hostName the value to set + * @return this builder + **/ + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + /** + * Input locale of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("inputLocale") + private String inputLocale; + + /** + * Input locale of the virtual machine. + * @param inputLocale the value to set + * @return this builder + **/ + public Builder inputLocale(String inputLocale) { + this.inputLocale = inputLocale; + this.__explicitlySet__.add("inputLocale"); + return this; + } + /** + * The configuration of a virtual network interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nicConfigurations") + private java.util.List nicConfigurations; + + /** + * The configuration of a virtual network interface. + * @param nicConfigurations the value to set + * @return this builder + **/ + public Builder nicConfigurations(java.util.List nicConfigurations) { + this.nicConfigurations = nicConfigurations; + this.__explicitlySet__.add("nicConfigurations"); + return this; + } + /** + * Organization name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("orgName") + private String orgName; + + /** + * Organization name. + * @param orgName the value to set + * @return this builder + **/ + public Builder orgName(String orgName) { + this.orgName = orgName; + this.__explicitlySet__.add("orgName"); + return this; + } + /** + * Indicates if new IDs should be regenerated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRegenerateIds") + private Boolean isRegenerateIds; + + /** + * Indicates if new IDs should be regenerated. + * @param isRegenerateIds the value to set + * @return this builder + **/ + public Builder isRegenerateIds(Boolean isRegenerateIds) { + this.isRegenerateIds = isRegenerateIds; + this.__explicitlySet__.add("isRegenerateIds"); + return this; + } + /** + * Indicates if new SSH Keys should be regenerated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRegenerateSshKeys") + private Boolean isRegenerateSshKeys; + + /** + * Indicates if new SSH Keys should be regenerated. + * @param isRegenerateSshKeys the value to set + * @return this builder + **/ + public Builder isRegenerateSshKeys(Boolean isRegenerateSshKeys) { + this.isRegenerateSshKeys = isRegenerateSshKeys; + this.__explicitlySet__.add("isRegenerateSshKeys"); + return this; + } + /** + * System locale of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemLocale") + private String systemLocale; + + /** + * System locale of the virtual machine. + * @param systemLocale the value to set + * @return this builder + **/ + public Builder systemLocale(String systemLocale) { + this.systemLocale = systemLocale; + this.__explicitlySet__.add("systemLocale"); + return this; + } + /** + * Timezone of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private String timezone; + + /** + * Timezone of the virtual machine. + * @param timezone the value to set + * @return this builder + **/ + public Builder timezone(String timezone) { + this.timezone = timezone; + this.__explicitlySet__.add("timezone"); + return this; + } + /** + * UI Language of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uiLanguage") + private String uiLanguage; + + /** + * UI Language of the virtual machine. + * @param uiLanguage the value to set + * @return this builder + **/ + public Builder uiLanguage(String uiLanguage) { + this.uiLanguage = uiLanguage; + this.__explicitlySet__.add("uiLanguage"); + return this; + } + /** + * User Locale of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userLocale") + private String userLocale; + + /** + * User Locale of the virtual machine. + * @param userLocale the value to set + * @return this builder + **/ + public Builder userLocale(String userLocale) { + this.userLocale = userLocale; + this.__explicitlySet__.add("userLocale"); + return this; + } + /** + * User name of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * User name of the virtual machine. + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * Windows License Key of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsLicenseKey") + private String windowsLicenseKey; + + /** + * Windows License Key of the virtual machine. + * @param windowsLicenseKey the value to set + * @return this builder + **/ + public Builder windowsLicenseKey(String windowsLicenseKey) { + this.windowsLicenseKey = windowsLicenseKey; + this.__explicitlySet__.add("windowsLicenseKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmInitialization build() { + OlvmInitialization model = + new OlvmInitialization( + this.activeDirectoryOu, + this.cloudInitNetworkProtocol, + this.configuration, + this.customScript, + this.dnsSearch, + this.dnsServers, + this.domain, + this.hostName, + this.inputLocale, + this.nicConfigurations, + this.orgName, + this.isRegenerateIds, + this.isRegenerateSshKeys, + this.systemLocale, + this.timezone, + this.uiLanguage, + this.userLocale, + this.username, + this.windowsLicenseKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmInitialization model) { + if (model.wasPropertyExplicitlySet("activeDirectoryOu")) { + this.activeDirectoryOu(model.getActiveDirectoryOu()); + } + if (model.wasPropertyExplicitlySet("cloudInitNetworkProtocol")) { + this.cloudInitNetworkProtocol(model.getCloudInitNetworkProtocol()); + } + if (model.wasPropertyExplicitlySet("configuration")) { + this.configuration(model.getConfiguration()); + } + if (model.wasPropertyExplicitlySet("customScript")) { + this.customScript(model.getCustomScript()); + } + if (model.wasPropertyExplicitlySet("dnsSearch")) { + this.dnsSearch(model.getDnsSearch()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } + if (model.wasPropertyExplicitlySet("hostName")) { + this.hostName(model.getHostName()); + } + if (model.wasPropertyExplicitlySet("inputLocale")) { + this.inputLocale(model.getInputLocale()); + } + if (model.wasPropertyExplicitlySet("nicConfigurations")) { + this.nicConfigurations(model.getNicConfigurations()); + } + if (model.wasPropertyExplicitlySet("orgName")) { + this.orgName(model.getOrgName()); + } + if (model.wasPropertyExplicitlySet("isRegenerateIds")) { + this.isRegenerateIds(model.getIsRegenerateIds()); + } + if (model.wasPropertyExplicitlySet("isRegenerateSshKeys")) { + this.isRegenerateSshKeys(model.getIsRegenerateSshKeys()); + } + if (model.wasPropertyExplicitlySet("systemLocale")) { + this.systemLocale(model.getSystemLocale()); + } + if (model.wasPropertyExplicitlySet("timezone")) { + this.timezone(model.getTimezone()); + } + if (model.wasPropertyExplicitlySet("uiLanguage")) { + this.uiLanguage(model.getUiLanguage()); + } + if (model.wasPropertyExplicitlySet("userLocale")) { + this.userLocale(model.getUserLocale()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("windowsLicenseKey")) { + this.windowsLicenseKey(model.getWindowsLicenseKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Active Directory Organizational Unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activeDirectoryOu") + private final String activeDirectoryOu; + + /** + * Active Directory Organizational Unit. + * @return the value + **/ + public String getActiveDirectoryOu() { + return activeDirectoryOu; + } + + /** + * Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init. + **/ + public enum CloudInitNetworkProtocol { + Eni("ENI"), + OpenstackMetadata("OPENSTACK_METADATA"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CloudInitNetworkProtocol v : CloudInitNetworkProtocol.values()) { + map.put(v.getValue(), v); + } + } + + CloudInitNetworkProtocol(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CloudInitNetworkProtocol create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CloudInitNetworkProtocol: " + key); + } + }; + /** + * Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudInitNetworkProtocol") + private final CloudInitNetworkProtocol cloudInitNetworkProtocol; + + /** + * Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init. + * @return the value + **/ + public CloudInitNetworkProtocol getCloudInitNetworkProtocol() { + return cloudInitNetworkProtocol; + } + + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + private final OlvmConfiguration configuration; + + public OlvmConfiguration getConfiguration() { + return configuration; + } + + /** + * Custom script that will be run when the VM starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customScript") + private final String customScript; + + /** + * Custom script that will be run when the VM starts. + * @return the value + **/ + public String getCustomScript() { + return customScript; + } + + /** + * DNS Search of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsSearch") + private final String dnsSearch; + + /** + * DNS Search of the virtual machine. + * @return the value + **/ + public String getDnsSearch() { + return dnsSearch; + } + + /** + * DNS Servers of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final String dnsServers; + + /** + * DNS Servers of the virtual machine. + * @return the value + **/ + public String getDnsServers() { + return dnsServers; + } + + /** + * Domain of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final String domain; + + /** + * Domain of the virtual machine. + * @return the value + **/ + public String getDomain() { + return domain; + } + + /** + * Host name of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private final String hostName; + + /** + * Host name of the virtual machine. + * @return the value + **/ + public String getHostName() { + return hostName; + } + + /** + * Input locale of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("inputLocale") + private final String inputLocale; + + /** + * Input locale of the virtual machine. + * @return the value + **/ + public String getInputLocale() { + return inputLocale; + } + + /** + * The configuration of a virtual network interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nicConfigurations") + private final java.util.List nicConfigurations; + + /** + * The configuration of a virtual network interface. + * @return the value + **/ + public java.util.List getNicConfigurations() { + return nicConfigurations; + } + + /** + * Organization name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("orgName") + private final String orgName; + + /** + * Organization name. + * @return the value + **/ + public String getOrgName() { + return orgName; + } + + /** + * Indicates if new IDs should be regenerated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRegenerateIds") + private final Boolean isRegenerateIds; + + /** + * Indicates if new IDs should be regenerated. + * @return the value + **/ + public Boolean getIsRegenerateIds() { + return isRegenerateIds; + } + + /** + * Indicates if new SSH Keys should be regenerated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRegenerateSshKeys") + private final Boolean isRegenerateSshKeys; + + /** + * Indicates if new SSH Keys should be regenerated. + * @return the value + **/ + public Boolean getIsRegenerateSshKeys() { + return isRegenerateSshKeys; + } + + /** + * System locale of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemLocale") + private final String systemLocale; + + /** + * System locale of the virtual machine. + * @return the value + **/ + public String getSystemLocale() { + return systemLocale; + } + + /** + * Timezone of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private final String timezone; + + /** + * Timezone of the virtual machine. + * @return the value + **/ + public String getTimezone() { + return timezone; + } + + /** + * UI Language of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uiLanguage") + private final String uiLanguage; + + /** + * UI Language of the virtual machine. + * @return the value + **/ + public String getUiLanguage() { + return uiLanguage; + } + + /** + * User Locale of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userLocale") + private final String userLocale; + + /** + * User Locale of the virtual machine. + * @return the value + **/ + public String getUserLocale() { + return userLocale; + } + + /** + * User name of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * User name of the virtual machine. + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * Windows License Key of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsLicenseKey") + private final String windowsLicenseKey; + + /** + * Windows License Key of the virtual machine. + * @return the value + **/ + public String getWindowsLicenseKey() { + return windowsLicenseKey; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmInitialization("); + sb.append("super=").append(super.toString()); + sb.append("activeDirectoryOu=").append(String.valueOf(this.activeDirectoryOu)); + sb.append(", cloudInitNetworkProtocol=") + .append(String.valueOf(this.cloudInitNetworkProtocol)); + sb.append(", configuration=").append(String.valueOf(this.configuration)); + sb.append(", customScript=").append(String.valueOf(this.customScript)); + sb.append(", dnsSearch=").append(String.valueOf(this.dnsSearch)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", domain=").append(String.valueOf(this.domain)); + sb.append(", hostName=").append(String.valueOf(this.hostName)); + sb.append(", inputLocale=").append(String.valueOf(this.inputLocale)); + sb.append(", nicConfigurations=").append(String.valueOf(this.nicConfigurations)); + sb.append(", orgName=").append(String.valueOf(this.orgName)); + sb.append(", isRegenerateIds=").append(String.valueOf(this.isRegenerateIds)); + sb.append(", isRegenerateSshKeys=").append(String.valueOf(this.isRegenerateSshKeys)); + sb.append(", systemLocale=").append(String.valueOf(this.systemLocale)); + sb.append(", timezone=").append(String.valueOf(this.timezone)); + sb.append(", uiLanguage=").append(String.valueOf(this.uiLanguage)); + sb.append(", userLocale=").append(String.valueOf(this.userLocale)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", windowsLicenseKey=").append(String.valueOf(this.windowsLicenseKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmInitialization)) { + return false; + } + + OlvmInitialization other = (OlvmInitialization) o; + return java.util.Objects.equals(this.activeDirectoryOu, other.activeDirectoryOu) + && java.util.Objects.equals( + this.cloudInitNetworkProtocol, other.cloudInitNetworkProtocol) + && java.util.Objects.equals(this.configuration, other.configuration) + && java.util.Objects.equals(this.customScript, other.customScript) + && java.util.Objects.equals(this.dnsSearch, other.dnsSearch) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.domain, other.domain) + && java.util.Objects.equals(this.hostName, other.hostName) + && java.util.Objects.equals(this.inputLocale, other.inputLocale) + && java.util.Objects.equals(this.nicConfigurations, other.nicConfigurations) + && java.util.Objects.equals(this.orgName, other.orgName) + && java.util.Objects.equals(this.isRegenerateIds, other.isRegenerateIds) + && java.util.Objects.equals(this.isRegenerateSshKeys, other.isRegenerateSshKeys) + && java.util.Objects.equals(this.systemLocale, other.systemLocale) + && java.util.Objects.equals(this.timezone, other.timezone) + && java.util.Objects.equals(this.uiLanguage, other.uiLanguage) + && java.util.Objects.equals(this.userLocale, other.userLocale) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.windowsLicenseKey, other.windowsLicenseKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.activeDirectoryOu == null ? 43 : this.activeDirectoryOu.hashCode()); + result = + (result * PRIME) + + (this.cloudInitNetworkProtocol == null + ? 43 + : this.cloudInitNetworkProtocol.hashCode()); + result = + (result * PRIME) + + (this.configuration == null ? 43 : this.configuration.hashCode()); + result = (result * PRIME) + (this.customScript == null ? 43 : this.customScript.hashCode()); + result = (result * PRIME) + (this.dnsSearch == null ? 43 : this.dnsSearch.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); + result = (result * PRIME) + (this.hostName == null ? 43 : this.hostName.hashCode()); + result = (result * PRIME) + (this.inputLocale == null ? 43 : this.inputLocale.hashCode()); + result = + (result * PRIME) + + (this.nicConfigurations == null ? 43 : this.nicConfigurations.hashCode()); + result = (result * PRIME) + (this.orgName == null ? 43 : this.orgName.hashCode()); + result = + (result * PRIME) + + (this.isRegenerateIds == null ? 43 : this.isRegenerateIds.hashCode()); + result = + (result * PRIME) + + (this.isRegenerateSshKeys == null + ? 43 + : this.isRegenerateSshKeys.hashCode()); + result = (result * PRIME) + (this.systemLocale == null ? 43 : this.systemLocale.hashCode()); + result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); + result = (result * PRIME) + (this.uiLanguage == null ? 43 : this.uiLanguage.hashCode()); + result = (result * PRIME) + (this.userLocale == null ? 43 : this.userLocale.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = + (result * PRIME) + + (this.windowsLicenseKey == null ? 43 : this.windowsLicenseKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIp.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIp.java new file mode 100644 index 00000000000..8371c92dddc --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIp.java @@ -0,0 +1,279 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents the IP configuration of a network interface. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmIp.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmIp extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"address", "gateway", "netmask", "ipVersion"}) + public OlvmIp(String address, String gateway, String netmask, IpVersion ipVersion) { + super(); + this.address = address; + this.gateway = gateway; + this.netmask = netmask; + this.ipVersion = ipVersion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The text representation of the IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * The text representation of the IP address. + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * The address of the default gateway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The address of the default gateway. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The network mask. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The network mask. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The version of the IP protocol. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipVersion") + private IpVersion ipVersion; + + /** + * The version of the IP protocol. + * @param ipVersion the value to set + * @return this builder + **/ + public Builder ipVersion(IpVersion ipVersion) { + this.ipVersion = ipVersion; + this.__explicitlySet__.add("ipVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmIp build() { + OlvmIp model = new OlvmIp(this.address, this.gateway, this.netmask, this.ipVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmIp model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("ipVersion")) { + this.ipVersion(model.getIpVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The text representation of the IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * The text representation of the IP address. + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * The address of the default gateway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The address of the default gateway. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The network mask. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The network mask. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The version of the IP protocol. + **/ + public enum IpVersion { + V4("V4"), + V6("V6"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IpVersion v : IpVersion.values()) { + map.put(v.getValue(), v); + } + } + + IpVersion(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IpVersion create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid IpVersion: " + key); + } + }; + /** + * The version of the IP protocol. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipVersion") + private final IpVersion ipVersion; + + /** + * The version of the IP protocol. + * @return the value + **/ + public IpVersion getIpVersion() { + return ipVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmIp("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", ipVersion=").append(String.valueOf(this.ipVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmIp)) { + return false; + } + + OlvmIp other = (OlvmIp) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.ipVersion, other.ipVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.ipVersion == null ? 43 : this.ipVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIscsiDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIscsiDetails.java new file mode 100644 index 00000000000..ba7278f698d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmIscsiDetails.java @@ -0,0 +1,742 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The host iSCSI 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmIscsiDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmIscsiDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "address", + "diskId", + "initiator", + "lunMapping", + "paths", + "port", + "portal", + "productId", + "serial", + "sizeInBytes", + "status", + "storageDomainId", + "target", + "username", + "vendorId", + "volumeGroupId" + }) + public OlvmIscsiDetails( + String address, + String diskId, + String initiator, + Integer lunMapping, + Integer paths, + Integer port, + String portal, + String productId, + String serial, + Long sizeInBytes, + String status, + String storageDomainId, + String target, + String username, + String vendorId, + String volumeGroupId) { + super(); + this.address = address; + this.diskId = diskId; + this.initiator = initiator; + this.lunMapping = lunMapping; + this.paths = paths; + this.port = port; + this.portal = portal; + this.productId = productId; + this.serial = serial; + this.sizeInBytes = sizeInBytes; + this.status = status; + this.storageDomainId = storageDomainId; + this.target = target; + this.username = username; + this.vendorId = vendorId; + this.volumeGroupId = volumeGroupId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Address of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * Address of iSCSI + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * Disk ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskId") + private String diskId; + + /** + * Disk ID of iSCSI + * @param diskId the value to set + * @return this builder + **/ + public Builder diskId(String diskId) { + this.diskId = diskId; + this.__explicitlySet__.add("diskId"); + return this; + } + /** + * Initiator of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initiator") + private String initiator; + + /** + * Initiator of iSCSI + * @param initiator the value to set + * @return this builder + **/ + public Builder initiator(String initiator) { + this.initiator = initiator; + this.__explicitlySet__.add("initiator"); + return this; + } + /** + * LUN Mapping of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lunMapping") + private Integer lunMapping; + + /** + * LUN Mapping of iSCSI + * @param lunMapping the value to set + * @return this builder + **/ + public Builder lunMapping(Integer lunMapping) { + this.lunMapping = lunMapping; + this.__explicitlySet__.add("lunMapping"); + return this; + } + /** + * Number of paths of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("paths") + private Integer paths; + + /** + * Number of paths of iSCSI + * @param paths the value to set + * @return this builder + **/ + public Builder paths(Integer paths) { + this.paths = paths; + this.__explicitlySet__.add("paths"); + return this; + } + /** + * Port number of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Port number of iSCSI + * @param port the value to set + * @return this builder + **/ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** + * Portal of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("portal") + private String portal; + + /** + * Portal of iSCSI + * @param portal the value to set + * @return this builder + **/ + public Builder portal(String portal) { + this.portal = portal; + this.__explicitlySet__.add("portal"); + return this; + } + /** + * Product ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("productId") + private String productId; + + /** + * Product ID of iSCSI + * @param productId the value to set + * @return this builder + **/ + public Builder productId(String productId) { + this.productId = productId; + this.__explicitlySet__.add("productId"); + return this; + } + /** + * Serial of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serial") + private String serial; + + /** + * Serial of iSCSI + * @param serial the value to set + * @return this builder + **/ + public Builder serial(String serial) { + this.serial = serial; + this.__explicitlySet__.add("serial"); + return this; + } + /** + * size of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + /** + * size of iSCSI + * @param sizeInBytes the value to set + * @return this builder + **/ + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + /** + * Status of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private String status; + + /** + * Status of iSCSI + * @param status the value to set + * @return this builder + **/ + public Builder status(String status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * Storage Domain ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainId") + private String storageDomainId; + + /** + * Storage Domain ID of iSCSI + * @param storageDomainId the value to set + * @return this builder + **/ + public Builder storageDomainId(String storageDomainId) { + this.storageDomainId = storageDomainId; + this.__explicitlySet__.add("storageDomainId"); + return this; + } + /** + * target of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * target of iSCSI + * @param target the value to set + * @return this builder + **/ + public Builder target(String target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + /** + * Username of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * Username of iSCSI + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * Vendor ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vendorId") + private String vendorId; + + /** + * Vendor ID of iSCSI + * @param vendorId the value to set + * @return this builder + **/ + public Builder vendorId(String vendorId) { + this.vendorId = vendorId; + this.__explicitlySet__.add("vendorId"); + return this; + } + /** + * Volume Group ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupId") + private String volumeGroupId; + + /** + * Volume Group ID of iSCSI + * @param volumeGroupId the value to set + * @return this builder + **/ + public Builder volumeGroupId(String volumeGroupId) { + this.volumeGroupId = volumeGroupId; + this.__explicitlySet__.add("volumeGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmIscsiDetails build() { + OlvmIscsiDetails model = + new OlvmIscsiDetails( + this.address, + this.diskId, + this.initiator, + this.lunMapping, + this.paths, + this.port, + this.portal, + this.productId, + this.serial, + this.sizeInBytes, + this.status, + this.storageDomainId, + this.target, + this.username, + this.vendorId, + this.volumeGroupId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmIscsiDetails model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("diskId")) { + this.diskId(model.getDiskId()); + } + if (model.wasPropertyExplicitlySet("initiator")) { + this.initiator(model.getInitiator()); + } + if (model.wasPropertyExplicitlySet("lunMapping")) { + this.lunMapping(model.getLunMapping()); + } + if (model.wasPropertyExplicitlySet("paths")) { + this.paths(model.getPaths()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("portal")) { + this.portal(model.getPortal()); + } + if (model.wasPropertyExplicitlySet("productId")) { + this.productId(model.getProductId()); + } + if (model.wasPropertyExplicitlySet("serial")) { + this.serial(model.getSerial()); + } + if (model.wasPropertyExplicitlySet("sizeInBytes")) { + this.sizeInBytes(model.getSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("storageDomainId")) { + this.storageDomainId(model.getStorageDomainId()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("vendorId")) { + this.vendorId(model.getVendorId()); + } + if (model.wasPropertyExplicitlySet("volumeGroupId")) { + this.volumeGroupId(model.getVolumeGroupId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Address of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * Address of iSCSI + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * Disk ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskId") + private final String diskId; + + /** + * Disk ID of iSCSI + * @return the value + **/ + public String getDiskId() { + return diskId; + } + + /** + * Initiator of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initiator") + private final String initiator; + + /** + * Initiator of iSCSI + * @return the value + **/ + public String getInitiator() { + return initiator; + } + + /** + * LUN Mapping of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lunMapping") + private final Integer lunMapping; + + /** + * LUN Mapping of iSCSI + * @return the value + **/ + public Integer getLunMapping() { + return lunMapping; + } + + /** + * Number of paths of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("paths") + private final Integer paths; + + /** + * Number of paths of iSCSI + * @return the value + **/ + public Integer getPaths() { + return paths; + } + + /** + * Port number of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Port number of iSCSI + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * Portal of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("portal") + private final String portal; + + /** + * Portal of iSCSI + * @return the value + **/ + public String getPortal() { + return portal; + } + + /** + * Product ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("productId") + private final String productId; + + /** + * Product ID of iSCSI + * @return the value + **/ + public String getProductId() { + return productId; + } + + /** + * Serial of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serial") + private final String serial; + + /** + * Serial of iSCSI + * @return the value + **/ + public String getSerial() { + return serial; + } + + /** + * size of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private final Long sizeInBytes; + + /** + * size of iSCSI + * @return the value + **/ + public Long getSizeInBytes() { + return sizeInBytes; + } + + /** + * Status of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final String status; + + /** + * Status of iSCSI + * @return the value + **/ + public String getStatus() { + return status; + } + + /** + * Storage Domain ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainId") + private final String storageDomainId; + + /** + * Storage Domain ID of iSCSI + * @return the value + **/ + public String getStorageDomainId() { + return storageDomainId; + } + + /** + * target of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * target of iSCSI + * @return the value + **/ + public String getTarget() { + return target; + } + + /** + * Username of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * Username of iSCSI + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * Vendor ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vendorId") + private final String vendorId; + + /** + * Vendor ID of iSCSI + * @return the value + **/ + public String getVendorId() { + return vendorId; + } + + /** + * Volume Group ID of iSCSI + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupId") + private final String volumeGroupId; + + /** + * Volume Group ID of iSCSI + * @return the value + **/ + public String getVolumeGroupId() { + return volumeGroupId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmIscsiDetails("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", diskId=").append(String.valueOf(this.diskId)); + sb.append(", initiator=").append(String.valueOf(this.initiator)); + sb.append(", lunMapping=").append(String.valueOf(this.lunMapping)); + sb.append(", paths=").append(String.valueOf(this.paths)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", portal=").append(String.valueOf(this.portal)); + sb.append(", productId=").append(String.valueOf(this.productId)); + sb.append(", serial=").append(String.valueOf(this.serial)); + sb.append(", sizeInBytes=").append(String.valueOf(this.sizeInBytes)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", storageDomainId=").append(String.valueOf(this.storageDomainId)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", vendorId=").append(String.valueOf(this.vendorId)); + sb.append(", volumeGroupId=").append(String.valueOf(this.volumeGroupId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmIscsiDetails)) { + return false; + } + + OlvmIscsiDetails other = (OlvmIscsiDetails) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.diskId, other.diskId) + && java.util.Objects.equals(this.initiator, other.initiator) + && java.util.Objects.equals(this.lunMapping, other.lunMapping) + && java.util.Objects.equals(this.paths, other.paths) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.portal, other.portal) + && java.util.Objects.equals(this.productId, other.productId) + && java.util.Objects.equals(this.serial, other.serial) + && java.util.Objects.equals(this.sizeInBytes, other.sizeInBytes) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.storageDomainId, other.storageDomainId) + && java.util.Objects.equals(this.target, other.target) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.vendorId, other.vendorId) + && java.util.Objects.equals(this.volumeGroupId, other.volumeGroupId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = (result * PRIME) + (this.diskId == null ? 43 : this.diskId.hashCode()); + result = (result * PRIME) + (this.initiator == null ? 43 : this.initiator.hashCode()); + result = (result * PRIME) + (this.lunMapping == null ? 43 : this.lunMapping.hashCode()); + result = (result * PRIME) + (this.paths == null ? 43 : this.paths.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.portal == null ? 43 : this.portal.hashCode()); + result = (result * PRIME) + (this.productId == null ? 43 : this.productId.hashCode()); + result = (result * PRIME) + (this.serial == null ? 43 : this.serial.hashCode()); + result = (result * PRIME) + (this.sizeInBytes == null ? 43 : this.sizeInBytes.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.storageDomainId == null ? 43 : this.storageDomainId.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.vendorId == null ? 43 : this.vendorId.hashCode()); + result = + (result * PRIME) + + (this.volumeGroupId == null ? 43 : this.volumeGroupId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmKernel.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmKernel.java new file mode 100644 index 00000000000..4a164311d92 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmKernel.java @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Kernel version of the operating system. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmKernel.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmKernel extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"version"}) + public OlvmKernel(OlvmVersion version) { + super(); + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private OlvmVersion version; + + public Builder version(OlvmVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmKernel build() { + OlvmKernel model = new OlvmKernel(this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmKernel model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmVersion version; + + public OlvmVersion getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmKernel("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmKernel)) { + return false; + } + + OlvmKernel other = (OlvmKernel) o; + return java.util.Objects.equals(this.version, other.version) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmMemoryPolicy.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmMemoryPolicy.java new file mode 100644 index 00000000000..1738ab43ba9 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmMemoryPolicy.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Logical grouping of memory-related properties of virtual machine-like entities. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmMemoryPolicy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmMemoryPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isBallooning", + "guaranteedMemoryInBytes", + "maxMemoryInBytes", + "memoryOverCommit", + "transparentHugePages" + }) + public OlvmMemoryPolicy( + Boolean isBallooning, + Long guaranteedMemoryInBytes, + Long maxMemoryInBytes, + MemoryOverCommit memoryOverCommit, + TransparentHugePages transparentHugePages) { + super(); + this.isBallooning = isBallooning; + this.guaranteedMemoryInBytes = guaranteedMemoryInBytes; + this.maxMemoryInBytes = maxMemoryInBytes; + this.memoryOverCommit = memoryOverCommit; + this.transparentHugePages = transparentHugePages; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates if ballooning is enabled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBallooning") + private Boolean isBallooning; + + /** + * Indicates if ballooning is enabled + * @param isBallooning the value to set + * @return this builder + **/ + public Builder isBallooning(Boolean isBallooning) { + this.isBallooning = isBallooning; + this.__explicitlySet__.add("isBallooning"); + return this; + } + /** + * The amount of memory, in bytes, that is guaranteed to not be drained by the balloon mechanism + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guaranteedMemoryInBytes") + private Long guaranteedMemoryInBytes; + + /** + * The amount of memory, in bytes, that is guaranteed to not be drained by the balloon mechanism + * @param guaranteedMemoryInBytes the value to set + * @return this builder + **/ + public Builder guaranteedMemoryInBytes(Long guaranteedMemoryInBytes) { + this.guaranteedMemoryInBytes = guaranteedMemoryInBytes; + this.__explicitlySet__.add("guaranteedMemoryInBytes"); + return this; + } + /** + * Maximum virtual machine memory in Bytes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxMemoryInBytes") + private Long maxMemoryInBytes; + + /** + * Maximum virtual machine memory in Bytes + * @param maxMemoryInBytes the value to set + * @return this builder + **/ + public Builder maxMemoryInBytes(Long maxMemoryInBytes) { + this.maxMemoryInBytes = maxMemoryInBytes; + this.__explicitlySet__.add("maxMemoryInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryOverCommit") + private MemoryOverCommit memoryOverCommit; + + public Builder memoryOverCommit(MemoryOverCommit memoryOverCommit) { + this.memoryOverCommit = memoryOverCommit; + this.__explicitlySet__.add("memoryOverCommit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("transparentHugePages") + private TransparentHugePages transparentHugePages; + + public Builder transparentHugePages(TransparentHugePages transparentHugePages) { + this.transparentHugePages = transparentHugePages; + this.__explicitlySet__.add("transparentHugePages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmMemoryPolicy build() { + OlvmMemoryPolicy model = + new OlvmMemoryPolicy( + this.isBallooning, + this.guaranteedMemoryInBytes, + this.maxMemoryInBytes, + this.memoryOverCommit, + this.transparentHugePages); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmMemoryPolicy model) { + if (model.wasPropertyExplicitlySet("isBallooning")) { + this.isBallooning(model.getIsBallooning()); + } + if (model.wasPropertyExplicitlySet("guaranteedMemoryInBytes")) { + this.guaranteedMemoryInBytes(model.getGuaranteedMemoryInBytes()); + } + if (model.wasPropertyExplicitlySet("maxMemoryInBytes")) { + this.maxMemoryInBytes(model.getMaxMemoryInBytes()); + } + if (model.wasPropertyExplicitlySet("memoryOverCommit")) { + this.memoryOverCommit(model.getMemoryOverCommit()); + } + if (model.wasPropertyExplicitlySet("transparentHugePages")) { + this.transparentHugePages(model.getTransparentHugePages()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates if ballooning is enabled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBallooning") + private final Boolean isBallooning; + + /** + * Indicates if ballooning is enabled + * @return the value + **/ + public Boolean getIsBallooning() { + return isBallooning; + } + + /** + * The amount of memory, in bytes, that is guaranteed to not be drained by the balloon mechanism + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guaranteedMemoryInBytes") + private final Long guaranteedMemoryInBytes; + + /** + * The amount of memory, in bytes, that is guaranteed to not be drained by the balloon mechanism + * @return the value + **/ + public Long getGuaranteedMemoryInBytes() { + return guaranteedMemoryInBytes; + } + + /** + * Maximum virtual machine memory in Bytes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxMemoryInBytes") + private final Long maxMemoryInBytes; + + /** + * Maximum virtual machine memory in Bytes + * @return the value + **/ + public Long getMaxMemoryInBytes() { + return maxMemoryInBytes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryOverCommit") + private final MemoryOverCommit memoryOverCommit; + + public MemoryOverCommit getMemoryOverCommit() { + return memoryOverCommit; + } + + @com.fasterxml.jackson.annotation.JsonProperty("transparentHugePages") + private final TransparentHugePages transparentHugePages; + + public TransparentHugePages getTransparentHugePages() { + return transparentHugePages; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmMemoryPolicy("); + sb.append("super=").append(super.toString()); + sb.append("isBallooning=").append(String.valueOf(this.isBallooning)); + sb.append(", guaranteedMemoryInBytes=") + .append(String.valueOf(this.guaranteedMemoryInBytes)); + sb.append(", maxMemoryInBytes=").append(String.valueOf(this.maxMemoryInBytes)); + sb.append(", memoryOverCommit=").append(String.valueOf(this.memoryOverCommit)); + sb.append(", transparentHugePages=").append(String.valueOf(this.transparentHugePages)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmMemoryPolicy)) { + return false; + } + + OlvmMemoryPolicy other = (OlvmMemoryPolicy) o; + return java.util.Objects.equals(this.isBallooning, other.isBallooning) + && java.util.Objects.equals( + this.guaranteedMemoryInBytes, other.guaranteedMemoryInBytes) + && java.util.Objects.equals(this.maxMemoryInBytes, other.maxMemoryInBytes) + && java.util.Objects.equals(this.memoryOverCommit, other.memoryOverCommit) + && java.util.Objects.equals(this.transparentHugePages, other.transparentHugePages) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isBallooning == null ? 43 : this.isBallooning.hashCode()); + result = + (result * PRIME) + + (this.guaranteedMemoryInBytes == null + ? 43 + : this.guaranteedMemoryInBytes.hashCode()); + result = + (result * PRIME) + + (this.maxMemoryInBytes == null ? 43 : this.maxMemoryInBytes.hashCode()); + result = + (result * PRIME) + + (this.memoryOverCommit == null ? 43 : this.memoryOverCommit.hashCode()); + result = + (result * PRIME) + + (this.transparentHugePages == null + ? 43 + : this.transparentHugePages.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmMigrationOptions.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmMigrationOptions.java new file mode 100644 index 00000000000..e01c9ef9bbd --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmMigrationOptions.java @@ -0,0 +1,484 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Reference to cluster-wide configuration of migration of a running virtual machine to another 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmMigrationOptions.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmMigrationOptions extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "autoConverge", + "bandwidth", + "compressed", + "customParallelMigrations", + "encrypted", + "parallelMigrationsPolicy" + }) + public OlvmMigrationOptions( + AutoConverge autoConverge, + MigrationBandwidth bandwidth, + Compressed compressed, + Integer customParallelMigrations, + Encrypted encrypted, + ParallelMigrationsPolicy parallelMigrationsPolicy) { + super(); + this.autoConverge = autoConverge; + this.bandwidth = bandwidth; + this.compressed = compressed; + this.customParallelMigrations = customParallelMigrations; + this.encrypted = encrypted; + this.parallelMigrationsPolicy = parallelMigrationsPolicy; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoConverge") + private AutoConverge autoConverge; + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + * @param autoConverge the value to set + * @return this builder + **/ + public Builder autoConverge(AutoConverge autoConverge) { + this.autoConverge = autoConverge; + this.__explicitlySet__.add("autoConverge"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bandwidth") + private MigrationBandwidth bandwidth; + + public Builder bandwidth(MigrationBandwidth bandwidth) { + this.bandwidth = bandwidth; + this.__explicitlySet__.add("bandwidth"); + return this; + } + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compressed") + private Compressed compressed; + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + * @param compressed the value to set + * @return this builder + **/ + public Builder compressed(Compressed compressed) { + this.compressed = compressed; + this.__explicitlySet__.add("compressed"); + return this; + } + /** + * Specifies how many parallel migration connections to use. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customParallelMigrations") + private Integer customParallelMigrations; + + /** + * Specifies how many parallel migration connections to use. + * @param customParallelMigrations the value to set + * @return this builder + **/ + public Builder customParallelMigrations(Integer customParallelMigrations) { + this.customParallelMigrations = customParallelMigrations; + this.__explicitlySet__.add("customParallelMigrations"); + return this; + } + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("encrypted") + private Encrypted encrypted; + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + * @param encrypted the value to set + * @return this builder + **/ + public Builder encrypted(Encrypted encrypted) { + this.encrypted = encrypted; + this.__explicitlySet__.add("encrypted"); + return this; + } + /** + * Type representing parallel migration connections policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parallelMigrationsPolicy") + private ParallelMigrationsPolicy parallelMigrationsPolicy; + + /** + * Type representing parallel migration connections policy. + * @param parallelMigrationsPolicy the value to set + * @return this builder + **/ + public Builder parallelMigrationsPolicy(ParallelMigrationsPolicy parallelMigrationsPolicy) { + this.parallelMigrationsPolicy = parallelMigrationsPolicy; + this.__explicitlySet__.add("parallelMigrationsPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmMigrationOptions build() { + OlvmMigrationOptions model = + new OlvmMigrationOptions( + this.autoConverge, + this.bandwidth, + this.compressed, + this.customParallelMigrations, + this.encrypted, + this.parallelMigrationsPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmMigrationOptions model) { + if (model.wasPropertyExplicitlySet("autoConverge")) { + this.autoConverge(model.getAutoConverge()); + } + if (model.wasPropertyExplicitlySet("bandwidth")) { + this.bandwidth(model.getBandwidth()); + } + if (model.wasPropertyExplicitlySet("compressed")) { + this.compressed(model.getCompressed()); + } + if (model.wasPropertyExplicitlySet("customParallelMigrations")) { + this.customParallelMigrations(model.getCustomParallelMigrations()); + } + if (model.wasPropertyExplicitlySet("encrypted")) { + this.encrypted(model.getEncrypted()); + } + if (model.wasPropertyExplicitlySet("parallelMigrationsPolicy")) { + this.parallelMigrationsPolicy(model.getParallelMigrationsPolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + public enum AutoConverge { + False("FALSE"), + Inherit("INHERIT"), + True("TRUE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoConverge v : AutoConverge.values()) { + map.put(v.getValue(), v); + } + } + + AutoConverge(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoConverge create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AutoConverge: " + key); + } + }; + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoConverge") + private final AutoConverge autoConverge; + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + * @return the value + **/ + public AutoConverge getAutoConverge() { + return autoConverge; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bandwidth") + private final MigrationBandwidth bandwidth; + + public MigrationBandwidth getBandwidth() { + return bandwidth; + } + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + public enum Compressed { + False("FALSE"), + Inherit("INHERIT"), + True("TRUE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Compressed v : Compressed.values()) { + map.put(v.getValue(), v); + } + } + + Compressed(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Compressed create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Compressed: " + key); + } + }; + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compressed") + private final Compressed compressed; + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + * @return the value + **/ + public Compressed getCompressed() { + return compressed; + } + + /** + * Specifies how many parallel migration connections to use. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customParallelMigrations") + private final Integer customParallelMigrations; + + /** + * Specifies how many parallel migration connections to use. + * @return the value + **/ + public Integer getCustomParallelMigrations() { + return customParallelMigrations; + } + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + public enum Encrypted { + False("FALSE"), + Inherit("INHERIT"), + True("TRUE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Encrypted v : Encrypted.values()) { + map.put(v.getValue(), v); + } + } + + Encrypted(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Encrypted create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Encrypted: " + key); + } + }; + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("encrypted") + private final Encrypted encrypted; + + /** + * Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine \u2192 cluster \u2192 engine-config. + * @return the value + **/ + public Encrypted getEncrypted() { + return encrypted; + } + + /** + * Type representing parallel migration connections policy. + **/ + public enum ParallelMigrationsPolicy { + Auto("AUTO"), + AutoParallel("AUTO_PARALLEL"), + Custom("CUSTOM"), + Disabled("DISABLED"), + Inherit("INHERIT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ParallelMigrationsPolicy v : ParallelMigrationsPolicy.values()) { + map.put(v.getValue(), v); + } + } + + ParallelMigrationsPolicy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ParallelMigrationsPolicy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ParallelMigrationsPolicy: " + key); + } + }; + /** + * Type representing parallel migration connections policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parallelMigrationsPolicy") + private final ParallelMigrationsPolicy parallelMigrationsPolicy; + + /** + * Type representing parallel migration connections policy. + * @return the value + **/ + public ParallelMigrationsPolicy getParallelMigrationsPolicy() { + return parallelMigrationsPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmMigrationOptions("); + sb.append("super=").append(super.toString()); + sb.append("autoConverge=").append(String.valueOf(this.autoConverge)); + sb.append(", bandwidth=").append(String.valueOf(this.bandwidth)); + sb.append(", compressed=").append(String.valueOf(this.compressed)); + sb.append(", customParallelMigrations=") + .append(String.valueOf(this.customParallelMigrations)); + sb.append(", encrypted=").append(String.valueOf(this.encrypted)); + sb.append(", parallelMigrationsPolicy=") + .append(String.valueOf(this.parallelMigrationsPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmMigrationOptions)) { + return false; + } + + OlvmMigrationOptions other = (OlvmMigrationOptions) o; + return java.util.Objects.equals(this.autoConverge, other.autoConverge) + && java.util.Objects.equals(this.bandwidth, other.bandwidth) + && java.util.Objects.equals(this.compressed, other.compressed) + && java.util.Objects.equals( + this.customParallelMigrations, other.customParallelMigrations) + && java.util.Objects.equals(this.encrypted, other.encrypted) + && java.util.Objects.equals( + this.parallelMigrationsPolicy, other.parallelMigrationsPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.autoConverge == null ? 43 : this.autoConverge.hashCode()); + result = (result * PRIME) + (this.bandwidth == null ? 43 : this.bandwidth.hashCode()); + result = (result * PRIME) + (this.compressed == null ? 43 : this.compressed.hashCode()); + result = + (result * PRIME) + + (this.customParallelMigrations == null + ? 43 + : this.customParallelMigrations.hashCode()); + result = (result * PRIME) + (this.encrypted == null ? 43 : this.encrypted.hashCode()); + result = + (result * PRIME) + + (this.parallelMigrationsPolicy == null + ? 43 + : this.parallelMigrationsPolicy.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmNicConfiguration.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmNicConfiguration.java new file mode 100644 index 00000000000..64a25177ed6 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmNicConfiguration.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The type describes the configuration of a virtual network interface. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmNicConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmNicConfiguration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "bootProtocol", + "ip", + "ipv6", + "ipv6BootProtocol", + "name", + "isOnBoot" + }) + public OlvmNicConfiguration( + OlvmBootProtocol bootProtocol, + OlvmIp ip, + OlvmIp ipv6, + OlvmBootProtocol ipv6BootProtocol, + String name, + Boolean isOnBoot) { + super(); + this.bootProtocol = bootProtocol; + this.ip = ip; + this.ipv6 = ipv6; + this.ipv6BootProtocol = ipv6BootProtocol; + this.name = name; + this.isOnBoot = isOnBoot; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("bootProtocol") + private OlvmBootProtocol bootProtocol; + + public Builder bootProtocol(OlvmBootProtocol bootProtocol) { + this.bootProtocol = bootProtocol; + this.__explicitlySet__.add("bootProtocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ip") + private OlvmIp ip; + + public Builder ip(OlvmIp ip) { + this.ip = ip; + this.__explicitlySet__.add("ip"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6") + private OlvmIp ipv6; + + public Builder ipv6(OlvmIp ipv6) { + this.ipv6 = ipv6; + this.__explicitlySet__.add("ipv6"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6BootProtocol") + private OlvmBootProtocol ipv6BootProtocol; + + public Builder ipv6BootProtocol(OlvmBootProtocol ipv6BootProtocol) { + this.ipv6BootProtocol = ipv6BootProtocol; + this.__explicitlySet__.add("ipv6BootProtocol"); + return this; + } + /** + * Network interface name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Network interface name. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Specifies whether the network interface should be activated on the virtual machine guest operating system boot. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOnBoot") + private Boolean isOnBoot; + + /** + * Specifies whether the network interface should be activated on the virtual machine guest operating system boot. + * @param isOnBoot the value to set + * @return this builder + **/ + public Builder isOnBoot(Boolean isOnBoot) { + this.isOnBoot = isOnBoot; + this.__explicitlySet__.add("isOnBoot"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmNicConfiguration build() { + OlvmNicConfiguration model = + new OlvmNicConfiguration( + this.bootProtocol, + this.ip, + this.ipv6, + this.ipv6BootProtocol, + this.name, + this.isOnBoot); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmNicConfiguration model) { + if (model.wasPropertyExplicitlySet("bootProtocol")) { + this.bootProtocol(model.getBootProtocol()); + } + if (model.wasPropertyExplicitlySet("ip")) { + this.ip(model.getIp()); + } + if (model.wasPropertyExplicitlySet("ipv6")) { + this.ipv6(model.getIpv6()); + } + if (model.wasPropertyExplicitlySet("ipv6BootProtocol")) { + this.ipv6BootProtocol(model.getIpv6BootProtocol()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("isOnBoot")) { + this.isOnBoot(model.getIsOnBoot()); + } + 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("bootProtocol") + private final OlvmBootProtocol bootProtocol; + + public OlvmBootProtocol getBootProtocol() { + return bootProtocol; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ip") + private final OlvmIp ip; + + public OlvmIp getIp() { + return ip; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6") + private final OlvmIp ipv6; + + public OlvmIp getIpv6() { + return ipv6; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6BootProtocol") + private final OlvmBootProtocol ipv6BootProtocol; + + public OlvmBootProtocol getIpv6BootProtocol() { + return ipv6BootProtocol; + } + + /** + * Network interface name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Network interface name. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Specifies whether the network interface should be activated on the virtual machine guest operating system boot. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOnBoot") + private final Boolean isOnBoot; + + /** + * Specifies whether the network interface should be activated on the virtual machine guest operating system boot. + * @return the value + **/ + public Boolean getIsOnBoot() { + return isOnBoot; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmNicConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("bootProtocol=").append(String.valueOf(this.bootProtocol)); + sb.append(", ip=").append(String.valueOf(this.ip)); + sb.append(", ipv6=").append(String.valueOf(this.ipv6)); + sb.append(", ipv6BootProtocol=").append(String.valueOf(this.ipv6BootProtocol)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", isOnBoot=").append(String.valueOf(this.isOnBoot)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmNicConfiguration)) { + return false; + } + + OlvmNicConfiguration other = (OlvmNicConfiguration) o; + return java.util.Objects.equals(this.bootProtocol, other.bootProtocol) + && java.util.Objects.equals(this.ip, other.ip) + && java.util.Objects.equals(this.ipv6, other.ipv6) + && java.util.Objects.equals(this.ipv6BootProtocol, other.ipv6BootProtocol) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.isOnBoot, other.isOnBoot) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.bootProtocol == null ? 43 : this.bootProtocol.hashCode()); + result = (result * PRIME) + (this.ip == null ? 43 : this.ip.hashCode()); + result = (result * PRIME) + (this.ipv6 == null ? 43 : this.ipv6.hashCode()); + result = + (result * PRIME) + + (this.ipv6BootProtocol == null ? 43 : this.ipv6BootProtocol.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.isOnBoot == null ? 43 : this.isOnBoot.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmOperatingSystem.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmOperatingSystem.java new file mode 100644 index 00000000000..e4568f04779 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmOperatingSystem.java @@ -0,0 +1,414 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Information describing the operating system. This is used for both virtual machines and hosts. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmOperatingSystem.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmOperatingSystem extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "boot", + "cmdLine", + "customKernelCmdLine", + "initRd", + "kernel", + "reportedKernelCmdLine", + "type", + "version" + }) + public OlvmOperatingSystem( + java.util.List boot, + String cmdLine, + String customKernelCmdLine, + String initRd, + String kernel, + String reportedKernelCmdLine, + String type, + OlvmVersion version) { + super(); + this.boot = boot; + this.cmdLine = cmdLine; + this.customKernelCmdLine = customKernelCmdLine; + this.initRd = initRd; + this.kernel = kernel; + this.reportedKernelCmdLine = reportedKernelCmdLine; + this.type = type; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Configuration of the boot sequence of a virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("boot") + private java.util.List boot; + + /** + * Configuration of the boot sequence of a virtual machine. + * @param boot the value to set + * @return this builder + **/ + public Builder boot(java.util.List boot) { + this.boot = boot; + this.__explicitlySet__.add("boot"); + return this; + } + /** + * Custom kernel parameters for starting the virtual machine if Linux operating system is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cmdLine") + private String cmdLine; + + /** + * Custom kernel parameters for starting the virtual machine if Linux operating system is used. + * @param cmdLine the value to set + * @return this builder + **/ + public Builder cmdLine(String cmdLine) { + this.cmdLine = cmdLine; + this.__explicitlySet__.add("cmdLine"); + return this; + } + /** + * A custom part of the host kernel command line. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customKernelCmdLine") + private String customKernelCmdLine; + + /** + * A custom part of the host kernel command line. + * @param customKernelCmdLine the value to set + * @return this builder + **/ + public Builder customKernelCmdLine(String customKernelCmdLine) { + this.customKernelCmdLine = customKernelCmdLine; + this.__explicitlySet__.add("customKernelCmdLine"); + return this; + } + /** + * Path to custom initial ramdisk on ISO storage domain if Linux operating system is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initRd") + private String initRd; + + /** + * Path to custom initial ramdisk on ISO storage domain if Linux operating system is used. + * @param initRd the value to set + * @return this builder + **/ + public Builder initRd(String initRd) { + this.initRd = initRd; + this.__explicitlySet__.add("initRd"); + return this; + } + /** + * Path to custom kernel on ISO storage domain if Linux operating system is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kernel") + private String kernel; + + /** + * Path to custom kernel on ISO storage domain if Linux operating system is used. + * @param kernel the value to set + * @return this builder + **/ + public Builder kernel(String kernel) { + this.kernel = kernel; + this.__explicitlySet__.add("kernel"); + return this; + } + /** + * The host kernel command line as reported by a running host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reportedKernelCmdLine") + private String reportedKernelCmdLine; + + /** + * The host kernel command line as reported by a running host. + * @param reportedKernelCmdLine the value to set + * @return this builder + **/ + public Builder reportedKernelCmdLine(String reportedKernelCmdLine) { + this.reportedKernelCmdLine = reportedKernelCmdLine; + this.__explicitlySet__.add("reportedKernelCmdLine"); + return this; + } + /** + * Operating system name in human readable form + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Operating system name in human readable form + * @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.JsonProperty("version") + private OlvmVersion version; + + public Builder version(OlvmVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmOperatingSystem build() { + OlvmOperatingSystem model = + new OlvmOperatingSystem( + this.boot, + this.cmdLine, + this.customKernelCmdLine, + this.initRd, + this.kernel, + this.reportedKernelCmdLine, + this.type, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmOperatingSystem model) { + if (model.wasPropertyExplicitlySet("boot")) { + this.boot(model.getBoot()); + } + if (model.wasPropertyExplicitlySet("cmdLine")) { + this.cmdLine(model.getCmdLine()); + } + if (model.wasPropertyExplicitlySet("customKernelCmdLine")) { + this.customKernelCmdLine(model.getCustomKernelCmdLine()); + } + if (model.wasPropertyExplicitlySet("initRd")) { + this.initRd(model.getInitRd()); + } + if (model.wasPropertyExplicitlySet("kernel")) { + this.kernel(model.getKernel()); + } + if (model.wasPropertyExplicitlySet("reportedKernelCmdLine")) { + this.reportedKernelCmdLine(model.getReportedKernelCmdLine()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Configuration of the boot sequence of a virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("boot") + private final java.util.List boot; + + /** + * Configuration of the boot sequence of a virtual machine. + * @return the value + **/ + public java.util.List getBoot() { + return boot; + } + + /** + * Custom kernel parameters for starting the virtual machine if Linux operating system is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cmdLine") + private final String cmdLine; + + /** + * Custom kernel parameters for starting the virtual machine if Linux operating system is used. + * @return the value + **/ + public String getCmdLine() { + return cmdLine; + } + + /** + * A custom part of the host kernel command line. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customKernelCmdLine") + private final String customKernelCmdLine; + + /** + * A custom part of the host kernel command line. + * @return the value + **/ + public String getCustomKernelCmdLine() { + return customKernelCmdLine; + } + + /** + * Path to custom initial ramdisk on ISO storage domain if Linux operating system is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initRd") + private final String initRd; + + /** + * Path to custom initial ramdisk on ISO storage domain if Linux operating system is used. + * @return the value + **/ + public String getInitRd() { + return initRd; + } + + /** + * Path to custom kernel on ISO storage domain if Linux operating system is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kernel") + private final String kernel; + + /** + * Path to custom kernel on ISO storage domain if Linux operating system is used. + * @return the value + **/ + public String getKernel() { + return kernel; + } + + /** + * The host kernel command line as reported by a running host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reportedKernelCmdLine") + private final String reportedKernelCmdLine; + + /** + * The host kernel command line as reported by a running host. + * @return the value + **/ + public String getReportedKernelCmdLine() { + return reportedKernelCmdLine; + } + + /** + * Operating system name in human readable form + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Operating system name in human readable form + * @return the value + **/ + public String getType() { + return type; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmVersion version; + + public OlvmVersion getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmOperatingSystem("); + sb.append("super=").append(super.toString()); + sb.append("boot=").append(String.valueOf(this.boot)); + sb.append(", cmdLine=").append(String.valueOf(this.cmdLine)); + sb.append(", customKernelCmdLine=").append(String.valueOf(this.customKernelCmdLine)); + sb.append(", initRd=").append(String.valueOf(this.initRd)); + sb.append(", kernel=").append(String.valueOf(this.kernel)); + sb.append(", reportedKernelCmdLine=").append(String.valueOf(this.reportedKernelCmdLine)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmOperatingSystem)) { + return false; + } + + OlvmOperatingSystem other = (OlvmOperatingSystem) o; + return java.util.Objects.equals(this.boot, other.boot) + && java.util.Objects.equals(this.cmdLine, other.cmdLine) + && java.util.Objects.equals(this.customKernelCmdLine, other.customKernelCmdLine) + && java.util.Objects.equals(this.initRd, other.initRd) + && java.util.Objects.equals(this.kernel, other.kernel) + && java.util.Objects.equals(this.reportedKernelCmdLine, other.reportedKernelCmdLine) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.boot == null ? 43 : this.boot.hashCode()); + result = (result * PRIME) + (this.cmdLine == null ? 43 : this.cmdLine.hashCode()); + result = + (result * PRIME) + + (this.customKernelCmdLine == null + ? 43 + : this.customKernelCmdLine.hashCode()); + result = (result * PRIME) + (this.initRd == null ? 43 : this.initRd.hashCode()); + result = (result * PRIME) + (this.kernel == null ? 43 : this.kernel.hashCode()); + result = + (result * PRIME) + + (this.reportedKernelCmdLine == null + ? 43 + : this.reportedKernelCmdLine.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmPmProxy.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmPmProxy.java new file mode 100644 index 00000000000..094e09b7c49 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmPmProxy.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Power management proxy types. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmPmProxy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmPmProxy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type"}) + public OlvmPmProxy(Type type) { + super(); + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Pm Proxy Type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Pm Proxy Type + * @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 OlvmPmProxy build() { + OlvmPmProxy model = new OlvmPmProxy(this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmPmProxy model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Pm Proxy Type + **/ + public enum Type { + Cluster("CLUSTER"), + Dc("DC"), + OtherDc("OTHER_DC"), + ; + + 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); + } + }; + /** + * Pm Proxy Type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Pm Proxy Type + * @return the value + **/ + public Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmPmProxy("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmPmProxy)) { + return false; + } + + OlvmPmProxy other = (OlvmPmProxy) o; + return java.util.Objects.equals(this.type, other.type) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmPowerManagement.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmPowerManagement.java new file mode 100644 index 00000000000..6d24251f524 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmPowerManagement.java @@ -0,0 +1,502 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Power management definitions + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmPowerManagement.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmPowerManagement extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "address", + "agents", + "isAutomaticPmEnabled", + "isEnabled", + "isKDumpDetection", + "pmProxies", + "status", + "type", + "username" + }) + public OlvmPowerManagement( + String address, + java.util.List agents, + Boolean isAutomaticPmEnabled, + Boolean isEnabled, + Boolean isKDumpDetection, + java.util.List pmProxies, + Status status, + String type, + String username) { + super(); + this.address = address; + this.agents = agents; + this.isAutomaticPmEnabled = isAutomaticPmEnabled; + this.isEnabled = isEnabled; + this.isKDumpDetection = isKDumpDetection; + this.pmProxies = pmProxies; + this.status = status; + this.type = type; + this.username = username; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Address of power management + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * Address of power management + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * Supported sources of random number generator. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("agents") + private java.util.List agents; + + /** + * Supported sources of random number generator. + * @param agents the value to set + * @return this builder + **/ + public Builder agents(java.util.List agents) { + this.agents = agents; + this.__explicitlySet__.add("agents"); + return this; + } + /** + * Toggles the automated power control of the host in order to save energy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticPmEnabled") + private Boolean isAutomaticPmEnabled; + + /** + * Toggles the automated power control of the host in order to save energy. + * @param isAutomaticPmEnabled the value to set + * @return this builder + **/ + public Builder isAutomaticPmEnabled(Boolean isAutomaticPmEnabled) { + this.isAutomaticPmEnabled = isAutomaticPmEnabled; + this.__explicitlySet__.add("isAutomaticPmEnabled"); + return this; + } + /** + * Indicates whether power management configuration is enabled or disabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Indicates whether power management configuration is enabled or disabled. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Toggles whether to determine if kdump is running on the host before it is shut down. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isKDumpDetection") + private Boolean isKDumpDetection; + + /** + * Toggles whether to determine if kdump is running on the host before it is shut down. + * @param isKDumpDetection the value to set + * @return this builder + **/ + public Builder isKDumpDetection(Boolean isKDumpDetection) { + this.isKDumpDetection = isKDumpDetection; + this.__explicitlySet__.add("isKDumpDetection"); + return this; + } + /** + * Determines the power management proxy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pmProxies") + private java.util.List pmProxies; + + /** + * Determines the power management proxy. + * @param pmProxies the value to set + * @return this builder + **/ + public Builder pmProxies(java.util.List pmProxies) { + this.pmProxies = pmProxies; + this.__explicitlySet__.add("pmProxies"); + return this; + } + /** + * Determines the power status of the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Determines the power status of the host. + * @param status the value to set + * @return this builder + **/ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * Fencing device code. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Fencing device code. + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * A valid user name for power management. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * A valid user name for power management. + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmPowerManagement build() { + OlvmPowerManagement model = + new OlvmPowerManagement( + this.address, + this.agents, + this.isAutomaticPmEnabled, + this.isEnabled, + this.isKDumpDetection, + this.pmProxies, + this.status, + this.type, + this.username); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmPowerManagement model) { + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("agents")) { + this.agents(model.getAgents()); + } + if (model.wasPropertyExplicitlySet("isAutomaticPmEnabled")) { + this.isAutomaticPmEnabled(model.getIsAutomaticPmEnabled()); + } + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("isKDumpDetection")) { + this.isKDumpDetection(model.getIsKDumpDetection()); + } + if (model.wasPropertyExplicitlySet("pmProxies")) { + this.pmProxies(model.getPmProxies()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Address of power management + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * Address of power management + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * Supported sources of random number generator. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("agents") + private final java.util.List agents; + + /** + * Supported sources of random number generator. + * @return the value + **/ + public java.util.List getAgents() { + return agents; + } + + /** + * Toggles the automated power control of the host in order to save energy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticPmEnabled") + private final Boolean isAutomaticPmEnabled; + + /** + * Toggles the automated power control of the host in order to save energy. + * @return the value + **/ + public Boolean getIsAutomaticPmEnabled() { + return isAutomaticPmEnabled; + } + + /** + * Indicates whether power management configuration is enabled or disabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Indicates whether power management configuration is enabled or disabled. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Toggles whether to determine if kdump is running on the host before it is shut down. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isKDumpDetection") + private final Boolean isKDumpDetection; + + /** + * Toggles whether to determine if kdump is running on the host before it is shut down. + * @return the value + **/ + public Boolean getIsKDumpDetection() { + return isKDumpDetection; + } + + /** + * Determines the power management proxy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pmProxies") + private final java.util.List pmProxies; + + /** + * Determines the power management proxy. + * @return the value + **/ + public java.util.List getPmProxies() { + return pmProxies; + } + + /** + * Determines the power status of the host. + **/ + public enum Status { + Off("OFF"), + On("ON"), + Unknown("UNKNOWN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + map.put(v.getValue(), v); + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + /** + * Determines the power status of the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Determines the power status of the host. + * @return the value + **/ + public Status getStatus() { + return status; + } + + /** + * Fencing device code. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Fencing device code. + * @return the value + **/ + public String getType() { + return type; + } + + /** + * A valid user name for power management. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * A valid user name for power management. + * @return the value + **/ + public String getUsername() { + return username; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmPowerManagement("); + sb.append("super=").append(super.toString()); + sb.append("address=").append(String.valueOf(this.address)); + sb.append(", agents=").append(String.valueOf(this.agents)); + sb.append(", isAutomaticPmEnabled=").append(String.valueOf(this.isAutomaticPmEnabled)); + sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", isKDumpDetection=").append(String.valueOf(this.isKDumpDetection)); + sb.append(", pmProxies=").append(String.valueOf(this.pmProxies)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmPowerManagement)) { + return false; + } + + OlvmPowerManagement other = (OlvmPowerManagement) o; + return java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.agents, other.agents) + && java.util.Objects.equals(this.isAutomaticPmEnabled, other.isAutomaticPmEnabled) + && java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.isKDumpDetection, other.isKDumpDetection) + && java.util.Objects.equals(this.pmProxies, other.pmProxies) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.username, other.username) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = (result * PRIME) + (this.agents == null ? 43 : this.agents.hashCode()); + result = + (result * PRIME) + + (this.isAutomaticPmEnabled == null + ? 43 + : this.isAutomaticPmEnabled.hashCode()); + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.isKDumpDetection == null ? 43 : this.isKDumpDetection.hashCode()); + result = (result * PRIME) + (this.pmProxies == null ? 43 : this.pmProxies.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmProperty.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmProperty.java new file mode 100644 index 00000000000..40900183868 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmProperty.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Property object in OLVM. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmProperty.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmProperty extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public OlvmProperty(String name, String value) { + super(); + this.name = name; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the property. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Value of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the property. + * @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 OlvmProperty build() { + OlvmProperty model = new OlvmProperty(this.name, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmProperty model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + 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); + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the property. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Value of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the property. + * @return the value + **/ + public String 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("OlvmProperty("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + 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 OlvmProperty)) { + return false; + } + + OlvmProperty other = (OlvmProperty) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSelinux.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSelinux.java new file mode 100644 index 00000000000..2a3a4c3c367 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSelinux.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents SELinux in the system + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmSelinux.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmSelinux extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"seLinuxMode"}) + public OlvmSelinux(SeLinuxMode seLinuxMode) { + super(); + this.seLinuxMode = seLinuxMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Represents an SELinux enforcement mode. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("seLinuxMode") + private SeLinuxMode seLinuxMode; + + /** + * Represents an SELinux enforcement mode. + * @param seLinuxMode the value to set + * @return this builder + **/ + public Builder seLinuxMode(SeLinuxMode seLinuxMode) { + this.seLinuxMode = seLinuxMode; + this.__explicitlySet__.add("seLinuxMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmSelinux build() { + OlvmSelinux model = new OlvmSelinux(this.seLinuxMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmSelinux model) { + if (model.wasPropertyExplicitlySet("seLinuxMode")) { + this.seLinuxMode(model.getSeLinuxMode()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Represents an SELinux enforcement mode. + **/ + public enum SeLinuxMode { + Disabled("DISABLED"), + Enforcing("ENFORCING"), + Permissive("PERMISSIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SeLinuxMode v : SeLinuxMode.values()) { + map.put(v.getValue(), v); + } + } + + SeLinuxMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SeLinuxMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SeLinuxMode: " + key); + } + }; + /** + * Represents an SELinux enforcement mode. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("seLinuxMode") + private final SeLinuxMode seLinuxMode; + + /** + * Represents an SELinux enforcement mode. + * @return the value + **/ + public SeLinuxMode getSeLinuxMode() { + return seLinuxMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmSelinux("); + sb.append("super=").append(super.toString()); + sb.append("seLinuxMode=").append(String.valueOf(this.seLinuxMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmSelinux)) { + return false; + } + + OlvmSelinux other = (OlvmSelinux) o; + return java.util.Objects.equals(this.seLinuxMode, other.seLinuxMode) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.seLinuxMode == null ? 43 : this.seLinuxMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSerialNumber.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSerialNumber.java new file mode 100644 index 00000000000..079431fd605 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSerialNumber.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Serial number object in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmSerialNumber.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmSerialNumber extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"policy", "value"}) + public OlvmSerialNumber(Policy policy, String value) { + super(); + this.policy = policy; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type representing the policy of a Serial Number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("policy") + private Policy policy; + + /** + * Type representing the policy of a Serial Number + * @param policy the value to set + * @return this builder + **/ + public Builder policy(Policy policy) { + this.policy = policy; + this.__explicitlySet__.add("policy"); + return this; + } + /** + * Value of the serial number policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the serial number policy. + * @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 OlvmSerialNumber build() { + OlvmSerialNumber model = new OlvmSerialNumber(this.policy, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmSerialNumber model) { + if (model.wasPropertyExplicitlySet("policy")) { + this.policy(model.getPolicy()); + } + 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); + } + + /** + * Type representing the policy of a Serial Number + **/ + public enum Policy { + Custom("CUSTOM"), + Host("HOST"), + None("NONE"), + Vm("VM"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Policy v : Policy.values()) { + map.put(v.getValue(), v); + } + } + + Policy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Policy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Policy: " + key); + } + }; + /** + * Type representing the policy of a Serial Number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("policy") + private final Policy policy; + + /** + * Type representing the policy of a Serial Number + * @return the value + **/ + public Policy getPolicy() { + return policy; + } + + /** + * Value of the serial number policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the serial number policy. + * @return the value + **/ + public String 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("OlvmSerialNumber("); + sb.append("super=").append(super.toString()); + sb.append("policy=").append(String.valueOf(this.policy)); + 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 OlvmSerialNumber)) { + return false; + } + + OlvmSerialNumber other = (OlvmSerialNumber) o; + return java.util.Objects.equals(this.policy, other.policy) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.policy == null ? 43 : this.policy.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSpm.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSpm.java new file mode 100644 index 00000000000..8ee1c5d73d0 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmSpm.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The host storage pool manager (SPM) status and definition. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmSpm.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmSpm extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"priority", "spmStatus"}) + public OlvmSpm(Integer priority, SpmStatus spmStatus) { + super(); + this.priority = priority; + this.spmStatus = spmStatus; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Priority of this SPM. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private Integer priority; + + /** + * Priority of this SPM. + * @param priority the value to set + * @return this builder + **/ + public Builder priority(Integer priority) { + this.priority = priority; + this.__explicitlySet__.add("priority"); + return this; + } + /** + * Status of this SPM. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("spmStatus") + private SpmStatus spmStatus; + + /** + * Status of this SPM. + * @param spmStatus the value to set + * @return this builder + **/ + public Builder spmStatus(SpmStatus spmStatus) { + this.spmStatus = spmStatus; + this.__explicitlySet__.add("spmStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmSpm build() { + OlvmSpm model = new OlvmSpm(this.priority, this.spmStatus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmSpm model) { + if (model.wasPropertyExplicitlySet("priority")) { + this.priority(model.getPriority()); + } + if (model.wasPropertyExplicitlySet("spmStatus")) { + this.spmStatus(model.getSpmStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Priority of this SPM. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private final Integer priority; + + /** + * Priority of this SPM. + * @return the value + **/ + public Integer getPriority() { + return priority; + } + + /** + * Status of this SPM. + **/ + public enum SpmStatus { + Contending("CONTENDING"), + None("NONE"), + Spm("SPM"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SpmStatus v : SpmStatus.values()) { + map.put(v.getValue(), v); + } + } + + SpmStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SpmStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SpmStatus: " + key); + } + }; + /** + * Status of this SPM. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("spmStatus") + private final SpmStatus spmStatus; + + /** + * Status of this SPM. + * @return the value + **/ + public SpmStatus getSpmStatus() { + return spmStatus; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmSpm("); + sb.append("super=").append(super.toString()); + sb.append("priority=").append(String.valueOf(this.priority)); + sb.append(", spmStatus=").append(String.valueOf(this.spmStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmSpm)) { + return false; + } + + OlvmSpm other = (OlvmSpm) o; + return java.util.Objects.equals(this.priority, other.priority) + && java.util.Objects.equals(this.spmStatus, other.spmStatus) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.priority == null ? 43 : this.priority.hashCode()); + result = (result * PRIME) + (this.spmStatus == null ? 43 : this.spmStatus.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmStorageDomainAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmStorageDomainAssetDetails.java new file mode 100644 index 00000000000..3f13980b811 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmStorageDomainAssetDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Storage Domain type of asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmStorageDomainAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmStorageDomainAssetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"olvmStorageDomain"}) + public OlvmStorageDomainAssetDetails(OlvmStorageDomainProperties olvmStorageDomain) { + super(); + this.olvmStorageDomain = olvmStorageDomain; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("olvmStorageDomain") + private OlvmStorageDomainProperties olvmStorageDomain; + + public Builder olvmStorageDomain(OlvmStorageDomainProperties olvmStorageDomain) { + this.olvmStorageDomain = olvmStorageDomain; + this.__explicitlySet__.add("olvmStorageDomain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmStorageDomainAssetDetails build() { + OlvmStorageDomainAssetDetails model = + new OlvmStorageDomainAssetDetails(this.olvmStorageDomain); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmStorageDomainAssetDetails model) { + if (model.wasPropertyExplicitlySet("olvmStorageDomain")) { + this.olvmStorageDomain(model.getOlvmStorageDomain()); + } + 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("olvmStorageDomain") + private final OlvmStorageDomainProperties olvmStorageDomain; + + public OlvmStorageDomainProperties getOlvmStorageDomain() { + return olvmStorageDomain; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmStorageDomainAssetDetails("); + sb.append("super=").append(super.toString()); + sb.append("olvmStorageDomain=").append(String.valueOf(this.olvmStorageDomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmStorageDomainAssetDetails)) { + return false; + } + + OlvmStorageDomainAssetDetails other = (OlvmStorageDomainAssetDetails) o; + return java.util.Objects.equals(this.olvmStorageDomain, other.olvmStorageDomain) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.olvmStorageDomain == null ? 43 : this.olvmStorageDomain.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmStorageDomainProperties.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmStorageDomainProperties.java new file mode 100644 index 00000000000..74ef2234d66 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmStorageDomainProperties.java @@ -0,0 +1,1184 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Storage Domain properties. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmStorageDomainProperties.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmStorageDomainProperties + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "storageDomainName", + "storageDomainDescription", + "comment", + "availableSpaceInBytes", + "usedSpaceInBytes", + "committedSpaceInBytes", + "blockSizeInBytes", + "isBackup", + "isPrimary", + "isImport", + "isDiscardAfterDelete", + "isSupportDiscard", + "isSupportDiscardZeroesData", + "isWipeAfterDelete", + "criticalSpaceActionBlockerInGBs", + "warningLowSpaceIndicatorInPercentage", + "externalStatus", + "storageDomainStatus", + "storage", + "storageFormat", + "storageDomainType", + "dataCenters" + }) + public OlvmStorageDomainProperties( + String storageDomainName, + String storageDomainDescription, + String comment, + Long availableSpaceInBytes, + Long usedSpaceInBytes, + Long committedSpaceInBytes, + Long blockSizeInBytes, + Boolean isBackup, + Boolean isPrimary, + Boolean isImport, + Boolean isDiscardAfterDelete, + Boolean isSupportDiscard, + Boolean isSupportDiscardZeroesData, + Boolean isWipeAfterDelete, + Integer criticalSpaceActionBlockerInGBs, + Integer warningLowSpaceIndicatorInPercentage, + ExternalStatus externalStatus, + StorageDomainStatus storageDomainStatus, + Storage storage, + StorageFormat storageFormat, + StorageDomainType storageDomainType, + java.util.List dataCenters) { + super(); + this.storageDomainName = storageDomainName; + this.storageDomainDescription = storageDomainDescription; + this.comment = comment; + this.availableSpaceInBytes = availableSpaceInBytes; + this.usedSpaceInBytes = usedSpaceInBytes; + this.committedSpaceInBytes = committedSpaceInBytes; + this.blockSizeInBytes = blockSizeInBytes; + this.isBackup = isBackup; + this.isPrimary = isPrimary; + this.isImport = isImport; + this.isDiscardAfterDelete = isDiscardAfterDelete; + this.isSupportDiscard = isSupportDiscard; + this.isSupportDiscardZeroesData = isSupportDiscardZeroesData; + this.isWipeAfterDelete = isWipeAfterDelete; + this.criticalSpaceActionBlockerInGBs = criticalSpaceActionBlockerInGBs; + this.warningLowSpaceIndicatorInPercentage = warningLowSpaceIndicatorInPercentage; + this.externalStatus = externalStatus; + this.storageDomainStatus = storageDomainStatus; + this.storage = storage; + this.storageFormat = storageFormat; + this.storageDomainType = storageDomainType; + this.dataCenters = dataCenters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainName") + private String storageDomainName; + + /** + * A human-readable name in plain text. + * @param storageDomainName the value to set + * @return this builder + **/ + public Builder storageDomainName(String storageDomainName) { + this.storageDomainName = storageDomainName; + this.__explicitlySet__.add("storageDomainName"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainDescription") + private String storageDomainDescription; + + /** + * A human-readable description in plain text. + * @param storageDomainDescription the value to set + * @return this builder + **/ + public Builder storageDomainDescription(String storageDomainDescription) { + this.storageDomainDescription = storageDomainDescription; + this.__explicitlySet__.add("storageDomainDescription"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Space available in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableSpaceInBytes") + private Long availableSpaceInBytes; + + /** + * Space available in bytes. + * @param availableSpaceInBytes the value to set + * @return this builder + **/ + public Builder availableSpaceInBytes(Long availableSpaceInBytes) { + this.availableSpaceInBytes = availableSpaceInBytes; + this.__explicitlySet__.add("availableSpaceInBytes"); + return this; + } + /** + * Space used in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usedSpaceInBytes") + private Long usedSpaceInBytes; + + /** + * Space used in bytes. + * @param usedSpaceInBytes the value to set + * @return this builder + **/ + public Builder usedSpaceInBytes(Long usedSpaceInBytes) { + this.usedSpaceInBytes = usedSpaceInBytes; + this.__explicitlySet__.add("usedSpaceInBytes"); + return this; + } + /** + * Space committed in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("committedSpaceInBytes") + private Long committedSpaceInBytes; + + /** + * Space committed in bytes. + * @param committedSpaceInBytes the value to set + * @return this builder + **/ + public Builder committedSpaceInBytes(Long committedSpaceInBytes) { + this.committedSpaceInBytes = committedSpaceInBytes; + this.__explicitlySet__.add("committedSpaceInBytes"); + return this; + } + /** + * Block size in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("blockSizeInBytes") + private Long blockSizeInBytes; + + /** + * Block size in bytes. + * @param blockSizeInBytes the value to set + * @return this builder + **/ + public Builder blockSizeInBytes(Long blockSizeInBytes) { + this.blockSizeInBytes = blockSizeInBytes; + this.__explicitlySet__.add("blockSizeInBytes"); + return this; + } + /** + * Whether a data storage domain is used as backup domain or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBackup") + private Boolean isBackup; + + /** + * Whether a data storage domain is used as backup domain or not. + * @param isBackup the value to set + * @return this builder + **/ + public Builder isBackup(Boolean isBackup) { + this.isBackup = isBackup; + this.__explicitlySet__.add("isBackup"); + return this; + } + /** + * Indicates if this is the primary (master) storage domain of a data center. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") + private Boolean isPrimary; + + /** + * Indicates if this is the primary (master) storage domain of a data center. + * @param isPrimary the value to set + * @return this builder + **/ + public Builder isPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + this.__explicitlySet__.add("isPrimary"); + return this; + } + /** + * Whether this storage domain is imported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isImport") + private Boolean isImport; + + /** + * Whether this storage domain is imported. + * @param isImport the value to set + * @return this builder + **/ + public Builder isImport(Boolean isImport) { + this.isImport = isImport; + this.__explicitlySet__.add("isImport"); + return this; + } + /** + * Indicates whether disks' blocks on block storage domains will be discarded right before they are deleted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDiscardAfterDelete") + private Boolean isDiscardAfterDelete; + + /** + * Indicates whether disks' blocks on block storage domains will be discarded right before they are deleted. + * @param isDiscardAfterDelete the value to set + * @return this builder + **/ + public Builder isDiscardAfterDelete(Boolean isDiscardAfterDelete) { + this.isDiscardAfterDelete = isDiscardAfterDelete; + this.__explicitlySet__.add("isDiscardAfterDelete"); + return this; + } + /** + * Indicates whether a block storage domain supports discard operations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupportDiscard") + private Boolean isSupportDiscard; + + /** + * Indicates whether a block storage domain supports discard operations + * @param isSupportDiscard the value to set + * @return this builder + **/ + public Builder isSupportDiscard(Boolean isSupportDiscard) { + this.isSupportDiscard = isSupportDiscard; + this.__explicitlySet__.add("isSupportDiscard"); + return this; + } + /** + * Indicates whether a block storage domain supports the property that discard zeroes the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupportDiscardZeroesData") + private Boolean isSupportDiscardZeroesData; + + /** + * Indicates whether a block storage domain supports the property that discard zeroes the data. + * @param isSupportDiscardZeroesData the value to set + * @return this builder + **/ + public Builder isSupportDiscardZeroesData(Boolean isSupportDiscardZeroesData) { + this.isSupportDiscardZeroesData = isSupportDiscardZeroesData; + this.__explicitlySet__.add("isSupportDiscardZeroesData"); + return this; + } + /** + * Serves as the default value of wipe_after_delete for disks on this storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isWipeAfterDelete") + private Boolean isWipeAfterDelete; + + /** + * Serves as the default value of wipe_after_delete for disks on this storage domain. + * @param isWipeAfterDelete the value to set + * @return this builder + **/ + public Builder isWipeAfterDelete(Boolean isWipeAfterDelete) { + this.isWipeAfterDelete = isWipeAfterDelete; + this.__explicitlySet__.add("isWipeAfterDelete"); + return this; + } + /** + * Ensure storage domain always has at least this amount of unoccupied space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("criticalSpaceActionBlockerInGBs") + private Integer criticalSpaceActionBlockerInGBs; + + /** + * Ensure storage domain always has at least this amount of unoccupied space in GBs. + * @param criticalSpaceActionBlockerInGBs the value to set + * @return this builder + **/ + public Builder criticalSpaceActionBlockerInGBs(Integer criticalSpaceActionBlockerInGBs) { + this.criticalSpaceActionBlockerInGBs = criticalSpaceActionBlockerInGBs; + this.__explicitlySet__.add("criticalSpaceActionBlockerInGBs"); + return this; + } + /** + * If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningLowSpaceIndicatorInPercentage") + private Integer warningLowSpaceIndicatorInPercentage; + + /** + * If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged. + * @param warningLowSpaceIndicatorInPercentage the value to set + * @return this builder + **/ + public Builder warningLowSpaceIndicatorInPercentage( + Integer warningLowSpaceIndicatorInPercentage) { + this.warningLowSpaceIndicatorInPercentage = warningLowSpaceIndicatorInPercentage; + this.__explicitlySet__.add("warningLowSpaceIndicatorInPercentage"); + return this; + } + /** + * Status of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalStatus") + private ExternalStatus externalStatus; + + /** + * Status of storage domain. + * @param externalStatus the value to set + * @return this builder + **/ + public Builder externalStatus(ExternalStatus externalStatus) { + this.externalStatus = externalStatus; + this.__explicitlySet__.add("externalStatus"); + return this; + } + /** + * Status of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainStatus") + private StorageDomainStatus storageDomainStatus; + + /** + * Status of storage domain. + * @param storageDomainStatus the value to set + * @return this builder + **/ + public Builder storageDomainStatus(StorageDomainStatus storageDomainStatus) { + this.storageDomainStatus = storageDomainStatus; + this.__explicitlySet__.add("storageDomainStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private Storage storage; + + public Builder storage(Storage storage) { + this.storage = storage; + this.__explicitlySet__.add("storage"); + return this; + } + /** + * Type which represents a format of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageFormat") + private StorageFormat storageFormat; + + /** + * Type which represents a format of storage domain. + * @param storageFormat the value to set + * @return this builder + **/ + public Builder storageFormat(StorageFormat storageFormat) { + this.storageFormat = storageFormat; + this.__explicitlySet__.add("storageFormat"); + return this; + } + /** + * Indicates the kind of data managed by a storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainType") + private StorageDomainType storageDomainType; + + /** + * Indicates the kind of data managed by a storage domain. + * @param storageDomainType the value to set + * @return this builder + **/ + public Builder storageDomainType(StorageDomainType storageDomainType) { + this.storageDomainType = storageDomainType; + this.__explicitlySet__.add("storageDomainType"); + return this; + } + /** + * List of data centers where storage domain belongs + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataCenters") + private java.util.List dataCenters; + + /** + * List of data centers where storage domain belongs + * @param dataCenters the value to set + * @return this builder + **/ + public Builder dataCenters(java.util.List dataCenters) { + this.dataCenters = dataCenters; + this.__explicitlySet__.add("dataCenters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmStorageDomainProperties build() { + OlvmStorageDomainProperties model = + new OlvmStorageDomainProperties( + this.storageDomainName, + this.storageDomainDescription, + this.comment, + this.availableSpaceInBytes, + this.usedSpaceInBytes, + this.committedSpaceInBytes, + this.blockSizeInBytes, + this.isBackup, + this.isPrimary, + this.isImport, + this.isDiscardAfterDelete, + this.isSupportDiscard, + this.isSupportDiscardZeroesData, + this.isWipeAfterDelete, + this.criticalSpaceActionBlockerInGBs, + this.warningLowSpaceIndicatorInPercentage, + this.externalStatus, + this.storageDomainStatus, + this.storage, + this.storageFormat, + this.storageDomainType, + this.dataCenters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmStorageDomainProperties model) { + if (model.wasPropertyExplicitlySet("storageDomainName")) { + this.storageDomainName(model.getStorageDomainName()); + } + if (model.wasPropertyExplicitlySet("storageDomainDescription")) { + this.storageDomainDescription(model.getStorageDomainDescription()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("availableSpaceInBytes")) { + this.availableSpaceInBytes(model.getAvailableSpaceInBytes()); + } + if (model.wasPropertyExplicitlySet("usedSpaceInBytes")) { + this.usedSpaceInBytes(model.getUsedSpaceInBytes()); + } + if (model.wasPropertyExplicitlySet("committedSpaceInBytes")) { + this.committedSpaceInBytes(model.getCommittedSpaceInBytes()); + } + if (model.wasPropertyExplicitlySet("blockSizeInBytes")) { + this.blockSizeInBytes(model.getBlockSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("isBackup")) { + this.isBackup(model.getIsBackup()); + } + if (model.wasPropertyExplicitlySet("isPrimary")) { + this.isPrimary(model.getIsPrimary()); + } + if (model.wasPropertyExplicitlySet("isImport")) { + this.isImport(model.getIsImport()); + } + if (model.wasPropertyExplicitlySet("isDiscardAfterDelete")) { + this.isDiscardAfterDelete(model.getIsDiscardAfterDelete()); + } + if (model.wasPropertyExplicitlySet("isSupportDiscard")) { + this.isSupportDiscard(model.getIsSupportDiscard()); + } + if (model.wasPropertyExplicitlySet("isSupportDiscardZeroesData")) { + this.isSupportDiscardZeroesData(model.getIsSupportDiscardZeroesData()); + } + if (model.wasPropertyExplicitlySet("isWipeAfterDelete")) { + this.isWipeAfterDelete(model.getIsWipeAfterDelete()); + } + if (model.wasPropertyExplicitlySet("criticalSpaceActionBlockerInGBs")) { + this.criticalSpaceActionBlockerInGBs(model.getCriticalSpaceActionBlockerInGBs()); + } + if (model.wasPropertyExplicitlySet("warningLowSpaceIndicatorInPercentage")) { + this.warningLowSpaceIndicatorInPercentage( + model.getWarningLowSpaceIndicatorInPercentage()); + } + if (model.wasPropertyExplicitlySet("externalStatus")) { + this.externalStatus(model.getExternalStatus()); + } + if (model.wasPropertyExplicitlySet("storageDomainStatus")) { + this.storageDomainStatus(model.getStorageDomainStatus()); + } + if (model.wasPropertyExplicitlySet("storage")) { + this.storage(model.getStorage()); + } + if (model.wasPropertyExplicitlySet("storageFormat")) { + this.storageFormat(model.getStorageFormat()); + } + if (model.wasPropertyExplicitlySet("storageDomainType")) { + this.storageDomainType(model.getStorageDomainType()); + } + if (model.wasPropertyExplicitlySet("dataCenters")) { + this.dataCenters(model.getDataCenters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A human-readable name in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainName") + private final String storageDomainName; + + /** + * A human-readable name in plain text. + * @return the value + **/ + public String getStorageDomainName() { + return storageDomainName; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainDescription") + private final String storageDomainDescription; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getStorageDomainDescription() { + return storageDomainDescription; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * Space available in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableSpaceInBytes") + private final Long availableSpaceInBytes; + + /** + * Space available in bytes. + * @return the value + **/ + public Long getAvailableSpaceInBytes() { + return availableSpaceInBytes; + } + + /** + * Space used in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usedSpaceInBytes") + private final Long usedSpaceInBytes; + + /** + * Space used in bytes. + * @return the value + **/ + public Long getUsedSpaceInBytes() { + return usedSpaceInBytes; + } + + /** + * Space committed in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("committedSpaceInBytes") + private final Long committedSpaceInBytes; + + /** + * Space committed in bytes. + * @return the value + **/ + public Long getCommittedSpaceInBytes() { + return committedSpaceInBytes; + } + + /** + * Block size in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("blockSizeInBytes") + private final Long blockSizeInBytes; + + /** + * Block size in bytes. + * @return the value + **/ + public Long getBlockSizeInBytes() { + return blockSizeInBytes; + } + + /** + * Whether a data storage domain is used as backup domain or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBackup") + private final Boolean isBackup; + + /** + * Whether a data storage domain is used as backup domain or not. + * @return the value + **/ + public Boolean getIsBackup() { + return isBackup; + } + + /** + * Indicates if this is the primary (master) storage domain of a data center. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") + private final Boolean isPrimary; + + /** + * Indicates if this is the primary (master) storage domain of a data center. + * @return the value + **/ + public Boolean getIsPrimary() { + return isPrimary; + } + + /** + * Whether this storage domain is imported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isImport") + private final Boolean isImport; + + /** + * Whether this storage domain is imported. + * @return the value + **/ + public Boolean getIsImport() { + return isImport; + } + + /** + * Indicates whether disks' blocks on block storage domains will be discarded right before they are deleted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDiscardAfterDelete") + private final Boolean isDiscardAfterDelete; + + /** + * Indicates whether disks' blocks on block storage domains will be discarded right before they are deleted. + * @return the value + **/ + public Boolean getIsDiscardAfterDelete() { + return isDiscardAfterDelete; + } + + /** + * Indicates whether a block storage domain supports discard operations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupportDiscard") + private final Boolean isSupportDiscard; + + /** + * Indicates whether a block storage domain supports discard operations + * @return the value + **/ + public Boolean getIsSupportDiscard() { + return isSupportDiscard; + } + + /** + * Indicates whether a block storage domain supports the property that discard zeroes the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupportDiscardZeroesData") + private final Boolean isSupportDiscardZeroesData; + + /** + * Indicates whether a block storage domain supports the property that discard zeroes the data. + * @return the value + **/ + public Boolean getIsSupportDiscardZeroesData() { + return isSupportDiscardZeroesData; + } + + /** + * Serves as the default value of wipe_after_delete for disks on this storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isWipeAfterDelete") + private final Boolean isWipeAfterDelete; + + /** + * Serves as the default value of wipe_after_delete for disks on this storage domain. + * @return the value + **/ + public Boolean getIsWipeAfterDelete() { + return isWipeAfterDelete; + } + + /** + * Ensure storage domain always has at least this amount of unoccupied space in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("criticalSpaceActionBlockerInGBs") + private final Integer criticalSpaceActionBlockerInGBs; + + /** + * Ensure storage domain always has at least this amount of unoccupied space in GBs. + * @return the value + **/ + public Integer getCriticalSpaceActionBlockerInGBs() { + return criticalSpaceActionBlockerInGBs; + } + + /** + * If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningLowSpaceIndicatorInPercentage") + private final Integer warningLowSpaceIndicatorInPercentage; + + /** + * If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged. + * @return the value + **/ + public Integer getWarningLowSpaceIndicatorInPercentage() { + return warningLowSpaceIndicatorInPercentage; + } + + /** + * Status of storage domain. + **/ + public enum ExternalStatus { + Error("ERROR"), + Failure("FAILURE"), + Info("INFO"), + Ok("OK"), + Warning("WARNING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ExternalStatus v : ExternalStatus.values()) { + map.put(v.getValue(), v); + } + } + + ExternalStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ExternalStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ExternalStatus: " + key); + } + }; + /** + * Status of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalStatus") + private final ExternalStatus externalStatus; + + /** + * Status of storage domain. + * @return the value + **/ + public ExternalStatus getExternalStatus() { + return externalStatus; + } + + /** + * Status of storage domain. + **/ + public enum StorageDomainStatus { + Activating("ACTIVATING"), + Active("ACTIVE"), + Detaching("DETACHING"), + Inactive("INACTIVE"), + Locked("LOCKED"), + Maintenance("MAINTENANCE"), + Mixed("MIXED"), + PreparingForMaintenance("PREPARING_FOR_MAINTENANCE"), + Unattached("UNATTACHED"), + Unknown("UNKNOWN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageDomainStatus v : StorageDomainStatus.values()) { + map.put(v.getValue(), v); + } + } + + StorageDomainStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageDomainStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageDomainStatus: " + key); + } + }; + /** + * Status of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainStatus") + private final StorageDomainStatus storageDomainStatus; + + /** + * Status of storage domain. + * @return the value + **/ + public StorageDomainStatus getStorageDomainStatus() { + return storageDomainStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private final Storage storage; + + public Storage getStorage() { + return storage; + } + + /** + * Type which represents a format of storage domain. + **/ + public enum StorageFormat { + V1("V1"), + V2("V2"), + V3("V3"), + V4("V4"), + V5("V5"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageFormat v : StorageFormat.values()) { + map.put(v.getValue(), v); + } + } + + StorageFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageFormat: " + key); + } + }; + /** + * Type which represents a format of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageFormat") + private final StorageFormat storageFormat; + + /** + * Type which represents a format of storage domain. + * @return the value + **/ + public StorageFormat getStorageFormat() { + return storageFormat; + } + + /** + * Indicates the kind of data managed by a storage domain. + **/ + public enum StorageDomainType { + Data("DATA"), + Export("EXPORT"), + Image("IMAGE"), + Iso("ISO"), + ManagedBlockStorage("MANAGED_BLOCK_STORAGE"), + Volume("VOLUME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageDomainType v : StorageDomainType.values()) { + map.put(v.getValue(), v); + } + } + + StorageDomainType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageDomainType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageDomainType: " + key); + } + }; + /** + * Indicates the kind of data managed by a storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainType") + private final StorageDomainType storageDomainType; + + /** + * Indicates the kind of data managed by a storage domain. + * @return the value + **/ + public StorageDomainType getStorageDomainType() { + return storageDomainType; + } + + /** + * List of data centers where storage domain belongs + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataCenters") + private final java.util.List dataCenters; + + /** + * List of data centers where storage domain belongs + * @return the value + **/ + public java.util.List getDataCenters() { + return dataCenters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmStorageDomainProperties("); + sb.append("super=").append(super.toString()); + sb.append("storageDomainName=").append(String.valueOf(this.storageDomainName)); + sb.append(", storageDomainDescription=") + .append(String.valueOf(this.storageDomainDescription)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", availableSpaceInBytes=").append(String.valueOf(this.availableSpaceInBytes)); + sb.append(", usedSpaceInBytes=").append(String.valueOf(this.usedSpaceInBytes)); + sb.append(", committedSpaceInBytes=").append(String.valueOf(this.committedSpaceInBytes)); + sb.append(", blockSizeInBytes=").append(String.valueOf(this.blockSizeInBytes)); + sb.append(", isBackup=").append(String.valueOf(this.isBackup)); + sb.append(", isPrimary=").append(String.valueOf(this.isPrimary)); + sb.append(", isImport=").append(String.valueOf(this.isImport)); + sb.append(", isDiscardAfterDelete=").append(String.valueOf(this.isDiscardAfterDelete)); + sb.append(", isSupportDiscard=").append(String.valueOf(this.isSupportDiscard)); + sb.append(", isSupportDiscardZeroesData=") + .append(String.valueOf(this.isSupportDiscardZeroesData)); + sb.append(", isWipeAfterDelete=").append(String.valueOf(this.isWipeAfterDelete)); + sb.append(", criticalSpaceActionBlockerInGBs=") + .append(String.valueOf(this.criticalSpaceActionBlockerInGBs)); + sb.append(", warningLowSpaceIndicatorInPercentage=") + .append(String.valueOf(this.warningLowSpaceIndicatorInPercentage)); + sb.append(", externalStatus=").append(String.valueOf(this.externalStatus)); + sb.append(", storageDomainStatus=").append(String.valueOf(this.storageDomainStatus)); + sb.append(", storage=").append(String.valueOf(this.storage)); + sb.append(", storageFormat=").append(String.valueOf(this.storageFormat)); + sb.append(", storageDomainType=").append(String.valueOf(this.storageDomainType)); + sb.append(", dataCenters=").append(String.valueOf(this.dataCenters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmStorageDomainProperties)) { + return false; + } + + OlvmStorageDomainProperties other = (OlvmStorageDomainProperties) o; + return java.util.Objects.equals(this.storageDomainName, other.storageDomainName) + && java.util.Objects.equals( + this.storageDomainDescription, other.storageDomainDescription) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.availableSpaceInBytes, other.availableSpaceInBytes) + && java.util.Objects.equals(this.usedSpaceInBytes, other.usedSpaceInBytes) + && java.util.Objects.equals(this.committedSpaceInBytes, other.committedSpaceInBytes) + && java.util.Objects.equals(this.blockSizeInBytes, other.blockSizeInBytes) + && java.util.Objects.equals(this.isBackup, other.isBackup) + && java.util.Objects.equals(this.isPrimary, other.isPrimary) + && java.util.Objects.equals(this.isImport, other.isImport) + && java.util.Objects.equals(this.isDiscardAfterDelete, other.isDiscardAfterDelete) + && java.util.Objects.equals(this.isSupportDiscard, other.isSupportDiscard) + && java.util.Objects.equals( + this.isSupportDiscardZeroesData, other.isSupportDiscardZeroesData) + && java.util.Objects.equals(this.isWipeAfterDelete, other.isWipeAfterDelete) + && java.util.Objects.equals( + this.criticalSpaceActionBlockerInGBs, other.criticalSpaceActionBlockerInGBs) + && java.util.Objects.equals( + this.warningLowSpaceIndicatorInPercentage, + other.warningLowSpaceIndicatorInPercentage) + && java.util.Objects.equals(this.externalStatus, other.externalStatus) + && java.util.Objects.equals(this.storageDomainStatus, other.storageDomainStatus) + && java.util.Objects.equals(this.storage, other.storage) + && java.util.Objects.equals(this.storageFormat, other.storageFormat) + && java.util.Objects.equals(this.storageDomainType, other.storageDomainType) + && java.util.Objects.equals(this.dataCenters, other.dataCenters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.storageDomainName == null ? 43 : this.storageDomainName.hashCode()); + result = + (result * PRIME) + + (this.storageDomainDescription == null + ? 43 + : this.storageDomainDescription.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = + (result * PRIME) + + (this.availableSpaceInBytes == null + ? 43 + : this.availableSpaceInBytes.hashCode()); + result = + (result * PRIME) + + (this.usedSpaceInBytes == null ? 43 : this.usedSpaceInBytes.hashCode()); + result = + (result * PRIME) + + (this.committedSpaceInBytes == null + ? 43 + : this.committedSpaceInBytes.hashCode()); + result = + (result * PRIME) + + (this.blockSizeInBytes == null ? 43 : this.blockSizeInBytes.hashCode()); + result = (result * PRIME) + (this.isBackup == null ? 43 : this.isBackup.hashCode()); + result = (result * PRIME) + (this.isPrimary == null ? 43 : this.isPrimary.hashCode()); + result = (result * PRIME) + (this.isImport == null ? 43 : this.isImport.hashCode()); + result = + (result * PRIME) + + (this.isDiscardAfterDelete == null + ? 43 + : this.isDiscardAfterDelete.hashCode()); + result = + (result * PRIME) + + (this.isSupportDiscard == null ? 43 : this.isSupportDiscard.hashCode()); + result = + (result * PRIME) + + (this.isSupportDiscardZeroesData == null + ? 43 + : this.isSupportDiscardZeroesData.hashCode()); + result = + (result * PRIME) + + (this.isWipeAfterDelete == null ? 43 : this.isWipeAfterDelete.hashCode()); + result = + (result * PRIME) + + (this.criticalSpaceActionBlockerInGBs == null + ? 43 + : this.criticalSpaceActionBlockerInGBs.hashCode()); + result = + (result * PRIME) + + (this.warningLowSpaceIndicatorInPercentage == null + ? 43 + : this.warningLowSpaceIndicatorInPercentage.hashCode()); + result = + (result * PRIME) + + (this.externalStatus == null ? 43 : this.externalStatus.hashCode()); + result = + (result * PRIME) + + (this.storageDomainStatus == null + ? 43 + : this.storageDomainStatus.hashCode()); + result = (result * PRIME) + (this.storage == null ? 43 : this.storage.hashCode()); + result = + (result * PRIME) + + (this.storageFormat == null ? 43 : this.storageFormat.hashCode()); + result = + (result * PRIME) + + (this.storageDomainType == null ? 43 : this.storageDomainType.hashCode()); + result = (result * PRIME) + (this.dataCenters == null ? 43 : this.dataCenters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateAssetDetails.java new file mode 100644 index 00000000000..cb7556d5964 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateAssetDetails.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Template type of asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmTemplateAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmTemplateAssetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"olvmTemplate"}) + public OlvmTemplateAssetDetails(OlvmTemplateProperties olvmTemplate) { + super(); + this.olvmTemplate = olvmTemplate; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("olvmTemplate") + private OlvmTemplateProperties olvmTemplate; + + public Builder olvmTemplate(OlvmTemplateProperties olvmTemplate) { + this.olvmTemplate = olvmTemplate; + this.__explicitlySet__.add("olvmTemplate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmTemplateAssetDetails build() { + OlvmTemplateAssetDetails model = new OlvmTemplateAssetDetails(this.olvmTemplate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmTemplateAssetDetails model) { + if (model.wasPropertyExplicitlySet("olvmTemplate")) { + this.olvmTemplate(model.getOlvmTemplate()); + } + 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("olvmTemplate") + private final OlvmTemplateProperties olvmTemplate; + + public OlvmTemplateProperties getOlvmTemplate() { + return olvmTemplate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmTemplateAssetDetails("); + sb.append("super=").append(super.toString()); + sb.append("olvmTemplate=").append(String.valueOf(this.olvmTemplate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmTemplateAssetDetails)) { + return false; + } + + OlvmTemplateAssetDetails other = (OlvmTemplateAssetDetails) o; + return java.util.Objects.equals(this.olvmTemplate, other.olvmTemplate) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.olvmTemplate == null ? 43 : this.olvmTemplate.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateProperties.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateProperties.java new file mode 100644 index 00000000000..44f17568a1d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateProperties.java @@ -0,0 +1,1918 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Template properties. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmTemplateProperties.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmTemplateProperties + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "autoPinningPolicy", + "bios", + "comment", + "console", + "cpu", + "cpuPinningPolicy", + "cpuShares", + "timeCreated", + "customCompatibilityVersion", + "customCpuModel", + "customEmulatedMachine", + "customProperties", + "isDeleteProtected", + "description", + "display", + "domain", + "highAvailability", + "initialization", + "ioThreads", + "largeIcon", + "storageDomainLease", + "memoryInBytes", + "memoryPolicy", + "migrationPolicy", + "migrationDowntimeInMs", + "isMultiQueuesEnabled", + "templateName", + "origin", + "os", + "placementPolicy", + "serialNumber", + "smallIcon", + "isSoundcardEnabled", + "isStartPaused", + "isStateless", + "status", + "storageErrorResumeBehavior", + "timezone", + "isTpmEnabled", + "isTunnelMigration", + "type", + "usb", + "version", + "isVirtioScsiEnabled", + "virtioScsiMultiQueues", + "isVirtioScsiMultiQueuesEnabled", + "vm" + }) + public OlvmTemplateProperties( + AutoPinningPolicy autoPinningPolicy, + OlvmBios bios, + String comment, + OlvmConsole console, + OlvmCpu cpu, + CpuPinningPolicy cpuPinningPolicy, + Integer cpuShares, + java.util.Date timeCreated, + OlvmVersion customCompatibilityVersion, + String customCpuModel, + String customEmulatedMachine, + java.util.List customProperties, + Boolean isDeleteProtected, + String description, + OlvmDisplay display, + OlvmDomain domain, + OlvmHighAvailability highAvailability, + OlvmInitialization initialization, + Integer ioThreads, + OlvmIcon largeIcon, + OlvmStorageDomainProperties storageDomainLease, + Long memoryInBytes, + OlvmMemoryPolicy memoryPolicy, + OlvmMigrationOptions migrationPolicy, + Integer migrationDowntimeInMs, + Boolean isMultiQueuesEnabled, + String templateName, + String origin, + OlvmOperatingSystem os, + OlvmVmPlacementPolicy placementPolicy, + OlvmSerialNumber serialNumber, + OlvmIcon smallIcon, + Boolean isSoundcardEnabled, + Boolean isStartPaused, + Boolean isStateless, + Status status, + StorageErrorResumeBehavior storageErrorResumeBehavior, + String timezone, + Boolean isTpmEnabled, + Boolean isTunnelMigration, + OlvmVmType type, + OlvmUsb usb, + OlvmTemplateVersion version, + Boolean isVirtioScsiEnabled, + Integer virtioScsiMultiQueues, + Boolean isVirtioScsiMultiQueuesEnabled, + OlvmVirtualMachine vm) { + super(); + this.autoPinningPolicy = autoPinningPolicy; + this.bios = bios; + this.comment = comment; + this.console = console; + this.cpu = cpu; + this.cpuPinningPolicy = cpuPinningPolicy; + this.cpuShares = cpuShares; + this.timeCreated = timeCreated; + this.customCompatibilityVersion = customCompatibilityVersion; + this.customCpuModel = customCpuModel; + this.customEmulatedMachine = customEmulatedMachine; + this.customProperties = customProperties; + this.isDeleteProtected = isDeleteProtected; + this.description = description; + this.display = display; + this.domain = domain; + this.highAvailability = highAvailability; + this.initialization = initialization; + this.ioThreads = ioThreads; + this.largeIcon = largeIcon; + this.storageDomainLease = storageDomainLease; + this.memoryInBytes = memoryInBytes; + this.memoryPolicy = memoryPolicy; + this.migrationPolicy = migrationPolicy; + this.migrationDowntimeInMs = migrationDowntimeInMs; + this.isMultiQueuesEnabled = isMultiQueuesEnabled; + this.templateName = templateName; + this.origin = origin; + this.os = os; + this.placementPolicy = placementPolicy; + this.serialNumber = serialNumber; + this.smallIcon = smallIcon; + this.isSoundcardEnabled = isSoundcardEnabled; + this.isStartPaused = isStartPaused; + this.isStateless = isStateless; + this.status = status; + this.storageErrorResumeBehavior = storageErrorResumeBehavior; + this.timezone = timezone; + this.isTpmEnabled = isTpmEnabled; + this.isTunnelMigration = isTunnelMigration; + this.type = type; + this.usb = usb; + this.version = version; + this.isVirtioScsiEnabled = isVirtioScsiEnabled; + this.virtioScsiMultiQueues = virtioScsiMultiQueues; + this.isVirtioScsiMultiQueuesEnabled = isVirtioScsiMultiQueuesEnabled; + this.vm = vm; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoPinningPolicy") + private AutoPinningPolicy autoPinningPolicy; + + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + * @param autoPinningPolicy the value to set + * @return this builder + **/ + public Builder autoPinningPolicy(AutoPinningPolicy autoPinningPolicy) { + this.autoPinningPolicy = autoPinningPolicy; + this.__explicitlySet__.add("autoPinningPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bios") + private OlvmBios bios; + + public Builder bios(OlvmBios bios) { + this.bios = bios; + this.__explicitlySet__.add("bios"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("console") + private OlvmConsole console; + + public Builder console(OlvmConsole console) { + this.console = console; + this.__explicitlySet__.add("console"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private OlvmCpu cpu; + + public Builder cpu(OlvmCpu cpu) { + this.cpu = cpu; + this.__explicitlySet__.add("cpu"); + return this; + } + /** + * Type representing the CPU and NUMA pinning policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuPinningPolicy") + private CpuPinningPolicy cpuPinningPolicy; + + /** + * Type representing the CPU and NUMA pinning policy. + * @param cpuPinningPolicy the value to set + * @return this builder + **/ + public Builder cpuPinningPolicy(CpuPinningPolicy cpuPinningPolicy) { + this.cpuPinningPolicy = cpuPinningPolicy; + this.__explicitlySet__.add("cpuPinningPolicy"); + return this; + } + /** + * Number of CPU Shares + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuShares") + private Integer cpuShares; + + /** + * Number of CPU Shares + * @param cpuShares the value to set + * @return this builder + **/ + public Builder cpuShares(Integer cpuShares) { + this.cpuShares = cpuShares; + this.__explicitlySet__.add("cpuShares"); + return this; + } + /** + * Creation time. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Creation time. + * @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.JsonProperty("customCompatibilityVersion") + private OlvmVersion customCompatibilityVersion; + + public Builder customCompatibilityVersion(OlvmVersion customCompatibilityVersion) { + this.customCompatibilityVersion = customCompatibilityVersion; + this.__explicitlySet__.add("customCompatibilityVersion"); + return this; + } + /** + * Custom CPU model + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customCpuModel") + private String customCpuModel; + + /** + * Custom CPU model + * @param customCpuModel the value to set + * @return this builder + **/ + public Builder customCpuModel(String customCpuModel) { + this.customCpuModel = customCpuModel; + this.__explicitlySet__.add("customCpuModel"); + return this; + } + /** + * Custom Emulated machine + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customEmulatedMachine") + private String customEmulatedMachine; + + /** + * Custom Emulated machine + * @param customEmulatedMachine the value to set + * @return this builder + **/ + public Builder customEmulatedMachine(String customEmulatedMachine) { + this.customEmulatedMachine = customEmulatedMachine; + this.__explicitlySet__.add("customEmulatedMachine"); + return this; + } + /** + * Custom properties applied to the vNIC profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private java.util.List customProperties; + + /** + * Custom properties applied to the vNIC profile. + * @param customProperties the value to set + * @return this builder + **/ + public Builder customProperties(java.util.List customProperties) { + this.customProperties = customProperties; + this.__explicitlySet__.add("customProperties"); + return this; + } + /** + * If true, the virtual machine cannot be deleted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDeleteProtected") + private Boolean isDeleteProtected; + + /** + * If true, the virtual machine cannot be deleted. + * @param isDeleteProtected the value to set + * @return this builder + **/ + public Builder isDeleteProtected(Boolean isDeleteProtected) { + this.isDeleteProtected = isDeleteProtected; + this.__explicitlySet__.add("isDeleteProtected"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private OlvmDisplay display; + + public Builder display(OlvmDisplay display) { + this.display = display; + this.__explicitlySet__.add("display"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private OlvmDomain domain; + + public Builder domain(OlvmDomain domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("highAvailability") + private OlvmHighAvailability highAvailability; + + public Builder highAvailability(OlvmHighAvailability highAvailability) { + this.highAvailability = highAvailability; + this.__explicitlySet__.add("highAvailability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialization") + private OlvmInitialization initialization; + + public Builder initialization(OlvmInitialization initialization) { + this.initialization = initialization; + this.__explicitlySet__.add("initialization"); + return this; + } + /** + * For performance tuning of IO threading. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ioThreads") + private Integer ioThreads; + + /** + * For performance tuning of IO threading. + * @param ioThreads the value to set + * @return this builder + **/ + public Builder ioThreads(Integer ioThreads) { + this.ioThreads = ioThreads; + this.__explicitlySet__.add("ioThreads"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("largeIcon") + private OlvmIcon largeIcon; + + public Builder largeIcon(OlvmIcon largeIcon) { + this.largeIcon = largeIcon; + this.__explicitlySet__.add("largeIcon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainLease") + private OlvmStorageDomainProperties storageDomainLease; + + public Builder storageDomainLease(OlvmStorageDomainProperties storageDomainLease) { + this.storageDomainLease = storageDomainLease; + this.__explicitlySet__.add("storageDomainLease"); + return this; + } + /** + * The virtual machine\u2019s memory, in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInBytes") + private Long memoryInBytes; + + /** + * The virtual machine\u2019s memory, in bytes. + * @param memoryInBytes the value to set + * @return this builder + **/ + public Builder memoryInBytes(Long memoryInBytes) { + this.memoryInBytes = memoryInBytes; + this.__explicitlySet__.add("memoryInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryPolicy") + private OlvmMemoryPolicy memoryPolicy; + + public Builder memoryPolicy(OlvmMemoryPolicy memoryPolicy) { + this.memoryPolicy = memoryPolicy; + this.__explicitlySet__.add("memoryPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationPolicy") + private OlvmMigrationOptions migrationPolicy; + + public Builder migrationPolicy(OlvmMigrationOptions migrationPolicy) { + this.migrationPolicy = migrationPolicy; + this.__explicitlySet__.add("migrationPolicy"); + return this; + } + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationDowntimeInMs") + private Integer migrationDowntimeInMs; + + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + * @param migrationDowntimeInMs the value to set + * @return this builder + **/ + public Builder migrationDowntimeInMs(Integer migrationDowntimeInMs) { + this.migrationDowntimeInMs = migrationDowntimeInMs; + this.__explicitlySet__.add("migrationDowntimeInMs"); + return this; + } + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMultiQueuesEnabled") + private Boolean isMultiQueuesEnabled; + + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + * @param isMultiQueuesEnabled the value to set + * @return this builder + **/ + public Builder isMultiQueuesEnabled(Boolean isMultiQueuesEnabled) { + this.isMultiQueuesEnabled = isMultiQueuesEnabled; + this.__explicitlySet__.add("isMultiQueuesEnabled"); + return this; + } + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("templateName") + private String templateName; + + /** + * Name of the property. + * @param templateName the value to set + * @return this builder + **/ + public Builder templateName(String templateName) { + this.templateName = templateName; + this.__explicitlySet__.add("templateName"); + return this; + } + /** + * The origin of this virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("origin") + private String origin; + + /** + * The origin of this virtual machine. + * @param origin the value to set + * @return this builder + **/ + public Builder origin(String origin) { + this.origin = origin; + this.__explicitlySet__.add("origin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("os") + private OlvmOperatingSystem os; + + public Builder os(OlvmOperatingSystem os) { + this.os = os; + this.__explicitlySet__.add("os"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("placementPolicy") + private OlvmVmPlacementPolicy placementPolicy; + + public Builder placementPolicy(OlvmVmPlacementPolicy placementPolicy) { + this.placementPolicy = placementPolicy; + this.__explicitlySet__.add("placementPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private OlvmSerialNumber serialNumber; + + public Builder serialNumber(OlvmSerialNumber serialNumber) { + this.serialNumber = serialNumber; + this.__explicitlySet__.add("serialNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("smallIcon") + private OlvmIcon smallIcon; + + public Builder smallIcon(OlvmIcon smallIcon) { + this.smallIcon = smallIcon; + this.__explicitlySet__.add("smallIcon"); + return this; + } + /** + * If true, the sound card is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSoundcardEnabled") + private Boolean isSoundcardEnabled; + + /** + * If true, the sound card is added to the virtual machine. + * @param isSoundcardEnabled the value to set + * @return this builder + **/ + public Builder isSoundcardEnabled(Boolean isSoundcardEnabled) { + this.isSoundcardEnabled = isSoundcardEnabled; + this.__explicitlySet__.add("isSoundcardEnabled"); + return this; + } + /** + * If true, the virtual machine will be initially in 'paused' state after start. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStartPaused") + private Boolean isStartPaused; + + /** + * If true, the virtual machine will be initially in 'paused' state after start. + * @param isStartPaused the value to set + * @return this builder + **/ + public Builder isStartPaused(Boolean isStartPaused) { + this.isStartPaused = isStartPaused; + this.__explicitlySet__.add("isStartPaused"); + return this; + } + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStateless") + private Boolean isStateless; + + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + * @param isStateless the value to set + * @return this builder + **/ + public Builder isStateless(Boolean isStateless) { + this.isStateless = isStateless; + this.__explicitlySet__.add("isStateless"); + return this; + } + /** + * The status of the template. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * The status of the template. + * @param status the value to set + * @return this builder + **/ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * Determines how the virtual machine will be resumed after storage error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageErrorResumeBehavior") + private StorageErrorResumeBehavior storageErrorResumeBehavior; + + /** + * Determines how the virtual machine will be resumed after storage error. + * @param storageErrorResumeBehavior the value to set + * @return this builder + **/ + public Builder storageErrorResumeBehavior( + StorageErrorResumeBehavior storageErrorResumeBehavior) { + this.storageErrorResumeBehavior = storageErrorResumeBehavior; + this.__explicitlySet__.add("storageErrorResumeBehavior"); + return this; + } + /** + * Name of time zone. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private String timezone; + + /** + * Name of time zone. + * @param timezone the value to set + * @return this builder + **/ + public Builder timezone(String timezone) { + this.timezone = timezone; + this.__explicitlySet__.add("timezone"); + return this; + } + /** + * If true, a TPM device is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTpmEnabled") + private Boolean isTpmEnabled; + + /** + * If true, a TPM device is added to the virtual machine. + * @param isTpmEnabled the value to set + * @return this builder + **/ + public Builder isTpmEnabled(Boolean isTpmEnabled) { + this.isTpmEnabled = isTpmEnabled; + this.__explicitlySet__.add("isTpmEnabled"); + return this; + } + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTunnelMigration") + private Boolean isTunnelMigration; + + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + * @param isTunnelMigration the value to set + * @return this builder + **/ + public Builder isTunnelMigration(Boolean isTunnelMigration) { + this.isTunnelMigration = isTunnelMigration; + this.__explicitlySet__.add("isTunnelMigration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private OlvmVmType type; + + public Builder type(OlvmVmType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usb") + private OlvmUsb usb; + + public Builder usb(OlvmUsb usb) { + this.usb = usb; + this.__explicitlySet__.add("usb"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private OlvmTemplateVersion version; + + public Builder version(OlvmTemplateVersion version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * Indicates if Virtio SCSI Support is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiEnabled") + private Boolean isVirtioScsiEnabled; + + /** + * Indicates if Virtio SCSI Support is enabled. + * @param isVirtioScsiEnabled the value to set + * @return this builder + **/ + public Builder isVirtioScsiEnabled(Boolean isVirtioScsiEnabled) { + this.isVirtioScsiEnabled = isVirtioScsiEnabled; + this.__explicitlySet__.add("isVirtioScsiEnabled"); + return this; + } + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + **/ + @com.fasterxml.jackson.annotation.JsonProperty("virtioScsiMultiQueues") + private Integer virtioScsiMultiQueues; + + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + * @param virtioScsiMultiQueues the value to set + * @return this builder + **/ + public Builder virtioScsiMultiQueues(Integer virtioScsiMultiQueues) { + this.virtioScsiMultiQueues = virtioScsiMultiQueues; + this.__explicitlySet__.add("virtioScsiMultiQueues"); + return this; + } + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiMultiQueuesEnabled") + private Boolean isVirtioScsiMultiQueuesEnabled; + + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + * @param isVirtioScsiMultiQueuesEnabled the value to set + * @return this builder + **/ + public Builder isVirtioScsiMultiQueuesEnabled(Boolean isVirtioScsiMultiQueuesEnabled) { + this.isVirtioScsiMultiQueuesEnabled = isVirtioScsiMultiQueuesEnabled; + this.__explicitlySet__.add("isVirtioScsiMultiQueuesEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vm") + private OlvmVirtualMachine vm; + + public Builder vm(OlvmVirtualMachine vm) { + this.vm = vm; + this.__explicitlySet__.add("vm"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmTemplateProperties build() { + OlvmTemplateProperties model = + new OlvmTemplateProperties( + this.autoPinningPolicy, + this.bios, + this.comment, + this.console, + this.cpu, + this.cpuPinningPolicy, + this.cpuShares, + this.timeCreated, + this.customCompatibilityVersion, + this.customCpuModel, + this.customEmulatedMachine, + this.customProperties, + this.isDeleteProtected, + this.description, + this.display, + this.domain, + this.highAvailability, + this.initialization, + this.ioThreads, + this.largeIcon, + this.storageDomainLease, + this.memoryInBytes, + this.memoryPolicy, + this.migrationPolicy, + this.migrationDowntimeInMs, + this.isMultiQueuesEnabled, + this.templateName, + this.origin, + this.os, + this.placementPolicy, + this.serialNumber, + this.smallIcon, + this.isSoundcardEnabled, + this.isStartPaused, + this.isStateless, + this.status, + this.storageErrorResumeBehavior, + this.timezone, + this.isTpmEnabled, + this.isTunnelMigration, + this.type, + this.usb, + this.version, + this.isVirtioScsiEnabled, + this.virtioScsiMultiQueues, + this.isVirtioScsiMultiQueuesEnabled, + this.vm); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmTemplateProperties model) { + if (model.wasPropertyExplicitlySet("autoPinningPolicy")) { + this.autoPinningPolicy(model.getAutoPinningPolicy()); + } + if (model.wasPropertyExplicitlySet("bios")) { + this.bios(model.getBios()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("console")) { + this.console(model.getConsole()); + } + if (model.wasPropertyExplicitlySet("cpu")) { + this.cpu(model.getCpu()); + } + if (model.wasPropertyExplicitlySet("cpuPinningPolicy")) { + this.cpuPinningPolicy(model.getCpuPinningPolicy()); + } + if (model.wasPropertyExplicitlySet("cpuShares")) { + this.cpuShares(model.getCpuShares()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("customCompatibilityVersion")) { + this.customCompatibilityVersion(model.getCustomCompatibilityVersion()); + } + if (model.wasPropertyExplicitlySet("customCpuModel")) { + this.customCpuModel(model.getCustomCpuModel()); + } + if (model.wasPropertyExplicitlySet("customEmulatedMachine")) { + this.customEmulatedMachine(model.getCustomEmulatedMachine()); + } + if (model.wasPropertyExplicitlySet("customProperties")) { + this.customProperties(model.getCustomProperties()); + } + if (model.wasPropertyExplicitlySet("isDeleteProtected")) { + this.isDeleteProtected(model.getIsDeleteProtected()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("display")) { + this.display(model.getDisplay()); + } + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } + if (model.wasPropertyExplicitlySet("highAvailability")) { + this.highAvailability(model.getHighAvailability()); + } + if (model.wasPropertyExplicitlySet("initialization")) { + this.initialization(model.getInitialization()); + } + if (model.wasPropertyExplicitlySet("ioThreads")) { + this.ioThreads(model.getIoThreads()); + } + if (model.wasPropertyExplicitlySet("largeIcon")) { + this.largeIcon(model.getLargeIcon()); + } + if (model.wasPropertyExplicitlySet("storageDomainLease")) { + this.storageDomainLease(model.getStorageDomainLease()); + } + if (model.wasPropertyExplicitlySet("memoryInBytes")) { + this.memoryInBytes(model.getMemoryInBytes()); + } + if (model.wasPropertyExplicitlySet("memoryPolicy")) { + this.memoryPolicy(model.getMemoryPolicy()); + } + if (model.wasPropertyExplicitlySet("migrationPolicy")) { + this.migrationPolicy(model.getMigrationPolicy()); + } + if (model.wasPropertyExplicitlySet("migrationDowntimeInMs")) { + this.migrationDowntimeInMs(model.getMigrationDowntimeInMs()); + } + if (model.wasPropertyExplicitlySet("isMultiQueuesEnabled")) { + this.isMultiQueuesEnabled(model.getIsMultiQueuesEnabled()); + } + if (model.wasPropertyExplicitlySet("templateName")) { + this.templateName(model.getTemplateName()); + } + if (model.wasPropertyExplicitlySet("origin")) { + this.origin(model.getOrigin()); + } + if (model.wasPropertyExplicitlySet("os")) { + this.os(model.getOs()); + } + if (model.wasPropertyExplicitlySet("placementPolicy")) { + this.placementPolicy(model.getPlacementPolicy()); + } + if (model.wasPropertyExplicitlySet("serialNumber")) { + this.serialNumber(model.getSerialNumber()); + } + if (model.wasPropertyExplicitlySet("smallIcon")) { + this.smallIcon(model.getSmallIcon()); + } + if (model.wasPropertyExplicitlySet("isSoundcardEnabled")) { + this.isSoundcardEnabled(model.getIsSoundcardEnabled()); + } + if (model.wasPropertyExplicitlySet("isStartPaused")) { + this.isStartPaused(model.getIsStartPaused()); + } + if (model.wasPropertyExplicitlySet("isStateless")) { + this.isStateless(model.getIsStateless()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("storageErrorResumeBehavior")) { + this.storageErrorResumeBehavior(model.getStorageErrorResumeBehavior()); + } + if (model.wasPropertyExplicitlySet("timezone")) { + this.timezone(model.getTimezone()); + } + if (model.wasPropertyExplicitlySet("isTpmEnabled")) { + this.isTpmEnabled(model.getIsTpmEnabled()); + } + if (model.wasPropertyExplicitlySet("isTunnelMigration")) { + this.isTunnelMigration(model.getIsTunnelMigration()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("usb")) { + this.usb(model.getUsb()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("isVirtioScsiEnabled")) { + this.isVirtioScsiEnabled(model.getIsVirtioScsiEnabled()); + } + if (model.wasPropertyExplicitlySet("virtioScsiMultiQueues")) { + this.virtioScsiMultiQueues(model.getVirtioScsiMultiQueues()); + } + if (model.wasPropertyExplicitlySet("isVirtioScsiMultiQueuesEnabled")) { + this.isVirtioScsiMultiQueuesEnabled(model.getIsVirtioScsiMultiQueuesEnabled()); + } + if (model.wasPropertyExplicitlySet("vm")) { + this.vm(model.getVm()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + **/ + public enum AutoPinningPolicy { + Adjust("ADJUST"), + Disabled("DISABLED"), + Existing("EXISTING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoPinningPolicy v : AutoPinningPolicy.values()) { + map.put(v.getValue(), v); + } + } + + AutoPinningPolicy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoPinningPolicy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AutoPinningPolicy: " + key); + } + }; + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoPinningPolicy") + private final AutoPinningPolicy autoPinningPolicy; + + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + * @return the value + **/ + public AutoPinningPolicy getAutoPinningPolicy() { + return autoPinningPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bios") + private final OlvmBios bios; + + public OlvmBios getBios() { + return bios; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + @com.fasterxml.jackson.annotation.JsonProperty("console") + private final OlvmConsole console; + + public OlvmConsole getConsole() { + return console; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private final OlvmCpu cpu; + + public OlvmCpu getCpu() { + return cpu; + } + + /** + * Type representing the CPU and NUMA pinning policy. + **/ + public enum CpuPinningPolicy { + Dedicated("DEDICATED"), + IsolatedThreads("ISOLATED_THREADS"), + Manual("MANUAL"), + None("NONE"), + ResizeAndPinNuma("RESIZE_AND_PIN_NUMA"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CpuPinningPolicy v : CpuPinningPolicy.values()) { + map.put(v.getValue(), v); + } + } + + CpuPinningPolicy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CpuPinningPolicy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CpuPinningPolicy: " + key); + } + }; + /** + * Type representing the CPU and NUMA pinning policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuPinningPolicy") + private final CpuPinningPolicy cpuPinningPolicy; + + /** + * Type representing the CPU and NUMA pinning policy. + * @return the value + **/ + public CpuPinningPolicy getCpuPinningPolicy() { + return cpuPinningPolicy; + } + + /** + * Number of CPU Shares + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuShares") + private final Integer cpuShares; + + /** + * Number of CPU Shares + * @return the value + **/ + public Integer getCpuShares() { + return cpuShares; + } + + /** + * Creation time. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Creation time. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customCompatibilityVersion") + private final OlvmVersion customCompatibilityVersion; + + public OlvmVersion getCustomCompatibilityVersion() { + return customCompatibilityVersion; + } + + /** + * Custom CPU model + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customCpuModel") + private final String customCpuModel; + + /** + * Custom CPU model + * @return the value + **/ + public String getCustomCpuModel() { + return customCpuModel; + } + + /** + * Custom Emulated machine + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customEmulatedMachine") + private final String customEmulatedMachine; + + /** + * Custom Emulated machine + * @return the value + **/ + public String getCustomEmulatedMachine() { + return customEmulatedMachine; + } + + /** + * Custom properties applied to the vNIC profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private final java.util.List customProperties; + + /** + * Custom properties applied to the vNIC profile. + * @return the value + **/ + public java.util.List getCustomProperties() { + return customProperties; + } + + /** + * If true, the virtual machine cannot be deleted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDeleteProtected") + private final Boolean isDeleteProtected; + + /** + * If true, the virtual machine cannot be deleted. + * @return the value + **/ + public Boolean getIsDeleteProtected() { + return isDeleteProtected; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private final OlvmDisplay display; + + public OlvmDisplay getDisplay() { + return display; + } + + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final OlvmDomain domain; + + public OlvmDomain getDomain() { + return domain; + } + + @com.fasterxml.jackson.annotation.JsonProperty("highAvailability") + private final OlvmHighAvailability highAvailability; + + public OlvmHighAvailability getHighAvailability() { + return highAvailability; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialization") + private final OlvmInitialization initialization; + + public OlvmInitialization getInitialization() { + return initialization; + } + + /** + * For performance tuning of IO threading. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ioThreads") + private final Integer ioThreads; + + /** + * For performance tuning of IO threading. + * @return the value + **/ + public Integer getIoThreads() { + return ioThreads; + } + + @com.fasterxml.jackson.annotation.JsonProperty("largeIcon") + private final OlvmIcon largeIcon; + + public OlvmIcon getLargeIcon() { + return largeIcon; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainLease") + private final OlvmStorageDomainProperties storageDomainLease; + + public OlvmStorageDomainProperties getStorageDomainLease() { + return storageDomainLease; + } + + /** + * The virtual machine\u2019s memory, in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInBytes") + private final Long memoryInBytes; + + /** + * The virtual machine\u2019s memory, in bytes. + * @return the value + **/ + public Long getMemoryInBytes() { + return memoryInBytes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryPolicy") + private final OlvmMemoryPolicy memoryPolicy; + + public OlvmMemoryPolicy getMemoryPolicy() { + return memoryPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationPolicy") + private final OlvmMigrationOptions migrationPolicy; + + public OlvmMigrationOptions getMigrationPolicy() { + return migrationPolicy; + } + + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationDowntimeInMs") + private final Integer migrationDowntimeInMs; + + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + * @return the value + **/ + public Integer getMigrationDowntimeInMs() { + return migrationDowntimeInMs; + } + + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMultiQueuesEnabled") + private final Boolean isMultiQueuesEnabled; + + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + * @return the value + **/ + public Boolean getIsMultiQueuesEnabled() { + return isMultiQueuesEnabled; + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("templateName") + private final String templateName; + + /** + * Name of the property. + * @return the value + **/ + public String getTemplateName() { + return templateName; + } + + /** + * The origin of this virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("origin") + private final String origin; + + /** + * The origin of this virtual machine. + * @return the value + **/ + public String getOrigin() { + return origin; + } + + @com.fasterxml.jackson.annotation.JsonProperty("os") + private final OlvmOperatingSystem os; + + public OlvmOperatingSystem getOs() { + return os; + } + + @com.fasterxml.jackson.annotation.JsonProperty("placementPolicy") + private final OlvmVmPlacementPolicy placementPolicy; + + public OlvmVmPlacementPolicy getPlacementPolicy() { + return placementPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private final OlvmSerialNumber serialNumber; + + public OlvmSerialNumber getSerialNumber() { + return serialNumber; + } + + @com.fasterxml.jackson.annotation.JsonProperty("smallIcon") + private final OlvmIcon smallIcon; + + public OlvmIcon getSmallIcon() { + return smallIcon; + } + + /** + * If true, the sound card is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSoundcardEnabled") + private final Boolean isSoundcardEnabled; + + /** + * If true, the sound card is added to the virtual machine. + * @return the value + **/ + public Boolean getIsSoundcardEnabled() { + return isSoundcardEnabled; + } + + /** + * If true, the virtual machine will be initially in 'paused' state after start. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStartPaused") + private final Boolean isStartPaused; + + /** + * If true, the virtual machine will be initially in 'paused' state after start. + * @return the value + **/ + public Boolean getIsStartPaused() { + return isStartPaused; + } + + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStateless") + private final Boolean isStateless; + + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + * @return the value + **/ + public Boolean getIsStateless() { + return isStateless; + } + + /** + * The status of the template. + **/ + public enum Status { + Illegal("ILLEGAL"), + Locked("LOCKED"), + Ok("OK"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + map.put(v.getValue(), v); + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + /** + * The status of the template. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * The status of the template. + * @return the value + **/ + public Status getStatus() { + return status; + } + + /** + * Determines how the virtual machine will be resumed after storage error. + **/ + public enum StorageErrorResumeBehavior { + AutoResume("AUTO_RESUME"), + Kill("KILL"), + LeavePaused("LEAVE_PAUSED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageErrorResumeBehavior v : StorageErrorResumeBehavior.values()) { + map.put(v.getValue(), v); + } + } + + StorageErrorResumeBehavior(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageErrorResumeBehavior create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageErrorResumeBehavior: " + key); + } + }; + /** + * Determines how the virtual machine will be resumed after storage error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageErrorResumeBehavior") + private final StorageErrorResumeBehavior storageErrorResumeBehavior; + + /** + * Determines how the virtual machine will be resumed after storage error. + * @return the value + **/ + public StorageErrorResumeBehavior getStorageErrorResumeBehavior() { + return storageErrorResumeBehavior; + } + + /** + * Name of time zone. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private final String timezone; + + /** + * Name of time zone. + * @return the value + **/ + public String getTimezone() { + return timezone; + } + + /** + * If true, a TPM device is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTpmEnabled") + private final Boolean isTpmEnabled; + + /** + * If true, a TPM device is added to the virtual machine. + * @return the value + **/ + public Boolean getIsTpmEnabled() { + return isTpmEnabled; + } + + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTunnelMigration") + private final Boolean isTunnelMigration; + + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + * @return the value + **/ + public Boolean getIsTunnelMigration() { + return isTunnelMigration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final OlvmVmType type; + + public OlvmVmType getType() { + return type; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usb") + private final OlvmUsb usb; + + public OlvmUsb getUsb() { + return usb; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final OlvmTemplateVersion version; + + public OlvmTemplateVersion getVersion() { + return version; + } + + /** + * Indicates if Virtio SCSI Support is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiEnabled") + private final Boolean isVirtioScsiEnabled; + + /** + * Indicates if Virtio SCSI Support is enabled. + * @return the value + **/ + public Boolean getIsVirtioScsiEnabled() { + return isVirtioScsiEnabled; + } + + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + **/ + @com.fasterxml.jackson.annotation.JsonProperty("virtioScsiMultiQueues") + private final Integer virtioScsiMultiQueues; + + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + * @return the value + **/ + public Integer getVirtioScsiMultiQueues() { + return virtioScsiMultiQueues; + } + + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiMultiQueuesEnabled") + private final Boolean isVirtioScsiMultiQueuesEnabled; + + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + * @return the value + **/ + public Boolean getIsVirtioScsiMultiQueuesEnabled() { + return isVirtioScsiMultiQueuesEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vm") + private final OlvmVirtualMachine vm; + + public OlvmVirtualMachine getVm() { + return vm; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmTemplateProperties("); + sb.append("super=").append(super.toString()); + sb.append("autoPinningPolicy=").append(String.valueOf(this.autoPinningPolicy)); + sb.append(", bios=").append(String.valueOf(this.bios)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", console=").append(String.valueOf(this.console)); + sb.append(", cpu=").append(String.valueOf(this.cpu)); + sb.append(", cpuPinningPolicy=").append(String.valueOf(this.cpuPinningPolicy)); + sb.append(", cpuShares=").append(String.valueOf(this.cpuShares)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", customCompatibilityVersion=") + .append(String.valueOf(this.customCompatibilityVersion)); + sb.append(", customCpuModel=").append(String.valueOf(this.customCpuModel)); + sb.append(", customEmulatedMachine=").append(String.valueOf(this.customEmulatedMachine)); + sb.append(", customProperties=").append(String.valueOf(this.customProperties)); + sb.append(", isDeleteProtected=").append(String.valueOf(this.isDeleteProtected)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", display=").append(String.valueOf(this.display)); + sb.append(", domain=").append(String.valueOf(this.domain)); + sb.append(", highAvailability=").append(String.valueOf(this.highAvailability)); + sb.append(", initialization=").append(String.valueOf(this.initialization)); + sb.append(", ioThreads=").append(String.valueOf(this.ioThreads)); + sb.append(", largeIcon=").append(String.valueOf(this.largeIcon)); + sb.append(", storageDomainLease=").append(String.valueOf(this.storageDomainLease)); + sb.append(", memoryInBytes=").append(String.valueOf(this.memoryInBytes)); + sb.append(", memoryPolicy=").append(String.valueOf(this.memoryPolicy)); + sb.append(", migrationPolicy=").append(String.valueOf(this.migrationPolicy)); + sb.append(", migrationDowntimeInMs=").append(String.valueOf(this.migrationDowntimeInMs)); + sb.append(", isMultiQueuesEnabled=").append(String.valueOf(this.isMultiQueuesEnabled)); + sb.append(", templateName=").append(String.valueOf(this.templateName)); + sb.append(", origin=").append(String.valueOf(this.origin)); + sb.append(", os=").append(String.valueOf(this.os)); + sb.append(", placementPolicy=").append(String.valueOf(this.placementPolicy)); + sb.append(", serialNumber=").append(String.valueOf(this.serialNumber)); + sb.append(", smallIcon=").append(String.valueOf(this.smallIcon)); + sb.append(", isSoundcardEnabled=").append(String.valueOf(this.isSoundcardEnabled)); + sb.append(", isStartPaused=").append(String.valueOf(this.isStartPaused)); + sb.append(", isStateless=").append(String.valueOf(this.isStateless)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", storageErrorResumeBehavior=") + .append(String.valueOf(this.storageErrorResumeBehavior)); + sb.append(", timezone=").append(String.valueOf(this.timezone)); + sb.append(", isTpmEnabled=").append(String.valueOf(this.isTpmEnabled)); + sb.append(", isTunnelMigration=").append(String.valueOf(this.isTunnelMigration)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", usb=").append(String.valueOf(this.usb)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", isVirtioScsiEnabled=").append(String.valueOf(this.isVirtioScsiEnabled)); + sb.append(", virtioScsiMultiQueues=").append(String.valueOf(this.virtioScsiMultiQueues)); + sb.append(", isVirtioScsiMultiQueuesEnabled=") + .append(String.valueOf(this.isVirtioScsiMultiQueuesEnabled)); + sb.append(", vm=").append(String.valueOf(this.vm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmTemplateProperties)) { + return false; + } + + OlvmTemplateProperties other = (OlvmTemplateProperties) o; + return java.util.Objects.equals(this.autoPinningPolicy, other.autoPinningPolicy) + && java.util.Objects.equals(this.bios, other.bios) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.console, other.console) + && java.util.Objects.equals(this.cpu, other.cpu) + && java.util.Objects.equals(this.cpuPinningPolicy, other.cpuPinningPolicy) + && java.util.Objects.equals(this.cpuShares, other.cpuShares) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals( + this.customCompatibilityVersion, other.customCompatibilityVersion) + && java.util.Objects.equals(this.customCpuModel, other.customCpuModel) + && java.util.Objects.equals(this.customEmulatedMachine, other.customEmulatedMachine) + && java.util.Objects.equals(this.customProperties, other.customProperties) + && java.util.Objects.equals(this.isDeleteProtected, other.isDeleteProtected) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.display, other.display) + && java.util.Objects.equals(this.domain, other.domain) + && java.util.Objects.equals(this.highAvailability, other.highAvailability) + && java.util.Objects.equals(this.initialization, other.initialization) + && java.util.Objects.equals(this.ioThreads, other.ioThreads) + && java.util.Objects.equals(this.largeIcon, other.largeIcon) + && java.util.Objects.equals(this.storageDomainLease, other.storageDomainLease) + && java.util.Objects.equals(this.memoryInBytes, other.memoryInBytes) + && java.util.Objects.equals(this.memoryPolicy, other.memoryPolicy) + && java.util.Objects.equals(this.migrationPolicy, other.migrationPolicy) + && java.util.Objects.equals(this.migrationDowntimeInMs, other.migrationDowntimeInMs) + && java.util.Objects.equals(this.isMultiQueuesEnabled, other.isMultiQueuesEnabled) + && java.util.Objects.equals(this.templateName, other.templateName) + && java.util.Objects.equals(this.origin, other.origin) + && java.util.Objects.equals(this.os, other.os) + && java.util.Objects.equals(this.placementPolicy, other.placementPolicy) + && java.util.Objects.equals(this.serialNumber, other.serialNumber) + && java.util.Objects.equals(this.smallIcon, other.smallIcon) + && java.util.Objects.equals(this.isSoundcardEnabled, other.isSoundcardEnabled) + && java.util.Objects.equals(this.isStartPaused, other.isStartPaused) + && java.util.Objects.equals(this.isStateless, other.isStateless) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.storageErrorResumeBehavior, other.storageErrorResumeBehavior) + && java.util.Objects.equals(this.timezone, other.timezone) + && java.util.Objects.equals(this.isTpmEnabled, other.isTpmEnabled) + && java.util.Objects.equals(this.isTunnelMigration, other.isTunnelMigration) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.usb, other.usb) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.isVirtioScsiEnabled, other.isVirtioScsiEnabled) + && java.util.Objects.equals(this.virtioScsiMultiQueues, other.virtioScsiMultiQueues) + && java.util.Objects.equals( + this.isVirtioScsiMultiQueuesEnabled, other.isVirtioScsiMultiQueuesEnabled) + && java.util.Objects.equals(this.vm, other.vm) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.autoPinningPolicy == null ? 43 : this.autoPinningPolicy.hashCode()); + result = (result * PRIME) + (this.bios == null ? 43 : this.bios.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.console == null ? 43 : this.console.hashCode()); + result = (result * PRIME) + (this.cpu == null ? 43 : this.cpu.hashCode()); + result = + (result * PRIME) + + (this.cpuPinningPolicy == null ? 43 : this.cpuPinningPolicy.hashCode()); + result = (result * PRIME) + (this.cpuShares == null ? 43 : this.cpuShares.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.customCompatibilityVersion == null + ? 43 + : this.customCompatibilityVersion.hashCode()); + result = + (result * PRIME) + + (this.customCpuModel == null ? 43 : this.customCpuModel.hashCode()); + result = + (result * PRIME) + + (this.customEmulatedMachine == null + ? 43 + : this.customEmulatedMachine.hashCode()); + result = + (result * PRIME) + + (this.customProperties == null ? 43 : this.customProperties.hashCode()); + result = + (result * PRIME) + + (this.isDeleteProtected == null ? 43 : this.isDeleteProtected.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.display == null ? 43 : this.display.hashCode()); + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); + result = + (result * PRIME) + + (this.highAvailability == null ? 43 : this.highAvailability.hashCode()); + result = + (result * PRIME) + + (this.initialization == null ? 43 : this.initialization.hashCode()); + result = (result * PRIME) + (this.ioThreads == null ? 43 : this.ioThreads.hashCode()); + result = (result * PRIME) + (this.largeIcon == null ? 43 : this.largeIcon.hashCode()); + result = + (result * PRIME) + + (this.storageDomainLease == null + ? 43 + : this.storageDomainLease.hashCode()); + result = + (result * PRIME) + + (this.memoryInBytes == null ? 43 : this.memoryInBytes.hashCode()); + result = (result * PRIME) + (this.memoryPolicy == null ? 43 : this.memoryPolicy.hashCode()); + result = + (result * PRIME) + + (this.migrationPolicy == null ? 43 : this.migrationPolicy.hashCode()); + result = + (result * PRIME) + + (this.migrationDowntimeInMs == null + ? 43 + : this.migrationDowntimeInMs.hashCode()); + result = + (result * PRIME) + + (this.isMultiQueuesEnabled == null + ? 43 + : this.isMultiQueuesEnabled.hashCode()); + result = (result * PRIME) + (this.templateName == null ? 43 : this.templateName.hashCode()); + result = (result * PRIME) + (this.origin == null ? 43 : this.origin.hashCode()); + result = (result * PRIME) + (this.os == null ? 43 : this.os.hashCode()); + result = + (result * PRIME) + + (this.placementPolicy == null ? 43 : this.placementPolicy.hashCode()); + result = (result * PRIME) + (this.serialNumber == null ? 43 : this.serialNumber.hashCode()); + result = (result * PRIME) + (this.smallIcon == null ? 43 : this.smallIcon.hashCode()); + result = + (result * PRIME) + + (this.isSoundcardEnabled == null + ? 43 + : this.isSoundcardEnabled.hashCode()); + result = + (result * PRIME) + + (this.isStartPaused == null ? 43 : this.isStartPaused.hashCode()); + result = (result * PRIME) + (this.isStateless == null ? 43 : this.isStateless.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.storageErrorResumeBehavior == null + ? 43 + : this.storageErrorResumeBehavior.hashCode()); + result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); + result = (result * PRIME) + (this.isTpmEnabled == null ? 43 : this.isTpmEnabled.hashCode()); + result = + (result * PRIME) + + (this.isTunnelMigration == null ? 43 : this.isTunnelMigration.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.usb == null ? 43 : this.usb.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.isVirtioScsiEnabled == null + ? 43 + : this.isVirtioScsiEnabled.hashCode()); + result = + (result * PRIME) + + (this.virtioScsiMultiQueues == null + ? 43 + : this.virtioScsiMultiQueues.hashCode()); + result = + (result * PRIME) + + (this.isVirtioScsiMultiQueuesEnabled == null + ? 43 + : this.isVirtioScsiMultiQueuesEnabled.hashCode()); + result = (result * PRIME) + (this.vm == null ? 43 : this.vm.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateVersion.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateVersion.java new file mode 100644 index 00000000000..e2e87cbd234 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmTemplateVersion.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Indicates whether this is the base version or a sub-version of another template. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmTemplateVersion.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmTemplateVersion extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"versionName", "versionNumber"}) + public OlvmTemplateVersion(String versionName, Integer versionNumber) { + super(); + this.versionName = versionName; + this.versionNumber = versionNumber; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionName") + private String versionName; + + /** + * The name of this version. + * @param versionName the value to set + * @return this builder + **/ + public Builder versionName(String versionName) { + this.versionName = versionName; + this.__explicitlySet__.add("versionName"); + return this; + } + /** + * The index of this version in the versions hierarchy of the template. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") + private Integer versionNumber; + + /** + * The index of this version in the versions hierarchy of the template. + * @param versionNumber the value to set + * @return this builder + **/ + public Builder versionNumber(Integer versionNumber) { + this.versionNumber = versionNumber; + this.__explicitlySet__.add("versionNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmTemplateVersion build() { + OlvmTemplateVersion model = + new OlvmTemplateVersion(this.versionName, this.versionNumber); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmTemplateVersion model) { + if (model.wasPropertyExplicitlySet("versionName")) { + this.versionName(model.getVersionName()); + } + if (model.wasPropertyExplicitlySet("versionNumber")) { + this.versionNumber(model.getVersionNumber()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionName") + private final String versionName; + + /** + * The name of this version. + * @return the value + **/ + public String getVersionName() { + return versionName; + } + + /** + * The index of this version in the versions hierarchy of the template. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") + private final Integer versionNumber; + + /** + * The index of this version in the versions hierarchy of the template. + * @return the value + **/ + public Integer getVersionNumber() { + return versionNumber; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmTemplateVersion("); + sb.append("super=").append(super.toString()); + sb.append("versionName=").append(String.valueOf(this.versionName)); + sb.append(", versionNumber=").append(String.valueOf(this.versionNumber)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmTemplateVersion)) { + return false; + } + + OlvmTemplateVersion other = (OlvmTemplateVersion) o; + return java.util.Objects.equals(this.versionName, other.versionName) + && java.util.Objects.equals(this.versionNumber, other.versionNumber) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.versionName == null ? 43 : this.versionName.hashCode()); + result = + (result * PRIME) + + (this.versionNumber == null ? 43 : this.versionNumber.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmUsb.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmUsb.java new file mode 100644 index 00000000000..6edd29e9737 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmUsb.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Configuration of USB devices for this virtual machine (count, type). + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmUsb.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmUsb extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled", "usbType"}) + public OlvmUsb(Boolean isEnabled, UsbType usbType) { + super(); + this.isEnabled = isEnabled; + this.usbType = usbType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Determines whether the USB device should be included or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Determines whether the USB device should be included or not. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Type of USB device redirection + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usbType") + private UsbType usbType; + + /** + * Type of USB device redirection + * @param usbType the value to set + * @return this builder + **/ + public Builder usbType(UsbType usbType) { + this.usbType = usbType; + this.__explicitlySet__.add("usbType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmUsb build() { + OlvmUsb model = new OlvmUsb(this.isEnabled, this.usbType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmUsb model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("usbType")) { + this.usbType(model.getUsbType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Determines whether the USB device should be included or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Determines whether the USB device should be included or not. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Type of USB device redirection + **/ + public enum UsbType { + Legacy("LEGACY"), + Native("NATIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UsbType v : UsbType.values()) { + map.put(v.getValue(), v); + } + } + + UsbType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UsbType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid UsbType: " + key); + } + }; + /** + * Type of USB device redirection + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usbType") + private final UsbType usbType; + + /** + * Type of USB device redirection + * @return the value + **/ + public UsbType getUsbType() { + return usbType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmUsb("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", usbType=").append(String.valueOf(this.usbType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmUsb)) { + return false; + } + + OlvmUsb other = (OlvmUsb) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.usbType, other.usbType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.usbType == null ? 43 : this.usbType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVersion.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVersion.java new file mode 100644 index 00000000000..baf8ec5baf8 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVersion.java @@ -0,0 +1,458 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Version in OLVM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVersion extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "build", + "comment", + "description", + "fullVersion", + "id", + "major", + "minor", + "name", + "revision" + }) + public OlvmVersion( + Integer build, + String comment, + String description, + String fullVersion, + String id, + Integer major, + Integer minor, + String name, + Integer revision) { + super(); + this.build = build; + this.comment = comment; + this.description = description; + this.fullVersion = fullVersion; + this.id = id; + this.major = major; + this.minor = minor; + this.name = name; + this.revision = revision; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Build number of this version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("build") + private Integer build; + + /** + * Build number of this version + * @param build the value to set + * @return this builder + **/ + public Builder build(Integer build) { + this.build = build; + this.__explicitlySet__.add("build"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Full version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fullVersion") + private String fullVersion; + + /** + * Full version + * @param fullVersion the value to set + * @return this builder + **/ + public Builder fullVersion(String fullVersion) { + this.fullVersion = fullVersion; + this.__explicitlySet__.add("fullVersion"); + return this; + } + /** + * A unique identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Major version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("major") + private Integer major; + + /** + * Major version + * @param major the value to set + * @return this builder + **/ + public Builder major(Integer major) { + this.major = major; + this.__explicitlySet__.add("major"); + return this; + } + /** + * Minor version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minor") + private Integer minor; + + /** + * Minor version + * @param minor the value to set + * @return this builder + **/ + public Builder minor(Integer minor) { + this.minor = minor; + this.__explicitlySet__.add("minor"); + return this; + } + /** + * A human-readable name in plain text + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A human-readable name in plain text + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Revision number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private Integer revision; + + /** + * Revision number + * @param revision the value to set + * @return this builder + **/ + public Builder revision(Integer revision) { + this.revision = revision; + this.__explicitlySet__.add("revision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVersion build() { + OlvmVersion model = + new OlvmVersion( + this.build, + this.comment, + this.description, + this.fullVersion, + this.id, + this.major, + this.minor, + this.name, + this.revision); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVersion model) { + if (model.wasPropertyExplicitlySet("build")) { + this.build(model.getBuild()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("fullVersion")) { + this.fullVersion(model.getFullVersion()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("major")) { + this.major(model.getMajor()); + } + if (model.wasPropertyExplicitlySet("minor")) { + this.minor(model.getMinor()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("revision")) { + this.revision(model.getRevision()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Build number of this version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("build") + private final Integer build; + + /** + * Build number of this version + * @return the value + **/ + public Integer getBuild() { + return build; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Full version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fullVersion") + private final String fullVersion; + + /** + * Full version + * @return the value + **/ + public String getFullVersion() { + return fullVersion; + } + + /** + * A unique identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Major version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("major") + private final Integer major; + + /** + * Major version + * @return the value + **/ + public Integer getMajor() { + return major; + } + + /** + * Minor version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minor") + private final Integer minor; + + /** + * Minor version + * @return the value + **/ + public Integer getMinor() { + return minor; + } + + /** + * A human-readable name in plain text + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A human-readable name in plain text + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Revision number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private final Integer revision; + + /** + * Revision number + * @return the value + **/ + public Integer getRevision() { + return revision; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVersion("); + sb.append("super=").append(super.toString()); + sb.append("build=").append(String.valueOf(this.build)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", fullVersion=").append(String.valueOf(this.fullVersion)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", major=").append(String.valueOf(this.major)); + sb.append(", minor=").append(String.valueOf(this.minor)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", revision=").append(String.valueOf(this.revision)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVersion)) { + return false; + } + + OlvmVersion other = (OlvmVersion) o; + return java.util.Objects.equals(this.build, other.build) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.fullVersion, other.fullVersion) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.major, other.major) + && java.util.Objects.equals(this.minor, other.minor) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.revision, other.revision) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.build == null ? 43 : this.build.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.fullVersion == null ? 43 : this.fullVersion.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.major == null ? 43 : this.major.hashCode()); + result = (result * PRIME) + (this.minor == null ? 43 : this.minor.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.revision == null ? 43 : this.revision.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVirtualMachine.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVirtualMachine.java new file mode 100644 index 00000000000..8fe193e161f --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVirtualMachine.java @@ -0,0 +1,2344 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Represents a virtual machine. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmVirtualMachine.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVirtualMachine extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "autoPinningPolicy", + "bios", + "comment", + "console", + "cpu", + "cpuPinningPolicy", + "cpuShares", + "timeCreated", + "customCompatibilityVersion", + "customCpuModel", + "customEmulatedMachine", + "customProperties", + "isDeleteProtected", + "description", + "display", + "domain", + "fqdn", + "guestOperatingSystem", + "guestTimeZone", + "isContainIllegalImages", + "highAvailability", + "initialization", + "ioThreads", + "largeIcon", + "storageDomainLease", + "memoryInBytes", + "memoryPolicy", + "migrationPolicy", + "migrationDowntimeInMs", + "isMultiQueuesEnabled", + "virtualMachineName", + "isNextRunConfigurationExists", + "numaTuneMode", + "origin", + "os", + "placementPolicy", + "isRunOnce", + "serialNumber", + "smallIcon", + "isSoundcardEnabled", + "isStartPaused", + "timeStart", + "isStateless", + "status", + "statusDetail", + "stopReason", + "timeStop", + "storageErrorResumeBehavior", + "timezone", + "isTpmEnabled", + "isTunnelMigration", + "type", + "usb", + "isUseLatestTemplateVersion", + "isVirtioScsiEnabled", + "virtioScsiMultiQueues", + "isVirtioScsiMultiQueuesEnabled" + }) + public OlvmVirtualMachine( + AutoPinningPolicy autoPinningPolicy, + OlvmBios bios, + String comment, + OlvmConsole console, + OlvmCpu cpu, + CpuPinningPolicy cpuPinningPolicy, + Integer cpuShares, + java.util.Date timeCreated, + OlvmVersion customCompatibilityVersion, + String customCpuModel, + String customEmulatedMachine, + java.util.List customProperties, + Boolean isDeleteProtected, + String description, + OlvmDisplay display, + OlvmDomain domain, + String fqdn, + OlvmGuestOperatingSystem guestOperatingSystem, + String guestTimeZone, + Boolean isContainIllegalImages, + OlvmHighAvailability highAvailability, + OlvmInitialization initialization, + Integer ioThreads, + OlvmIcon largeIcon, + OlvmStorageDomainProperties storageDomainLease, + Long memoryInBytes, + OlvmMemoryPolicy memoryPolicy, + OlvmMigrationOptions migrationPolicy, + Integer migrationDowntimeInMs, + Boolean isMultiQueuesEnabled, + String virtualMachineName, + Boolean isNextRunConfigurationExists, + NumaTuneMode numaTuneMode, + String origin, + OlvmOperatingSystem os, + OlvmVmPlacementPolicy placementPolicy, + Boolean isRunOnce, + OlvmSerialNumber serialNumber, + OlvmIcon smallIcon, + Boolean isSoundcardEnabled, + Boolean isStartPaused, + java.util.Date timeStart, + Boolean isStateless, + OlvmVmStatus status, + String statusDetail, + String stopReason, + java.util.Date timeStop, + StorageErrorResumeBehavior storageErrorResumeBehavior, + String timezone, + Boolean isTpmEnabled, + Boolean isTunnelMigration, + OlvmVmType type, + OlvmUsb usb, + Boolean isUseLatestTemplateVersion, + Boolean isVirtioScsiEnabled, + Integer virtioScsiMultiQueues, + Boolean isVirtioScsiMultiQueuesEnabled) { + super(); + this.autoPinningPolicy = autoPinningPolicy; + this.bios = bios; + this.comment = comment; + this.console = console; + this.cpu = cpu; + this.cpuPinningPolicy = cpuPinningPolicy; + this.cpuShares = cpuShares; + this.timeCreated = timeCreated; + this.customCompatibilityVersion = customCompatibilityVersion; + this.customCpuModel = customCpuModel; + this.customEmulatedMachine = customEmulatedMachine; + this.customProperties = customProperties; + this.isDeleteProtected = isDeleteProtected; + this.description = description; + this.display = display; + this.domain = domain; + this.fqdn = fqdn; + this.guestOperatingSystem = guestOperatingSystem; + this.guestTimeZone = guestTimeZone; + this.isContainIllegalImages = isContainIllegalImages; + this.highAvailability = highAvailability; + this.initialization = initialization; + this.ioThreads = ioThreads; + this.largeIcon = largeIcon; + this.storageDomainLease = storageDomainLease; + this.memoryInBytes = memoryInBytes; + this.memoryPolicy = memoryPolicy; + this.migrationPolicy = migrationPolicy; + this.migrationDowntimeInMs = migrationDowntimeInMs; + this.isMultiQueuesEnabled = isMultiQueuesEnabled; + this.virtualMachineName = virtualMachineName; + this.isNextRunConfigurationExists = isNextRunConfigurationExists; + this.numaTuneMode = numaTuneMode; + this.origin = origin; + this.os = os; + this.placementPolicy = placementPolicy; + this.isRunOnce = isRunOnce; + this.serialNumber = serialNumber; + this.smallIcon = smallIcon; + this.isSoundcardEnabled = isSoundcardEnabled; + this.isStartPaused = isStartPaused; + this.timeStart = timeStart; + this.isStateless = isStateless; + this.status = status; + this.statusDetail = statusDetail; + this.stopReason = stopReason; + this.timeStop = timeStop; + this.storageErrorResumeBehavior = storageErrorResumeBehavior; + this.timezone = timezone; + this.isTpmEnabled = isTpmEnabled; + this.isTunnelMigration = isTunnelMigration; + this.type = type; + this.usb = usb; + this.isUseLatestTemplateVersion = isUseLatestTemplateVersion; + this.isVirtioScsiEnabled = isVirtioScsiEnabled; + this.virtioScsiMultiQueues = virtioScsiMultiQueues; + this.isVirtioScsiMultiQueuesEnabled = isVirtioScsiMultiQueuesEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoPinningPolicy") + private AutoPinningPolicy autoPinningPolicy; + + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + * @param autoPinningPolicy the value to set + * @return this builder + **/ + public Builder autoPinningPolicy(AutoPinningPolicy autoPinningPolicy) { + this.autoPinningPolicy = autoPinningPolicy; + this.__explicitlySet__.add("autoPinningPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bios") + private OlvmBios bios; + + public Builder bios(OlvmBios bios) { + this.bios = bios; + this.__explicitlySet__.add("bios"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("console") + private OlvmConsole console; + + public Builder console(OlvmConsole console) { + this.console = console; + this.__explicitlySet__.add("console"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private OlvmCpu cpu; + + public Builder cpu(OlvmCpu cpu) { + this.cpu = cpu; + this.__explicitlySet__.add("cpu"); + return this; + } + /** + * Type representing the CPU and NUMA pinning policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuPinningPolicy") + private CpuPinningPolicy cpuPinningPolicy; + + /** + * Type representing the CPU and NUMA pinning policy. + * @param cpuPinningPolicy the value to set + * @return this builder + **/ + public Builder cpuPinningPolicy(CpuPinningPolicy cpuPinningPolicy) { + this.cpuPinningPolicy = cpuPinningPolicy; + this.__explicitlySet__.add("cpuPinningPolicy"); + return this; + } + /** + * Number of CPU Shares + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuShares") + private Integer cpuShares; + + /** + * Number of CPU Shares + * @param cpuShares the value to set + * @return this builder + **/ + public Builder cpuShares(Integer cpuShares) { + this.cpuShares = cpuShares; + this.__explicitlySet__.add("cpuShares"); + return this; + } + /** + * Creation time. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Creation time. + * @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.JsonProperty("customCompatibilityVersion") + private OlvmVersion customCompatibilityVersion; + + public Builder customCompatibilityVersion(OlvmVersion customCompatibilityVersion) { + this.customCompatibilityVersion = customCompatibilityVersion; + this.__explicitlySet__.add("customCompatibilityVersion"); + return this; + } + /** + * Custom CPU model + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customCpuModel") + private String customCpuModel; + + /** + * Custom CPU model + * @param customCpuModel the value to set + * @return this builder + **/ + public Builder customCpuModel(String customCpuModel) { + this.customCpuModel = customCpuModel; + this.__explicitlySet__.add("customCpuModel"); + return this; + } + /** + * Custom Emulated machine + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customEmulatedMachine") + private String customEmulatedMachine; + + /** + * Custom Emulated machine + * @param customEmulatedMachine the value to set + * @return this builder + **/ + public Builder customEmulatedMachine(String customEmulatedMachine) { + this.customEmulatedMachine = customEmulatedMachine; + this.__explicitlySet__.add("customEmulatedMachine"); + return this; + } + /** + * Custom properties applied to the vNIC profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private java.util.List customProperties; + + /** + * Custom properties applied to the vNIC profile. + * @param customProperties the value to set + * @return this builder + **/ + public Builder customProperties(java.util.List customProperties) { + this.customProperties = customProperties; + this.__explicitlySet__.add("customProperties"); + return this; + } + /** + * If true, the virtual machine cannot be deleted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDeleteProtected") + private Boolean isDeleteProtected; + + /** + * If true, the virtual machine cannot be deleted. + * @param isDeleteProtected the value to set + * @return this builder + **/ + public Builder isDeleteProtected(Boolean isDeleteProtected) { + this.isDeleteProtected = isDeleteProtected; + this.__explicitlySet__.add("isDeleteProtected"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private OlvmDisplay display; + + public Builder display(OlvmDisplay display) { + this.display = display; + this.__explicitlySet__.add("display"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private OlvmDomain domain; + + public Builder domain(OlvmDomain domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } + /** + * Fully qualified domain name of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fqdn") + private String fqdn; + + /** + * Fully qualified domain name of the virtual machine. + * @param fqdn the value to set + * @return this builder + **/ + public Builder fqdn(String fqdn) { + this.fqdn = fqdn; + this.__explicitlySet__.add("fqdn"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("guestOperatingSystem") + private OlvmGuestOperatingSystem guestOperatingSystem; + + public Builder guestOperatingSystem(OlvmGuestOperatingSystem guestOperatingSystem) { + this.guestOperatingSystem = guestOperatingSystem; + this.__explicitlySet__.add("guestOperatingSystem"); + return this; + } + /** + * What time zone is used by the virtual machine (as returned by guest agent). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guestTimeZone") + private String guestTimeZone; + + /** + * What time zone is used by the virtual machine (as returned by guest agent). + * @param guestTimeZone the value to set + * @return this builder + **/ + public Builder guestTimeZone(String guestTimeZone) { + this.guestTimeZone = guestTimeZone; + this.__explicitlySet__.add("guestTimeZone"); + return this; + } + /** + * Indicates whether the virtual machine has snapshots with disks in ILLEGAL state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isContainIllegalImages") + private Boolean isContainIllegalImages; + + /** + * Indicates whether the virtual machine has snapshots with disks in ILLEGAL state. + * @param isContainIllegalImages the value to set + * @return this builder + **/ + public Builder isContainIllegalImages(Boolean isContainIllegalImages) { + this.isContainIllegalImages = isContainIllegalImages; + this.__explicitlySet__.add("isContainIllegalImages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("highAvailability") + private OlvmHighAvailability highAvailability; + + public Builder highAvailability(OlvmHighAvailability highAvailability) { + this.highAvailability = highAvailability; + this.__explicitlySet__.add("highAvailability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialization") + private OlvmInitialization initialization; + + public Builder initialization(OlvmInitialization initialization) { + this.initialization = initialization; + this.__explicitlySet__.add("initialization"); + return this; + } + /** + * For performance tuning of IO threading. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ioThreads") + private Integer ioThreads; + + /** + * For performance tuning of IO threading. + * @param ioThreads the value to set + * @return this builder + **/ + public Builder ioThreads(Integer ioThreads) { + this.ioThreads = ioThreads; + this.__explicitlySet__.add("ioThreads"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("largeIcon") + private OlvmIcon largeIcon; + + public Builder largeIcon(OlvmIcon largeIcon) { + this.largeIcon = largeIcon; + this.__explicitlySet__.add("largeIcon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainLease") + private OlvmStorageDomainProperties storageDomainLease; + + public Builder storageDomainLease(OlvmStorageDomainProperties storageDomainLease) { + this.storageDomainLease = storageDomainLease; + this.__explicitlySet__.add("storageDomainLease"); + return this; + } + /** + * The virtual machine\u2019s memory, in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInBytes") + private Long memoryInBytes; + + /** + * The virtual machine\u2019s memory, in bytes. + * @param memoryInBytes the value to set + * @return this builder + **/ + public Builder memoryInBytes(Long memoryInBytes) { + this.memoryInBytes = memoryInBytes; + this.__explicitlySet__.add("memoryInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryPolicy") + private OlvmMemoryPolicy memoryPolicy; + + public Builder memoryPolicy(OlvmMemoryPolicy memoryPolicy) { + this.memoryPolicy = memoryPolicy; + this.__explicitlySet__.add("memoryPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationPolicy") + private OlvmMigrationOptions migrationPolicy; + + public Builder migrationPolicy(OlvmMigrationOptions migrationPolicy) { + this.migrationPolicy = migrationPolicy; + this.__explicitlySet__.add("migrationPolicy"); + return this; + } + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationDowntimeInMs") + private Integer migrationDowntimeInMs; + + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + * @param migrationDowntimeInMs the value to set + * @return this builder + **/ + public Builder migrationDowntimeInMs(Integer migrationDowntimeInMs) { + this.migrationDowntimeInMs = migrationDowntimeInMs; + this.__explicitlySet__.add("migrationDowntimeInMs"); + return this; + } + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMultiQueuesEnabled") + private Boolean isMultiQueuesEnabled; + + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + * @param isMultiQueuesEnabled the value to set + * @return this builder + **/ + public Builder isMultiQueuesEnabled(Boolean isMultiQueuesEnabled) { + this.isMultiQueuesEnabled = isMultiQueuesEnabled; + this.__explicitlySet__.add("isMultiQueuesEnabled"); + return this; + } + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("virtualMachineName") + private String virtualMachineName; + + /** + * Name of the property. + * @param virtualMachineName the value to set + * @return this builder + **/ + public Builder virtualMachineName(String virtualMachineName) { + this.virtualMachineName = virtualMachineName; + this.__explicitlySet__.add("virtualMachineName"); + return this; + } + /** + * Indicates if virtual machine configuration has been changed and requires restart of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNextRunConfigurationExists") + private Boolean isNextRunConfigurationExists; + + /** + * Indicates if virtual machine configuration has been changed and requires restart of the virtual machine. + * @param isNextRunConfigurationExists the value to set + * @return this builder + **/ + public Builder isNextRunConfigurationExists(Boolean isNextRunConfigurationExists) { + this.isNextRunConfigurationExists = isNextRunConfigurationExists; + this.__explicitlySet__.add("isNextRunConfigurationExists"); + return this; + } + /** + * How the NUMA topology is applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numaTuneMode") + private NumaTuneMode numaTuneMode; + + /** + * How the NUMA topology is applied. + * @param numaTuneMode the value to set + * @return this builder + **/ + public Builder numaTuneMode(NumaTuneMode numaTuneMode) { + this.numaTuneMode = numaTuneMode; + this.__explicitlySet__.add("numaTuneMode"); + return this; + } + /** + * The origin of this virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("origin") + private String origin; + + /** + * The origin of this virtual machine. + * @param origin the value to set + * @return this builder + **/ + public Builder origin(String origin) { + this.origin = origin; + this.__explicitlySet__.add("origin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("os") + private OlvmOperatingSystem os; + + public Builder os(OlvmOperatingSystem os) { + this.os = os; + this.__explicitlySet__.add("os"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("placementPolicy") + private OlvmVmPlacementPolicy placementPolicy; + + public Builder placementPolicy(OlvmVmPlacementPolicy placementPolicy) { + this.placementPolicy = placementPolicy; + this.__explicitlySet__.add("placementPolicy"); + return this; + } + /** + * If true, the virtual machine has been started using the run once command, meaning it\u2019s configuration might differ from the stored one for the purpose of this single run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRunOnce") + private Boolean isRunOnce; + + /** + * If true, the virtual machine has been started using the run once command, meaning it\u2019s configuration might differ from the stored one for the purpose of this single run. + * @param isRunOnce the value to set + * @return this builder + **/ + public Builder isRunOnce(Boolean isRunOnce) { + this.isRunOnce = isRunOnce; + this.__explicitlySet__.add("isRunOnce"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private OlvmSerialNumber serialNumber; + + public Builder serialNumber(OlvmSerialNumber serialNumber) { + this.serialNumber = serialNumber; + this.__explicitlySet__.add("serialNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("smallIcon") + private OlvmIcon smallIcon; + + public Builder smallIcon(OlvmIcon smallIcon) { + this.smallIcon = smallIcon; + this.__explicitlySet__.add("smallIcon"); + return this; + } + /** + * If true, the sound card is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSoundcardEnabled") + private Boolean isSoundcardEnabled; + + /** + * If true, the sound card is added to the virtual machine. + * @param isSoundcardEnabled the value to set + * @return this builder + **/ + public Builder isSoundcardEnabled(Boolean isSoundcardEnabled) { + this.isSoundcardEnabled = isSoundcardEnabled; + this.__explicitlySet__.add("isSoundcardEnabled"); + return this; + } + /** + * If true, the virtual machine will be initially in 'paused' state after start. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStartPaused") + private Boolean isStartPaused; + + /** + * If true, the virtual machine will be initially in 'paused' state after start. + * @param isStartPaused the value to set + * @return this builder + **/ + public Builder isStartPaused(Boolean isStartPaused) { + this.isStartPaused = isStartPaused; + this.__explicitlySet__.add("isStartPaused"); + return this; + } + /** + * The date in which the virtual machine was started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStart") + private java.util.Date timeStart; + + /** + * The date in which the virtual machine was started. + * @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; + } + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStateless") + private Boolean isStateless; + + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + * @param isStateless the value to set + * @return this builder + **/ + public Builder isStateless(Boolean isStateless) { + this.isStateless = isStateless; + this.__explicitlySet__.add("isStateless"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OlvmVmStatus status; + + public Builder status(OlvmVmStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * Human readable detail of current status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetail") + private String statusDetail; + + /** + * Human readable detail of current status. + * @param statusDetail the value to set + * @return this builder + **/ + public Builder statusDetail(String statusDetail) { + this.statusDetail = statusDetail; + this.__explicitlySet__.add("statusDetail"); + return this; + } + /** + * The reason the virtual machine was stopped. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("stopReason") + private String stopReason; + + /** + * The reason the virtual machine was stopped. + * @param stopReason the value to set + * @return this builder + **/ + public Builder stopReason(String stopReason) { + this.stopReason = stopReason; + this.__explicitlySet__.add("stopReason"); + return this; + } + /** + * The date in which the virtual machine was stopped. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStop") + private java.util.Date timeStop; + + /** + * The date in which the virtual machine was stopped. + * @param timeStop the value to set + * @return this builder + **/ + public Builder timeStop(java.util.Date timeStop) { + this.timeStop = timeStop; + this.__explicitlySet__.add("timeStop"); + return this; + } + /** + * Determines how the virtual machine will be resumed after storage error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageErrorResumeBehavior") + private StorageErrorResumeBehavior storageErrorResumeBehavior; + + /** + * Determines how the virtual machine will be resumed after storage error. + * @param storageErrorResumeBehavior the value to set + * @return this builder + **/ + public Builder storageErrorResumeBehavior( + StorageErrorResumeBehavior storageErrorResumeBehavior) { + this.storageErrorResumeBehavior = storageErrorResumeBehavior; + this.__explicitlySet__.add("storageErrorResumeBehavior"); + return this; + } + /** + * Name of time zone. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private String timezone; + + /** + * Name of time zone. + * @param timezone the value to set + * @return this builder + **/ + public Builder timezone(String timezone) { + this.timezone = timezone; + this.__explicitlySet__.add("timezone"); + return this; + } + /** + * If true, a TPM device is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTpmEnabled") + private Boolean isTpmEnabled; + + /** + * If true, a TPM device is added to the virtual machine. + * @param isTpmEnabled the value to set + * @return this builder + **/ + public Builder isTpmEnabled(Boolean isTpmEnabled) { + this.isTpmEnabled = isTpmEnabled; + this.__explicitlySet__.add("isTpmEnabled"); + return this; + } + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTunnelMigration") + private Boolean isTunnelMigration; + + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + * @param isTunnelMigration the value to set + * @return this builder + **/ + public Builder isTunnelMigration(Boolean isTunnelMigration) { + this.isTunnelMigration = isTunnelMigration; + this.__explicitlySet__.add("isTunnelMigration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private OlvmVmType type; + + public Builder type(OlvmVmType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usb") + private OlvmUsb usb; + + public Builder usb(OlvmUsb usb) { + this.usb = usb; + this.__explicitlySet__.add("usb"); + return this; + } + /** + * If true, the virtual machine is reconfigured to the latest version of it\u2019s template when it is started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUseLatestTemplateVersion") + private Boolean isUseLatestTemplateVersion; + + /** + * If true, the virtual machine is reconfigured to the latest version of it\u2019s template when it is started. + * @param isUseLatestTemplateVersion the value to set + * @return this builder + **/ + public Builder isUseLatestTemplateVersion(Boolean isUseLatestTemplateVersion) { + this.isUseLatestTemplateVersion = isUseLatestTemplateVersion; + this.__explicitlySet__.add("isUseLatestTemplateVersion"); + return this; + } + /** + * Indicates if Virtio SCSI Support is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiEnabled") + private Boolean isVirtioScsiEnabled; + + /** + * Indicates if Virtio SCSI Support is enabled. + * @param isVirtioScsiEnabled the value to set + * @return this builder + **/ + public Builder isVirtioScsiEnabled(Boolean isVirtioScsiEnabled) { + this.isVirtioScsiEnabled = isVirtioScsiEnabled; + this.__explicitlySet__.add("isVirtioScsiEnabled"); + return this; + } + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + **/ + @com.fasterxml.jackson.annotation.JsonProperty("virtioScsiMultiQueues") + private Integer virtioScsiMultiQueues; + + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + * @param virtioScsiMultiQueues the value to set + * @return this builder + **/ + public Builder virtioScsiMultiQueues(Integer virtioScsiMultiQueues) { + this.virtioScsiMultiQueues = virtioScsiMultiQueues; + this.__explicitlySet__.add("virtioScsiMultiQueues"); + return this; + } + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiMultiQueuesEnabled") + private Boolean isVirtioScsiMultiQueuesEnabled; + + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + * @param isVirtioScsiMultiQueuesEnabled the value to set + * @return this builder + **/ + public Builder isVirtioScsiMultiQueuesEnabled(Boolean isVirtioScsiMultiQueuesEnabled) { + this.isVirtioScsiMultiQueuesEnabled = isVirtioScsiMultiQueuesEnabled; + this.__explicitlySet__.add("isVirtioScsiMultiQueuesEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVirtualMachine build() { + OlvmVirtualMachine model = + new OlvmVirtualMachine( + this.autoPinningPolicy, + this.bios, + this.comment, + this.console, + this.cpu, + this.cpuPinningPolicy, + this.cpuShares, + this.timeCreated, + this.customCompatibilityVersion, + this.customCpuModel, + this.customEmulatedMachine, + this.customProperties, + this.isDeleteProtected, + this.description, + this.display, + this.domain, + this.fqdn, + this.guestOperatingSystem, + this.guestTimeZone, + this.isContainIllegalImages, + this.highAvailability, + this.initialization, + this.ioThreads, + this.largeIcon, + this.storageDomainLease, + this.memoryInBytes, + this.memoryPolicy, + this.migrationPolicy, + this.migrationDowntimeInMs, + this.isMultiQueuesEnabled, + this.virtualMachineName, + this.isNextRunConfigurationExists, + this.numaTuneMode, + this.origin, + this.os, + this.placementPolicy, + this.isRunOnce, + this.serialNumber, + this.smallIcon, + this.isSoundcardEnabled, + this.isStartPaused, + this.timeStart, + this.isStateless, + this.status, + this.statusDetail, + this.stopReason, + this.timeStop, + this.storageErrorResumeBehavior, + this.timezone, + this.isTpmEnabled, + this.isTunnelMigration, + this.type, + this.usb, + this.isUseLatestTemplateVersion, + this.isVirtioScsiEnabled, + this.virtioScsiMultiQueues, + this.isVirtioScsiMultiQueuesEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVirtualMachine model) { + if (model.wasPropertyExplicitlySet("autoPinningPolicy")) { + this.autoPinningPolicy(model.getAutoPinningPolicy()); + } + if (model.wasPropertyExplicitlySet("bios")) { + this.bios(model.getBios()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("console")) { + this.console(model.getConsole()); + } + if (model.wasPropertyExplicitlySet("cpu")) { + this.cpu(model.getCpu()); + } + if (model.wasPropertyExplicitlySet("cpuPinningPolicy")) { + this.cpuPinningPolicy(model.getCpuPinningPolicy()); + } + if (model.wasPropertyExplicitlySet("cpuShares")) { + this.cpuShares(model.getCpuShares()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("customCompatibilityVersion")) { + this.customCompatibilityVersion(model.getCustomCompatibilityVersion()); + } + if (model.wasPropertyExplicitlySet("customCpuModel")) { + this.customCpuModel(model.getCustomCpuModel()); + } + if (model.wasPropertyExplicitlySet("customEmulatedMachine")) { + this.customEmulatedMachine(model.getCustomEmulatedMachine()); + } + if (model.wasPropertyExplicitlySet("customProperties")) { + this.customProperties(model.getCustomProperties()); + } + if (model.wasPropertyExplicitlySet("isDeleteProtected")) { + this.isDeleteProtected(model.getIsDeleteProtected()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("display")) { + this.display(model.getDisplay()); + } + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } + if (model.wasPropertyExplicitlySet("fqdn")) { + this.fqdn(model.getFqdn()); + } + if (model.wasPropertyExplicitlySet("guestOperatingSystem")) { + this.guestOperatingSystem(model.getGuestOperatingSystem()); + } + if (model.wasPropertyExplicitlySet("guestTimeZone")) { + this.guestTimeZone(model.getGuestTimeZone()); + } + if (model.wasPropertyExplicitlySet("isContainIllegalImages")) { + this.isContainIllegalImages(model.getIsContainIllegalImages()); + } + if (model.wasPropertyExplicitlySet("highAvailability")) { + this.highAvailability(model.getHighAvailability()); + } + if (model.wasPropertyExplicitlySet("initialization")) { + this.initialization(model.getInitialization()); + } + if (model.wasPropertyExplicitlySet("ioThreads")) { + this.ioThreads(model.getIoThreads()); + } + if (model.wasPropertyExplicitlySet("largeIcon")) { + this.largeIcon(model.getLargeIcon()); + } + if (model.wasPropertyExplicitlySet("storageDomainLease")) { + this.storageDomainLease(model.getStorageDomainLease()); + } + if (model.wasPropertyExplicitlySet("memoryInBytes")) { + this.memoryInBytes(model.getMemoryInBytes()); + } + if (model.wasPropertyExplicitlySet("memoryPolicy")) { + this.memoryPolicy(model.getMemoryPolicy()); + } + if (model.wasPropertyExplicitlySet("migrationPolicy")) { + this.migrationPolicy(model.getMigrationPolicy()); + } + if (model.wasPropertyExplicitlySet("migrationDowntimeInMs")) { + this.migrationDowntimeInMs(model.getMigrationDowntimeInMs()); + } + if (model.wasPropertyExplicitlySet("isMultiQueuesEnabled")) { + this.isMultiQueuesEnabled(model.getIsMultiQueuesEnabled()); + } + if (model.wasPropertyExplicitlySet("virtualMachineName")) { + this.virtualMachineName(model.getVirtualMachineName()); + } + if (model.wasPropertyExplicitlySet("isNextRunConfigurationExists")) { + this.isNextRunConfigurationExists(model.getIsNextRunConfigurationExists()); + } + if (model.wasPropertyExplicitlySet("numaTuneMode")) { + this.numaTuneMode(model.getNumaTuneMode()); + } + if (model.wasPropertyExplicitlySet("origin")) { + this.origin(model.getOrigin()); + } + if (model.wasPropertyExplicitlySet("os")) { + this.os(model.getOs()); + } + if (model.wasPropertyExplicitlySet("placementPolicy")) { + this.placementPolicy(model.getPlacementPolicy()); + } + if (model.wasPropertyExplicitlySet("isRunOnce")) { + this.isRunOnce(model.getIsRunOnce()); + } + if (model.wasPropertyExplicitlySet("serialNumber")) { + this.serialNumber(model.getSerialNumber()); + } + if (model.wasPropertyExplicitlySet("smallIcon")) { + this.smallIcon(model.getSmallIcon()); + } + if (model.wasPropertyExplicitlySet("isSoundcardEnabled")) { + this.isSoundcardEnabled(model.getIsSoundcardEnabled()); + } + if (model.wasPropertyExplicitlySet("isStartPaused")) { + this.isStartPaused(model.getIsStartPaused()); + } + if (model.wasPropertyExplicitlySet("timeStart")) { + this.timeStart(model.getTimeStart()); + } + if (model.wasPropertyExplicitlySet("isStateless")) { + this.isStateless(model.getIsStateless()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusDetail")) { + this.statusDetail(model.getStatusDetail()); + } + if (model.wasPropertyExplicitlySet("stopReason")) { + this.stopReason(model.getStopReason()); + } + if (model.wasPropertyExplicitlySet("timeStop")) { + this.timeStop(model.getTimeStop()); + } + if (model.wasPropertyExplicitlySet("storageErrorResumeBehavior")) { + this.storageErrorResumeBehavior(model.getStorageErrorResumeBehavior()); + } + if (model.wasPropertyExplicitlySet("timezone")) { + this.timezone(model.getTimezone()); + } + if (model.wasPropertyExplicitlySet("isTpmEnabled")) { + this.isTpmEnabled(model.getIsTpmEnabled()); + } + if (model.wasPropertyExplicitlySet("isTunnelMigration")) { + this.isTunnelMigration(model.getIsTunnelMigration()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("usb")) { + this.usb(model.getUsb()); + } + if (model.wasPropertyExplicitlySet("isUseLatestTemplateVersion")) { + this.isUseLatestTemplateVersion(model.getIsUseLatestTemplateVersion()); + } + if (model.wasPropertyExplicitlySet("isVirtioScsiEnabled")) { + this.isVirtioScsiEnabled(model.getIsVirtioScsiEnabled()); + } + if (model.wasPropertyExplicitlySet("virtioScsiMultiQueues")) { + this.virtioScsiMultiQueues(model.getVirtioScsiMultiQueues()); + } + if (model.wasPropertyExplicitlySet("isVirtioScsiMultiQueuesEnabled")) { + this.isVirtioScsiMultiQueuesEnabled(model.getIsVirtioScsiMultiQueuesEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + **/ + public enum AutoPinningPolicy { + Adjust("ADJUST"), + Disabled("DISABLED"), + Existing("EXISTING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoPinningPolicy v : AutoPinningPolicy.values()) { + map.put(v.getValue(), v); + } + } + + AutoPinningPolicy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoPinningPolicy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AutoPinningPolicy: " + key); + } + }; + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoPinningPolicy") + private final AutoPinningPolicy autoPinningPolicy; + + /** + * Specifies if and how the auto CPU and NUMA configuration is applied. + * @return the value + **/ + public AutoPinningPolicy getAutoPinningPolicy() { + return autoPinningPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bios") + private final OlvmBios bios; + + public OlvmBios getBios() { + return bios; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + @com.fasterxml.jackson.annotation.JsonProperty("console") + private final OlvmConsole console; + + public OlvmConsole getConsole() { + return console; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpu") + private final OlvmCpu cpu; + + public OlvmCpu getCpu() { + return cpu; + } + + /** + * Type representing the CPU and NUMA pinning policy. + **/ + public enum CpuPinningPolicy { + Dedicated("DEDICATED"), + IsolatedThreads("ISOLATED_THREADS"), + Manual("MANUAL"), + None("NONE"), + ResizeAndPinNuma("RESIZE_AND_PIN_NUMA"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CpuPinningPolicy v : CpuPinningPolicy.values()) { + map.put(v.getValue(), v); + } + } + + CpuPinningPolicy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CpuPinningPolicy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CpuPinningPolicy: " + key); + } + }; + /** + * Type representing the CPU and NUMA pinning policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuPinningPolicy") + private final CpuPinningPolicy cpuPinningPolicy; + + /** + * Type representing the CPU and NUMA pinning policy. + * @return the value + **/ + public CpuPinningPolicy getCpuPinningPolicy() { + return cpuPinningPolicy; + } + + /** + * Number of CPU Shares + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuShares") + private final Integer cpuShares; + + /** + * Number of CPU Shares + * @return the value + **/ + public Integer getCpuShares() { + return cpuShares; + } + + /** + * Creation time. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Creation time. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customCompatibilityVersion") + private final OlvmVersion customCompatibilityVersion; + + public OlvmVersion getCustomCompatibilityVersion() { + return customCompatibilityVersion; + } + + /** + * Custom CPU model + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customCpuModel") + private final String customCpuModel; + + /** + * Custom CPU model + * @return the value + **/ + public String getCustomCpuModel() { + return customCpuModel; + } + + /** + * Custom Emulated machine + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customEmulatedMachine") + private final String customEmulatedMachine; + + /** + * Custom Emulated machine + * @return the value + **/ + public String getCustomEmulatedMachine() { + return customEmulatedMachine; + } + + /** + * Custom properties applied to the vNIC profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private final java.util.List customProperties; + + /** + * Custom properties applied to the vNIC profile. + * @return the value + **/ + public java.util.List getCustomProperties() { + return customProperties; + } + + /** + * If true, the virtual machine cannot be deleted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDeleteProtected") + private final Boolean isDeleteProtected; + + /** + * If true, the virtual machine cannot be deleted. + * @return the value + **/ + public Boolean getIsDeleteProtected() { + return isDeleteProtected; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("display") + private final OlvmDisplay display; + + public OlvmDisplay getDisplay() { + return display; + } + + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final OlvmDomain domain; + + public OlvmDomain getDomain() { + return domain; + } + + /** + * Fully qualified domain name of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fqdn") + private final String fqdn; + + /** + * Fully qualified domain name of the virtual machine. + * @return the value + **/ + public String getFqdn() { + return fqdn; + } + + @com.fasterxml.jackson.annotation.JsonProperty("guestOperatingSystem") + private final OlvmGuestOperatingSystem guestOperatingSystem; + + public OlvmGuestOperatingSystem getGuestOperatingSystem() { + return guestOperatingSystem; + } + + /** + * What time zone is used by the virtual machine (as returned by guest agent). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guestTimeZone") + private final String guestTimeZone; + + /** + * What time zone is used by the virtual machine (as returned by guest agent). + * @return the value + **/ + public String getGuestTimeZone() { + return guestTimeZone; + } + + /** + * Indicates whether the virtual machine has snapshots with disks in ILLEGAL state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isContainIllegalImages") + private final Boolean isContainIllegalImages; + + /** + * Indicates whether the virtual machine has snapshots with disks in ILLEGAL state. + * @return the value + **/ + public Boolean getIsContainIllegalImages() { + return isContainIllegalImages; + } + + @com.fasterxml.jackson.annotation.JsonProperty("highAvailability") + private final OlvmHighAvailability highAvailability; + + public OlvmHighAvailability getHighAvailability() { + return highAvailability; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialization") + private final OlvmInitialization initialization; + + public OlvmInitialization getInitialization() { + return initialization; + } + + /** + * For performance tuning of IO threading. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ioThreads") + private final Integer ioThreads; + + /** + * For performance tuning of IO threading. + * @return the value + **/ + public Integer getIoThreads() { + return ioThreads; + } + + @com.fasterxml.jackson.annotation.JsonProperty("largeIcon") + private final OlvmIcon largeIcon; + + public OlvmIcon getLargeIcon() { + return largeIcon; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storageDomainLease") + private final OlvmStorageDomainProperties storageDomainLease; + + public OlvmStorageDomainProperties getStorageDomainLease() { + return storageDomainLease; + } + + /** + * The virtual machine\u2019s memory, in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInBytes") + private final Long memoryInBytes; + + /** + * The virtual machine\u2019s memory, in bytes. + * @return the value + **/ + public Long getMemoryInBytes() { + return memoryInBytes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("memoryPolicy") + private final OlvmMemoryPolicy memoryPolicy; + + public OlvmMemoryPolicy getMemoryPolicy() { + return memoryPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationPolicy") + private final OlvmMigrationOptions migrationPolicy; + + public OlvmMigrationOptions getMigrationPolicy() { + return migrationPolicy; + } + + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationDowntimeInMs") + private final Integer migrationDowntimeInMs; + + /** + * Maximum time the virtual machine can be non responsive during its live migration to another host in ms. + * @return the value + **/ + public Integer getMigrationDowntimeInMs() { + return migrationDowntimeInMs; + } + + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMultiQueuesEnabled") + private final Boolean isMultiQueuesEnabled; + + /** + * If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus. + * @return the value + **/ + public Boolean getIsMultiQueuesEnabled() { + return isMultiQueuesEnabled; + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("virtualMachineName") + private final String virtualMachineName; + + /** + * Name of the property. + * @return the value + **/ + public String getVirtualMachineName() { + return virtualMachineName; + } + + /** + * Indicates if virtual machine configuration has been changed and requires restart of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNextRunConfigurationExists") + private final Boolean isNextRunConfigurationExists; + + /** + * Indicates if virtual machine configuration has been changed and requires restart of the virtual machine. + * @return the value + **/ + public Boolean getIsNextRunConfigurationExists() { + return isNextRunConfigurationExists; + } + + /** + * How the NUMA topology is applied. + **/ + public enum NumaTuneMode { + Interleave("INTERLEAVE"), + Preferred("PREFERRED"), + Strict("STRICT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NumaTuneMode v : NumaTuneMode.values()) { + map.put(v.getValue(), v); + } + } + + NumaTuneMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NumaTuneMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid NumaTuneMode: " + key); + } + }; + /** + * How the NUMA topology is applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numaTuneMode") + private final NumaTuneMode numaTuneMode; + + /** + * How the NUMA topology is applied. + * @return the value + **/ + public NumaTuneMode getNumaTuneMode() { + return numaTuneMode; + } + + /** + * The origin of this virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("origin") + private final String origin; + + /** + * The origin of this virtual machine. + * @return the value + **/ + public String getOrigin() { + return origin; + } + + @com.fasterxml.jackson.annotation.JsonProperty("os") + private final OlvmOperatingSystem os; + + public OlvmOperatingSystem getOs() { + return os; + } + + @com.fasterxml.jackson.annotation.JsonProperty("placementPolicy") + private final OlvmVmPlacementPolicy placementPolicy; + + public OlvmVmPlacementPolicy getPlacementPolicy() { + return placementPolicy; + } + + /** + * If true, the virtual machine has been started using the run once command, meaning it\u2019s configuration might differ from the stored one for the purpose of this single run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRunOnce") + private final Boolean isRunOnce; + + /** + * If true, the virtual machine has been started using the run once command, meaning it\u2019s configuration might differ from the stored one for the purpose of this single run. + * @return the value + **/ + public Boolean getIsRunOnce() { + return isRunOnce; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private final OlvmSerialNumber serialNumber; + + public OlvmSerialNumber getSerialNumber() { + return serialNumber; + } + + @com.fasterxml.jackson.annotation.JsonProperty("smallIcon") + private final OlvmIcon smallIcon; + + public OlvmIcon getSmallIcon() { + return smallIcon; + } + + /** + * If true, the sound card is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSoundcardEnabled") + private final Boolean isSoundcardEnabled; + + /** + * If true, the sound card is added to the virtual machine. + * @return the value + **/ + public Boolean getIsSoundcardEnabled() { + return isSoundcardEnabled; + } + + /** + * If true, the virtual machine will be initially in 'paused' state after start. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStartPaused") + private final Boolean isStartPaused; + + /** + * If true, the virtual machine will be initially in 'paused' state after start. + * @return the value + **/ + public Boolean getIsStartPaused() { + return isStartPaused; + } + + /** + * The date in which the virtual machine was started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStart") + private final java.util.Date timeStart; + + /** + * The date in which the virtual machine was started. + * @return the value + **/ + public java.util.Date getTimeStart() { + return timeStart; + } + + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isStateless") + private final Boolean isStateless; + + /** + * If true, the virtual machine is stateless - it\u2019s state (disks) are rolled-back after shutdown. + * @return the value + **/ + public Boolean getIsStateless() { + return isStateless; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OlvmVmStatus status; + + public OlvmVmStatus getStatus() { + return status; + } + + /** + * Human readable detail of current status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetail") + private final String statusDetail; + + /** + * Human readable detail of current status. + * @return the value + **/ + public String getStatusDetail() { + return statusDetail; + } + + /** + * The reason the virtual machine was stopped. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("stopReason") + private final String stopReason; + + /** + * The reason the virtual machine was stopped. + * @return the value + **/ + public String getStopReason() { + return stopReason; + } + + /** + * The date in which the virtual machine was stopped. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStop") + private final java.util.Date timeStop; + + /** + * The date in which the virtual machine was stopped. + * @return the value + **/ + public java.util.Date getTimeStop() { + return timeStop; + } + + /** + * Determines how the virtual machine will be resumed after storage error. + **/ + public enum StorageErrorResumeBehavior { + AutoResume("AUTO_RESUME"), + Kill("KILL"), + LeavePaused("LEAVE_PAUSED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageErrorResumeBehavior v : StorageErrorResumeBehavior.values()) { + map.put(v.getValue(), v); + } + } + + StorageErrorResumeBehavior(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageErrorResumeBehavior create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageErrorResumeBehavior: " + key); + } + }; + /** + * Determines how the virtual machine will be resumed after storage error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageErrorResumeBehavior") + private final StorageErrorResumeBehavior storageErrorResumeBehavior; + + /** + * Determines how the virtual machine will be resumed after storage error. + * @return the value + **/ + public StorageErrorResumeBehavior getStorageErrorResumeBehavior() { + return storageErrorResumeBehavior; + } + + /** + * Name of time zone. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private final String timezone; + + /** + * Name of time zone. + * @return the value + **/ + public String getTimezone() { + return timezone; + } + + /** + * If true, a TPM device is added to the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTpmEnabled") + private final Boolean isTpmEnabled; + + /** + * If true, a TPM device is added to the virtual machine. + * @return the value + **/ + public Boolean getIsTpmEnabled() { + return isTpmEnabled; + } + + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTunnelMigration") + private final Boolean isTunnelMigration; + + /** + * If true, the network data transfer will be encrypted during virtual machine live migration. + * @return the value + **/ + public Boolean getIsTunnelMigration() { + return isTunnelMigration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final OlvmVmType type; + + public OlvmVmType getType() { + return type; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usb") + private final OlvmUsb usb; + + public OlvmUsb getUsb() { + return usb; + } + + /** + * If true, the virtual machine is reconfigured to the latest version of it\u2019s template when it is started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUseLatestTemplateVersion") + private final Boolean isUseLatestTemplateVersion; + + /** + * If true, the virtual machine is reconfigured to the latest version of it\u2019s template when it is started. + * @return the value + **/ + public Boolean getIsUseLatestTemplateVersion() { + return isUseLatestTemplateVersion; + } + + /** + * Indicates if Virtio SCSI Support is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiEnabled") + private final Boolean isVirtioScsiEnabled; + + /** + * Indicates if Virtio SCSI Support is enabled. + * @return the value + **/ + public Boolean getIsVirtioScsiEnabled() { + return isVirtioScsiEnabled; + } + + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + **/ + @com.fasterxml.jackson.annotation.JsonProperty("virtioScsiMultiQueues") + private final Integer virtioScsiMultiQueues; + + /** + * Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info + * @return the value + **/ + public Integer getVirtioScsiMultiQueues() { + return virtioScsiMultiQueues; + } + + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtioScsiMultiQueuesEnabled") + private final Boolean isVirtioScsiMultiQueuesEnabled; + + /** + * If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues + * @return the value + **/ + public Boolean getIsVirtioScsiMultiQueuesEnabled() { + return isVirtioScsiMultiQueuesEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVirtualMachine("); + sb.append("super=").append(super.toString()); + sb.append("autoPinningPolicy=").append(String.valueOf(this.autoPinningPolicy)); + sb.append(", bios=").append(String.valueOf(this.bios)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", console=").append(String.valueOf(this.console)); + sb.append(", cpu=").append(String.valueOf(this.cpu)); + sb.append(", cpuPinningPolicy=").append(String.valueOf(this.cpuPinningPolicy)); + sb.append(", cpuShares=").append(String.valueOf(this.cpuShares)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", customCompatibilityVersion=") + .append(String.valueOf(this.customCompatibilityVersion)); + sb.append(", customCpuModel=").append(String.valueOf(this.customCpuModel)); + sb.append(", customEmulatedMachine=").append(String.valueOf(this.customEmulatedMachine)); + sb.append(", customProperties=").append(String.valueOf(this.customProperties)); + sb.append(", isDeleteProtected=").append(String.valueOf(this.isDeleteProtected)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", display=").append(String.valueOf(this.display)); + sb.append(", domain=").append(String.valueOf(this.domain)); + sb.append(", fqdn=").append(String.valueOf(this.fqdn)); + sb.append(", guestOperatingSystem=").append(String.valueOf(this.guestOperatingSystem)); + sb.append(", guestTimeZone=").append(String.valueOf(this.guestTimeZone)); + sb.append(", isContainIllegalImages=").append(String.valueOf(this.isContainIllegalImages)); + sb.append(", highAvailability=").append(String.valueOf(this.highAvailability)); + sb.append(", initialization=").append(String.valueOf(this.initialization)); + sb.append(", ioThreads=").append(String.valueOf(this.ioThreads)); + sb.append(", largeIcon=").append(String.valueOf(this.largeIcon)); + sb.append(", storageDomainLease=").append(String.valueOf(this.storageDomainLease)); + sb.append(", memoryInBytes=").append(String.valueOf(this.memoryInBytes)); + sb.append(", memoryPolicy=").append(String.valueOf(this.memoryPolicy)); + sb.append(", migrationPolicy=").append(String.valueOf(this.migrationPolicy)); + sb.append(", migrationDowntimeInMs=").append(String.valueOf(this.migrationDowntimeInMs)); + sb.append(", isMultiQueuesEnabled=").append(String.valueOf(this.isMultiQueuesEnabled)); + sb.append(", virtualMachineName=").append(String.valueOf(this.virtualMachineName)); + sb.append(", isNextRunConfigurationExists=") + .append(String.valueOf(this.isNextRunConfigurationExists)); + sb.append(", numaTuneMode=").append(String.valueOf(this.numaTuneMode)); + sb.append(", origin=").append(String.valueOf(this.origin)); + sb.append(", os=").append(String.valueOf(this.os)); + sb.append(", placementPolicy=").append(String.valueOf(this.placementPolicy)); + sb.append(", isRunOnce=").append(String.valueOf(this.isRunOnce)); + sb.append(", serialNumber=").append(String.valueOf(this.serialNumber)); + sb.append(", smallIcon=").append(String.valueOf(this.smallIcon)); + sb.append(", isSoundcardEnabled=").append(String.valueOf(this.isSoundcardEnabled)); + sb.append(", isStartPaused=").append(String.valueOf(this.isStartPaused)); + sb.append(", timeStart=").append(String.valueOf(this.timeStart)); + sb.append(", isStateless=").append(String.valueOf(this.isStateless)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", statusDetail=").append(String.valueOf(this.statusDetail)); + sb.append(", stopReason=").append(String.valueOf(this.stopReason)); + sb.append(", timeStop=").append(String.valueOf(this.timeStop)); + sb.append(", storageErrorResumeBehavior=") + .append(String.valueOf(this.storageErrorResumeBehavior)); + sb.append(", timezone=").append(String.valueOf(this.timezone)); + sb.append(", isTpmEnabled=").append(String.valueOf(this.isTpmEnabled)); + sb.append(", isTunnelMigration=").append(String.valueOf(this.isTunnelMigration)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", usb=").append(String.valueOf(this.usb)); + sb.append(", isUseLatestTemplateVersion=") + .append(String.valueOf(this.isUseLatestTemplateVersion)); + sb.append(", isVirtioScsiEnabled=").append(String.valueOf(this.isVirtioScsiEnabled)); + sb.append(", virtioScsiMultiQueues=").append(String.valueOf(this.virtioScsiMultiQueues)); + sb.append(", isVirtioScsiMultiQueuesEnabled=") + .append(String.valueOf(this.isVirtioScsiMultiQueuesEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVirtualMachine)) { + return false; + } + + OlvmVirtualMachine other = (OlvmVirtualMachine) o; + return java.util.Objects.equals(this.autoPinningPolicy, other.autoPinningPolicy) + && java.util.Objects.equals(this.bios, other.bios) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.console, other.console) + && java.util.Objects.equals(this.cpu, other.cpu) + && java.util.Objects.equals(this.cpuPinningPolicy, other.cpuPinningPolicy) + && java.util.Objects.equals(this.cpuShares, other.cpuShares) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals( + this.customCompatibilityVersion, other.customCompatibilityVersion) + && java.util.Objects.equals(this.customCpuModel, other.customCpuModel) + && java.util.Objects.equals(this.customEmulatedMachine, other.customEmulatedMachine) + && java.util.Objects.equals(this.customProperties, other.customProperties) + && java.util.Objects.equals(this.isDeleteProtected, other.isDeleteProtected) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.display, other.display) + && java.util.Objects.equals(this.domain, other.domain) + && java.util.Objects.equals(this.fqdn, other.fqdn) + && java.util.Objects.equals(this.guestOperatingSystem, other.guestOperatingSystem) + && java.util.Objects.equals(this.guestTimeZone, other.guestTimeZone) + && java.util.Objects.equals( + this.isContainIllegalImages, other.isContainIllegalImages) + && java.util.Objects.equals(this.highAvailability, other.highAvailability) + && java.util.Objects.equals(this.initialization, other.initialization) + && java.util.Objects.equals(this.ioThreads, other.ioThreads) + && java.util.Objects.equals(this.largeIcon, other.largeIcon) + && java.util.Objects.equals(this.storageDomainLease, other.storageDomainLease) + && java.util.Objects.equals(this.memoryInBytes, other.memoryInBytes) + && java.util.Objects.equals(this.memoryPolicy, other.memoryPolicy) + && java.util.Objects.equals(this.migrationPolicy, other.migrationPolicy) + && java.util.Objects.equals(this.migrationDowntimeInMs, other.migrationDowntimeInMs) + && java.util.Objects.equals(this.isMultiQueuesEnabled, other.isMultiQueuesEnabled) + && java.util.Objects.equals(this.virtualMachineName, other.virtualMachineName) + && java.util.Objects.equals( + this.isNextRunConfigurationExists, other.isNextRunConfigurationExists) + && java.util.Objects.equals(this.numaTuneMode, other.numaTuneMode) + && java.util.Objects.equals(this.origin, other.origin) + && java.util.Objects.equals(this.os, other.os) + && java.util.Objects.equals(this.placementPolicy, other.placementPolicy) + && java.util.Objects.equals(this.isRunOnce, other.isRunOnce) + && java.util.Objects.equals(this.serialNumber, other.serialNumber) + && java.util.Objects.equals(this.smallIcon, other.smallIcon) + && java.util.Objects.equals(this.isSoundcardEnabled, other.isSoundcardEnabled) + && java.util.Objects.equals(this.isStartPaused, other.isStartPaused) + && java.util.Objects.equals(this.timeStart, other.timeStart) + && java.util.Objects.equals(this.isStateless, other.isStateless) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusDetail, other.statusDetail) + && java.util.Objects.equals(this.stopReason, other.stopReason) + && java.util.Objects.equals(this.timeStop, other.timeStop) + && java.util.Objects.equals( + this.storageErrorResumeBehavior, other.storageErrorResumeBehavior) + && java.util.Objects.equals(this.timezone, other.timezone) + && java.util.Objects.equals(this.isTpmEnabled, other.isTpmEnabled) + && java.util.Objects.equals(this.isTunnelMigration, other.isTunnelMigration) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.usb, other.usb) + && java.util.Objects.equals( + this.isUseLatestTemplateVersion, other.isUseLatestTemplateVersion) + && java.util.Objects.equals(this.isVirtioScsiEnabled, other.isVirtioScsiEnabled) + && java.util.Objects.equals(this.virtioScsiMultiQueues, other.virtioScsiMultiQueues) + && java.util.Objects.equals( + this.isVirtioScsiMultiQueuesEnabled, other.isVirtioScsiMultiQueuesEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.autoPinningPolicy == null ? 43 : this.autoPinningPolicy.hashCode()); + result = (result * PRIME) + (this.bios == null ? 43 : this.bios.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.console == null ? 43 : this.console.hashCode()); + result = (result * PRIME) + (this.cpu == null ? 43 : this.cpu.hashCode()); + result = + (result * PRIME) + + (this.cpuPinningPolicy == null ? 43 : this.cpuPinningPolicy.hashCode()); + result = (result * PRIME) + (this.cpuShares == null ? 43 : this.cpuShares.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.customCompatibilityVersion == null + ? 43 + : this.customCompatibilityVersion.hashCode()); + result = + (result * PRIME) + + (this.customCpuModel == null ? 43 : this.customCpuModel.hashCode()); + result = + (result * PRIME) + + (this.customEmulatedMachine == null + ? 43 + : this.customEmulatedMachine.hashCode()); + result = + (result * PRIME) + + (this.customProperties == null ? 43 : this.customProperties.hashCode()); + result = + (result * PRIME) + + (this.isDeleteProtected == null ? 43 : this.isDeleteProtected.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.display == null ? 43 : this.display.hashCode()); + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); + result = (result * PRIME) + (this.fqdn == null ? 43 : this.fqdn.hashCode()); + result = + (result * PRIME) + + (this.guestOperatingSystem == null + ? 43 + : this.guestOperatingSystem.hashCode()); + result = + (result * PRIME) + + (this.guestTimeZone == null ? 43 : this.guestTimeZone.hashCode()); + result = + (result * PRIME) + + (this.isContainIllegalImages == null + ? 43 + : this.isContainIllegalImages.hashCode()); + result = + (result * PRIME) + + (this.highAvailability == null ? 43 : this.highAvailability.hashCode()); + result = + (result * PRIME) + + (this.initialization == null ? 43 : this.initialization.hashCode()); + result = (result * PRIME) + (this.ioThreads == null ? 43 : this.ioThreads.hashCode()); + result = (result * PRIME) + (this.largeIcon == null ? 43 : this.largeIcon.hashCode()); + result = + (result * PRIME) + + (this.storageDomainLease == null + ? 43 + : this.storageDomainLease.hashCode()); + result = + (result * PRIME) + + (this.memoryInBytes == null ? 43 : this.memoryInBytes.hashCode()); + result = (result * PRIME) + (this.memoryPolicy == null ? 43 : this.memoryPolicy.hashCode()); + result = + (result * PRIME) + + (this.migrationPolicy == null ? 43 : this.migrationPolicy.hashCode()); + result = + (result * PRIME) + + (this.migrationDowntimeInMs == null + ? 43 + : this.migrationDowntimeInMs.hashCode()); + result = + (result * PRIME) + + (this.isMultiQueuesEnabled == null + ? 43 + : this.isMultiQueuesEnabled.hashCode()); + result = + (result * PRIME) + + (this.virtualMachineName == null + ? 43 + : this.virtualMachineName.hashCode()); + result = + (result * PRIME) + + (this.isNextRunConfigurationExists == null + ? 43 + : this.isNextRunConfigurationExists.hashCode()); + result = (result * PRIME) + (this.numaTuneMode == null ? 43 : this.numaTuneMode.hashCode()); + result = (result * PRIME) + (this.origin == null ? 43 : this.origin.hashCode()); + result = (result * PRIME) + (this.os == null ? 43 : this.os.hashCode()); + result = + (result * PRIME) + + (this.placementPolicy == null ? 43 : this.placementPolicy.hashCode()); + result = (result * PRIME) + (this.isRunOnce == null ? 43 : this.isRunOnce.hashCode()); + result = (result * PRIME) + (this.serialNumber == null ? 43 : this.serialNumber.hashCode()); + result = (result * PRIME) + (this.smallIcon == null ? 43 : this.smallIcon.hashCode()); + result = + (result * PRIME) + + (this.isSoundcardEnabled == null + ? 43 + : this.isSoundcardEnabled.hashCode()); + result = + (result * PRIME) + + (this.isStartPaused == null ? 43 : this.isStartPaused.hashCode()); + result = (result * PRIME) + (this.timeStart == null ? 43 : this.timeStart.hashCode()); + result = (result * PRIME) + (this.isStateless == null ? 43 : this.isStateless.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.statusDetail == null ? 43 : this.statusDetail.hashCode()); + result = (result * PRIME) + (this.stopReason == null ? 43 : this.stopReason.hashCode()); + result = (result * PRIME) + (this.timeStop == null ? 43 : this.timeStop.hashCode()); + result = + (result * PRIME) + + (this.storageErrorResumeBehavior == null + ? 43 + : this.storageErrorResumeBehavior.hashCode()); + result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); + result = (result * PRIME) + (this.isTpmEnabled == null ? 43 : this.isTpmEnabled.hashCode()); + result = + (result * PRIME) + + (this.isTunnelMigration == null ? 43 : this.isTunnelMigration.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.usb == null ? 43 : this.usb.hashCode()); + result = + (result * PRIME) + + (this.isUseLatestTemplateVersion == null + ? 43 + : this.isUseLatestTemplateVersion.hashCode()); + result = + (result * PRIME) + + (this.isVirtioScsiEnabled == null + ? 43 + : this.isVirtioScsiEnabled.hashCode()); + result = + (result * PRIME) + + (this.virtioScsiMultiQueues == null + ? 43 + : this.virtioScsiMultiQueues.hashCode()); + result = + (result * PRIME) + + (this.isVirtioScsiMultiQueuesEnabled == null + ? 43 + : this.isVirtioScsiMultiQueuesEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmPlacementPolicy.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmPlacementPolicy.java new file mode 100644 index 00000000000..ae52b7ba59f --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmPlacementPolicy.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The configuration of the virtual machine\u2019s placement policy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmVmPlacementPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVmPlacementPolicy + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vmAffinity", "hosts"}) + public OlvmVmPlacementPolicy(VmAffinity vmAffinity, java.util.List hosts) { + super(); + this.vmAffinity = vmAffinity; + this.hosts = hosts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Affinity of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmAffinity") + private VmAffinity vmAffinity; + + /** + * Affinity of the virtual machine. + * @param vmAffinity the value to set + * @return this builder + **/ + public Builder vmAffinity(VmAffinity vmAffinity) { + this.vmAffinity = vmAffinity; + this.__explicitlySet__.add("vmAffinity"); + return this; + } + /** + * List of hosts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hosts") + private java.util.List hosts; + + /** + * List of hosts. + * @param hosts the value to set + * @return this builder + **/ + public Builder hosts(java.util.List hosts) { + this.hosts = hosts; + this.__explicitlySet__.add("hosts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVmPlacementPolicy build() { + OlvmVmPlacementPolicy model = new OlvmVmPlacementPolicy(this.vmAffinity, this.hosts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVmPlacementPolicy model) { + if (model.wasPropertyExplicitlySet("vmAffinity")) { + this.vmAffinity(model.getVmAffinity()); + } + if (model.wasPropertyExplicitlySet("hosts")) { + this.hosts(model.getHosts()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Affinity of the virtual machine. + **/ + public enum VmAffinity { + Migratable("MIGRATABLE"), + Pinned("PINNED"), + UserMigratable("USER_MIGRATABLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmAffinity v : VmAffinity.values()) { + map.put(v.getValue(), v); + } + } + + VmAffinity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmAffinity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VmAffinity: " + key); + } + }; + /** + * Affinity of the virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmAffinity") + private final VmAffinity vmAffinity; + + /** + * Affinity of the virtual machine. + * @return the value + **/ + public VmAffinity getVmAffinity() { + return vmAffinity; + } + + /** + * List of hosts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hosts") + private final java.util.List hosts; + + /** + * List of hosts. + * @return the value + **/ + public java.util.List getHosts() { + return hosts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVmPlacementPolicy("); + sb.append("super=").append(super.toString()); + sb.append("vmAffinity=").append(String.valueOf(this.vmAffinity)); + sb.append(", hosts=").append(String.valueOf(this.hosts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVmPlacementPolicy)) { + return false; + } + + OlvmVmPlacementPolicy other = (OlvmVmPlacementPolicy) o; + return java.util.Objects.equals(this.vmAffinity, other.vmAffinity) + && java.util.Objects.equals(this.hosts, other.hosts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vmAffinity == null ? 43 : this.vmAffinity.hashCode()); + result = (result * PRIME) + (this.hosts == null ? 43 : this.hosts.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmStatus.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmStatus.java new file mode 100644 index 00000000000..51281974539 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmStatus.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The current status of the virtual machine. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmVmStatus.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVmStatus extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"status"}) + public OlvmVmStatus(Status status) { + super(); + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type representing a status of a virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Type representing a status of a virtual machine. + * @param status the value to set + * @return this builder + **/ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVmStatus build() { + OlvmVmStatus model = new OlvmVmStatus(this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVmStatus model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type representing a status of a virtual machine. + **/ + public enum Status { + Down("DOWN"), + ImageLocked("IMAGE_LOCKED"), + Migrating("MIGRATING"), + NotResponding("NOT_RESPONDING"), + Paused("PAUSED"), + PoweringDown("POWERING_DOWN"), + PoweringUp("POWERING_UP"), + RebootInProgress("REBOOT_IN_PROGRESS"), + RestoringState("RESTORING_STATE"), + SavingState("SAVING_STATE"), + Suspended("SUSPENDED"), + Unassigned("UNASSIGNED"), + Unknown("UNKNOWN"), + Up("UP"), + WaitForLaunch("WAIT_FOR_LAUNCH"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + map.put(v.getValue(), v); + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + /** + * Type representing a status of a virtual machine. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Type representing a status of a virtual machine. + * @return the value + **/ + public Status getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVmStatus("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVmStatus)) { + return false; + } + + OlvmVmStatus other = (OlvmVmStatus) o; + return java.util.Objects.equals(this.status, other.status) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmSummary.java new file mode 100644 index 00000000000..ef74335901d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmSummary.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type containing information related to virtual machines on a particular 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmVmSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVmSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"active", "migrating", "total"}) + public OlvmVmSummary(Integer active, Integer migrating, Integer total) { + super(); + this.active = active; + this.migrating = migrating; + this.total = total; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of virtual machines active on the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("active") + private Integer active; + + /** + * The number of virtual machines active on the host. + * @param active the value to set + * @return this builder + **/ + public Builder active(Integer active) { + this.active = active; + this.__explicitlySet__.add("active"); + return this; + } + /** + * The number of virtual machines migrating to or from the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrating") + private Integer migrating; + + /** + * The number of virtual machines migrating to or from the host. + * @param migrating the value to set + * @return this builder + **/ + public Builder migrating(Integer migrating) { + this.migrating = migrating; + this.__explicitlySet__.add("migrating"); + return this; + } + /** + * The number of virtual machines present on the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("total") + private Integer total; + + /** + * The number of virtual machines present on the host. + * @param total the value to set + * @return this builder + **/ + public Builder total(Integer total) { + this.total = total; + this.__explicitlySet__.add("total"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVmSummary build() { + OlvmVmSummary model = new OlvmVmSummary(this.active, this.migrating, this.total); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVmSummary model) { + if (model.wasPropertyExplicitlySet("active")) { + this.active(model.getActive()); + } + if (model.wasPropertyExplicitlySet("migrating")) { + this.migrating(model.getMigrating()); + } + if (model.wasPropertyExplicitlySet("total")) { + this.total(model.getTotal()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The number of virtual machines active on the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("active") + private final Integer active; + + /** + * The number of virtual machines active on the host. + * @return the value + **/ + public Integer getActive() { + return active; + } + + /** + * The number of virtual machines migrating to or from the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrating") + private final Integer migrating; + + /** + * The number of virtual machines migrating to or from the host. + * @return the value + **/ + public Integer getMigrating() { + return migrating; + } + + /** + * The number of virtual machines present on the host. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("total") + private final Integer total; + + /** + * The number of virtual machines present on the host. + * @return the value + **/ + public Integer getTotal() { + return total; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVmSummary("); + sb.append("super=").append(super.toString()); + sb.append("active=").append(String.valueOf(this.active)); + sb.append(", migrating=").append(String.valueOf(this.migrating)); + sb.append(", total=").append(String.valueOf(this.total)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVmSummary)) { + return false; + } + + OlvmVmSummary other = (OlvmVmSummary) o; + return java.util.Objects.equals(this.active, other.active) + && java.util.Objects.equals(this.migrating, other.migrating) + && java.util.Objects.equals(this.total, other.total) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.active == null ? 43 : this.active.hashCode()); + result = (result * PRIME) + (this.migrating == null ? 43 : this.migrating.hashCode()); + result = (result * PRIME) + (this.total == null ? 43 : this.total.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmType.java new file mode 100644 index 00000000000..7763df5fdc0 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVmType.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Determines whether the virtual machine is optimized for desktop or server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OlvmVmType.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVmType extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vmType"}) + public OlvmVmType(VmType vmType) { + super(); + this.vmType = vmType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type representing what the virtual machine is optimized for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmType") + private VmType vmType; + + /** + * Type representing what the virtual machine is optimized for. + * @param vmType the value to set + * @return this builder + **/ + public Builder vmType(VmType vmType) { + this.vmType = vmType; + this.__explicitlySet__.add("vmType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVmType build() { + OlvmVmType model = new OlvmVmType(this.vmType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVmType model) { + if (model.wasPropertyExplicitlySet("vmType")) { + this.vmType(model.getVmType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type representing what the virtual machine is optimized for. + **/ + public enum VmType { + Desktop("DESKTOP"), + HighPerformance("HIGH_PERFORMANCE"), + Server("SERVER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmType v : VmType.values()) { + map.put(v.getValue(), v); + } + } + + VmType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VmType: " + key); + } + }; + /** + * Type representing what the virtual machine is optimized for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmType") + private final VmType vmType; + + /** + * Type representing what the virtual machine is optimized for. + * @return the value + **/ + public VmType getVmType() { + return vmType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVmType("); + sb.append("super=").append(super.toString()); + sb.append("vmType=").append(String.valueOf(this.vmType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVmType)) { + return false; + } + + OlvmVmType other = (OlvmVmType) o; + return java.util.Objects.equals(this.vmType, other.vmType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vmType == null ? 43 : this.vmType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVnicProfileAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVnicProfileAssetDetails.java new file mode 100644 index 00000000000..38966c1c681 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVnicProfileAssetDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Vnic Profile type of asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmVnicProfileAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVnicProfileAssetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"olvmVnicProfile"}) + public OlvmVnicProfileAssetDetails(OlvmVnicProfileProperties olvmVnicProfile) { + super(); + this.olvmVnicProfile = olvmVnicProfile; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("olvmVnicProfile") + private OlvmVnicProfileProperties olvmVnicProfile; + + public Builder olvmVnicProfile(OlvmVnicProfileProperties olvmVnicProfile) { + this.olvmVnicProfile = olvmVnicProfile; + this.__explicitlySet__.add("olvmVnicProfile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVnicProfileAssetDetails build() { + OlvmVnicProfileAssetDetails model = + new OlvmVnicProfileAssetDetails(this.olvmVnicProfile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVnicProfileAssetDetails model) { + if (model.wasPropertyExplicitlySet("olvmVnicProfile")) { + this.olvmVnicProfile(model.getOlvmVnicProfile()); + } + 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("olvmVnicProfile") + private final OlvmVnicProfileProperties olvmVnicProfile; + + public OlvmVnicProfileProperties getOlvmVnicProfile() { + return olvmVnicProfile; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVnicProfileAssetDetails("); + sb.append("super=").append(super.toString()); + sb.append("olvmVnicProfile=").append(String.valueOf(this.olvmVnicProfile)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVnicProfileAssetDetails)) { + return false; + } + + OlvmVnicProfileAssetDetails other = (OlvmVnicProfileAssetDetails) o; + return java.util.Objects.equals(this.olvmVnicProfile, other.olvmVnicProfile) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.olvmVnicProfile == null ? 43 : this.olvmVnicProfile.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVnicProfileProperties.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVnicProfileProperties.java new file mode 100644 index 00000000000..c3b4482929f --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OlvmVnicProfileProperties.java @@ -0,0 +1,422 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM Vnic Profile properties. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OlvmVnicProfileProperties.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OlvmVnicProfileProperties + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "comment", + "customProperties", + "description", + "isMigratable", + "vnicProfileName", + "passThrough", + "isPortMirroring" + }) + public OlvmVnicProfileProperties( + String comment, + java.util.List customProperties, + String description, + Boolean isMigratable, + String vnicProfileName, + PassThrough passThrough, + Boolean isPortMirroring) { + super(); + this.comment = comment; + this.customProperties = customProperties; + this.description = description; + this.isMigratable = isMigratable; + this.vnicProfileName = vnicProfileName; + this.passThrough = passThrough; + this.isPortMirroring = isPortMirroring; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Custom properties applied to the vNIC profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private java.util.List customProperties; + + /** + * Custom properties applied to the vNIC profile. + * @param customProperties the value to set + * @return this builder + **/ + public Builder customProperties(java.util.List customProperties) { + this.customProperties = customProperties; + this.__explicitlySet__.add("customProperties"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description in plain text. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Indicates whether passThrough NIC is migratable or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMigratable") + private Boolean isMigratable; + + /** + * Indicates whether passThrough NIC is migratable or not. + * @param isMigratable the value to set + * @return this builder + **/ + public Builder isMigratable(Boolean isMigratable) { + this.isMigratable = isMigratable; + this.__explicitlySet__.add("isMigratable"); + return this; + } + /** + * A human-readable name in plain text + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vnicProfileName") + private String vnicProfileName; + + /** + * A human-readable name in plain text + * @param vnicProfileName the value to set + * @return this builder + **/ + public Builder vnicProfileName(String vnicProfileName) { + this.vnicProfileName = vnicProfileName; + this.__explicitlySet__.add("vnicProfileName"); + return this; + } + /** + * Describes whether the vNIC is to be implemented as a pass-through device or a virtual one. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("passThrough") + private PassThrough passThrough; + + /** + * Describes whether the vNIC is to be implemented as a pass-through device or a virtual one. + * @param passThrough the value to set + * @return this builder + **/ + public Builder passThrough(PassThrough passThrough) { + this.passThrough = passThrough; + this.__explicitlySet__.add("passThrough"); + return this; + } + /** + * Indicates if port mirroring is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPortMirroring") + private Boolean isPortMirroring; + + /** + * Indicates if port mirroring is enabled. + * @param isPortMirroring the value to set + * @return this builder + **/ + public Builder isPortMirroring(Boolean isPortMirroring) { + this.isPortMirroring = isPortMirroring; + this.__explicitlySet__.add("isPortMirroring"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OlvmVnicProfileProperties build() { + OlvmVnicProfileProperties model = + new OlvmVnicProfileProperties( + this.comment, + this.customProperties, + this.description, + this.isMigratable, + this.vnicProfileName, + this.passThrough, + this.isPortMirroring); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OlvmVnicProfileProperties model) { + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("customProperties")) { + this.customProperties(model.getCustomProperties()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isMigratable")) { + this.isMigratable(model.getIsMigratable()); + } + if (model.wasPropertyExplicitlySet("vnicProfileName")) { + this.vnicProfileName(model.getVnicProfileName()); + } + if (model.wasPropertyExplicitlySet("passThrough")) { + this.passThrough(model.getPassThrough()); + } + if (model.wasPropertyExplicitlySet("isPortMirroring")) { + this.isPortMirroring(model.getIsPortMirroring()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * Custom properties applied to the vNIC profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private final java.util.List customProperties; + + /** + * Custom properties applied to the vNIC profile. + * @return the value + **/ + public java.util.List getCustomProperties() { + return customProperties; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Indicates whether passThrough NIC is migratable or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMigratable") + private final Boolean isMigratable; + + /** + * Indicates whether passThrough NIC is migratable or not. + * @return the value + **/ + public Boolean getIsMigratable() { + return isMigratable; + } + + /** + * A human-readable name in plain text + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vnicProfileName") + private final String vnicProfileName; + + /** + * A human-readable name in plain text + * @return the value + **/ + public String getVnicProfileName() { + return vnicProfileName; + } + + /** + * Describes whether the vNIC is to be implemented as a pass-through device or a virtual one. + **/ + public enum PassThrough { + Disabled("DISABLED"), + Enabled("ENABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PassThrough v : PassThrough.values()) { + map.put(v.getValue(), v); + } + } + + PassThrough(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PassThrough create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PassThrough: " + key); + } + }; + /** + * Describes whether the vNIC is to be implemented as a pass-through device or a virtual one. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("passThrough") + private final PassThrough passThrough; + + /** + * Describes whether the vNIC is to be implemented as a pass-through device or a virtual one. + * @return the value + **/ + public PassThrough getPassThrough() { + return passThrough; + } + + /** + * Indicates if port mirroring is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPortMirroring") + private final Boolean isPortMirroring; + + /** + * Indicates if port mirroring is enabled. + * @return the value + **/ + public Boolean getIsPortMirroring() { + return isPortMirroring; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OlvmVnicProfileProperties("); + sb.append("super=").append(super.toString()); + sb.append("comment=").append(String.valueOf(this.comment)); + sb.append(", customProperties=").append(String.valueOf(this.customProperties)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isMigratable=").append(String.valueOf(this.isMigratable)); + sb.append(", vnicProfileName=").append(String.valueOf(this.vnicProfileName)); + sb.append(", passThrough=").append(String.valueOf(this.passThrough)); + sb.append(", isPortMirroring=").append(String.valueOf(this.isPortMirroring)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OlvmVnicProfileProperties)) { + return false; + } + + OlvmVnicProfileProperties other = (OlvmVnicProfileProperties) o; + return java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.customProperties, other.customProperties) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.isMigratable, other.isMigratable) + && java.util.Objects.equals(this.vnicProfileName, other.vnicProfileName) + && java.util.Objects.equals(this.passThrough, other.passThrough) + && java.util.Objects.equals(this.isPortMirroring, other.isPortMirroring) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = + (result * PRIME) + + (this.customProperties == null ? 43 : this.customProperties.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.isMigratable == null ? 43 : this.isMigratable.hashCode()); + result = + (result * PRIME) + + (this.vnicProfileName == null ? 43 : this.vnicProfileName.hashCode()); + result = (result * PRIME) + (this.passThrough == null ? 43 : this.passThrough.hashCode()); + result = + (result * PRIME) + + (this.isPortMirroring == null ? 43 : this.isPortMirroring.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java index 10cc62a4afe..2dfb56c520f 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java @@ -32,6 +32,7 @@ public enum OperationType { CloudAwsDiscovery("CLOUD_AWS_DISCOVERY"), CollectAwsRealtimeMetrics("COLLECT_AWS_REALTIME_METRICS"), CollectAwsHistoricalMetrics("COLLECT_AWS_HISTORICAL_METRICS"), + OlvmDiscovery("OLVM_DISCOVERY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/PluginSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/PluginSummary.java index 10a2047868c..fa7c5da7755 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/PluginSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/PluginSummary.java @@ -28,7 +28,8 @@ public final class PluginSummary extends com.oracle.bmc.http.internal.Explicitly "lifecycleState", "lifecycleDetails", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public PluginSummary( String name, @@ -39,7 +40,8 @@ public PluginSummary( Plugin.LifecycleState lifecycleState, String lifecycleDetails, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.name = name; this.agentId = agentId; @@ -50,6 +52,7 @@ public PluginSummary( this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -211,6 +214,28 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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(); @@ -226,7 +251,8 @@ public PluginSummary build() { this.lifecycleState, this.lifecycleDetails, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -262,6 +288,9 @@ public Builder copy(PluginSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -415,6 +444,26 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -438,6 +487,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(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -461,6 +511,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.systemTags, other.systemTags) && super.equals(other); } @@ -483,6 +534,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.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/RngSource.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/RngSource.java new file mode 100644 index 00000000000..df5b81e0943 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/RngSource.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Representing the random generator backend types. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +public enum RngSource { + Hwrng("HWRNG"), + Random("RANDOM"), + Urandom("URANDOM"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RngSource v : RngSource.values()) { + map.put(v.getValue(), v); + } + } + + RngSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RngSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RngSource: " + key); + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SkipIfConnectivityBroken.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SkipIfConnectivityBroken.java new file mode 100644 index 00000000000..083d8a623ee --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SkipIfConnectivityBroken.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SkipIfConnectivityBroken.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SkipIfConnectivityBroken + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled", "threshold"}) + public SkipIfConnectivityBroken(Boolean isEnabled, Integer threshold) { + super(); + this.isEnabled = isEnabled; + this.threshold = threshold; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Threshold for connectivity testing. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Integer threshold; + + /** + * Threshold for connectivity testing. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Integer threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SkipIfConnectivityBroken build() { + SkipIfConnectivityBroken model = + new SkipIfConnectivityBroken(this.isEnabled, this.threshold); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SkipIfConnectivityBroken model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Threshold for connectivity testing. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Integer threshold; + + /** + * Threshold for connectivity testing. + * @return the value + **/ + public Integer getThreshold() { + return threshold; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SkipIfConnectivityBroken("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SkipIfConnectivityBroken)) { + return false; + } + + SkipIfConnectivityBroken other = (SkipIfConnectivityBroken) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.threshold, other.threshold) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SkipIfSdActive.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SkipIfSdActive.java new file mode 100644 index 00000000000..056e6b40303 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SkipIfSdActive.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * If enabled, we will skip fencing in case the host maintains its lease in the storage. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SkipIfSdActive.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SkipIfSdActive extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled"}) + public SkipIfSdActive(Boolean isEnabled) { + super(); + this.isEnabled = isEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If enabled, we will skip fencing in case the host maintains its lease in the storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * If enabled, we will skip fencing in case the host maintains its lease in the storage. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SkipIfSdActive build() { + SkipIfSdActive model = new SkipIfSdActive(this.isEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SkipIfSdActive model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If enabled, we will skip fencing in case the host maintains its lease in the storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * If enabled, we will skip fencing in case the host maintains its lease in the storage. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SkipIfSdActive("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SkipIfSdActive)) { + return false; + } + + SkipIfSdActive other = (SkipIfSdActive) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Storage.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Storage.java new file mode 100644 index 00000000000..29ba6f9935d --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Storage.java @@ -0,0 +1,1085 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Host storage information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Storage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Storage extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public Storage( + String id, + String address, + String comment, + String storageDescription, + java.util.List driverOptions, + java.util.List driverSensitiveOptions, + java.util.List logicalUnits, + String mountOptions, + Integer nfsRetrans, + Integer nfsTimeo, + NfsVersion nfsVersion, + Boolean isOverrideLuns, + String password, + Integer paths, + Integer port, + String portal, + String target, + String username, + Type type, + String vfsType, + VolumeGroup volumeGroup) { + super(); + this.id = id; + this.address = address; + this.comment = comment; + this.storageDescription = storageDescription; + this.driverOptions = driverOptions; + this.driverSensitiveOptions = driverSensitiveOptions; + this.logicalUnits = logicalUnits; + this.mountOptions = mountOptions; + this.nfsRetrans = nfsRetrans; + this.nfsTimeo = nfsTimeo; + this.nfsVersion = nfsVersion; + this.isOverrideLuns = isOverrideLuns; + this.password = password != null ? password.toCharArray() : null; + this.paths = paths; + this.port = port; + this.portal = portal; + this.target = target; + this.username = username; + this.type = type; + this.vfsType = vfsType; + this.volumeGroup = volumeGroup; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "address", + "comment", + "storageDescription", + "driverOptions", + "driverSensitiveOptions", + "logicalUnits", + "mountOptions", + "nfsRetrans", + "nfsTimeo", + "nfsVersion", + "isOverrideLuns", + "password", + "paths", + "port", + "portal", + "target", + "username", + "type", + "vfsType", + "volumeGroup" + }) + public Storage( + String id, + String address, + String comment, + String storageDescription, + java.util.List driverOptions, + java.util.List driverSensitiveOptions, + java.util.List logicalUnits, + String mountOptions, + Integer nfsRetrans, + Integer nfsTimeo, + NfsVersion nfsVersion, + Boolean isOverrideLuns, + char[] password, + Integer paths, + Integer port, + String portal, + String target, + String username, + Type type, + String vfsType, + VolumeGroup volumeGroup) { + super(); + this.id = id; + this.address = address; + this.comment = comment; + this.storageDescription = storageDescription; + this.driverOptions = driverOptions; + this.driverSensitiveOptions = driverSensitiveOptions; + this.logicalUnits = logicalUnits; + this.mountOptions = mountOptions; + this.nfsRetrans = nfsRetrans; + this.nfsTimeo = nfsTimeo; + this.nfsVersion = nfsVersion; + this.isOverrideLuns = isOverrideLuns; + this.password = password; + this.paths = paths; + this.port = port; + this.portal = portal; + this.target = target; + this.username = username; + this.type = type; + this.vfsType = vfsType; + this.volumeGroup = volumeGroup; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Address of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private String address; + + /** + * Address of storage domain. + * @param address the value to set + * @return this builder + **/ + public Builder address(String address) { + this.address = address; + this.__explicitlySet__.add("address"); + return this; + } + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Free text containing comments about this object. + * @param comment the value to set + * @return this builder + **/ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDescription") + private String storageDescription; + + /** + * A human-readable description in plain text. + * @param storageDescription the value to set + * @return this builder + **/ + public Builder storageDescription(String storageDescription) { + this.storageDescription = storageDescription; + this.__explicitlySet__.add("storageDescription"); + return this; + } + /** + * The options to be passed when creating a storage domain using a cinder driver. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverOptions") + private java.util.List driverOptions; + + /** + * The options to be passed when creating a storage domain using a cinder driver. + * @param driverOptions the value to set + * @return this builder + **/ + public Builder driverOptions(java.util.List driverOptions) { + this.driverOptions = driverOptions; + this.__explicitlySet__.add("driverOptions"); + return this; + } + /** + * The options containing sensitive information to be passed when creating a storage domain using a cinder driver. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverSensitiveOptions") + private java.util.List driverSensitiveOptions; + + /** + * The options containing sensitive information to be passed when creating a storage domain using a cinder driver. + * @param driverSensitiveOptions the value to set + * @return this builder + **/ + public Builder driverSensitiveOptions(java.util.List driverSensitiveOptions) { + this.driverSensitiveOptions = driverSensitiveOptions; + this.__explicitlySet__.add("driverSensitiveOptions"); + return this; + } + /** + * Logical Units of the host storage + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalUnits") + private java.util.List logicalUnits; + + /** + * Logical Units of the host storage + * @param logicalUnits the value to set + * @return this builder + **/ + public Builder logicalUnits(java.util.List logicalUnits) { + this.logicalUnits = logicalUnits; + this.__explicitlySet__.add("logicalUnits"); + return this; + } + /** + * Mount options + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private String mountOptions; + + /** + * Mount options + * @param mountOptions the value to set + * @return this builder + **/ + public Builder mountOptions(String mountOptions) { + this.mountOptions = mountOptions; + this.__explicitlySet__.add("mountOptions"); + return this; + } + /** + * The number of times to retry a request before attempting further recovery actions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nfsRetrans") + private Integer nfsRetrans; + + /** + * The number of times to retry a request before attempting further recovery actions. + * @param nfsRetrans the value to set + * @return this builder + **/ + public Builder nfsRetrans(Integer nfsRetrans) { + this.nfsRetrans = nfsRetrans; + this.__explicitlySet__.add("nfsRetrans"); + return this; + } + /** + * The time in tenths of a second to wait for a response before retrying NFS requests. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nfsTimeo") + private Integer nfsTimeo; + + /** + * The time in tenths of a second to wait for a response before retrying NFS requests. + * @param nfsTimeo the value to set + * @return this builder + **/ + public Builder nfsTimeo(Integer nfsTimeo) { + this.nfsTimeo = nfsTimeo; + this.__explicitlySet__.add("nfsTimeo"); + return this; + } + /** + * Version of NFS used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nfsVersion") + private NfsVersion nfsVersion; + + /** + * Version of NFS used. + * @param nfsVersion the value to set + * @return this builder + **/ + public Builder nfsVersion(NfsVersion nfsVersion) { + this.nfsVersion = nfsVersion; + this.__explicitlySet__.add("nfsVersion"); + return this; + } + /** + * Whether to override LUNs + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOverrideLuns") + private Boolean isOverrideLuns; + + /** + * Whether to override LUNs + * @param isOverrideLuns the value to set + * @return this builder + **/ + public Builder isOverrideLuns(Boolean isOverrideLuns) { + this.isOverrideLuns = isOverrideLuns; + this.__explicitlySet__.add("isOverrideLuns"); + return this; + } + /** + * Password of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private char[] password; + + /** + * Password of the host storage. + * @param password the value to set + * @return this builder + **/ + public Builder password(char[] password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + + /** + * Paths of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("paths") + private Integer paths; + + /** + * Paths of the host storage. + * @param paths the value to set + * @return this builder + **/ + public Builder paths(Integer paths) { + this.paths = paths; + this.__explicitlySet__.add("paths"); + return this; + } + /** + * Port of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Port of the host storage. + * @param port the value to set + * @return this builder + **/ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** + * Portal of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("portal") + private String portal; + + /** + * Portal of the host storage. + * @param portal the value to set + * @return this builder + **/ + public Builder portal(String portal) { + this.portal = portal; + this.__explicitlySet__.add("portal"); + return this; + } + /** + * Target of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * Target of the host storage. + * @param target the value to set + * @return this builder + **/ + public Builder target(String target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + /** + * Username of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * Username of the host storage. + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * Type representing a storage domain type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type representing a storage domain type. + * @param type the value to set + * @return this builder + **/ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Type of VFS + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vfsType") + private String vfsType; + + /** + * Type of VFS + * @param vfsType the value to set + * @return this builder + **/ + public Builder vfsType(String vfsType) { + this.vfsType = vfsType; + this.__explicitlySet__.add("vfsType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroup") + private VolumeGroup volumeGroup; + + public Builder volumeGroup(VolumeGroup volumeGroup) { + this.volumeGroup = volumeGroup; + this.__explicitlySet__.add("volumeGroup"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Storage build() { + Storage model = + new Storage( + this.id, + this.address, + this.comment, + this.storageDescription, + this.driverOptions, + this.driverSensitiveOptions, + this.logicalUnits, + this.mountOptions, + this.nfsRetrans, + this.nfsTimeo, + this.nfsVersion, + this.isOverrideLuns, + this.password, + this.paths, + this.port, + this.portal, + this.target, + this.username, + this.type, + this.vfsType, + this.volumeGroup); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Storage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("address")) { + this.address(model.getAddress()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + if (model.wasPropertyExplicitlySet("storageDescription")) { + this.storageDescription(model.getStorageDescription()); + } + if (model.wasPropertyExplicitlySet("driverOptions")) { + this.driverOptions(model.getDriverOptions()); + } + if (model.wasPropertyExplicitlySet("driverSensitiveOptions")) { + this.driverSensitiveOptions(model.getDriverSensitiveOptions()); + } + if (model.wasPropertyExplicitlySet("logicalUnits")) { + this.logicalUnits(model.getLogicalUnits()); + } + if (model.wasPropertyExplicitlySet("mountOptions")) { + this.mountOptions(model.getMountOptions()); + } + if (model.wasPropertyExplicitlySet("nfsRetrans")) { + this.nfsRetrans(model.getNfsRetrans()); + } + if (model.wasPropertyExplicitlySet("nfsTimeo")) { + this.nfsTimeo(model.getNfsTimeo()); + } + if (model.wasPropertyExplicitlySet("nfsVersion")) { + this.nfsVersion(model.getNfsVersion()); + } + if (model.wasPropertyExplicitlySet("isOverrideLuns")) { + this.isOverrideLuns(model.getIsOverrideLuns()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("paths")) { + this.paths(model.getPaths()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("portal")) { + this.portal(model.getPortal()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("vfsType")) { + this.vfsType(model.getVfsType()); + } + if (model.wasPropertyExplicitlySet("volumeGroup")) { + this.volumeGroup(model.getVolumeGroup()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A unique identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Address of storage domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("address") + private final String address; + + /** + * Address of storage domain. + * @return the value + **/ + public String getAddress() { + return address; + } + + /** + * Free text containing comments about this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Free text containing comments about this object. + * @return the value + **/ + public String getComment() { + return comment; + } + + /** + * A human-readable description in plain text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDescription") + private final String storageDescription; + + /** + * A human-readable description in plain text. + * @return the value + **/ + public String getStorageDescription() { + return storageDescription; + } + + /** + * The options to be passed when creating a storage domain using a cinder driver. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverOptions") + private final java.util.List driverOptions; + + /** + * The options to be passed when creating a storage domain using a cinder driver. + * @return the value + **/ + public java.util.List getDriverOptions() { + return driverOptions; + } + + /** + * The options containing sensitive information to be passed when creating a storage domain using a cinder driver. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverSensitiveOptions") + private final java.util.List driverSensitiveOptions; + + /** + * The options containing sensitive information to be passed when creating a storage domain using a cinder driver. + * @return the value + **/ + public java.util.List getDriverSensitiveOptions() { + return driverSensitiveOptions; + } + + /** + * Logical Units of the host storage + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalUnits") + private final java.util.List logicalUnits; + + /** + * Logical Units of the host storage + * @return the value + **/ + public java.util.List getLogicalUnits() { + return logicalUnits; + } + + /** + * Mount options + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private final String mountOptions; + + /** + * Mount options + * @return the value + **/ + public String getMountOptions() { + return mountOptions; + } + + /** + * The number of times to retry a request before attempting further recovery actions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nfsRetrans") + private final Integer nfsRetrans; + + /** + * The number of times to retry a request before attempting further recovery actions. + * @return the value + **/ + public Integer getNfsRetrans() { + return nfsRetrans; + } + + /** + * The time in tenths of a second to wait for a response before retrying NFS requests. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nfsTimeo") + private final Integer nfsTimeo; + + /** + * The time in tenths of a second to wait for a response before retrying NFS requests. + * @return the value + **/ + public Integer getNfsTimeo() { + return nfsTimeo; + } + + /** + * Version of NFS used. + **/ + public enum NfsVersion { + Auto("AUTO"), + V3("V3"), + V4("V4"), + V40("V4_0"), + V41("V4_1"), + V42("V4_2"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NfsVersion v : NfsVersion.values()) { + map.put(v.getValue(), v); + } + } + + NfsVersion(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NfsVersion create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid NfsVersion: " + key); + } + }; + /** + * Version of NFS used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nfsVersion") + private final NfsVersion nfsVersion; + + /** + * Version of NFS used. + * @return the value + **/ + public NfsVersion getNfsVersion() { + return nfsVersion; + } + + /** + * Whether to override LUNs + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOverrideLuns") + private final Boolean isOverrideLuns; + + /** + * Whether to override LUNs + * @return the value + **/ + public Boolean getIsOverrideLuns() { + return isOverrideLuns; + } + + /** + * Password of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final char[] password; + + /** + * Password of the host storage. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Password of the host storage. + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } + + /** + * Paths of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("paths") + private final Integer paths; + + /** + * Paths of the host storage. + * @return the value + **/ + public Integer getPaths() { + return paths; + } + + /** + * Port of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Port of the host storage. + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * Portal of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("portal") + private final String portal; + + /** + * Portal of the host storage. + * @return the value + **/ + public String getPortal() { + return portal; + } + + /** + * Target of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * Target of the host storage. + * @return the value + **/ + public String getTarget() { + return target; + } + + /** + * Username of the host storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * Username of the host storage. + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * Type representing a storage domain type. + **/ + public enum Type { + Cinder("CINDER"), + Fcp("FCP"), + Glance("GLANCE"), + Glusterfs("GLUSTERFS"), + Iscsi("ISCSI"), + Localfs("LOCALFS"), + ManagedBlockStorage("MANAGED_BLOCK_STORAGE"), + Nfs("NFS"), + Posixfs("POSIXFS"), + ; + + 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 representing a storage domain type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type representing a storage domain type. + * @return the value + **/ + public Type getType() { + return type; + } + + /** + * Type of VFS + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vfsType") + private final String vfsType; + + /** + * Type of VFS + * @return the value + **/ + public String getVfsType() { + return vfsType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroup") + private final VolumeGroup volumeGroup; + + public VolumeGroup getVolumeGroup() { + return volumeGroup; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Storage("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", address=").append(String.valueOf(this.address)); + sb.append(", comment=").append(String.valueOf(this.comment)); + sb.append(", storageDescription=").append(String.valueOf(this.storageDescription)); + sb.append(", driverOptions=").append(String.valueOf(this.driverOptions)); + sb.append(", driverSensitiveOptions=").append(String.valueOf(this.driverSensitiveOptions)); + sb.append(", logicalUnits=").append(String.valueOf(this.logicalUnits)); + sb.append(", mountOptions=").append(String.valueOf(this.mountOptions)); + sb.append(", nfsRetrans=").append(String.valueOf(this.nfsRetrans)); + sb.append(", nfsTimeo=").append(String.valueOf(this.nfsTimeo)); + sb.append(", nfsVersion=").append(String.valueOf(this.nfsVersion)); + sb.append(", isOverrideLuns=").append(String.valueOf(this.isOverrideLuns)); + sb.append(", password=").append(""); + sb.append(", paths=").append(String.valueOf(this.paths)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", portal=").append(String.valueOf(this.portal)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", vfsType=").append(String.valueOf(this.vfsType)); + sb.append(", volumeGroup=").append(String.valueOf(this.volumeGroup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Storage)) { + return false; + } + + Storage other = (Storage) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.address, other.address) + && java.util.Objects.equals(this.comment, other.comment) + && java.util.Objects.equals(this.storageDescription, other.storageDescription) + && java.util.Objects.equals(this.driverOptions, other.driverOptions) + && java.util.Objects.equals( + this.driverSensitiveOptions, other.driverSensitiveOptions) + && java.util.Objects.equals(this.logicalUnits, other.logicalUnits) + && java.util.Objects.equals(this.mountOptions, other.mountOptions) + && java.util.Objects.equals(this.nfsRetrans, other.nfsRetrans) + && java.util.Objects.equals(this.nfsTimeo, other.nfsTimeo) + && java.util.Objects.equals(this.nfsVersion, other.nfsVersion) + && java.util.Objects.equals(this.isOverrideLuns, other.isOverrideLuns) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.paths, other.paths) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.portal, other.portal) + && java.util.Objects.equals(this.target, other.target) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.vfsType, other.vfsType) + && java.util.Objects.equals(this.volumeGroup, other.volumeGroup) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.address == null ? 43 : this.address.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = + (result * PRIME) + + (this.storageDescription == null + ? 43 + : this.storageDescription.hashCode()); + result = + (result * PRIME) + + (this.driverOptions == null ? 43 : this.driverOptions.hashCode()); + result = + (result * PRIME) + + (this.driverSensitiveOptions == null + ? 43 + : this.driverSensitiveOptions.hashCode()); + result = (result * PRIME) + (this.logicalUnits == null ? 43 : this.logicalUnits.hashCode()); + result = (result * PRIME) + (this.mountOptions == null ? 43 : this.mountOptions.hashCode()); + result = (result * PRIME) + (this.nfsRetrans == null ? 43 : this.nfsRetrans.hashCode()); + result = (result * PRIME) + (this.nfsTimeo == null ? 43 : this.nfsTimeo.hashCode()); + result = (result * PRIME) + (this.nfsVersion == null ? 43 : this.nfsVersion.hashCode()); + result = + (result * PRIME) + + (this.isOverrideLuns == null ? 43 : this.isOverrideLuns.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + (this.paths == null ? 43 : this.paths.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.portal == null ? 43 : this.portal.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.vfsType == null ? 43 : this.vfsType.hashCode()); + result = (result * PRIME) + (this.volumeGroup == null ? 43 : this.volumeGroup.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SupportedCloudRegionSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SupportedCloudRegionSummary.java index 7c92e5491f7..261affabbc6 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SupportedCloudRegionSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/SupportedCloudRegionSummary.java @@ -22,25 +22,15 @@ public final class SupportedCloudRegionSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({ - "assetSourceType", - "name", - "lifecycleState", - "freeformTags", - "definedTags" - }) + @java.beans.ConstructorProperties({"assetSourceType", "name", "lifecycleState"}) public SupportedCloudRegionSummary( AssetSourceType assetSourceType, String name, - SupportedCloudRegionLifecycleState lifecycleState, - java.util.Map freeformTags, - java.util.Map> definedTags) { + SupportedCloudRegionLifecycleState lifecycleState) { super(); this.assetSourceType = assetSourceType; this.name = name; this.lifecycleState = lifecycleState; - this.freeformTags = freeformTags; - this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -93,51 +83,6 @@ public Builder lifecycleState(SupportedCloudRegionLifecycleState lifecycleState) this.__explicitlySet__.add("lifecycleState"); return this; } - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -145,11 +90,7 @@ public Builder definedTags( public SupportedCloudRegionSummary build() { SupportedCloudRegionSummary model = new SupportedCloudRegionSummary( - this.assetSourceType, - this.name, - this.lifecycleState, - this.freeformTags, - this.definedTags); + this.assetSourceType, this.name, this.lifecycleState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -167,12 +108,6 @@ public Builder copy(SupportedCloudRegionSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } return this; } } @@ -230,46 +165,6 @@ public SupportedCloudRegionLifecycleState getLifecycleState() { return lifecycleState; } - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no - * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Department": "Finance"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. - * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - * Example: {@code {"Operations": {"CostCenter": "42"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - @Override public String toString() { return this.toString(true); @@ -287,8 +182,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("assetSourceType=").append(String.valueOf(this.assetSourceType)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -306,8 +199,6 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.assetSourceType, other.assetSourceType) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -322,8 +213,6 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/TransparentHugePages.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/TransparentHugePages.java new file mode 100644 index 00000000000..2c12bd74fc2 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/TransparentHugePages.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Type representing a transparent huge pages (THP) support. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TransparentHugePages.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TransparentHugePages extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled"}) + public TransparentHugePages(Boolean isEnabled) { + super(); + this.isEnabled = isEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Whether to enable THP support + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Whether to enable THP support + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TransparentHugePages build() { + TransparentHugePages model = new TransparentHugePages(this.isEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TransparentHugePages model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Whether to enable THP support + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Whether to enable THP support + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TransparentHugePages("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TransparentHugePages)) { + return false; + } + + TransparentHugePages other = (TransparentHugePages) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetDetails.java index cb235ca519e..faf7c155524 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetDetails.java @@ -30,6 +30,10 @@ value = UpdateAwsEbsAssetDetails.class, name = "AWS_EBS" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateInventoryAssetDetails.class, + name = "INVENTORY_ASSET" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateVmwareVmAssetDetails.class, name = "VMWARE_VM" diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetSourceDetails.java index a26927914ce..2cfb233a50a 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetSourceDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAssetSourceDetails.java @@ -26,6 +26,10 @@ value = UpdateVmWareAssetSourceDetails.class, name = "VMWARE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOlvmAssetSourceDetails.class, + name = "OLVM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateAwsAssetSourceDetails.class, name = "AWS" @@ -40,7 +44,8 @@ public class UpdateAssetSourceDetails extends com.oracle.bmc.http.internal.Expli "discoveryScheduleId", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "environmentType" }) protected UpdateAssetSourceDetails( String displayName, @@ -48,7 +53,8 @@ protected UpdateAssetSourceDetails( String discoveryScheduleId, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + EnvironmentType environmentType) { super(); this.displayName = displayName; this.assetsCompartmentId = assetsCompartmentId; @@ -56,6 +62,7 @@ protected UpdateAssetSourceDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.environmentType = environmentType; } /** @@ -164,6 +171,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + @Override public String toString() { return this.toString(true); @@ -184,6 +205,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(", environmentType=").append(String.valueOf(this.environmentType)); sb.append(")"); return sb.toString(); } @@ -204,6 +226,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.environmentType, other.environmentType) && super.equals(other); } @@ -225,6 +248,9 @@ 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.environmentType == null ? 43 : this.environmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAwsAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAwsAssetSourceDetails.java index 5ab82d8a24e..06fe890aeff 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAwsAssetSourceDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateAwsAssetSourceDetails.java @@ -82,6 +82,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") private AssetSourceCredentials discoveryCredentials; @@ -160,6 +169,7 @@ public UpdateAwsAssetSourceDetails build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.discoveryCredentials, this.replicationCredentials, this.areHistoricalMetricsCollected, @@ -191,6 +201,9 @@ public Builder copy(UpdateAwsAssetSourceDetails model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("discoveryCredentials")) { this.discoveryCredentials(model.getDiscoveryCredentials()); } @@ -229,6 +242,7 @@ public UpdateAwsAssetSourceDetails( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, AssetSourceCredentials discoveryCredentials, AssetSourceCredentials replicationCredentials, Boolean areHistoricalMetricsCollected, @@ -240,7 +254,8 @@ public UpdateAwsAssetSourceDetails( discoveryScheduleId, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.discoveryCredentials = discoveryCredentials; this.replicationCredentials = replicationCredentials; this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateInventoryAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateInventoryAssetDetails.java new file mode 100644 index 00000000000..c1b6970ec48 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateInventoryAssetDetails.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * The information of a JSON formatted asset to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateInventoryAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "assetType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateInventoryAssetDetails extends UpdateAssetDetails { + @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("assetSourceIds") + private java.util.List assetSourceIds; + + public Builder assetSourceIds(java.util.List assetSourceIds) { + this.assetSourceIds = assetSourceIds; + this.__explicitlySet__.add("assetSourceIds"); + 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 class name of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private String assetClassName; + + /** + * The class name of the asset. + * @param assetClassName the value to set + * @return this builder + **/ + public Builder assetClassName(String assetClassName) { + this.assetClassName = assetClassName; + this.__explicitlySet__.add("assetClassName"); + return this; + } + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private String assetClassVersion; + + /** + * The version of the asset class. + * @param assetClassVersion the value to set + * @return this builder + **/ + public Builder assetClassVersion(String assetClassVersion) { + this.assetClassVersion = assetClassVersion; + this.__explicitlySet__.add("assetClassVersion"); + return this; + } + /** + * The details of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetDetails") + private java.util.Map assetDetails; + + /** + * The details of the asset. + * @param assetDetails the value to set + * @return this builder + **/ + public Builder assetDetails(java.util.Map assetDetails) { + this.assetDetails = assetDetails; + this.__explicitlySet__.add("assetDetails"); + return this; + } + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @param environmentType the value to set + * @return this builder + **/ + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateInventoryAssetDetails build() { + UpdateInventoryAssetDetails model = + new UpdateInventoryAssetDetails( + this.displayName, + this.assetSourceIds, + this.freeformTags, + this.definedTags, + this.assetClassName, + this.assetClassVersion, + this.assetDetails, + this.environmentType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateInventoryAssetDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("assetSourceIds")) { + this.assetSourceIds(model.getAssetSourceIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("assetClassName")) { + this.assetClassName(model.getAssetClassName()); + } + if (model.wasPropertyExplicitlySet("assetClassVersion")) { + this.assetClassVersion(model.getAssetClassVersion()); + } + if (model.wasPropertyExplicitlySet("assetDetails")) { + this.assetDetails(model.getAssetDetails()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateInventoryAssetDetails( + String displayName, + java.util.List assetSourceIds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String assetClassName, + String assetClassVersion, + java.util.Map assetDetails, + EnvironmentType environmentType) { + super(displayName, assetSourceIds, freeformTags, definedTags); + this.assetClassName = assetClassName; + this.assetClassVersion = assetClassVersion; + this.assetDetails = assetDetails; + this.environmentType = environmentType; + } + + /** + * The class name of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassName") + private final String assetClassName; + + /** + * The class name of the asset. + * @return the value + **/ + public String getAssetClassName() { + return assetClassName; + } + + /** + * The version of the asset class. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetClassVersion") + private final String assetClassVersion; + + /** + * The version of the asset class. + * @return the value + **/ + public String getAssetClassVersion() { + return assetClassVersion; + } + + /** + * The details of the asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assetDetails") + private final java.util.Map assetDetails; + + /** + * The details of the asset. + * @return the value + **/ + public java.util.Map getAssetDetails() { + return assetDetails; + } + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final EnvironmentType environmentType; + + /** + * Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting. + * @return the value + **/ + public EnvironmentType getEnvironmentType() { + return environmentType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateInventoryAssetDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", assetClassName=").append(String.valueOf(this.assetClassName)); + sb.append(", assetClassVersion=").append(String.valueOf(this.assetClassVersion)); + sb.append(", assetDetails=").append(String.valueOf(this.assetDetails)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInventoryAssetDetails)) { + return false; + } + + UpdateInventoryAssetDetails other = (UpdateInventoryAssetDetails) o; + return java.util.Objects.equals(this.assetClassName, other.assetClassName) + && java.util.Objects.equals(this.assetClassVersion, other.assetClassVersion) + && java.util.Objects.equals(this.assetDetails, other.assetDetails) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.assetClassName == null ? 43 : this.assetClassName.hashCode()); + result = + (result * PRIME) + + (this.assetClassVersion == null ? 43 : this.assetClassVersion.hashCode()); + result = (result * PRIME) + (this.assetDetails == null ? 43 : this.assetDetails.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateOlvmAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateOlvmAssetSourceDetails.java new file mode 100644 index 00000000000..0ebea4b8923 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateOlvmAssetSourceDetails.java @@ -0,0 +1,395 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * OLVM asset source update 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOlvmAssetSourceDetails.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 UpdateOlvmAssetSourceDetails extends UpdateAssetSourceDetails { + @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("assetsCompartmentId") + private String assetsCompartmentId; + + public Builder assetsCompartmentId(String assetsCompartmentId) { + this.assetsCompartmentId = assetsCompartmentId; + this.__explicitlySet__.add("assetsCompartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryScheduleId") + private String discoveryScheduleId; + + public Builder discoveryScheduleId(String discoveryScheduleId) { + this.discoveryScheduleId = discoveryScheduleId; + this.__explicitlySet__.add("discoveryScheduleId"); + 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("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @param olvmEndpoint the value to set + * @return this builder + **/ + public Builder olvmEndpoint(String olvmEndpoint) { + this.olvmEndpoint = olvmEndpoint; + this.__explicitlySet__.add("olvmEndpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") + private AssetSourceCredentials discoveryCredentials; + + public Builder discoveryCredentials(AssetSourceCredentials discoveryCredentials) { + this.discoveryCredentials = discoveryCredentials; + this.__explicitlySet__.add("discoveryCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") + private AssetSourceCredentials replicationCredentials; + + public Builder replicationCredentials(AssetSourceCredentials replicationCredentials) { + this.replicationCredentials = replicationCredentials; + this.__explicitlySet__.add("replicationCredentials"); + return this; + } + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areHistoricalMetricsCollected") + private Boolean areHistoricalMetricsCollected; + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + * @param areHistoricalMetricsCollected the value to set + * @return this builder + **/ + public Builder areHistoricalMetricsCollected(Boolean areHistoricalMetricsCollected) { + this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; + this.__explicitlySet__.add("areHistoricalMetricsCollected"); + return this; + } + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areRealtimeMetricsCollected") + private Boolean areRealtimeMetricsCollected; + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + * @param areRealtimeMetricsCollected the value to set + * @return this builder + **/ + public Builder areRealtimeMetricsCollected(Boolean areRealtimeMetricsCollected) { + this.areRealtimeMetricsCollected = areRealtimeMetricsCollected; + this.__explicitlySet__.add("areRealtimeMetricsCollected"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOlvmAssetSourceDetails build() { + UpdateOlvmAssetSourceDetails model = + new UpdateOlvmAssetSourceDetails( + this.displayName, + this.assetsCompartmentId, + this.discoveryScheduleId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.environmentType, + this.olvmEndpoint, + this.discoveryCredentials, + this.replicationCredentials, + this.areHistoricalMetricsCollected, + this.areRealtimeMetricsCollected); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOlvmAssetSourceDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("assetsCompartmentId")) { + this.assetsCompartmentId(model.getAssetsCompartmentId()); + } + if (model.wasPropertyExplicitlySet("discoveryScheduleId")) { + this.discoveryScheduleId(model.getDiscoveryScheduleId()); + } + 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("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("olvmEndpoint")) { + this.olvmEndpoint(model.getOlvmEndpoint()); + } + if (model.wasPropertyExplicitlySet("discoveryCredentials")) { + this.discoveryCredentials(model.getDiscoveryCredentials()); + } + if (model.wasPropertyExplicitlySet("replicationCredentials")) { + this.replicationCredentials(model.getReplicationCredentials()); + } + if (model.wasPropertyExplicitlySet("areHistoricalMetricsCollected")) { + this.areHistoricalMetricsCollected(model.getAreHistoricalMetricsCollected()); + } + if (model.wasPropertyExplicitlySet("areRealtimeMetricsCollected")) { + this.areRealtimeMetricsCollected(model.getAreRealtimeMetricsCollected()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOlvmAssetSourceDetails( + String displayName, + String assetsCompartmentId, + String discoveryScheduleId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + EnvironmentType environmentType, + String olvmEndpoint, + AssetSourceCredentials discoveryCredentials, + AssetSourceCredentials replicationCredentials, + Boolean areHistoricalMetricsCollected, + Boolean areRealtimeMetricsCollected) { + super( + displayName, + assetsCompartmentId, + discoveryScheduleId, + freeformTags, + definedTags, + systemTags, + environmentType); + this.olvmEndpoint = olvmEndpoint; + this.discoveryCredentials = discoveryCredentials; + this.replicationCredentials = replicationCredentials; + this.areHistoricalMetricsCollected = areHistoricalMetricsCollected; + this.areRealtimeMetricsCollected = areRealtimeMetricsCollected; + } + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + **/ + @com.fasterxml.jackson.annotation.JsonProperty("olvmEndpoint") + private final String olvmEndpoint; + + /** + * Endpoint for OLVM asset discovery and replication in the form of {@code https://:} + * @return the value + **/ + public String getOlvmEndpoint() { + return olvmEndpoint; + } + + @com.fasterxml.jackson.annotation.JsonProperty("discoveryCredentials") + private final AssetSourceCredentials discoveryCredentials; + + public AssetSourceCredentials getDiscoveryCredentials() { + return discoveryCredentials; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") + private final AssetSourceCredentials replicationCredentials; + + public AssetSourceCredentials getReplicationCredentials() { + return replicationCredentials; + } + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areHistoricalMetricsCollected") + private final Boolean areHistoricalMetricsCollected; + + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + * @return the value + **/ + public Boolean getAreHistoricalMetricsCollected() { + return areHistoricalMetricsCollected; + } + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areRealtimeMetricsCollected") + private final Boolean areRealtimeMetricsCollected; + + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + * @return the value + **/ + public Boolean getAreRealtimeMetricsCollected() { + return areRealtimeMetricsCollected; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOlvmAssetSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", olvmEndpoint=").append(String.valueOf(this.olvmEndpoint)); + sb.append(", discoveryCredentials=").append(String.valueOf(this.discoveryCredentials)); + sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials)); + sb.append(", areHistoricalMetricsCollected=") + .append(String.valueOf(this.areHistoricalMetricsCollected)); + sb.append(", areRealtimeMetricsCollected=") + .append(String.valueOf(this.areRealtimeMetricsCollected)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOlvmAssetSourceDetails)) { + return false; + } + + UpdateOlvmAssetSourceDetails other = (UpdateOlvmAssetSourceDetails) o; + return java.util.Objects.equals(this.olvmEndpoint, other.olvmEndpoint) + && java.util.Objects.equals(this.discoveryCredentials, other.discoveryCredentials) + && java.util.Objects.equals( + this.replicationCredentials, other.replicationCredentials) + && java.util.Objects.equals( + this.areHistoricalMetricsCollected, other.areHistoricalMetricsCollected) + && java.util.Objects.equals( + this.areRealtimeMetricsCollected, other.areRealtimeMetricsCollected) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.olvmEndpoint == null ? 43 : this.olvmEndpoint.hashCode()); + result = + (result * PRIME) + + (this.discoveryCredentials == null + ? 43 + : this.discoveryCredentials.hashCode()); + result = + (result * PRIME) + + (this.replicationCredentials == null + ? 43 + : this.replicationCredentials.hashCode()); + result = + (result * PRIME) + + (this.areHistoricalMetricsCollected == null + ? 43 + : this.areHistoricalMetricsCollected.hashCode()); + result = + (result * PRIME) + + (this.areRealtimeMetricsCollected == null + ? 43 + : this.areRealtimeMetricsCollected.hashCode()); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateVmWareAssetSourceDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateVmWareAssetSourceDetails.java index 35f733e833e..86180148267 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateVmWareAssetSourceDetails.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdateVmWareAssetSourceDetails.java @@ -81,6 +81,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } /** * Endpoint for VMware asset discovery and replication in the form of {@code https://:/sdk} **/ @@ -160,6 +169,7 @@ public UpdateVmWareAssetSourceDetails build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.vcenterEndpoint, this.discoveryCredentials, this.replicationCredentials, @@ -191,6 +201,9 @@ public Builder copy(UpdateVmWareAssetSourceDetails model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("vcenterEndpoint")) { this.vcenterEndpoint(model.getVcenterEndpoint()); } @@ -229,6 +242,7 @@ public UpdateVmWareAssetSourceDetails( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, String vcenterEndpoint, AssetSourceCredentials discoveryCredentials, AssetSourceCredentials replicationCredentials, @@ -240,7 +254,8 @@ public UpdateVmWareAssetSourceDetails( discoveryScheduleId, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.vcenterEndpoint = vcenterEndpoint; this.discoveryCredentials = discoveryCredentials; this.replicationCredentials = replicationCredentials; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VcpuPin.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VcpuPin.java new file mode 100644 index 00000000000..527197a9e94 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VcpuPin.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * vCPU Pin + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VcpuPin.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VcpuPin extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"cpuSet", "vcpu"}) + public VcpuPin(String cpuSet, Integer vcpu) { + super(); + this.cpuSet = cpuSet; + this.vcpu = vcpu; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * CPU Set + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuSet") + private String cpuSet; + + /** + * CPU Set + * @param cpuSet the value to set + * @return this builder + **/ + public Builder cpuSet(String cpuSet) { + this.cpuSet = cpuSet; + this.__explicitlySet__.add("cpuSet"); + return this; + } + /** + * vCPU number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcpu") + private Integer vcpu; + + /** + * vCPU number + * @param vcpu the value to set + * @return this builder + **/ + public Builder vcpu(Integer vcpu) { + this.vcpu = vcpu; + this.__explicitlySet__.add("vcpu"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VcpuPin build() { + VcpuPin model = new VcpuPin(this.cpuSet, this.vcpu); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VcpuPin model) { + if (model.wasPropertyExplicitlySet("cpuSet")) { + this.cpuSet(model.getCpuSet()); + } + if (model.wasPropertyExplicitlySet("vcpu")) { + this.vcpu(model.getVcpu()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * CPU Set + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuSet") + private final String cpuSet; + + /** + * CPU Set + * @return the value + **/ + public String getCpuSet() { + return cpuSet; + } + + /** + * vCPU number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcpu") + private final Integer vcpu; + + /** + * vCPU number + * @return the value + **/ + public Integer getVcpu() { + return vcpu; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VcpuPin("); + sb.append("super=").append(super.toString()); + sb.append("cpuSet=").append(String.valueOf(this.cpuSet)); + sb.append(", vcpu=").append(String.valueOf(this.vcpu)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VcpuPin)) { + return false; + } + + VcpuPin other = (VcpuPin) o; + return java.util.Objects.equals(this.cpuSet, other.cpuSet) + && java.util.Objects.equals(this.vcpu, other.vcpu) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.cpuSet == null ? 43 : this.cpuSet.hashCode()); + result = (result * PRIME) + (this.vcpu == null ? 43 : this.vcpu.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmAsset.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmAsset.java index 420787da671..44464bc37b6 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmAsset.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmAsset.java @@ -143,6 +143,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("compute") private ComputeProperties compute; @@ -180,6 +189,7 @@ public VmAsset build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.compute, this.vm); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -229,6 +239,9 @@ public Builder copy(VmAsset model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("compute")) { this.compute(model.getCompute()); } @@ -265,6 +278,7 @@ public VmAsset( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, ComputeProperties compute, VmProperties vm) { super( @@ -280,7 +294,8 @@ public VmAsset( lifecycleState, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.compute = compute; this.vm = vm; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSource.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSource.java index 5cd2c5bfb2a..91a794a8639 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSource.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSource.java @@ -154,6 +154,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } /** * Endpoint for VMware asset discovery and replication in the form of {@code https://:/sdk} **/ @@ -241,6 +250,7 @@ public VmWareAssetSource build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.vcenterEndpoint, this.discoveryCredentials, this.replicationCredentials, @@ -296,6 +306,9 @@ public Builder copy(VmWareAssetSource model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("vcenterEndpoint")) { this.vcenterEndpoint(model.getVcenterEndpoint()); } @@ -342,6 +355,7 @@ public VmWareAssetSource( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, String vcenterEndpoint, AssetSourceCredentials discoveryCredentials, AssetSourceCredentials replicationCredentials, @@ -361,7 +375,8 @@ public VmWareAssetSource( timeUpdated, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.vcenterEndpoint = vcenterEndpoint; this.discoveryCredentials = discoveryCredentials; this.replicationCredentials = replicationCredentials; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSourceSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSourceSummary.java index 52afcb1d735..490b6e4e2ce 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSourceSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmWareAssetSourceSummary.java @@ -144,6 +144,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } /** * Endpoint for VMware asset discovery and replication in the form of {@code https://:/sdk} **/ @@ -180,6 +189,7 @@ public VmWareAssetSourceSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.vcenterEndpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -228,6 +238,9 @@ public Builder copy(VmWareAssetSourceSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("vcenterEndpoint")) { this.vcenterEndpoint(model.getVcenterEndpoint()); } @@ -261,6 +274,7 @@ public VmWareAssetSourceSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, String vcenterEndpoint) { super( id, @@ -275,7 +289,8 @@ public VmWareAssetSourceSummary( timeUpdated, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.vcenterEndpoint = vcenterEndpoint; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmwareVmAsset.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmwareVmAsset.java index 694d7c991e0..982a6a1ac98 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmwareVmAsset.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VmwareVmAsset.java @@ -143,6 +143,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private EnvironmentType environmentType; + + public Builder environmentType(EnvironmentType environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("compute") private ComputeProperties compute; @@ -198,6 +207,7 @@ public VmwareVmAsset build() { this.freeformTags, this.definedTags, this.systemTags, + this.environmentType, this.compute, this.vm, this.vmwareVm, @@ -249,6 +259,9 @@ public Builder copy(VmwareVmAsset model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } if (model.wasPropertyExplicitlySet("compute")) { this.compute(model.getCompute()); } @@ -291,6 +304,7 @@ public VmwareVmAsset( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + EnvironmentType environmentType, ComputeProperties compute, VmProperties vm, VmwareVmProperties vmwareVm, @@ -308,7 +322,8 @@ public VmwareVmAsset( lifecycleState, freeformTags, definedTags, - systemTags); + systemTags, + environmentType); this.compute = compute; this.vm = vm; this.vmwareVm = vmwareVm; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VolumeGroup.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VolumeGroup.java new file mode 100644 index 00000000000..80e4f01ba74 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/VolumeGroup.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * Volume Group of the host storage + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VolumeGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VolumeGroup extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "logicalUnits"}) + public VolumeGroup(String id, java.util.List logicalUnits) { + super(); + this.id = id; + this.logicalUnits = logicalUnits; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A unique identifier of the volume group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier of the volume group + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * List of logical units of the volume group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalUnits") + private java.util.List logicalUnits; + + /** + * List of logical units of the volume group + * @param logicalUnits the value to set + * @return this builder + **/ + public Builder logicalUnits(java.util.List logicalUnits) { + this.logicalUnits = logicalUnits; + this.__explicitlySet__.add("logicalUnits"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VolumeGroup build() { + VolumeGroup model = new VolumeGroup(this.id, this.logicalUnits); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VolumeGroup model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("logicalUnits")) { + this.logicalUnits(model.getLogicalUnits()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A unique identifier of the volume group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier of the volume group + * @return the value + **/ + public String getId() { + return id; + } + + /** + * List of logical units of the volume group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalUnits") + private final java.util.List logicalUnits; + + /** + * List of logical units of the volume group + * @return the value + **/ + public java.util.List getLogicalUnits() { + return logicalUnits; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VolumeGroup("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", logicalUnits=").append(String.valueOf(this.logicalUnits)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VolumeGroup)) { + return false; + } + + VolumeGroup other = (VolumeGroup) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.logicalUnits, other.logicalUnits) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.logicalUnits == null ? 43 : this.logicalUnits.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/AnalyzeAssetsRequest.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/AnalyzeAssetsRequest.java index eae5bf87136..f784ea32b0a 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/AnalyzeAssetsRequest.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/AnalyzeAssetsRequest.java @@ -143,6 +143,28 @@ public java.util.List getGroupBy() { public String getInventoryId() { return inventoryId; } + /** + * The name of the asset class. + */ + private String assetClassName; + + /** + * The name of the asset class. + */ + public String getAssetClassName() { + return assetClassName; + } + /** + * The version of the asset class. + */ + private String assetClassVersion; + + /** + * The version of the asset class. + */ + public String getAssetClassVersion() { + return assetClassVersion; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -350,6 +372,36 @@ public Builder inventoryId(String inventoryId) { return this; } + /** + * The name of the asset class. + */ + private String assetClassName = null; + + /** + * The name of the asset class. + * @param assetClassName the value to set + * @return this builder instance + */ + public Builder assetClassName(String assetClassName) { + this.assetClassName = assetClassName; + return this; + } + + /** + * The version of the asset class. + */ + private String assetClassVersion = null; + + /** + * The version of the asset class. + * @param assetClassVersion the value to set + * @return this builder instance + */ + public Builder assetClassVersion(String assetClassVersion) { + this.assetClassVersion = assetClassVersion; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -390,6 +442,8 @@ public Builder copy(AnalyzeAssetsRequest o) { opcRequestId(o.getOpcRequestId()); groupBy(o.getGroupBy()); inventoryId(o.getInventoryId()); + assetClassName(o.getAssetClassName()); + assetClassVersion(o.getAssetClassVersion()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -434,8 +488,10 @@ public AnalyzeAssetsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.groupBy = groupBy; request.inventoryId = inventoryId; + request.assetClassName = assetClassName; + request.assetClassVersion = assetClassVersion; return request; - // new AnalyzeAssetsRequest(compartmentId, aggregationProperties, limit, page, lifecycleState, sourceKey, externalAssetKey, assetType, sortOrder, opcRequestId, groupBy, inventoryId); + // new AnalyzeAssetsRequest(compartmentId, aggregationProperties, limit, page, lifecycleState, sourceKey, externalAssetKey, assetType, sortOrder, opcRequestId, groupBy, inventoryId, assetClassName, assetClassVersion); } } @@ -456,7 +512,9 @@ public Builder toBuilder() { .sortOrder(sortOrder) .opcRequestId(opcRequestId) .groupBy(groupBy) - .inventoryId(inventoryId); + .inventoryId(inventoryId) + .assetClassName(assetClassName) + .assetClassVersion(assetClassVersion); } /** @@ -484,6 +542,8 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",groupBy=").append(String.valueOf(this.groupBy)); sb.append(",inventoryId=").append(String.valueOf(this.inventoryId)); + sb.append(",assetClassName=").append(String.valueOf(this.assetClassName)); + sb.append(",assetClassVersion=").append(String.valueOf(this.assetClassVersion)); sb.append(")"); return sb.toString(); } @@ -510,7 +570,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.groupBy, other.groupBy) - && java.util.Objects.equals(this.inventoryId, other.inventoryId); + && java.util.Objects.equals(this.inventoryId, other.inventoryId) + && java.util.Objects.equals(this.assetClassName, other.assetClassName) + && java.util.Objects.equals(this.assetClassVersion, other.assetClassVersion); } @Override @@ -539,6 +601,12 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.groupBy == null ? 43 : this.groupBy.hashCode()); result = (result * PRIME) + (this.inventoryId == null ? 43 : this.inventoryId.hashCode()); + result = + (result * PRIME) + + (this.assetClassName == null ? 43 : this.assetClassName.hashCode()); + result = + (result * PRIME) + + (this.assetClassVersion == null ? 43 : this.assetClassVersion.hashCode()); return result; } } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/ListAssetsRequest.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/ListAssetsRequest.java index fb9ad6cba68..2a047062618 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/ListAssetsRequest.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/ListAssetsRequest.java @@ -194,6 +194,28 @@ public String getOpcRequestId() { public String getInventoryId() { return inventoryId; } + /** + * The name of the asset class. + */ + private String assetClassName; + + /** + * The name of the asset class. + */ + public String getAssetClassName() { + return assetClassName; + } + /** + * The version of the asset class. + */ + private String assetClassVersion; + + /** + * The version of the asset class. + */ + public String getAssetClassVersion() { + return assetClassVersion; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -400,6 +422,36 @@ public Builder inventoryId(String inventoryId) { return this; } + /** + * The name of the asset class. + */ + private String assetClassName = null; + + /** + * The name of the asset class. + * @param assetClassName the value to set + * @return this builder instance + */ + public Builder assetClassName(String assetClassName) { + this.assetClassName = assetClassName; + return this; + } + + /** + * The version of the asset class. + */ + private String assetClassVersion = null; + + /** + * The version of the asset class. + * @param assetClassVersion the value to set + * @return this builder instance + */ + public Builder assetClassVersion(String assetClassVersion) { + this.assetClassVersion = assetClassVersion; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -441,6 +493,8 @@ public Builder copy(ListAssetsRequest o) { sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); inventoryId(o.getInventoryId()); + assetClassName(o.getAssetClassName()); + assetClassVersion(o.getAssetClassVersion()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -486,8 +540,10 @@ public ListAssetsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; request.inventoryId = inventoryId; + request.assetClassName = assetClassName; + request.assetClassVersion = assetClassVersion; return request; - // new ListAssetsRequest(compartmentId, limit, page, lifecycleState, sourceKey, externalAssetKey, assetType, assetId, displayName, sortOrder, sortBy, opcRequestId, inventoryId); + // new ListAssetsRequest(compartmentId, limit, page, lifecycleState, sourceKey, externalAssetKey, assetType, assetId, displayName, sortOrder, sortBy, opcRequestId, inventoryId, assetClassName, assetClassVersion); } } @@ -509,7 +565,9 @@ public Builder toBuilder() { .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) - .inventoryId(inventoryId); + .inventoryId(inventoryId) + .assetClassName(assetClassName) + .assetClassVersion(assetClassVersion); } /** @@ -538,6 +596,8 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",inventoryId=").append(String.valueOf(this.inventoryId)); + sb.append(",assetClassName=").append(String.valueOf(this.assetClassName)); + sb.append(",assetClassVersion=").append(String.valueOf(this.assetClassVersion)); sb.append(")"); return sb.toString(); } @@ -565,7 +625,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.inventoryId, other.inventoryId); + && java.util.Objects.equals(this.inventoryId, other.inventoryId) + && java.util.Objects.equals(this.assetClassName, other.assetClassName) + && java.util.Objects.equals(this.assetClassVersion, other.assetClassVersion); } @Override @@ -591,6 +653,12 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.inventoryId == null ? 43 : this.inventoryId.hashCode()); + result = + (result * PRIME) + + (this.assetClassName == null ? 43 : this.assetClassName.hashCode()); + result = + (result * PRIME) + + (this.assetClassVersion == null ? 43 : this.assetClassVersion.hashCode()); return result; } } diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 1bbca6921b0..df5f95b989d 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-cloudguard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuard.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuard.java index 21794709eef..d90381c5bf8 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuard.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuard.java @@ -568,38 +568,6 @@ DeleteTargetResponderRecipeResponse deleteTargetResponderRecipe( /** * Deletes and unregisters the WLP agent for an on-premise resource. - * x-obmcs-splat: - * routing: - * strategy: route-to-any-ad - * serviceList: [ 'cloudguard-cp-SPLAT_ENV' ] - * resources: - * wlpAgent: - * serviceResourceName: WlpAgent - * targetCompartmentId: downstream.getOr404('cloudguard-cp-SPLAT_ENV', 'GetWlpAgent', request.resourceId).compartmentId - * actionKind: delete - * resourceOcid: request.resourceId - * reconciliationCanStartAfterSecs: 30 - * permissions: [ \"WLP_AGENT_DELETE\" ] - * authorization: - * mode: automated - * check: resources['wlpAgent'].grantedPermissions.contains('WLP_AGENT_DELETE') - * allowCrossTenancy: true - * tagStore: - * mode: automated - * maximumAttemptCount: 3 - * throttling: - * perUserLimit: - * rpsLimit: 15 - * perTenantLimit: - * rpsLimit: 30 - * quotas: - * mode: automated - * search: - * mode: backfilling - * operationResourceName: wlpAgent - * lock: - * mode: test - * operationResourceName: wlpAgent * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsync.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsync.java index 1cec342a2fa..380a3cc8e22 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsync.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsync.java @@ -706,38 +706,6 @@ java.util.concurrent.Future deleteTargetRes /** * Deletes and unregisters the WLP agent for an on-premise resource. - * x-obmcs-splat: - * routing: - * strategy: route-to-any-ad - * serviceList: [ 'cloudguard-cp-SPLAT_ENV' ] - * resources: - * wlpAgent: - * serviceResourceName: WlpAgent - * targetCompartmentId: downstream.getOr404('cloudguard-cp-SPLAT_ENV', 'GetWlpAgent', request.resourceId).compartmentId - * actionKind: delete - * resourceOcid: request.resourceId - * reconciliationCanStartAfterSecs: 30 - * permissions: [ \"WLP_AGENT_DELETE\" ] - * authorization: - * mode: automated - * check: resources['wlpAgent'].grantedPermissions.contains('WLP_AGENT_DELETE') - * allowCrossTenancy: true - * tagStore: - * mode: automated - * maximumAttemptCount: 3 - * throttling: - * perUserLimit: - * rpsLimit: 15 - * perTenantLimit: - * rpsLimit: 30 - * quotas: - * mode: automated - * search: - * mode: backfilling - * operationResourceName: wlpAgent - * lock: - * mode: test - * operationResourceName: wlpAgent * * * @param request The request object containing the details to send diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/AbsoluteTimeStartPolicy.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/AbsoluteTimeStartPolicy.java index bed47597405..19d218581de 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/AbsoluteTimeStartPolicy.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/AbsoluteTimeStartPolicy.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cloudguard.model; /** - * Start policy that defines the exact start time + * DEPRECATED - Start policy that defines the exact start time *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ComplianceDocument.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ComplianceDocument.java new file mode 100644 index 00000000000..f25a41e7942 --- /dev/null +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ComplianceDocument.java @@ -0,0 +1,577 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudguard.model; + +/** + * A compliance document that exists in the tenancy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComplianceDocument.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComplianceDocument extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "timeCreated", + "lifecycleState", + "documentFileName", + "version", + "type", + "platform", + "timeUpdated", + "saasServiceName" + }) + public ComplianceDocument( + String id, + String name, + java.util.Date timeCreated, + LifecycleState lifecycleState, + String documentFileName, + Integer version, + String type, + String platform, + java.util.Date timeUpdated, + String saasServiceName) { + super(); + this.id = id; + this.name = name; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.documentFileName = documentFileName; + this.version = version; + this.type = type; + this.platform = platform; + this.timeUpdated = timeUpdated; + this.saasServiceName = saasServiceName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compliance document, which is assigned + * when you create the document as an Oracle Cloud Infrastructure resource and is immutable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compliance document, which is assigned + * when you create the document as an Oracle Cloud Infrastructure resource and is immutable. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The current lifecycle state of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the compliance document. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The file name of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentFileName") + private String documentFileName; + + /** + * The file name of the compliance document. + * @param documentFileName the value to set + * @return this builder + **/ + public Builder documentFileName(String documentFileName) { + this.documentFileName = documentFileName; + this.__explicitlySet__.add("documentFileName"); + return this; + } + /** + * The version number of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + /** + * The version number of the compliance document. + * @param version the value to set + * @return this builder + **/ + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The type of compliance document. For definitions of supported types of compliance documents, see [Types of Compliance Documents](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#DocTypes). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The type of compliance document. For definitions of supported types of compliance documents, see [Types of Compliance Documents](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#DocTypes). + * + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The information technology infrastructure platform, or set of services, to which the compliance document belongs. A platform + * can also be described as an environment or a business pillar. For definitions of supported environments, see [Types of Environments](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#EnvironmentTypes). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * The information technology infrastructure platform, or set of services, to which the compliance document belongs. A platform + * can also be described as an environment or a business pillar. For definitions of supported environments, see [Types of Environments](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#EnvironmentTypes). + * + * @param platform the value to set + * @return this builder + **/ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The saas service name to which compliance document belongs. For other types such as 'OCI' / 'PaaS' this value will be null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("saasServiceName") + private String saasServiceName; + + /** + * The saas service name to which compliance document belongs. For other types such as 'OCI' / 'PaaS' this value will be null. + * @param saasServiceName the value to set + * @return this builder + **/ + public Builder saasServiceName(String saasServiceName) { + this.saasServiceName = saasServiceName; + this.__explicitlySet__.add("saasServiceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComplianceDocument build() { + ComplianceDocument model = + new ComplianceDocument( + this.id, + this.name, + this.timeCreated, + this.lifecycleState, + this.documentFileName, + this.version, + this.type, + this.platform, + this.timeUpdated, + this.saasServiceName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceDocument model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("documentFileName")) { + this.documentFileName(model.getDocumentFileName()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("saasServiceName")) { + this.saasServiceName(model.getSaasServiceName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compliance document, which is assigned + * when you create the document as an Oracle Cloud Infrastructure resource and is immutable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compliance document, which is assigned + * when you create the document as an Oracle Cloud Infrastructure resource and is immutable. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The current lifecycle state of the compliance document. + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current lifecycle state of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the compliance document. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The file name of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentFileName") + private final String documentFileName; + + /** + * The file name of the compliance document. + * @return the value + **/ + public String getDocumentFileName() { + return documentFileName; + } + + /** + * The version number of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The version number of the compliance document. + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * The type of compliance document. For definitions of supported types of compliance documents, see [Types of Compliance Documents](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#DocTypes). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The type of compliance document. For definitions of supported types of compliance documents, see [Types of Compliance Documents](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#DocTypes). + * + * @return the value + **/ + public String getType() { + return type; + } + + /** + * The information technology infrastructure platform, or set of services, to which the compliance document belongs. A platform + * can also be described as an environment or a business pillar. For definitions of supported environments, see [Types of Environments](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#EnvironmentTypes). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * The information technology infrastructure platform, or set of services, to which the compliance document belongs. A platform + * can also be described as an environment or a business pillar. For definitions of supported environments, see [Types of Environments](https://docs.oracle.com/iaas/en-us/iaas/Content/ComplianceDocuments/Concepts/compliancedocsoverview.htm#EnvironmentTypes). + * + * @return the value + **/ + public String getPlatform() { + return platform; + } + + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The saas service name to which compliance document belongs. For other types such as 'OCI' / 'PaaS' this value will be null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("saasServiceName") + private final String saasServiceName; + + /** + * The saas service name to which compliance document belongs. For other types such as 'OCI' / 'PaaS' this value will be null. + * @return the value + **/ + public String getSaasServiceName() { + return saasServiceName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceDocument("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", documentFileName=").append(String.valueOf(this.documentFileName)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", saasServiceName=").append(String.valueOf(this.saasServiceName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceDocument)) { + return false; + } + + ComplianceDocument other = (ComplianceDocument) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.documentFileName, other.documentFileName) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.saasServiceName, other.saasServiceName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.documentFileName == null ? 43 : this.documentFileName.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.saasServiceName == null ? 43 : this.saasServiceName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ComplianceDocumentSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ComplianceDocumentSummary.java new file mode 100644 index 00000000000..7d3f495586d --- /dev/null +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ComplianceDocumentSummary.java @@ -0,0 +1,696 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudguard.model; + +/** + * A summary representation of the compliance document. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComplianceDocumentSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComplianceDocumentSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "timeCreated", + "lifecycleState", + "documentFileName", + "version", + "type", + "platform", + "timeUpdated", + "saasServiceName", + "freeformTags", + "definedTags", + "systemTags" + }) + public ComplianceDocumentSummary( + String id, + String name, + java.util.Date timeCreated, + ComplianceDocument.LifecycleState lifecycleState, + String documentFileName, + Integer version, + String type, + String platform, + java.util.Date timeUpdated, + String saasServiceName, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.documentFileName = documentFileName; + this.version = version; + this.type = type; + this.platform = platform; + this.timeUpdated = timeUpdated; + this.saasServiceName = saasServiceName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A unique identifier for the document that is assigned when you create + * the document as an Oracle Cloud Infrastructure resource and is immutable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier for the document that is assigned when you create + * the document as an Oracle Cloud Infrastructure resource and is immutable. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The current lifecycle state of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ComplianceDocument.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the compliance document. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(ComplianceDocument.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The file name of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentFileName") + private String documentFileName; + + /** + * The file name of the compliance document. + * @param documentFileName the value to set + * @return this builder + **/ + public Builder documentFileName(String documentFileName) { + this.documentFileName = documentFileName; + this.__explicitlySet__.add("documentFileName"); + return this; + } + /** + * The version number of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + /** + * The version number of the compliance document. + * @param version the value to set + * @return this builder + **/ + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The type of compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The type of compliance document. + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The environment, also known as platform or business pillar, to which the compliance document belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * The environment, also known as platform or business pillar, to which the compliance document belongs. + * @param platform the value to set + * @return this builder + **/ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The saas service name to which compliance document belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("saasServiceName") + private String saasServiceName; + + /** + * The saas service name to which compliance document belongs. + * @param saasServiceName the value to set + * @return this builder + **/ + public Builder saasServiceName(String saasServiceName) { + this.saasServiceName = saasServiceName; + this.__explicitlySet__.add("saasServiceName"); + 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.oracle.com/iaas/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.oracle.com/iaas/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 ComplianceDocumentSummary build() { + ComplianceDocumentSummary model = + new ComplianceDocumentSummary( + this.id, + this.name, + this.timeCreated, + this.lifecycleState, + this.documentFileName, + this.version, + this.type, + this.platform, + this.timeUpdated, + this.saasServiceName, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceDocumentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("documentFileName")) { + this.documentFileName(model.getDocumentFileName()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("saasServiceName")) { + this.saasServiceName(model.getSaasServiceName()); + } + 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); + } + + /** + * A unique identifier for the document that is assigned when you create + * the document as an Oracle Cloud Infrastructure resource and is immutable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier for the document that is assigned when you create + * the document as an Oracle Cloud Infrastructure resource and is immutable. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A friendly name or title for the compliance document. You cannot update this value later. + * Avoid entering confidential information. + * + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the compliance document was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The current lifecycle state of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ComplianceDocument.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the compliance document. + * @return the value + **/ + public ComplianceDocument.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The file name of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentFileName") + private final String documentFileName; + + /** + * The file name of the compliance document. + * @return the value + **/ + public String getDocumentFileName() { + return documentFileName; + } + + /** + * The version number of the compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The version number of the compliance document. + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * The type of compliance document. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The type of compliance document. + * @return the value + **/ + public String getType() { + return type; + } + + /** + * The environment, also known as platform or business pillar, to which the compliance document belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * The environment, also known as platform or business pillar, to which the compliance document belongs. + * @return the value + **/ + public String getPlatform() { + return platform; + } + + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the compliance document was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The saas service name to which compliance document belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("saasServiceName") + private final String saasServiceName; + + /** + * The saas service name to which compliance document belongs. + * @return the value + **/ + public String getSaasServiceName() { + return saasServiceName; + } + + /** + * 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.oracle.com/iaas/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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceDocumentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", documentFileName=").append(String.valueOf(this.documentFileName)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", saasServiceName=").append(String.valueOf(this.saasServiceName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceDocumentSummary)) { + return false; + } + + ComplianceDocumentSummary other = (ComplianceDocumentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.documentFileName, other.documentFileName) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.saasServiceName, other.saasServiceName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.documentFileName == null ? 43 : this.documentFileName.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.saasServiceName == null ? 43 : this.saasServiceName.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/ContinuousQueryStartPolicy.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ContinuousQueryStartPolicy.java index c822248e085..12b7657f1d2 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ContinuousQueryStartPolicy.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ContinuousQueryStartPolicy.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cloudguard.model; /** - * Start policy for continuous query + * DEPRECATED - Start policy for continuous query *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateNonDisclosureAgreementDetails.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateNonDisclosureAgreementDetails.java new file mode 100644 index 00000000000..32890e0725b --- /dev/null +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateNonDisclosureAgreementDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudguard.model; + +/** + * Details to use to create a new non-disclosure agreement for a particular compliance document. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateNonDisclosureAgreementDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateNonDisclosureAgreementDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"documentId", "compartmentId"}) + public CreateNonDisclosureAgreementDetails(String documentId, String compartmentId) { + super(); + this.documentId = documentId; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The ID of the compliance document associated with the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentId") + private String documentId; + + /** + * The ID of the compliance document associated with the non-disclosure agreement. + * @param documentId the value to set + * @return this builder + **/ + public Builder documentId(String documentId) { + this.documentId = documentId; + this.__explicitlySet__.add("documentId"); + return this; + } + /** + * The OCID of the compartment that contains the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the non-disclosure agreement. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateNonDisclosureAgreementDetails build() { + CreateNonDisclosureAgreementDetails model = + new CreateNonDisclosureAgreementDetails(this.documentId, this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateNonDisclosureAgreementDetails model) { + if (model.wasPropertyExplicitlySet("documentId")) { + this.documentId(model.getDocumentId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The ID of the compliance document associated with the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentId") + private final String documentId; + + /** + * The ID of the compliance document associated with the non-disclosure agreement. + * @return the value + **/ + public String getDocumentId() { + return documentId; + } + + /** + * The OCID of the compartment that contains the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the non-disclosure agreement. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateNonDisclosureAgreementDetails("); + sb.append("super=").append(super.toString()); + sb.append("documentId=").append(String.valueOf(this.documentId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNonDisclosureAgreementDetails)) { + return false; + } + + CreateNonDisclosureAgreementDetails other = (CreateNonDisclosureAgreementDetails) o; + return java.util.Objects.equals(this.documentId, other.documentId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.documentId == null ? 43 : this.documentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateSecurityZoneDetails.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateSecurityZoneDetails.java index 5e224cc0915..a8aa7b82bd6 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateSecurityZoneDetails.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/CreateSecurityZoneDetails.java @@ -27,6 +27,7 @@ public final class CreateSecurityZoneDetails "description", "securityZoneRecipeId", "compartmentId", + "isInheritanceAfterDeleteEnabled", "freeformTags", "definedTags" }) @@ -35,6 +36,7 @@ public CreateSecurityZoneDetails( String description, String securityZoneRecipeId, String compartmentId, + Boolean isInheritanceAfterDeleteEnabled, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -42,6 +44,7 @@ public CreateSecurityZoneDetails( this.description = description; this.securityZoneRecipeId = securityZoneRecipeId; this.compartmentId = compartmentId; + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -112,6 +115,22 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @param isInheritanceAfterDeleteEnabled the value to set + * @return this builder + **/ + public Builder isInheritanceAfterDeleteEnabled(Boolean isInheritanceAfterDeleteEnabled) { + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; + this.__explicitlySet__.add("isInheritanceAfterDeleteEnabled"); + 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"}} @@ -168,6 +187,7 @@ public CreateSecurityZoneDetails build() { this.description, this.securityZoneRecipeId, this.compartmentId, + this.isInheritanceAfterDeleteEnabled, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -190,6 +210,9 @@ public Builder copy(CreateSecurityZoneDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("isInheritanceAfterDeleteEnabled")) { + this.isInheritanceAfterDeleteEnabled(model.getIsInheritanceAfterDeleteEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -267,6 +290,20 @@ public String getCompartmentId() { return compartmentId; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private final Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @return the value + **/ + public Boolean getIsInheritanceAfterDeleteEnabled() { + return isInheritanceAfterDeleteEnabled; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -325,6 +362,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", securityZoneRecipeId=").append(String.valueOf(this.securityZoneRecipeId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", isInheritanceAfterDeleteEnabled=") + .append(String.valueOf(this.isInheritanceAfterDeleteEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -345,6 +384,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.securityZoneRecipeId, other.securityZoneRecipeId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.isInheritanceAfterDeleteEnabled, other.isInheritanceAfterDeleteEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -364,6 +405,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.isInheritanceAfterDeleteEnabled == null + ? 43 + : this.isInheritanceAfterDeleteEnabled.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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/DataSourceStatus.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/DataSourceStatus.java index 31e71f803fe..84571ae2457 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/DataSourceStatus.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/DataSourceStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cloudguard.model; /** - * The enablement status of the data source + * The enablement status of the data source with value of ENABLED or DISABLED **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") public enum DataSourceStatus { diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/LoggingQueryDataSourceDetails.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/LoggingQueryDataSourceDetails.java index c92b3e0bff4..aa3d549d968 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/LoggingQueryDataSourceDetails.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/LoggingQueryDataSourceDetails.java @@ -76,13 +76,13 @@ public Builder intervalInMinutes(Integer intervalInMinutes) { return this; } /** - * The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event + * DEPRECATED - The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event **/ @com.fasterxml.jackson.annotation.JsonProperty("threshold") private Integer threshold; /** - * The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event + * DEPRECATED - The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event * @param threshold the value to set * @return this builder **/ @@ -101,13 +101,13 @@ public Builder queryStartTime(ContinuousQueryStartPolicy queryStartTime) { return this; } /** - * Operator used in data source + * DEPRECATED - Operator used in data source **/ @com.fasterxml.jackson.annotation.JsonProperty("operator") private LoggingQueryOperatorType operator; /** - * Operator used in data source + * DEPRECATED - Operator used in data source * @param operator the value to set * @return this builder **/ @@ -289,13 +289,13 @@ public Integer getIntervalInMinutes() { } /** - * The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event + * DEPRECATED - The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event **/ @com.fasterxml.jackson.annotation.JsonProperty("threshold") private final Integer threshold; /** - * The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event + * DEPRECATED - The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event * @return the value **/ public Integer getThreshold() { @@ -310,13 +310,13 @@ public ContinuousQueryStartPolicy getQueryStartTime() { } /** - * Operator used in data source + * DEPRECATED - Operator used in data source **/ @com.fasterxml.jackson.annotation.JsonProperty("operator") private final LoggingQueryOperatorType operator; /** - * Operator used in data source + * DEPRECATED - Operator used in data source * @return the value **/ public LoggingQueryOperatorType getOperator() { diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NoDelayStartPolicy.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NoDelayStartPolicy.java index 1c25280b34a..6eef450f6cf 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NoDelayStartPolicy.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NoDelayStartPolicy.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cloudguard.model; /** - * Continuous query start policy that starts the query immediately + * DEPRECATED - Continuous query start policy that starts the query immediately *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NonDisclosureAgreement.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NonDisclosureAgreement.java new file mode 100644 index 00000000000..c2e82ed97b2 --- /dev/null +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/NonDisclosureAgreement.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudguard.model; + +/** + * A non-disclosure agreement that describes terms of use for a particular compliance document. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NonDisclosureAgreement.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NonDisclosureAgreement + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "timeCreated", + "documentId", + "userId", + "compartmentId", + "agreementContent" + }) + public NonDisclosureAgreement( + String id, + java.util.Date timeCreated, + String documentId, + String userId, + String compartmentId, + String agreementContent) { + super(); + this.id = id; + this.timeCreated = timeCreated; + this.documentId = documentId; + this.userId = userId; + this.compartmentId = compartmentId; + this.agreementContent = agreementContent; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the non-disclosure agreement, which is assigned + * when you create the non-disclosure agreement as an Oracle Cloud Infrastructure resource and is immutable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the non-disclosure agreement, which is assigned + * when you create the non-disclosure agreement as an Oracle Cloud Infrastructure resource and is immutable. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The date and time the non-disclosure agreement was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the non-disclosure agreement was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The ID of the compliance document associated with the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentId") + private String documentId; + + /** + * The ID of the compliance document associated with the non-disclosure agreement. + * @param documentId the value to set + * @return this builder + **/ + public Builder documentId(String documentId) { + this.documentId = documentId; + this.__explicitlySet__.add("documentId"); + return this; + } + /** + * The OCID of the principal that called [CreateNonDisclosureAgreement](https://docs.oracle.com/iaas/api/#/en/compliancedocs/release/NonDisclosureAgreement/CreateNonDisclosureAgreement). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * The OCID of the principal that called [CreateNonDisclosureAgreement](https://docs.oracle.com/iaas/api/#/en/compliancedocs/release/NonDisclosureAgreement/CreateNonDisclosureAgreement). + * @param userId the value to set + * @return this builder + **/ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + /** + * The OCID of the compartment that contains the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the non-disclosure agreement. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The actual terms of the non-disclosure agreement between the customer and Oracle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("agreementContent") + private String agreementContent; + + /** + * The actual terms of the non-disclosure agreement between the customer and Oracle. + * @param agreementContent the value to set + * @return this builder + **/ + public Builder agreementContent(String agreementContent) { + this.agreementContent = agreementContent; + this.__explicitlySet__.add("agreementContent"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NonDisclosureAgreement build() { + NonDisclosureAgreement model = + new NonDisclosureAgreement( + this.id, + this.timeCreated, + this.documentId, + this.userId, + this.compartmentId, + this.agreementContent); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NonDisclosureAgreement model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("documentId")) { + this.documentId(model.getDocumentId()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("agreementContent")) { + this.agreementContent(model.getAgreementContent()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the non-disclosure agreement, which is assigned + * when you create the non-disclosure agreement as an Oracle Cloud Infrastructure resource and is immutable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the non-disclosure agreement, which is assigned + * when you create the non-disclosure agreement as an Oracle Cloud Infrastructure resource and is immutable. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The date and time the non-disclosure agreement was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the non-disclosure agreement was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The ID of the compliance document associated with the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentId") + private final String documentId; + + /** + * The ID of the compliance document associated with the non-disclosure agreement. + * @return the value + **/ + public String getDocumentId() { + return documentId; + } + + /** + * The OCID of the principal that called [CreateNonDisclosureAgreement](https://docs.oracle.com/iaas/api/#/en/compliancedocs/release/NonDisclosureAgreement/CreateNonDisclosureAgreement). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * The OCID of the principal that called [CreateNonDisclosureAgreement](https://docs.oracle.com/iaas/api/#/en/compliancedocs/release/NonDisclosureAgreement/CreateNonDisclosureAgreement). + * @return the value + **/ + public String getUserId() { + return userId; + } + + /** + * The OCID of the compartment that contains the non-disclosure agreement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the non-disclosure agreement. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The actual terms of the non-disclosure agreement between the customer and Oracle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("agreementContent") + private final String agreementContent; + + /** + * The actual terms of the non-disclosure agreement between the customer and Oracle. + * @return the value + **/ + public String getAgreementContent() { + return agreementContent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NonDisclosureAgreement("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", documentId=").append(String.valueOf(this.documentId)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", agreementContent=").append(String.valueOf(this.agreementContent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NonDisclosureAgreement)) { + return false; + } + + NonDisclosureAgreement other = (NonDisclosureAgreement) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.documentId, other.documentId) + && java.util.Objects.equals(this.userId, other.userId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.agreementContent, other.agreementContent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.documentId == null ? 43 : this.documentId.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.agreementContent == null ? 43 : this.agreementContent.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ScheduledQueryDataSourceObjDetails.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ScheduledQueryDataSourceObjDetails.java index 36d18b265a4..9f8aa5d8090 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ScheduledQueryDataSourceObjDetails.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ScheduledQueryDataSourceObjDetails.java @@ -60,13 +60,13 @@ public Builder description(String description) { return this; } /** - * Interval in minutes which query is run periodically. + * Interval in seconds which query is run periodically. **/ @com.fasterxml.jackson.annotation.JsonProperty("intervalInSeconds") private Integer intervalInSeconds; /** - * Interval in minutes which query is run periodically. + * Interval in seconds which query is run periodically. * @param intervalInSeconds the value to set * @return this builder **/ @@ -180,13 +180,13 @@ public String getDescription() { } /** - * Interval in minutes which query is run periodically. + * Interval in seconds which query is run periodically. **/ @com.fasterxml.jackson.annotation.JsonProperty("intervalInSeconds") private final Integer intervalInSeconds; /** - * Interval in minutes which query is run periodically. + * Interval in seconds which query is run periodically. * @return the value **/ public Integer getIntervalInSeconds() { diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZone.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZone.java index 54423bdd606..60802464740 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZone.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZone.java @@ -34,6 +34,7 @@ public final class SecurityZone extends com.oracle.bmc.http.internal.ExplicitlyS "timeUpdated", "lifecycleState", "lifecycleDetails", + "isInheritanceAfterDeleteEnabled", "freeformTags", "definedTags", "systemTags" @@ -50,6 +51,7 @@ public SecurityZone( java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleDetails, + Boolean isInheritanceAfterDeleteEnabled, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -65,6 +67,7 @@ public SecurityZone( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -248,6 +251,22 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @param isInheritanceAfterDeleteEnabled the value to set + * @return this builder + **/ + public Builder isInheritanceAfterDeleteEnabled(Boolean isInheritanceAfterDeleteEnabled) { + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; + this.__explicitlySet__.add("isInheritanceAfterDeleteEnabled"); + 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"}} @@ -337,6 +356,7 @@ public SecurityZone build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.isInheritanceAfterDeleteEnabled, this.freeformTags, this.definedTags, this.systemTags); @@ -381,6 +401,9 @@ public Builder copy(SecurityZone model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isInheritanceAfterDeleteEnabled")) { + this.isInheritanceAfterDeleteEnabled(model.getIsInheritanceAfterDeleteEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -559,6 +582,20 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private final Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @return the value + **/ + public Boolean getIsInheritanceAfterDeleteEnabled() { + return isInheritanceAfterDeleteEnabled; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -649,6 +686,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isInheritanceAfterDeleteEnabled=") + .append(String.valueOf(this.isInheritanceAfterDeleteEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -678,6 +717,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.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isInheritanceAfterDeleteEnabled, other.isInheritanceAfterDeleteEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -717,6 +758,11 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isInheritanceAfterDeleteEnabled == null + ? 43 + : this.isInheritanceAfterDeleteEnabled.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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZoneSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZoneSummary.java index d4e38abd378..da8e6986a58 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZoneSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityZoneSummary.java @@ -33,6 +33,7 @@ public final class SecurityZoneSummary extends com.oracle.bmc.http.internal.Expl "timeUpdated", "lifecycleState", "lifecycleDetails", + "isInheritanceAfterDeleteEnabled", "freeformTags", "definedTags", "systemTags" @@ -47,6 +48,7 @@ public SecurityZoneSummary( java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleDetails, + Boolean isInheritanceAfterDeleteEnabled, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -60,6 +62,7 @@ public SecurityZoneSummary( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -211,6 +214,22 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @param isInheritanceAfterDeleteEnabled the value to set + * @return this builder + **/ + public Builder isInheritanceAfterDeleteEnabled(Boolean isInheritanceAfterDeleteEnabled) { + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; + this.__explicitlySet__.add("isInheritanceAfterDeleteEnabled"); + 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"}} @@ -298,6 +317,7 @@ public SecurityZoneSummary build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.isInheritanceAfterDeleteEnabled, this.freeformTags, this.definedTags, this.systemTags); @@ -336,6 +356,9 @@ public Builder copy(SecurityZoneSummary model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isInheritanceAfterDeleteEnabled")) { + this.isInheritanceAfterDeleteEnabled(model.getIsInheritanceAfterDeleteEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -486,6 +509,20 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private final Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @return the value + **/ + public Boolean getIsInheritanceAfterDeleteEnabled() { + return isInheritanceAfterDeleteEnabled; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -573,6 +610,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isInheritanceAfterDeleteEnabled=") + .append(String.valueOf(this.isInheritanceAfterDeleteEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -599,6 +638,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.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isInheritanceAfterDeleteEnabled, other.isInheritanceAfterDeleteEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -628,6 +669,11 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isInheritanceAfterDeleteEnabled == null + ? 43 + : this.isInheritanceAfterDeleteEnabled.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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ServiceCollection.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ServiceCollection.java new file mode 100644 index 00000000000..1a65a6c9134 --- /dev/null +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ServiceCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudguard.model; + +/** + * A list of Compliance Document Services which exists in the tenancy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ServiceCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ServiceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * An array of ServiceSummary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of ServiceSummary. + * @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 ServiceCollection build() { + ServiceCollection model = new ServiceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * An array of ServiceSummary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of ServiceSummary. + * @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("ServiceCollection("); + 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 ServiceCollection)) { + return false; + } + + ServiceCollection other = (ServiceCollection) 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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ServiceSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ServiceSummary.java new file mode 100644 index 00000000000..22d168f2acd --- /dev/null +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ServiceSummary.java @@ -0,0 +1,535 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudguard.model; + +/** + * A SaaS service which exists in the tenancy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ServiceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ServiceSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "saasServiceName", + "serviceOverviewPath", + "region", + "freeformTags", + "definedTags", + "systemTags" + }) + public ServiceSummary( + String id, + String displayName, + String compartmentId, + String saasServiceName, + String serviceOverviewPath, + String region, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.saasServiceName = saasServiceName; + this.serviceOverviewPath = serviceOverviewPath; + this.region = region; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The ocid of the service. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The ocid of the service. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The Value to be displayed on the One Console + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The Value to be displayed on the One Console + * + * @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. Always a tenancy OCID + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment. Always a tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The service name of the service. This value is fetched from Tenant-Manager which syncs with TAS + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("saasServiceName") + private String saasServiceName; + + /** + * The service name of the service. This value is fetched from Tenant-Manager which syncs with TAS + * + * @param saasServiceName the value to set + * @return this builder + **/ + public Builder saasServiceName(String saasServiceName) { + this.saasServiceName = saasServiceName; + this.__explicitlySet__.add("saasServiceName"); + return this; + } + /** + * The service overview path of the service. This value is used to perform navigation to the service overview page. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceOverviewPath") + private String serviceOverviewPath; + + /** + * The service overview path of the service. This value is used to perform navigation to the service overview page. + * + * @param serviceOverviewPath the value to set + * @return this builder + **/ + public Builder serviceOverviewPath(String serviceOverviewPath) { + this.serviceOverviewPath = serviceOverviewPath; + this.__explicitlySet__.add("serviceOverviewPath"); + return this; + } + /** + * The region in which the service exists + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The region in which the service exists + * + * @param region the value to set + * @return this builder + **/ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + 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.oracle.com/iaas/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.oracle.com/iaas/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 ServiceSummary build() { + ServiceSummary model = + new ServiceSummary( + this.id, + this.displayName, + this.compartmentId, + this.saasServiceName, + this.serviceOverviewPath, + this.region, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceSummary 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("saasServiceName")) { + this.saasServiceName(model.getSaasServiceName()); + } + if (model.wasPropertyExplicitlySet("serviceOverviewPath")) { + this.serviceOverviewPath(model.getServiceOverviewPath()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + 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 service. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The ocid of the service. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The Value to be displayed on the One Console + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The Value to be displayed on the One Console + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * OCID of the compartment. Always a tenancy OCID + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment. Always a tenancy OCID + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The service name of the service. This value is fetched from Tenant-Manager which syncs with TAS + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("saasServiceName") + private final String saasServiceName; + + /** + * The service name of the service. This value is fetched from Tenant-Manager which syncs with TAS + * + * @return the value + **/ + public String getSaasServiceName() { + return saasServiceName; + } + + /** + * The service overview path of the service. This value is used to perform navigation to the service overview page. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceOverviewPath") + private final String serviceOverviewPath; + + /** + * The service overview path of the service. This value is used to perform navigation to the service overview page. + * + * @return the value + **/ + public String getServiceOverviewPath() { + return serviceOverviewPath; + } + + /** + * The region in which the service exists + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The region in which the service exists + * + * @return the value + **/ + public String getRegion() { + return region; + } + + /** + * 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.oracle.com/iaas/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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ServiceSummary("); + 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(", saasServiceName=").append(String.valueOf(this.saasServiceName)); + sb.append(", serviceOverviewPath=").append(String.valueOf(this.serviceOverviewPath)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceSummary)) { + return false; + } + + ServiceSummary other = (ServiceSummary) 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.saasServiceName, other.saasServiceName) + && java.util.Objects.equals(this.serviceOverviewPath, other.serviceOverviewPath) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.saasServiceName == null ? 43 : this.saasServiceName.hashCode()); + result = + (result * PRIME) + + (this.serviceOverviewPath == null + ? 43 + : this.serviceOverviewPath.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.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/UpdateSecurityZoneDetails.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/UpdateSecurityZoneDetails.java index a95cb5394f9..b72b97e1077 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/UpdateSecurityZoneDetails.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/UpdateSecurityZoneDetails.java @@ -26,6 +26,7 @@ public final class UpdateSecurityZoneDetails "displayName", "description", "securityZoneRecipeId", + "isInheritanceAfterDeleteEnabled", "freeformTags", "definedTags" }) @@ -33,12 +34,14 @@ public UpdateSecurityZoneDetails( String displayName, String description, String securityZoneRecipeId, + Boolean isInheritanceAfterDeleteEnabled, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.description = description; this.securityZoneRecipeId = securityZoneRecipeId; + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -93,6 +96,22 @@ public Builder securityZoneRecipeId(String securityZoneRecipeId) { this.__explicitlySet__.add("securityZoneRecipeId"); return this; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @param isInheritanceAfterDeleteEnabled the value to set + * @return this builder + **/ + public Builder isInheritanceAfterDeleteEnabled(Boolean isInheritanceAfterDeleteEnabled) { + this.isInheritanceAfterDeleteEnabled = isInheritanceAfterDeleteEnabled; + this.__explicitlySet__.add("isInheritanceAfterDeleteEnabled"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -148,6 +167,7 @@ public UpdateSecurityZoneDetails build() { this.displayName, this.description, this.securityZoneRecipeId, + this.isInheritanceAfterDeleteEnabled, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -167,6 +187,9 @@ public Builder copy(UpdateSecurityZoneDetails model) { if (model.wasPropertyExplicitlySet("securityZoneRecipeId")) { this.securityZoneRecipeId(model.getSecurityZoneRecipeId()); } + if (model.wasPropertyExplicitlySet("isInheritanceAfterDeleteEnabled")) { + this.isInheritanceAfterDeleteEnabled(model.getIsInheritanceAfterDeleteEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -230,6 +253,20 @@ public String getSecurityZoneRecipeId() { return securityZoneRecipeId; } + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInheritanceAfterDeleteEnabled") + private final Boolean isInheritanceAfterDeleteEnabled; + + /** + * Indicates if upon deletion of the security zone the comparment should inherit parent security zone + * @return the value + **/ + public Boolean getIsInheritanceAfterDeleteEnabled() { + return isInheritanceAfterDeleteEnabled; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -287,6 +324,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", securityZoneRecipeId=").append(String.valueOf(this.securityZoneRecipeId)); + sb.append(", isInheritanceAfterDeleteEnabled=") + .append(String.valueOf(this.isInheritanceAfterDeleteEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -306,6 +345,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.securityZoneRecipeId, other.securityZoneRecipeId) + && java.util.Objects.equals( + this.isInheritanceAfterDeleteEnabled, other.isInheritanceAfterDeleteEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -322,6 +363,11 @@ public int hashCode() { + (this.securityZoneRecipeId == null ? 43 : this.securityZoneRecipeId.hashCode()); + result = + (result * PRIME) + + (this.isInheritanceAfterDeleteEnabled == null + ? 43 + : this.isInheritanceAfterDeleteEnabled.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-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 211cb55d9b4..2b806ce458c 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java index d8244196fb8..307bbb95544 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java @@ -18,6 +18,50 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LogicalUnit.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class LogicalUnit extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public LogicalUnit( + String address, + Long discardMaxSizeInBytes, + Boolean isDiscardZeroesData, + String diskId, + String id, + Integer lunMapping, + LunStatus lunStatus, + String password, + Integer paths, + Integer port, + String portal, + String productId, + String serial, + Integer size, + String storageDomainId, + String target, + String username, + String vendorId, + String volumeGroupId) { + super(); + this.address = address; + this.discardMaxSizeInBytes = discardMaxSizeInBytes; + this.isDiscardZeroesData = isDiscardZeroesData; + this.diskId = diskId; + this.id = id; + this.lunMapping = lunMapping; + this.lunStatus = lunStatus; + this.password = password != null ? password.toCharArray() : null; + this.paths = paths; + this.port = port; + this.portal = portal; + this.productId = productId; + this.serial = serial; + this.size = size; + this.storageDomainId = storageDomainId; + this.target = target; + this.username = username; + this.vendorId = vendorId; + this.volumeGroupId = volumeGroupId; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "address", @@ -48,7 +92,7 @@ public LogicalUnit( String id, Integer lunMapping, LunStatus lunStatus, - String password, + char[] password, Integer paths, Integer port, String portal, @@ -200,18 +244,25 @@ public Builder lunStatus(LunStatus lunStatus) { * Password of the logical unit. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password of the logical unit. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * Paths of the logical unit. **/ @@ -632,13 +683,25 @@ public LunStatus getLunStatus() { * Password of the logical unit. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Password of the logical unit. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Password of the logical unit. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java index b1ec770c75e..45bb3c3471a 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java @@ -18,6 +18,54 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Storage.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class Storage extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public Storage( + String id, + String address, + String comment, + String storageDescription, + java.util.List driverOptions, + java.util.List driverSensitiveOptions, + java.util.List logicalUnits, + String mountOptions, + Integer nfsRetrans, + Integer nfsTimeo, + NfsVersion nfsVersion, + Boolean isOverrideLuns, + String password, + Integer paths, + Integer port, + String portal, + String target, + String username, + Type type, + String vfsType, + VolumeGroup volumeGroup) { + super(); + this.id = id; + this.address = address; + this.comment = comment; + this.storageDescription = storageDescription; + this.driverOptions = driverOptions; + this.driverSensitiveOptions = driverSensitiveOptions; + this.logicalUnits = logicalUnits; + this.mountOptions = mountOptions; + this.nfsRetrans = nfsRetrans; + this.nfsTimeo = nfsTimeo; + this.nfsVersion = nfsVersion; + this.isOverrideLuns = isOverrideLuns; + this.password = password != null ? password.toCharArray() : null; + this.paths = paths; + this.port = port; + this.portal = portal; + this.target = target; + this.username = username; + this.type = type; + this.vfsType = vfsType; + this.volumeGroup = volumeGroup; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "id", @@ -55,7 +103,7 @@ public Storage( Integer nfsTimeo, NfsVersion nfsVersion, Boolean isOverrideLuns, - String password, + char[] password, Integer paths, Integer port, String portal, @@ -286,18 +334,25 @@ public Builder isOverrideLuns(Boolean isOverrideLuns) { * Password of the host storage. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password of the host storage. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * Paths of the host storage. **/ @@ -744,13 +799,25 @@ public Boolean getIsOverrideLuns() { * Password of the host storage. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Password of the host storage. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Password of the host storage. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 16b8596d4bb..1571494752d 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/AdditionalCapabilityDetails.java b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/AdditionalCapabilityDetails.java new file mode 100644 index 00000000000..239777d9f50 --- /dev/null +++ b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/AdditionalCapabilityDetails.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterplacementgroups.model; + +/** + * Additional details describing the selected capability. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "serviceType", + defaultImpl = AdditionalCapabilityDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdditionalComputeCapabilityDetails.class, + name = "COMPUTE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AdditionalCapabilityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected AdditionalCapabilityDetails() { + 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("AdditionalCapabilityDetails("); + 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 AdditionalCapabilityDetails)) { + return false; + } + + AdditionalCapabilityDetails other = (AdditionalCapabilityDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Additional details about what service provides the capability. For example, {@code COMPUTE} means that the Oracle Cloud Infrastructure Compute service provides the selected capability. + * + **/ + public enum ServiceType { + Compute("COMPUTE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ServiceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServiceType v : ServiceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServiceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServiceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServiceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/AdditionalComputeCapabilityDetails.java b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/AdditionalComputeCapabilityDetails.java new file mode 100644 index 00000000000..af7e44f0ee0 --- /dev/null +++ b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/AdditionalComputeCapabilityDetails.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterplacementgroups.model; + +/** + * Additional details about the COMPUTE capability. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdditionalComputeCapabilityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "serviceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AdditionalComputeCapabilityDetails extends AdditionalCapabilityDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The amount of memory (in GBs) needed in the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Float memoryInGBs; + + /** + * The amount of memory (in GBs) needed in the instance. + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Float memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + /** + * The number of OCPUs needed in the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private Float ocpus; + + /** + * The number of OCPUs needed in the instance. + * @param ocpus the value to set + * @return this builder + **/ + public Builder ocpus(Float ocpus) { + this.ocpus = ocpus; + this.__explicitlySet__.add("ocpus"); + return this; + } + /** + * The number of NVMe drives to use for storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nvmes") + private Integer nvmes; + + /** + * The number of NVMe drives to use for storage. + * + * @param nvmes the value to set + * @return this builder + **/ + public Builder nvmes(Integer nvmes) { + this.nvmes = nvmes; + this.__explicitlySet__.add("nvmes"); + return this; + } + /** + * The number of instances or size of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private Integer count; + + /** + * The number of instances or size of the resource. + * @param count the value to set + * @return this builder + **/ + public Builder count(Integer count) { + this.count = count; + this.__explicitlySet__.add("count"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdditionalComputeCapabilityDetails build() { + AdditionalComputeCapabilityDetails model = + new AdditionalComputeCapabilityDetails( + this.memoryInGBs, this.ocpus, this.nvmes, this.count); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdditionalComputeCapabilityDetails model) { + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("ocpus")) { + this.ocpus(model.getOcpus()); + } + if (model.wasPropertyExplicitlySet("nvmes")) { + this.nvmes(model.getNvmes()); + } + if (model.wasPropertyExplicitlySet("count")) { + this.count(model.getCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdditionalComputeCapabilityDetails( + Float memoryInGBs, Float ocpus, Integer nvmes, Integer count) { + super(); + this.memoryInGBs = memoryInGBs; + this.ocpus = ocpus; + this.nvmes = nvmes; + this.count = count; + } + + /** + * The amount of memory (in GBs) needed in the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Float memoryInGBs; + + /** + * The amount of memory (in GBs) needed in the instance. + * @return the value + **/ + public Float getMemoryInGBs() { + return memoryInGBs; + } + + /** + * The number of OCPUs needed in the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private final Float ocpus; + + /** + * The number of OCPUs needed in the instance. + * @return the value + **/ + public Float getOcpus() { + return ocpus; + } + + /** + * The number of NVMe drives to use for storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nvmes") + private final Integer nvmes; + + /** + * The number of NVMe drives to use for storage. + * + * @return the value + **/ + public Integer getNvmes() { + return nvmes; + } + + /** + * The number of instances or size of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private final Integer count; + + /** + * The number of instances or size of the resource. + * @return the value + **/ + public Integer getCount() { + return count; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdditionalComputeCapabilityDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", ocpus=").append(String.valueOf(this.ocpus)); + sb.append(", nvmes=").append(String.valueOf(this.nvmes)); + sb.append(", count=").append(String.valueOf(this.count)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdditionalComputeCapabilityDetails)) { + return false; + } + + AdditionalComputeCapabilityDetails other = (AdditionalComputeCapabilityDetails) o; + return java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.ocpus, other.ocpus) + && java.util.Objects.equals(this.nvmes, other.nvmes) + && java.util.Objects.equals(this.count, other.count) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); + result = (result * PRIME) + (this.nvmes == null ? 43 : this.nvmes.hashCode()); + result = (result * PRIME) + (this.count == null ? 43 : this.count.hashCode()); + return result; + } +} diff --git a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/CapabilityDetails.java b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/CapabilityDetails.java index d7b2cb858f3..6586dc737f4 100644 --- a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/CapabilityDetails.java +++ b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/model/CapabilityDetails.java @@ -21,11 +21,13 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class CapabilityDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"service", "name"}) - public CapabilityDetails(String service, String name) { + @java.beans.ConstructorProperties({"service", "name", "additionalDetails"}) + public CapabilityDetails( + String service, String name, AdditionalCapabilityDetails additionalDetails) { super(); this.service = service; this.name = name; + this.additionalDetails = additionalDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -63,11 +65,21 @@ public Builder name(String name) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private AdditionalCapabilityDetails additionalDetails; + + public Builder additionalDetails(AdditionalCapabilityDetails additionalDetails) { + this.additionalDetails = additionalDetails; + this.__explicitlySet__.add("additionalDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CapabilityDetails build() { - CapabilityDetails model = new CapabilityDetails(this.service, this.name); + CapabilityDetails model = + new CapabilityDetails(this.service, this.name, this.additionalDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -82,6 +94,9 @@ public Builder copy(CapabilityDetails model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } + if (model.wasPropertyExplicitlySet("additionalDetails")) { + this.additionalDetails(model.getAdditionalDetails()); + } return this; } } @@ -125,6 +140,13 @@ public String getName() { return name; } + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private final AdditionalCapabilityDetails additionalDetails; + + public AdditionalCapabilityDetails getAdditionalDetails() { + return additionalDetails; + } + @Override public String toString() { return this.toString(true); @@ -141,6 +163,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("service=").append(String.valueOf(this.service)); sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); sb.append(")"); return sb.toString(); } @@ -157,6 +180,7 @@ public boolean equals(Object o) { CapabilityDetails other = (CapabilityDetails) o; return java.util.Objects.equals(this.service, other.service) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) && super.equals(other); } @@ -166,6 +190,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.service == null ? 43 : this.service.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.additionalDetails == null ? 43 : this.additionalDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 218715a4a15..678cb1da36b 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -92,7 +92,7 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.91.0 + 2.93.0 diff --git a/bmc-common/src/main/java/com/oracle/bmc/Options.java b/bmc-common/src/main/java/com/oracle/bmc/Options.java index 06d08dd4fcf..3e3b30b45f2 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Options.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Options.java @@ -80,4 +80,55 @@ private static void initializeTokenRefreshRetryEnabled() { public static boolean isTokenRefreshRetrierEnabled() { return TOKEN_REFRESH_RETRY_ENABLED; } + + /** + * The prefix for the system property key that controls whether the ConnectionPoolingApacheConfigurator is + * enabled by default. + * + * The default of this property is "true". Note that not all clients set a ConnectionPoolingApacheConfigurator + * as default configurator. + */ + private static final String + JAVASDK_DEFAULT_CONNECTION_POOLING_APACHE_CONFIGURATOR_ENABLED_GLOBAL = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.global"; + + /** + * The prefix for the system property key that controls whether the ConnectionPoolingApacheConfigurator is + * enabled by default. + * The whole system property key can be constructed by appending the fully-qualified class name, e.g. + * "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient". + * + * The default of this property is "true". Note that not all clients set a ConnectionPoolingApacheConfigurator + * as default configurator. + */ + private static final String + JAVASDK_DEFAULT_CONNECTION_POOLING_APACHE_CONFIGURATOR_ENABLED_PREFIX = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled."; + + /** + * Returns true if the ConnectionPoolingApacheConfigurator should be used for the given class name, + * provided it has been set as default configurator by the client. + * @param className fully-qualified class name of the client + * @return true if ConnectionPoolingApacheConfigurator should be used, provided it has been set by the client + */ + public static boolean isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + String className) { + String key = JAVASDK_DEFAULT_CONNECTION_POOLING_APACHE_CONFIGURATOR_ENABLED_GLOBAL; + boolean globalValue = Boolean.parseBoolean(System.getProperty(key, "true")); + if (!globalValue) { + LOG.info( + "ConnectionPoolingApacheConfigurator as default for all clients has been disabled by system property {}", + key); + } + + key = JAVASDK_DEFAULT_CONNECTION_POOLING_APACHE_CONFIGURATOR_ENABLED_PREFIX + className; + boolean classValue = Boolean.parseBoolean(System.getProperty(key, "true")); + if (!classValue) { + LOG.info( + "ConnectionPoolingApacheConfigurator as default for client {} has been disabled by system property {}", + className, + key); + } + return globalValue && classValue; + } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/Region.java b/bmc-common/src/main/java/com/oracle/bmc/Region.java index fcb3699e99b..e951d105e01 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Region.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Region.java @@ -179,6 +179,7 @@ private static String getDefaultRealmFromEnv() { // OC21 public static final Region ME_DCC_DOHA_1 = register("me-dcc-doha-1", Realm.OC21, "doh"); + public static final Region ME_ALRAYYAN_1 = register("me-alrayyan-1", Realm.OC21, "vve"); // OC26 public static final Region ME_ABUDHABI_3 = register("me-abudhabi-3", Realm.OC26, "ahu"); diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/internal/SecurityTokenAdapter.java b/bmc-common/src/main/java/com/oracle/bmc/auth/internal/SecurityTokenAdapter.java index 776a9ed8ff7..5d6df6d0494 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/internal/SecurityTokenAdapter.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/internal/SecurityTokenAdapter.java @@ -149,4 +149,23 @@ public Duration getTokenValidDuration() { public String getSecurityToken() { return this.securityToken; } + + /** + * Get the remaining duration for which the token is valid, from current time to expiration + * time. + * + * @return token remaining validity duration Example: If the token expires at + * 2025-12-08T15:00:00Z and the current time is 2025-12-08T14:30:00Z, this method will + * return a Duration of 30 minutes. + */ + public Duration getTokenRemainingDuration() { + return jwt.map( + jwtClaimsSet -> { + Date exp = jwtClaimsSet.getExpirationTime(); + return (exp != null) + ? Duration.between(Instant.now(), exp.toInstant()) + : Duration.ZERO; + }) + .orElse(Duration.ZERO); + } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/IdleConnectionMonitor.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/IdleConnectionMonitor.java index c60654419d5..bb04b50de35 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/IdleConnectionMonitor.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/IdleConnectionMonitor.java @@ -30,6 +30,9 @@ public class IdleConnectionMonitor extends Thread { * Single instance of the connection monitor to track idle connections for all clients. */ @VisibleForTesting static volatile IdleConnectionMonitor instance; + // Minimal test hooks allow deterministic scheduling of rare lifecycle races. + private static volatile Runnable beforeRegisterConnectionManagerPutHookForTest; + private static volatile Runnable beforeInterruptCleanupHookForTest; private volatile boolean shutdown; private volatile int waitTimeInSeconds; @@ -54,21 +57,22 @@ private IdleConnectionMonitor(int waitTimeInSeconds) { * @param idleTimeoutInSeconds The idle timeout - close connections that have been idle longer than idleTimeoutInSeconds seconds * @return {@code true} if the connection manager has been successfully registered; otherwise {@code false}. */ - public static boolean registerConnectionManager( + public static synchronized boolean registerConnectionManager( HttpClientConnectionManager connectionManager, int waitTimeInSeconds, int idleTimeoutInSeconds) { cleanStaleReferences(); - if (instance == null) { - synchronized (IdleConnectionMonitor.class) { - if (instance == null) { - instance = new IdleConnectionMonitor(waitTimeInSeconds); - instance.start(); - registerShutdownHook(); - } - } - } else { - instance.waitTimeInSeconds = Math.min(instance.waitTimeInSeconds, waitTimeInSeconds); + IdleConnectionMonitor monitor = instance; + if (monitor == null) { + monitor = new IdleConnectionMonitor(waitTimeInSeconds); + instance = monitor; + monitor.start(); + registerShutdownHook(); + } + monitor.waitTimeInSeconds = Math.min(monitor.waitTimeInSeconds, waitTimeInSeconds); + Runnable hook = beforeRegisterConnectionManagerPutHookForTest; + if (hook != null) { + hook.run(); } LOG.debug( "Registering ConnectionManager {} in IdleConnectionMonitor thread", @@ -86,7 +90,8 @@ public static boolean registerConnectionManager( * @return {@code true} if the connection manager has been successfully removed; * otherwise {@code false}. */ - public static boolean removeConnectionManager(HttpClientConnectionManager connectionManager) { + public static synchronized boolean removeConnectionManager( + HttpClientConnectionManager connectionManager) { cleanStaleReferences(); boolean wasRemoved = connectionManagers.keySet().removeIf(ref -> ref.get() == connectionManager); @@ -110,8 +115,13 @@ public void run() { TimeUnit.SECONDS.sleep(waitTimeInSeconds); } catch (InterruptedException ex) { - // terminate - clearIdleConnectionMonitorThread(); + Runnable hook = beforeInterruptCleanupHookForTest; + if (hook != null) { + hook.run(); + } + synchronized (IdleConnectionMonitor.class) { + clearIfCurrentMonitor(this); + } Thread.currentThread().interrupt(); LOG.debug("IdleConnectionMonitorThread was interrupted, terminating", ex); break; @@ -181,22 +191,26 @@ protected static void cleanStaleReferences() { * @return {@code true} if the shutdown process was initiated successfully, otherwise {@code false}. */ public static synchronized boolean shutdown() { - if (instance != null) { - instance.interrupt(); - clearIdleConnectionMonitorThread(); - return true; + IdleConnectionMonitor monitor = instance; + if (monitor == null) { + return false; } - return false; + monitor.interrupt(); + clearIfCurrentMonitor(monitor); + return true; } - private static synchronized void clearIdleConnectionMonitorThread() { - if (instance != null) { - LOG.info("Shutting down IdleConnectionMonitor"); - instance.markShuttingDown(); - connectionManagers.clear(); - cleanStaleReferences(); - instance = null; + // Call only while holding the IdleConnectionMonitor.class monitor. + private static void clearIfCurrentMonitor(IdleConnectionMonitor expectedMonitor) { + // Only the active singleton may clear shared monitor state. + if (instance != expectedMonitor) { + return; } + LOG.info("Shutting down IdleConnectionMonitor"); + expectedMonitor.markShuttingDown(); + connectionManagers.clear(); + cleanStaleReferences(); + instance = null; } private void markShuttingDown() { @@ -222,6 +236,22 @@ boolean isIdleConnectionMonitorThreadClosed() { public static IdleConnectionMonitor getInstance() { return instance; } + + @VisibleForTesting + static void setBeforeRegisterConnectionManagerPutHookForTest(Runnable hook) { + beforeRegisterConnectionManagerPutHookForTest = hook; + } + + @VisibleForTesting + static void setBeforeInterruptCleanupHookForTest(Runnable hook) { + beforeInterruptCleanupHookForTest = hook; + } + + @VisibleForTesting + static void clearTestHooks() { + beforeRegisterConnectionManagerPutHookForTest = null; + beforeInterruptCleanupHookForTest = null; + } /** * Keeps the settings for a ConnectionMonitor. */ diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGenerator.java b/bmc-common/src/main/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGenerator.java index a82caaca892..2ea6b0946d1 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGenerator.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGenerator.java @@ -59,12 +59,17 @@ byte[] generate() { int bytesNeeded = keyLength / 8; byte[] key = new byte[bytesNeeded]; int offset = 0; + byte[] previousDigest = null; for (; ; ) { + if (previousDigest != null) { + digest.update(previousDigest, 0, previousDigest.length); + } digest.update(password, 0, password.length); digest.update(salt, 0, salt.length); final byte[] digested = digest.digest(); + previousDigest = digested; int len = (bytesNeeded > digested.length) ? digested.length : bytesNeeded; System.arraycopy(digested, 0, key, offset, len); diff --git a/bmc-common/src/test/java/com/oracle/bmc/OptionsTest.java b/bmc-common/src/test/java/com/oracle/bmc/OptionsTest.java new file mode 100644 index 00000000000..321cc289209 --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/OptionsTest.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc; + +import java.lang.reflect.Method; + +import org.junit.After; +import org.junit.Test; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +public class OptionsTest { + private static final String TOKEN_REFRESH_ENABLED_SYSTEM_PROPERTY = + "oci.javasdk.token.refresh.enabled"; + private static final String CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.global"; + private static final String CONNECTION_POOLING_ENABLED_PREFIX = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled."; + private static final String CLIENT_CLASS_NAME = "com.oracle.bmc.vault.VaultsClient"; + + private final boolean originalAutoClose = Options.getShouldAutoCloseResponseInputStream(); + private final boolean originalTokenRefreshEnabled = Options.isTokenRefreshRetrierEnabled(); + private final String originalTokenRefreshProperty = + System.getProperty(TOKEN_REFRESH_ENABLED_SYSTEM_PROPERTY); + private final String originalGlobalConnectionPoolingProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + private final String originalClassConnectionPoolingProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_PREFIX + CLIENT_CLASS_NAME); + + @After + public void tearDown() throws Exception { + Options.shouldAutoCloseResponseInputStream(originalAutoClose); + setTokenRefreshEnabled(originalTokenRefreshEnabled); + restoreProperty(TOKEN_REFRESH_ENABLED_SYSTEM_PROPERTY, originalTokenRefreshProperty); + restoreProperty( + CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, + originalGlobalConnectionPoolingProperty); + restoreProperty( + CONNECTION_POOLING_ENABLED_PREFIX + CLIENT_CLASS_NAME, + originalClassConnectionPoolingProperty); + } + + @Test + public void shouldAutoCloseResponseInputStreamCanBeEnabledAndDisabled() { + Options.shouldAutoCloseResponseInputStream(false); + assertFalse(Options.getShouldAutoCloseResponseInputStream()); + + Options.shouldAutoCloseResponseInputStream(true); + assertTrue(Options.getShouldAutoCloseResponseInputStream()); + } + + @Test + public void tokenRefreshRetrierDefaultsToEnabledWhenSystemPropertyIsMissing() throws Exception { + System.clearProperty(TOKEN_REFRESH_ENABLED_SYSTEM_PROPERTY); + + reinitializeTokenRefreshRetryEnabled(); + + assertTrue(Options.isTokenRefreshRetrierEnabled()); + } + + @Test + public void tokenRefreshRetrierCanBeDisabledWithSystemProperty() throws Exception { + System.setProperty(TOKEN_REFRESH_ENABLED_SYSTEM_PROPERTY, "false"); + + reinitializeTokenRefreshRetryEnabled(); + + assertFalse(Options.isTokenRefreshRetrierEnabled()); + } + + @Test + public void defaultConnectionPoolingConfiguratorIsEnabledWhenNoOverridesAreSet() { + System.clearProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + System.clearProperty(CONNECTION_POOLING_ENABLED_PREFIX + CLIENT_CLASS_NAME); + + assertTrue( + Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + CLIENT_CLASS_NAME)); + } + + @Test + public void defaultConnectionPoolingConfiguratorIsEnabledWhenClassNameIsNull() { + System.clearProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + System.clearProperty(CONNECTION_POOLING_ENABLED_PREFIX + "null"); + + assertTrue(Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName(null)); + } + + @Test + public void defaultConnectionPoolingConfiguratorCanBeDisabledGlobally() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "false"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + CLIENT_CLASS_NAME, "true"); + + assertFalse( + Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + CLIENT_CLASS_NAME)); + } + + @Test + public void defaultConnectionPoolingConfiguratorCanBeDisabledPerClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + CLIENT_CLASS_NAME, "false"); + + assertFalse( + Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + CLIENT_CLASS_NAME)); + } + + @Test + public void defaultConnectionPoolingConfiguratorRemainsEnabledWhenBothOverridesAreTrue() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + CLIENT_CLASS_NAME, "true"); + + assertTrue( + Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + CLIENT_CLASS_NAME)); + } + + private static void reinitializeTokenRefreshRetryEnabled() throws Exception { + Method initializer = Options.class.getDeclaredMethod("initializeTokenRefreshRetryEnabled"); + initializer.setAccessible(true); + initializer.invoke(null); + } + + private static void setTokenRefreshEnabled(boolean enabled) throws Exception { + System.setProperty(TOKEN_REFRESH_ENABLED_SYSTEM_PROPERTY, Boolean.toString(enabled)); + reinitializeTokenRefreshRetryEnabled(); + } + + private static void restoreProperty(String key, String value) { + if (value == null) { + System.clearProperty(key); + } else { + System.setProperty(key, value); + } + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/IdleConnectionMonitorConcurrencyTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/IdleConnectionMonitorConcurrencyTest.java new file mode 100644 index 00000000000..0471a26f9b6 --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/IdleConnectionMonitorConcurrencyTest.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.http.internal; + +import org.apache.http.conn.HttpClientConnectionManager; +import org.apache.http.impl.conn.BasicHttpClientConnectionManager; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicReference; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNotSame; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +public class IdleConnectionMonitorConcurrencyTest { + private static final long TEST_TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(5); + private static final long BLOCKED_REMOVE_ASSERTION_MILLIS = TimeUnit.SECONDS.toMillis(1); + + @Before + public void setUp() { + IdleConnectionMonitor.clearTestHooks(); + IdleConnectionMonitor.shutdown(); + } + + @After + public void tearDown() { + IdleConnectionMonitor.clearTestHooks(); + IdleConnectionMonitor.shutdown(); + } + + @Test + public void removeWaitsForInFlightRegistrationAndDoesNotShutdownMonitor() throws Exception { + HttpClientConnectionManager existingConnectionManager = + new BasicHttpClientConnectionManager(); + HttpClientConnectionManager racingConnectionManager = + new BasicHttpClientConnectionManager(); + + assertTrue( + IdleConnectionMonitor.registerConnectionManager(existingConnectionManager, 60, 60)); + assertNotNull(IdleConnectionMonitor.getInstance()); + assertEquals(1, IdleConnectionMonitor.idleConnectionMonitorThreadSize()); + + CountDownLatch registerHookStarted = new CountDownLatch(1); + CountDownLatch allowRegisterToProceed = new CountDownLatch(1); + IdleConnectionMonitor.setBeforeRegisterConnectionManagerPutHookForTest( + () -> + awaitLatchAtHook( + registerHookStarted, + allowRegisterToProceed, + "Timed out waiting to resume registerConnectionManager()")); + + AtomicReference registerFailure = new AtomicReference<>(); + Thread registerThread = + new Thread( + () -> runRegister(racingConnectionManager, registerFailure), + "racing-register-thread"); + + CountDownLatch removeStarted = new CountDownLatch(1); + CountDownLatch removeCompleted = new CountDownLatch(1); + AtomicReference removeFailure = new AtomicReference<>(); + AtomicReference removeResult = new AtomicReference<>(); + Thread removeThread = + new Thread( + () -> + runRemove( + existingConnectionManager, + removeStarted, + removeCompleted, + removeFailure, + removeResult), + "racing-remove-thread"); + + try { + registerThread.start(); + assertTrue(registerHookStarted.await(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)); + + removeThread.start(); + assertTrue(removeStarted.await(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)); + assertFalse( + "removeConnectionManager() should wait for the in-flight registration to release the class monitor", + removeCompleted.await(BLOCKED_REMOVE_ASSERTION_MILLIS, TimeUnit.MILLISECONDS)); + assertNotNull( + "The singleton monitor must remain available while registration is in progress", + IdleConnectionMonitor.getInstance()); + } finally { + allowRegisterToProceed.countDown(); + joinThread(registerThread); + joinThread(removeThread); + } + + assertNull(registerFailure.get()); + assertNull(removeFailure.get()); + assertTrue(removeResult.get()); + assertEquals(1, IdleConnectionMonitor.idleConnectionMonitorThreadSize()); + assertNotNull( + "A successful registration must leave a live monitor instance", + IdleConnectionMonitor.getInstance()); + } + + @Test + public void oldInterruptedMonitorCannotClearReplacementInstance() throws Exception { + HttpClientConnectionManager existingConnectionManager = + new BasicHttpClientConnectionManager(); + HttpClientConnectionManager replacementConnectionManager = + new BasicHttpClientConnectionManager(); + + assertTrue( + IdleConnectionMonitor.registerConnectionManager(existingConnectionManager, 60, 60)); + IdleConnectionMonitor originalMonitor = IdleConnectionMonitor.getInstance(); + assertNotNull(originalMonitor); + awaitMonitorThreadToEnterSleep(originalMonitor); + + CountDownLatch interruptCleanupStarted = new CountDownLatch(1); + CountDownLatch allowInterruptCleanupToProceed = new CountDownLatch(1); + IdleConnectionMonitor.setBeforeInterruptCleanupHookForTest( + () -> + awaitLatchAtHook( + interruptCleanupStarted, + allowInterruptCleanupToProceed, + "Timed out waiting to resume interrupted monitor cleanup")); + + try { + assertTrue(IdleConnectionMonitor.shutdown()); + assertTrue(interruptCleanupStarted.await(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)); + assertNull(IdleConnectionMonitor.getInstance()); + assertEquals(0, IdleConnectionMonitor.idleConnectionMonitorThreadSize()); + + assertTrue( + IdleConnectionMonitor.registerConnectionManager( + replacementConnectionManager, 60, 60)); + } finally { + allowInterruptCleanupToProceed.countDown(); + joinThread(originalMonitor); + } + + IdleConnectionMonitor replacementMonitor = IdleConnectionMonitor.getInstance(); + assertNotNull(replacementMonitor); + assertNotSame(originalMonitor, replacementMonitor); + assertEquals(1, IdleConnectionMonitor.idleConnectionMonitorThreadSize()); + assertSame( + "An old interrupted monitor thread must not clear a replacement instance", + replacementMonitor, + IdleConnectionMonitor.getInstance()); + } + + private static void runRegister( + HttpClientConnectionManager connectionManager, AtomicReference failure) { + try { + assertTrue(IdleConnectionMonitor.registerConnectionManager(connectionManager, 60, 60)); + } catch (Throwable t) { + failure.set(t); + } + } + + private static void runRemove( + HttpClientConnectionManager connectionManager, + CountDownLatch started, + CountDownLatch completed, + AtomicReference failure, + AtomicReference result) { + started.countDown(); + try { + result.set(IdleConnectionMonitor.removeConnectionManager(connectionManager)); + } catch (Throwable t) { + failure.set(t); + } finally { + completed.countDown(); + } + } + + private static void awaitLatchAtHook( + CountDownLatch hookStarted, CountDownLatch allowToProceed, String timeoutMessage) { + hookStarted.countDown(); + try { + assertTrue( + timeoutMessage, + allowToProceed.await(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new AssertionError("Interrupted while waiting to resume a test hook", e); + } + } + + private static void joinThread(Thread thread) throws InterruptedException { + if (thread == null) { + return; + } + thread.join(TEST_TIMEOUT_MILLIS); + assertFalse(thread.getName() + " did not finish in time", thread.isAlive()); + } + + private static void awaitMonitorThreadToEnterSleep(Thread thread) throws InterruptedException { + long deadlineNanos = System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(TEST_TIMEOUT_MILLIS); + while (System.nanoTime() < deadlineNanos) { + if (thread.getState() == Thread.State.TIMED_WAITING) { + return; + } + Thread.sleep(10); + } + fail( + thread.getName() + + " did not enter TIMED_WAITING before timeout; last state was " + + thread.getState()); + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java index 409ab4efb5a..b6879967bbf 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java @@ -72,6 +72,40 @@ public void testSupplyKeyPKCS1() throws IOException { assertEquals(decryptedKey.get(), encryptedKey.get()); } + /** Test PKCS#1 encrypted parsing with AES-256-CBC legacy OpenSSL PEM */ + @Test + public void testSupplyKeyPKCS1Aes256() throws IOException { + + String pkcs1EncryptedPrivateKey = + StreamUtils.toString( + new FileInputStream( + "src/test/resources/pkcs1_encrypted_private_key_aes256.pem"), + StandardCharsets.UTF_8); + + InputStream pkcs1EncryptedPrivateKeyStream = + new ByteArrayInputStream(pkcs1EncryptedPrivateKey.getBytes(StandardCharsets.UTF_8)); + + String pkcs1DecryptedPrivateKey = + StreamUtils.toString( + new FileInputStream("src/test/resources/pkcs1_decrypted_private_key.pem"), + StandardCharsets.UTF_8); + InputStream pkcs1DecryptedPrivateKeyStream = + new ByteArrayInputStream(pkcs1DecryptedPrivateKey.getBytes(StandardCharsets.UTF_8)); + + Optional encryptedKey = + new PEMFileRSAPrivateKeySupplier(pkcs1EncryptedPrivateKeyStream, CORRECT_PASSPHRASE) + .supplyKey(); + assertTrue(encryptedKey.isPresent()); + assertTrue(encryptedKey.get() instanceof RSAPrivateKey); + + Optional decryptedKey = + new PEMFileRSAPrivateKeySupplier(pkcs1DecryptedPrivateKeyStream, null).supplyKey(); + assertTrue(decryptedKey.isPresent()); + assertTrue(decryptedKey.get() instanceof RSAPrivateKey); + + assertEquals(decryptedKey.get(), encryptedKey.get()); + } + /** Test PKCS#8 encrypted parsing */ @Test public void testSupplyKeyPKCS8() throws IOException { diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGeneratorTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGeneratorTest.java new file mode 100644 index 00000000000..501b00c557a --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/OpenSslPbeSecretKeyGeneratorTest.java @@ -0,0 +1,27 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.http.signing.pki; + +import org.junit.Test; + +import static org.junit.Assert.assertArrayEquals; + +public class OpenSslPbeSecretKeyGeneratorTest { + + @Test + public void testGenerateUsesOpenSslDigestChaining() { + byte[] key = + OpenSslPbeSecretKeyGenerator.builder() + .password("test-passphrase".toCharArray()) + .salt(Hex.decode("0102030405060708")) + .keyLength(256) + .build() + .generate(); + + assertArrayEquals( + Hex.decode("088173B66041DE63E07BAB012F106C71FB77702EE57C8295FF473156D64A85C3"), + key); + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/Utf8Test.java b/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/Utf8Test.java index 774c9940dc3..f40ecb5955d 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/Utf8Test.java +++ b/bmc-common/src/test/java/com/oracle/bmc/http/signing/pki/Utf8Test.java @@ -20,12 +20,14 @@ import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ForkJoinPool; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; +import static org.junit.Assume.assumeTrue; /** Unit tests for {@link Utf8} */ @FixMethodOrder(MethodSorters.NAME_ASCENDING) @@ -161,6 +163,10 @@ public void zzz_testWithChannel_Blocked() { taskNumbers.add(i); } + assumeTrue( + "The commonPool was not quiescent, skipping test", + ForkJoinPool.commonPool().awaitQuiescence(10, TimeUnit.SECONDS)); + taskNumbers .parallelStream() .forEach( diff --git a/bmc-common/src/test/resources/pkcs1_encrypted_private_key_aes256.pem b/bmc-common/src/test/resources/pkcs1_encrypted_private_key_aes256.pem new file mode 100644 index 00000000000..18c7af6f161 --- /dev/null +++ b/bmc-common/src/test/resources/pkcs1_encrypted_private_key_aes256.pem @@ -0,0 +1,54 @@ +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: AES-256-CBC,10E9094C0A5472D75AA3F9C1B39EBFAD + +4MtoOwthJBMZ9/ig4WwxnrTvxucN51S9F7Uo6GzphWYLbg2CtaFfm0q7zmB7HC7x +0rY2BLDO+We+a2D+48BZLmBk8Xj6Uo7qBnciuMa1FGgOITEaIHMtt/6C55XtG/CZ +YXaEvtMVoxdGxfSVfTi1lTK4GpvHkxIduf5JjIhOcDgvPpJ2E5KdAIYo2KOka405 +aXjVabRrurpg0ppaRB+OI+Vy78fRSGZHRhwfuIyuhob9sKzToPPlUDEqiU3l0bax ++Ti9XMWV/Z6zSKf9jOFj1E3iFQ+JvNIBfvrIg3bhuFixH57JtBfX1D177/YLdfSh +x8Nbkt/9fEi7NjuLEI7JbL9MclUJ+zBIzApixixHXRq3oQ4voIJdSLw0clJu1nju +JN4HMzGLJhh+2xzyRlFLdlpnqdl2/pp+6drHOpSRlFj3dMkIHMCjY6s/CZLLfXsA +krxQvE7dBtHf4zplymD9tGtc2lIngJBuOXbRrxEzxBVJTt/E96pU6yVuFQJZepFf ++yQxi8f6uYk8CwIVrW7lhR4KMv0LxqzsohQ/r17nEDyvvdG12M4fynye/ryoD/Mw +yvTFg8vGJanJdneVRBo4Uco8jp8TqQ5pShTqaha3yFpY/RBjEZ2NIlcnwZYIDajV +d0ThPdh8ys26WrJEwfpaRC/9THA4xWqNnKe90JOd9PbLHOSxSio+jRQ5HxSaVPCJ +MegRzE/Olq95QwQ06lDpbVQdFU0EyTSsFgUoZsMbngh4v/yLvy/Mih7N/2F/sNvk +IPd+JVvi2xImIOV/dMVX6Mc0RSgQGxZSInCPyEFGNan1TD3shBrDMN2e+9GSYjVg +sfp/s7SwHtPilck/VIKca1kxUCWLvJ11Ca3DkN4bLads5lRCBmI23qIhPZpA63oh +FkzRzQP1rKdV9Kp6FTH5OHfUB5H2xh/CwKuSVQR3G/TCXu13dylUEwwJT/xbTEN0 +o2MvaFlDI5mOdvPzoKFrUSN+IqmYvlwrwtm243N7B7VW0Fui775gLq4KRwH0fUJt +QSp4Mh9jubW8YYyl8WgypfwDjDYnGvZ0ElCrBzOlT4qtrHwD9w68kzmlFElNeY8w +kh9w33kFCPsyzS0UizSPbDIzyU/xy75YdyGgGGWqfFsfH127IcjOaYAmykMziJWT +Ae1EhI82iYzOrW9wKxUVnwuS1qZc6x+I/wdNdMkjUQC/jjS9FwvKmrpMkr4CYuX6 +oNsiygZacW8uza4rp0UyXmkUoBpm0lHjrGNiS2QGvVgBNgWhsuEZFX4uvS+5gRh+ +LZMbsjZPR0qujEBOpBawg+MEs5pA26UBiw+q98ZhF8cS9UXUQ1LeLQfMU4qWI7WD +UR6Q0mq0cq2mv8kPZqmAj5tHZM/P2Q9ckIBVduOr3z3NgB/AmwtCVwTTE46KtCdH +EnSr8S64u6vhBgkh/b4daIN1bokTMkJ5G9GPFGbAp5+g0ChAehMxzZrOkH1yVehg +OiN7wmL4UB2Fa86JZKe+1GvlRMYgOCD06IDVu48Psjrmmct3ewvdxUTzaL1RFp4P +vpsNwz218tgkSPcQG4tPMxbh+Lt3MC/wMCgVBJg1k2U+XLJuDxVMgEx8AKgV01pz +Sp54BHlgMcj8OZLX25Fo6Y2zFyxNNhbATJAl6ewezsMMOIioYqoDk6jCwYBlyS9k +U1z2HZww0J40XmgE6hSNGF1KPjDhJa2CF6PhAFKJEkhnHuR4axEtxGelA9Tq/OzE +KhWzEt7WLXDJRb1e+zrjld1crk8l4xN5VPLPzm9/KjWY1+NZhJ7wfzfZmnunw8/i +embsgSwRUbL7uN8y0riUz0FgzUG7k59GpEracItDYmpEGU3XXCxhRF7bNDdk99oj +EFRuJfQeO5BVgIYRoOZ35PQe836Xiw8p29TMg3xtsV3ChxBuXX0O2N3+oHuChcGT +K5LVDOvr5ZLm/PjiFHdQwwZmRrzvTI1IzJZpfMSRiR3CBeM1JPujRz2bE31sRQl6 +oMdHl/tQlPMvYaxyST/8f4x/ZyooDgF5UjrQfLtHqgB8scR9wEWVNUooHXkzcvGS +DBcODIFCNN5+6i5X8P6zawk9cDrxvFXgevodji96A37dLcmGLoZVPhPbbD9Un6yO +o4ZhQK+yC/OFkLPxkheuWr07KD7RonLrKVmQRlnOc4R/vdZeHiTkf5B3r0Huy2cb +tmqXwapBuPJ5gcDREnGFjxHk2v0GaKu7O7RjKOF8SMEzmIilStnbyvUweHdrjdPH +gjFelByWE6kJ4YyRV4V9kLB5BEaz2ZsIs+1oiXRJVphozNNND9ey7DPmcWKM7rfQ +CO8MfwiC0On7pS7jbA10IJXIP4L9r/HGGSmvpfjU5NvXrgVUUNyd/L6ROWKvX5hr +HkQGxsMoGiNrqgX4pZtBgB3bkH8Ydbr3P7OFSbx6B+JneuvHRmxAhwrKW2QjJPyc +bH2Lg0ybGu5XUNn/+f1+CGAIoypVPLrdrvVnFqwlqkoCjfLIXPCCqVCsLHSjhQkq +AUXMXMQkd84ydnCS47ZMoFObtPVbq/k08uJOatjmz60/CNoGcE2H1vyeE2eIQgkW +5EUQq6g3ZqVjocxv//PhPRQywSrHAVh8Qhk+m8MQh8C5L40E12mBBqQfDyECFS3G +GFecIz1uRkregNfOJlDy2H98fK6+F6LubglE0yy27dQKjEI8PdyE2PdkewzdBFER +OlOZykuf1W3VdlGuYmvLfZplBKG3gbm10jGDnDlFyZi0PvogMkVRdTWnR8kitqMv +aGA1iiDpMksTHnIJC5ASVn5TvYeFZ3o/WfNIFYo4hQBkP6GEsnQzvisyDAs9icVa +97VMitOq1kZZrtNpenZNRe+5Wxy48yAom2iViop+8PNjGmwjV2ga2taonJS6AbsR +QobpNIwlzSeUfiQEUrCOfq89x2+aUL7HCAfw+/dGRIMvmV+O6H+RTGQsHrZGZEA2 +pW7ZRNxQizR/N5s5Za+V/dnQf/JOFgyeRC/+5CyNvkfHR7oxF56F/XI7wukULAi4 +AwsGZv9sYElh2NiM8eHrZ0xKi65q29cEOw+eUkaKoh003h7ib8wHn+mK2pYdlvOU +1joSWJMnuYeAzAgirCz8mvKd+7eKzC2j8y7AUjGDTe41TBcrqjw64lGkZqL7K/M1 +-----END RSA PRIVATE KEY----- diff --git a/bmc-common/src/test/resources/regions.json b/bmc-common/src/test/resources/regions.json index b13917d3be4..d5949b768eb 100644 --- a/bmc-common/src/test/resources/regions.json +++ b/bmc-common/src/test/resources/regions.json @@ -502,5 +502,11 @@ "realmKey": "oc1", "regionIdentifier": "af-casablanca-1", "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "vve", + "realmKey": "oc21", + "regionIdentifier": "me-alrayyan-1", + "realmDomainComponent": "oraclecloud21.com" } ] \ No newline at end of file diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index b62b85b31c5..4bb4b7cb572 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 77503e367c2..3bc6d1b5928 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 873c772f144..abf7a84b451 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/ClusterEndpointConfig.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/ClusterEndpointConfig.java index 7a4ff2e0591..05731b90aeb 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/ClusterEndpointConfig.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/ClusterEndpointConfig.java @@ -22,13 +22,22 @@ public final class ClusterEndpointConfig extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"subnetId", "nsgIds", "isPublicIpEnabled"}) + @java.beans.ConstructorProperties({ + "subnetId", + "nsgIds", + "isPublicIpEnabled", + "securityAttributes" + }) public ClusterEndpointConfig( - String subnetId, java.util.List nsgIds, Boolean isPublicIpEnabled) { + String subnetId, + java.util.List nsgIds, + Boolean isPublicIpEnabled, + java.util.Map> securityAttributes) { super(); this.subnetId = subnetId; this.nsgIds = nsgIds; this.isPublicIpEnabled = isPublicIpEnabled; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -83,13 +92,40 @@ public Builder isPublicIpEnabled(Boolean isPublicIpEnabled) { this.__explicitlySet__.add("isPublicIpEnabled"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ClusterEndpointConfig build() { ClusterEndpointConfig model = - new ClusterEndpointConfig(this.subnetId, this.nsgIds, this.isPublicIpEnabled); + new ClusterEndpointConfig( + this.subnetId, + this.nsgIds, + this.isPublicIpEnabled, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -107,6 +143,9 @@ public Builder copy(ClusterEndpointConfig model) { if (model.wasPropertyExplicitlySet("isPublicIpEnabled")) { this.isPublicIpEnabled(model.getIsPublicIpEnabled()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -166,6 +205,26 @@ public Boolean getIsPublicIpEnabled() { return isPublicIpEnabled; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -183,6 +242,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", isPublicIpEnabled=").append(String.valueOf(this.isPublicIpEnabled)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -200,6 +260,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.isPublicIpEnabled, other.isPublicIpEnabled) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -212,6 +273,11 @@ public int hashCode() { result = (result * PRIME) + (this.isPublicIpEnabled == null ? 43 : this.isPublicIpEnabled.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateClusterEndpointConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateClusterEndpointConfigDetails.java index e3bbdfa871c..d1a16011402 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateClusterEndpointConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateClusterEndpointConfigDetails.java @@ -22,13 +22,22 @@ public final class CreateClusterEndpointConfigDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"subnetId", "nsgIds", "isPublicIpEnabled"}) + @java.beans.ConstructorProperties({ + "subnetId", + "nsgIds", + "isPublicIpEnabled", + "securityAttributes" + }) public CreateClusterEndpointConfigDetails( - String subnetId, java.util.List nsgIds, Boolean isPublicIpEnabled) { + String subnetId, + java.util.List nsgIds, + Boolean isPublicIpEnabled, + java.util.Map> securityAttributes) { super(); this.subnetId = subnetId; this.nsgIds = nsgIds; this.isPublicIpEnabled = isPublicIpEnabled; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -83,6 +92,29 @@ public Builder isPublicIpEnabled(Boolean isPublicIpEnabled) { this.__explicitlySet__.add("isPublicIpEnabled"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -90,7 +122,10 @@ public Builder isPublicIpEnabled(Boolean isPublicIpEnabled) { public CreateClusterEndpointConfigDetails build() { CreateClusterEndpointConfigDetails model = new CreateClusterEndpointConfigDetails( - this.subnetId, this.nsgIds, this.isPublicIpEnabled); + this.subnetId, + this.nsgIds, + this.isPublicIpEnabled, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -108,6 +143,9 @@ public Builder copy(CreateClusterEndpointConfigDetails model) { if (model.wasPropertyExplicitlySet("isPublicIpEnabled")) { this.isPublicIpEnabled(model.getIsPublicIpEnabled()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -167,6 +205,26 @@ public Boolean getIsPublicIpEnabled() { return isPublicIpEnabled; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -184,6 +242,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", isPublicIpEnabled=").append(String.valueOf(this.isPublicIpEnabled)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -201,6 +260,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.isPublicIpEnabled, other.isPublicIpEnabled) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -213,6 +273,11 @@ public int hashCode() { result = (result * PRIME) + (this.isPublicIpEnabled == null ? 43 : this.isPublicIpEnabled.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolDetails.java index c843b9331d7..cc5667e6002 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolDetails.java @@ -40,7 +40,10 @@ public final class CreateNodePoolDetails "freeformTags", "definedTags", "nodeEvictionNodePoolSettings", - "nodePoolCyclingDetails" + "nodePoolCyclingDetails", + "secondaryVnics", + "networkLaunchType", + "primaryVnic" }) public CreateNodePoolDetails( String compartmentId, @@ -60,7 +63,10 @@ public CreateNodePoolDetails( java.util.Map freeformTags, java.util.Map> definedTags, NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings, - NodePoolCyclingDetails nodePoolCyclingDetails) { + NodePoolCyclingDetails nodePoolCyclingDetails, + java.util.List secondaryVnics, + NetworkLaunchType networkLaunchType, + NodePoolPrimaryVnicDetails primaryVnic) { super(); this.compartmentId = compartmentId; this.clusterId = clusterId; @@ -80,6 +86,9 @@ public CreateNodePoolDetails( this.definedTags = definedTags; this.nodeEvictionNodePoolSettings = nodeEvictionNodePoolSettings; this.nodePoolCyclingDetails = nodePoolCyclingDetails; + this.secondaryVnics = secondaryVnics; + this.networkLaunchType = networkLaunchType; + this.primaryVnic = primaryVnic; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -396,6 +405,47 @@ public Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDeta this.__explicitlySet__.add("nodePoolCyclingDetails"); return this; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @param secondaryVnics the value to set + * @return this builder + **/ + public Builder secondaryVnics(java.util.List secondaryVnics) { + this.secondaryVnics = secondaryVnics; + this.__explicitlySet__.add("secondaryVnics"); + return this; + } + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @param networkLaunchType the value to set + * @return this builder + **/ + public Builder networkLaunchType(NetworkLaunchType networkLaunchType) { + this.networkLaunchType = networkLaunchType; + this.__explicitlySet__.add("networkLaunchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private NodePoolPrimaryVnicDetails primaryVnic; + + public Builder primaryVnic(NodePoolPrimaryVnicDetails primaryVnic) { + this.primaryVnic = primaryVnic; + this.__explicitlySet__.add("primaryVnic"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -420,7 +470,10 @@ public CreateNodePoolDetails build() { this.freeformTags, this.definedTags, this.nodeEvictionNodePoolSettings, - this.nodePoolCyclingDetails); + this.nodePoolCyclingDetails, + this.secondaryVnics, + this.networkLaunchType, + this.primaryVnic); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -483,6 +536,15 @@ public Builder copy(CreateNodePoolDetails model) { if (model.wasPropertyExplicitlySet("nodePoolCyclingDetails")) { this.nodePoolCyclingDetails(model.getNodePoolCyclingDetails()); } + if (model.wasPropertyExplicitlySet("secondaryVnics")) { + this.secondaryVnics(model.getSecondaryVnics()); + } + if (model.wasPropertyExplicitlySet("networkLaunchType")) { + this.networkLaunchType(model.getNetworkLaunchType()); + } + if (model.wasPropertyExplicitlySet("primaryVnic")) { + this.primaryVnic(model.getPrimaryVnic()); + } return this; } } @@ -772,6 +834,41 @@ public NodePoolCyclingDetails getNodePoolCyclingDetails() { return nodePoolCyclingDetails; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private final java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @return the value + **/ + public java.util.List getSecondaryVnics() { + return secondaryVnics; + } + + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private final NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @return the value + **/ + public NetworkLaunchType getNetworkLaunchType() { + return networkLaunchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private final NodePoolPrimaryVnicDetails primaryVnic; + + public NodePoolPrimaryVnicDetails getPrimaryVnic() { + return primaryVnic; + } + @Override public String toString() { return this.toString(true); @@ -805,6 +902,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nodeEvictionNodePoolSettings=") .append(String.valueOf(this.nodeEvictionNodePoolSettings)); sb.append(", nodePoolCyclingDetails=").append(String.valueOf(this.nodePoolCyclingDetails)); + sb.append(", secondaryVnics=").append(String.valueOf(this.secondaryVnics)); + sb.append(", networkLaunchType=").append(String.valueOf(this.networkLaunchType)); + sb.append(", primaryVnic=").append(String.valueOf(this.primaryVnic)); sb.append(")"); return sb.toString(); } @@ -839,6 +939,9 @@ public boolean equals(Object o) { this.nodeEvictionNodePoolSettings, other.nodeEvictionNodePoolSettings) && java.util.Objects.equals( this.nodePoolCyclingDetails, other.nodePoolCyclingDetails) + && java.util.Objects.equals(this.secondaryVnics, other.secondaryVnics) + && java.util.Objects.equals(this.networkLaunchType, other.networkLaunchType) + && java.util.Objects.equals(this.primaryVnic, other.primaryVnic) && super.equals(other); } @@ -888,6 +991,13 @@ public int hashCode() { + (this.nodePoolCyclingDetails == null ? 43 : this.nodePoolCyclingDetails.hashCode()); + result = + (result * PRIME) + + (this.secondaryVnics == null ? 43 : this.secondaryVnics.hashCode()); + result = + (result * PRIME) + + (this.networkLaunchType == null ? 43 : this.networkLaunchType.hashCode()); + result = (result * PRIME) + (this.primaryVnic == null ? 43 : this.primaryVnic.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVnicDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVnicDetails.java new file mode 100644 index 00000000000..73d0a5bc843 --- /dev/null +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVnicDetails.java @@ -0,0 +1,682 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerengine.model; + +/** + * The properties of the secondary vnics + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateVnicDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateVnicDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "assignIpv6Ip", + "assignPublicIp", + "definedTags", + "freeformTags", + "ipCount", + "applicationResources", + "ipv6AddressIpv6SubnetCidrPairDetails", + "nsgIds", + "skipSourceDestCheck", + "subnetId", + "securityAttributes" + }) + public CreateVnicDetails( + String displayName, + Boolean assignIpv6Ip, + Boolean assignPublicIp, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer ipCount, + java.util.List applicationResources, + java.util.List + ipv6AddressIpv6SubnetCidrPairDetails, + java.util.List nsgIds, + Boolean skipSourceDestCheck, + String subnetId, + java.util.Map> securityAttributes) { + super(); + this.displayName = displayName; + this.assignIpv6Ip = assignIpv6Ip; + this.assignPublicIp = assignPublicIp; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.ipCount = ipCount; + this.applicationResources = applicationResources; + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; + this.nsgIds = nsgIds; + this.skipSourceDestCheck = skipSourceDestCheck; + this.subnetId = subnetId; + this.securityAttributes = securityAttributes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Display name for secondary vnic + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name for secondary vnic + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assignIpv6Ip") + private Boolean assignIpv6Ip; + + /** + * Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet + * + * @param assignIpv6Ip the value to set + * @return this builder + **/ + public Builder assignIpv6Ip(Boolean assignIpv6Ip) { + this.assignIpv6Ip = assignIpv6Ip; + this.__explicitlySet__.add("assignIpv6Ip"); + return this; + } + /** + * Whether the VNIC should be assigned a public IP address + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assignPublicIp") + private Boolean assignPublicIp; + + /** + * Whether the VNIC should be assigned a public IP address + * + * @param assignPublicIp the value to set + * @return this builder + **/ + public Builder assignPublicIp(Boolean assignPublicIp) { + this.assignPublicIp = assignPublicIp; + this.__explicitlySet__.add("assignPublicIp"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * The number of ip addresses to attach to secondary vnic + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipCount") + private Integer ipCount; + + /** + * The number of ip addresses to attach to secondary vnic + * + * @param ipCount the value to set + * @return this builder + **/ + public Builder ipCount(Integer ipCount) { + this.ipCount = ipCount; + this.__explicitlySet__.add("ipCount"); + return this; + } + /** + * The application resource that corresponds to this secondary vnic. Used to map pods to this specific vnic for scheduling + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applicationResources") + private java.util.List applicationResources; + + /** + * The application resource that corresponds to this secondary vnic. Used to map pods to this specific vnic for scheduling + * + * @param applicationResources the value to set + * @return this builder + **/ + public Builder applicationResources(java.util.List applicationResources) { + this.applicationResources = applicationResources; + this.__explicitlySet__.add("applicationResources"); + return this; + } + /** + * A list of IPv6 prefixes from which the VNIC should be assigned an IPv6 address. You can provide only the prefix + * and OCI selects an available address from the range. You can optionally choose to leave the prefix range empty + * and instead provide the specific IPv6 address that should be used from within that range. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private java.util.List + ipv6AddressIpv6SubnetCidrPairDetails; + + /** + * A list of IPv6 prefixes from which the VNIC should be assigned an IPv6 address. You can provide only the prefix + * and OCI selects an available address from the range. You can optionally choose to leave the prefix range empty + * and instead provide the specific IPv6 address that should be used from within that range. + * + * @param ipv6AddressIpv6SubnetCidrPairDetails the value to set + * @return this builder + **/ + public Builder ipv6AddressIpv6SubnetCidrPairDetails( + java.util.List + ipv6AddressIpv6SubnetCidrPairDetails) { + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("ipv6AddressIpv6SubnetCidrPairDetails"); + return this; + } + /** + * A list of the OCIDs of the network security groups (NSGs) to add the VNIC to + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the VNIC to + * + * @param nsgIds the value to set + * @return this builder + **/ + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + /** + * Whether the source/destination check is disabled on the VNIC + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("skipSourceDestCheck") + private Boolean skipSourceDestCheck; + + /** + * Whether the source/destination check is disabled on the VNIC + * + * @param skipSourceDestCheck the value to set + * @return this builder + **/ + public Builder skipSourceDestCheck(Boolean skipSourceDestCheck) { + this.skipSourceDestCheck = skipSourceDestCheck; + this.__explicitlySet__.add("skipSourceDestCheck"); + return this; + } + /** + * the ocid of the subnet to create the vnic in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * the ocid of the subnet to create the vnic in + * @param subnetId the value to set + * @return this builder + **/ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVnicDetails build() { + CreateVnicDetails model = + new CreateVnicDetails( + this.displayName, + this.assignIpv6Ip, + this.assignPublicIp, + this.definedTags, + this.freeformTags, + this.ipCount, + this.applicationResources, + this.ipv6AddressIpv6SubnetCidrPairDetails, + this.nsgIds, + this.skipSourceDestCheck, + this.subnetId, + this.securityAttributes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVnicDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("assignIpv6Ip")) { + this.assignIpv6Ip(model.getAssignIpv6Ip()); + } + if (model.wasPropertyExplicitlySet("assignPublicIp")) { + this.assignPublicIp(model.getAssignPublicIp()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("ipCount")) { + this.ipCount(model.getIpCount()); + } + if (model.wasPropertyExplicitlySet("applicationResources")) { + this.applicationResources(model.getApplicationResources()); + } + if (model.wasPropertyExplicitlySet("ipv6AddressIpv6SubnetCidrPairDetails")) { + this.ipv6AddressIpv6SubnetCidrPairDetails( + model.getIpv6AddressIpv6SubnetCidrPairDetails()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("skipSourceDestCheck")) { + this.skipSourceDestCheck(model.getSkipSourceDestCheck()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Display name for secondary vnic + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name for secondary vnic + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assignIpv6Ip") + private final Boolean assignIpv6Ip; + + /** + * Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet + * + * @return the value + **/ + public Boolean getAssignIpv6Ip() { + return assignIpv6Ip; + } + + /** + * Whether the VNIC should be assigned a public IP address + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("assignPublicIp") + private final Boolean assignPublicIp; + + /** + * Whether the VNIC should be assigned a public IP address + * + * @return the value + **/ + public Boolean getAssignPublicIp() { + return assignPublicIp; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * The number of ip addresses to attach to secondary vnic + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipCount") + private final Integer ipCount; + + /** + * The number of ip addresses to attach to secondary vnic + * + * @return the value + **/ + public Integer getIpCount() { + return ipCount; + } + + /** + * The application resource that corresponds to this secondary vnic. Used to map pods to this specific vnic for scheduling + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applicationResources") + private final java.util.List applicationResources; + + /** + * The application resource that corresponds to this secondary vnic. Used to map pods to this specific vnic for scheduling + * + * @return the value + **/ + public java.util.List getApplicationResources() { + return applicationResources; + } + + /** + * A list of IPv6 prefixes from which the VNIC should be assigned an IPv6 address. You can provide only the prefix + * and OCI selects an available address from the range. You can optionally choose to leave the prefix range empty + * and instead provide the specific IPv6 address that should be used from within that range. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private final java.util.List + ipv6AddressIpv6SubnetCidrPairDetails; + + /** + * A list of IPv6 prefixes from which the VNIC should be assigned an IPv6 address. You can provide only the prefix + * and OCI selects an available address from the range. You can optionally choose to leave the prefix range empty + * and instead provide the specific IPv6 address that should be used from within that range. + * + * @return the value + **/ + public java.util.List + getIpv6AddressIpv6SubnetCidrPairDetails() { + return ipv6AddressIpv6SubnetCidrPairDetails; + } + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the VNIC to + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the VNIC to + * + * @return the value + **/ + public java.util.List getNsgIds() { + return nsgIds; + } + + /** + * Whether the source/destination check is disabled on the VNIC + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("skipSourceDestCheck") + private final Boolean skipSourceDestCheck; + + /** + * Whether the source/destination check is disabled on the VNIC + * + * @return the value + **/ + public Boolean getSkipSourceDestCheck() { + return skipSourceDestCheck; + } + + /** + * the ocid of the subnet to create the vnic in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * the ocid of the subnet to create the vnic in + * @return the value + **/ + public String getSubnetId() { + return subnetId; + } + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVnicDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", assignIpv6Ip=").append(String.valueOf(this.assignIpv6Ip)); + sb.append(", assignPublicIp=").append(String.valueOf(this.assignPublicIp)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", ipCount=").append(String.valueOf(this.ipCount)); + sb.append(", applicationResources=").append(String.valueOf(this.applicationResources)); + sb.append(", ipv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.ipv6AddressIpv6SubnetCidrPairDetails)); + sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", skipSourceDestCheck=").append(String.valueOf(this.skipSourceDestCheck)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVnicDetails)) { + return false; + } + + CreateVnicDetails other = (CreateVnicDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.assignIpv6Ip, other.assignIpv6Ip) + && java.util.Objects.equals(this.assignPublicIp, other.assignPublicIp) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.ipCount, other.ipCount) + && java.util.Objects.equals(this.applicationResources, other.applicationResources) + && java.util.Objects.equals( + this.ipv6AddressIpv6SubnetCidrPairDetails, + other.ipv6AddressIpv6SubnetCidrPairDetails) + && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.skipSourceDestCheck, other.skipSourceDestCheck) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && 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.assignIpv6Ip == null ? 43 : this.assignIpv6Ip.hashCode()); + result = + (result * PRIME) + + (this.assignPublicIp == null ? 43 : this.assignPublicIp.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.ipCount == null ? 43 : this.ipCount.hashCode()); + result = + (result * PRIME) + + (this.applicationResources == null + ? 43 + : this.applicationResources.hashCode()); + result = + (result * PRIME) + + (this.ipv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.ipv6AddressIpv6SubnetCidrPairDetails.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.skipSourceDestCheck == null + ? 43 + : this.skipSourceDestCheck.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/Ipv6AddressIpv6SubnetCidrPairDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/Ipv6AddressIpv6SubnetCidrPairDetails.java new file mode 100644 index 00000000000..9b38de8d83e --- /dev/null +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/Ipv6AddressIpv6SubnetCidrPairDetails.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerengine.model; + +/** + * Used to specify from which subnet prefixes an IPv6 address should be allocated, or to assign valid available IPv6 addresses + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = Ipv6AddressIpv6SubnetCidrPairDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Ipv6AddressIpv6SubnetCidrPairDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ipv6Address", "ipv6SubnetCidr"}) + public Ipv6AddressIpv6SubnetCidrPairDetails(String ipv6Address, String ipv6SubnetCidr) { + super(); + this.ipv6Address = ipv6Address; + this.ipv6SubnetCidr = ipv6SubnetCidr; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private String ipv6Address; + + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix + * + * @param ipv6Address the value to set + * @return this builder + **/ + public Builder ipv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + this.__explicitlySet__.add("ipv6Address"); + return this; + } + /** + * The IPv6 prefix allocated to the subnet + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6SubnetCidr") + private String ipv6SubnetCidr; + + /** + * The IPv6 prefix allocated to the subnet + * + * @param ipv6SubnetCidr the value to set + * @return this builder + **/ + public Builder ipv6SubnetCidr(String ipv6SubnetCidr) { + this.ipv6SubnetCidr = ipv6SubnetCidr; + this.__explicitlySet__.add("ipv6SubnetCidr"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Ipv6AddressIpv6SubnetCidrPairDetails build() { + Ipv6AddressIpv6SubnetCidrPairDetails model = + new Ipv6AddressIpv6SubnetCidrPairDetails(this.ipv6Address, this.ipv6SubnetCidr); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Ipv6AddressIpv6SubnetCidrPairDetails model) { + if (model.wasPropertyExplicitlySet("ipv6Address")) { + this.ipv6Address(model.getIpv6Address()); + } + if (model.wasPropertyExplicitlySet("ipv6SubnetCidr")) { + this.ipv6SubnetCidr(model.getIpv6SubnetCidr()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private final String ipv6Address; + + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix + * + * @return the value + **/ + public String getIpv6Address() { + return ipv6Address; + } + + /** + * The IPv6 prefix allocated to the subnet + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6SubnetCidr") + private final String ipv6SubnetCidr; + + /** + * The IPv6 prefix allocated to the subnet + * + * @return the value + **/ + public String getIpv6SubnetCidr() { + return ipv6SubnetCidr; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Ipv6AddressIpv6SubnetCidrPairDetails("); + sb.append("super=").append(super.toString()); + sb.append("ipv6Address=").append(String.valueOf(this.ipv6Address)); + sb.append(", ipv6SubnetCidr=").append(String.valueOf(this.ipv6SubnetCidr)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Ipv6AddressIpv6SubnetCidrPairDetails)) { + return false; + } + + Ipv6AddressIpv6SubnetCidrPairDetails other = (Ipv6AddressIpv6SubnetCidrPairDetails) o; + return java.util.Objects.equals(this.ipv6Address, other.ipv6Address) + && java.util.Objects.equals(this.ipv6SubnetCidr, other.ipv6SubnetCidr) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ipv6Address == null ? 43 : this.ipv6Address.hashCode()); + result = + (result * PRIME) + + (this.ipv6SubnetCidr == null ? 43 : this.ipv6SubnetCidr.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NetworkLaunchType.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NetworkLaunchType.java new file mode 100644 index 00000000000..c70b9117db9 --- /dev/null +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NetworkLaunchType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerengine.model; + +/** + * Emulation type for the physical network interface card (NIC) for nodes + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") +public enum NetworkLaunchType { + Vfio("VFIO"), + E1000("E1000"), + Paravirtualized("PARAVIRTUALIZED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(NetworkLaunchType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NetworkLaunchType v : NetworkLaunchType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NetworkLaunchType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NetworkLaunchType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NetworkLaunchType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePool.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePool.java index 4efbfad7412..f1d8c1e7a51 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePool.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePool.java @@ -44,7 +44,10 @@ public final class NodePool extends com.oracle.bmc.http.internal.ExplicitlySetBm "definedTags", "systemTags", "nodeEvictionNodePoolSettings", - "nodePoolCyclingDetails" + "nodePoolCyclingDetails", + "secondaryVnics", + "networkLaunchType", + "primaryVnic" }) public NodePool( String id, @@ -71,7 +74,10 @@ public NodePool( java.util.Map> definedTags, java.util.Map> systemTags, NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings, - NodePoolCyclingDetails nodePoolCyclingDetails) { + NodePoolCyclingDetails nodePoolCyclingDetails, + java.util.List secondaryVnics, + NetworkLaunchType networkLaunchType, + NodePoolPrimaryVnicDetails primaryVnic) { super(); this.id = id; this.lifecycleState = lifecycleState; @@ -98,6 +104,9 @@ public NodePool( this.systemTags = systemTags; this.nodeEvictionNodePoolSettings = nodeEvictionNodePoolSettings; this.nodePoolCyclingDetails = nodePoolCyclingDetails; + this.secondaryVnics = secondaryVnics; + this.networkLaunchType = networkLaunchType; + this.primaryVnic = primaryVnic; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -510,6 +519,47 @@ public Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDeta this.__explicitlySet__.add("nodePoolCyclingDetails"); return this; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @param secondaryVnics the value to set + * @return this builder + **/ + public Builder secondaryVnics(java.util.List secondaryVnics) { + this.secondaryVnics = secondaryVnics; + this.__explicitlySet__.add("secondaryVnics"); + return this; + } + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @param networkLaunchType the value to set + * @return this builder + **/ + public Builder networkLaunchType(NetworkLaunchType networkLaunchType) { + this.networkLaunchType = networkLaunchType; + this.__explicitlySet__.add("networkLaunchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private NodePoolPrimaryVnicDetails primaryVnic; + + public Builder primaryVnic(NodePoolPrimaryVnicDetails primaryVnic) { + this.primaryVnic = primaryVnic; + this.__explicitlySet__.add("primaryVnic"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -541,7 +591,10 @@ public NodePool build() { this.definedTags, this.systemTags, this.nodeEvictionNodePoolSettings, - this.nodePoolCyclingDetails); + this.nodePoolCyclingDetails, + this.secondaryVnics, + this.networkLaunchType, + this.primaryVnic); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -625,6 +678,15 @@ public Builder copy(NodePool model) { if (model.wasPropertyExplicitlySet("nodePoolCyclingDetails")) { this.nodePoolCyclingDetails(model.getNodePoolCyclingDetails()); } + if (model.wasPropertyExplicitlySet("secondaryVnics")) { + this.secondaryVnics(model.getSecondaryVnics()); + } + if (model.wasPropertyExplicitlySet("networkLaunchType")) { + this.networkLaunchType(model.getNetworkLaunchType()); + } + if (model.wasPropertyExplicitlySet("primaryVnic")) { + this.primaryVnic(model.getPrimaryVnic()); + } return this; } } @@ -996,6 +1058,41 @@ public NodePoolCyclingDetails getNodePoolCyclingDetails() { return nodePoolCyclingDetails; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private final java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @return the value + **/ + public java.util.List getSecondaryVnics() { + return secondaryVnics; + } + + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private final NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @return the value + **/ + public NetworkLaunchType getNetworkLaunchType() { + return networkLaunchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private final NodePoolPrimaryVnicDetails primaryVnic; + + public NodePoolPrimaryVnicDetails getPrimaryVnic() { + return primaryVnic; + } + @Override public String toString() { return this.toString(true); @@ -1036,6 +1133,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nodeEvictionNodePoolSettings=") .append(String.valueOf(this.nodeEvictionNodePoolSettings)); sb.append(", nodePoolCyclingDetails=").append(String.valueOf(this.nodePoolCyclingDetails)); + sb.append(", secondaryVnics=").append(String.valueOf(this.secondaryVnics)); + sb.append(", networkLaunchType=").append(String.valueOf(this.networkLaunchType)); + sb.append(", primaryVnic=").append(String.valueOf(this.primaryVnic)); sb.append(")"); return sb.toString(); } @@ -1077,6 +1177,9 @@ public boolean equals(Object o) { this.nodeEvictionNodePoolSettings, other.nodeEvictionNodePoolSettings) && java.util.Objects.equals( this.nodePoolCyclingDetails, other.nodePoolCyclingDetails) + && java.util.Objects.equals(this.secondaryVnics, other.secondaryVnics) + && java.util.Objects.equals(this.networkLaunchType, other.networkLaunchType) + && java.util.Objects.equals(this.primaryVnic, other.primaryVnic) && super.equals(other); } @@ -1137,6 +1240,13 @@ public int hashCode() { + (this.nodePoolCyclingDetails == null ? 43 : this.nodePoolCyclingDetails.hashCode()); + result = + (result * PRIME) + + (this.secondaryVnics == null ? 43 : this.secondaryVnics.hashCode()); + result = + (result * PRIME) + + (this.networkLaunchType == null ? 43 : this.networkLaunchType.hashCode()); + result = (result * PRIME) + (this.primaryVnic == null ? 43 : this.primaryVnic.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPrimaryVnicDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPrimaryVnicDetails.java new file mode 100644 index 00000000000..bb871d2610b --- /dev/null +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPrimaryVnicDetails.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerengine.model; + +/** + * Details for node's primary VNIC + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodePoolPrimaryVnicDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NodePoolPrimaryVnicDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"securityAttributes"}) + public NodePoolPrimaryVnicDetails( + java.util.Map> securityAttributes) { + super(); + this.securityAttributes = securityAttributes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodePoolPrimaryVnicDetails build() { + NodePoolPrimaryVnicDetails model = + new NodePoolPrimaryVnicDetails(this.securityAttributes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodePoolPrimaryVnicDetails model) { + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodePoolPrimaryVnicDetails("); + sb.append("super=").append(super.toString()); + sb.append("securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodePoolPrimaryVnicDetails)) { + return false; + } + + NodePoolPrimaryVnicDetails other = (NodePoolPrimaryVnicDetails) o; + return java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSecondaryVnicDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSecondaryVnicDetails.java new file mode 100644 index 00000000000..44684c2ab76 --- /dev/null +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSecondaryVnicDetails.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerengine.model; + +/** + * Details for secondary vnic attachments to Nodes + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodePoolSecondaryVnicDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NodePoolSecondaryVnicDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"createVnicDetails", "displayName", "nicIndex"}) + public NodePoolSecondaryVnicDetails( + CreateVnicDetails createVnicDetails, String displayName, Integer nicIndex) { + super(); + this.createVnicDetails = createVnicDetails; + this.displayName = displayName; + this.nicIndex = nicIndex; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("createVnicDetails") + private CreateVnicDetails createVnicDetails; + + public Builder createVnicDetails(CreateVnicDetails createVnicDetails) { + this.createVnicDetails = createVnicDetails; + this.__explicitlySet__.add("createVnicDetails"); + return this; + } + /** + * Display name for vnic attachment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name for vnic attachment + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Which physical network interface card (NIC) the VNIC will use + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nicIndex") + private Integer nicIndex; + + /** + * Which physical network interface card (NIC) the VNIC will use + * @param nicIndex the value to set + * @return this builder + **/ + public Builder nicIndex(Integer nicIndex) { + this.nicIndex = nicIndex; + this.__explicitlySet__.add("nicIndex"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodePoolSecondaryVnicDetails build() { + NodePoolSecondaryVnicDetails model = + new NodePoolSecondaryVnicDetails( + this.createVnicDetails, this.displayName, this.nicIndex); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodePoolSecondaryVnicDetails model) { + if (model.wasPropertyExplicitlySet("createVnicDetails")) { + this.createVnicDetails(model.getCreateVnicDetails()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nicIndex")) { + this.nicIndex(model.getNicIndex()); + } + 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("createVnicDetails") + private final CreateVnicDetails createVnicDetails; + + public CreateVnicDetails getCreateVnicDetails() { + return createVnicDetails; + } + + /** + * Display name for vnic attachment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name for vnic attachment + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Which physical network interface card (NIC) the VNIC will use + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nicIndex") + private final Integer nicIndex; + + /** + * Which physical network interface card (NIC) the VNIC will use + * @return the value + **/ + public Integer getNicIndex() { + return nicIndex; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodePoolSecondaryVnicDetails("); + sb.append("super=").append(super.toString()); + sb.append("createVnicDetails=").append(String.valueOf(this.createVnicDetails)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nicIndex=").append(String.valueOf(this.nicIndex)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodePoolSecondaryVnicDetails)) { + return false; + } + + NodePoolSecondaryVnicDetails other = (NodePoolSecondaryVnicDetails) o; + return java.util.Objects.equals(this.createVnicDetails, other.createVnicDetails) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nicIndex, other.nicIndex) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.createVnicDetails == null ? 43 : this.createVnicDetails.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.nicIndex == null ? 43 : this.nicIndex.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSummary.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSummary.java index 40bac11eee0..688b741eeb7 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSummary.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolSummary.java @@ -42,7 +42,10 @@ public final class NodePoolSummary extends com.oracle.bmc.http.internal.Explicit "definedTags", "systemTags", "nodeEvictionNodePoolSettings", - "nodePoolCyclingDetails" + "nodePoolCyclingDetails", + "secondaryVnics", + "networkLaunchType", + "primaryVnic" }) public NodePoolSummary( String id, @@ -67,7 +70,10 @@ public NodePoolSummary( java.util.Map> definedTags, java.util.Map> systemTags, NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings, - NodePoolCyclingDetails nodePoolCyclingDetails) { + NodePoolCyclingDetails nodePoolCyclingDetails, + java.util.List secondaryVnics, + NetworkLaunchType networkLaunchType, + NodePoolPrimaryVnicDetails primaryVnic) { super(); this.id = id; this.lifecycleState = lifecycleState; @@ -92,6 +98,9 @@ public NodePoolSummary( this.systemTags = systemTags; this.nodeEvictionNodePoolSettings = nodeEvictionNodePoolSettings; this.nodePoolCyclingDetails = nodePoolCyclingDetails; + this.secondaryVnics = secondaryVnics; + this.networkLaunchType = networkLaunchType; + this.primaryVnic = primaryVnic; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -472,6 +481,47 @@ public Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDeta this.__explicitlySet__.add("nodePoolCyclingDetails"); return this; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @param secondaryVnics the value to set + * @return this builder + **/ + public Builder secondaryVnics(java.util.List secondaryVnics) { + this.secondaryVnics = secondaryVnics; + this.__explicitlySet__.add("secondaryVnics"); + return this; + } + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @param networkLaunchType the value to set + * @return this builder + **/ + public Builder networkLaunchType(NetworkLaunchType networkLaunchType) { + this.networkLaunchType = networkLaunchType; + this.__explicitlySet__.add("networkLaunchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private NodePoolPrimaryVnicDetails primaryVnic; + + public Builder primaryVnic(NodePoolPrimaryVnicDetails primaryVnic) { + this.primaryVnic = primaryVnic; + this.__explicitlySet__.add("primaryVnic"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -501,7 +551,10 @@ public NodePoolSummary build() { this.definedTags, this.systemTags, this.nodeEvictionNodePoolSettings, - this.nodePoolCyclingDetails); + this.nodePoolCyclingDetails, + this.secondaryVnics, + this.networkLaunchType, + this.primaryVnic); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -579,6 +632,15 @@ public Builder copy(NodePoolSummary model) { if (model.wasPropertyExplicitlySet("nodePoolCyclingDetails")) { this.nodePoolCyclingDetails(model.getNodePoolCyclingDetails()); } + if (model.wasPropertyExplicitlySet("secondaryVnics")) { + this.secondaryVnics(model.getSecondaryVnics()); + } + if (model.wasPropertyExplicitlySet("networkLaunchType")) { + this.networkLaunchType(model.getNetworkLaunchType()); + } + if (model.wasPropertyExplicitlySet("primaryVnic")) { + this.primaryVnic(model.getPrimaryVnic()); + } return this; } } @@ -922,6 +984,41 @@ public NodePoolCyclingDetails getNodePoolCyclingDetails() { return nodePoolCyclingDetails; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private final java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @return the value + **/ + public java.util.List getSecondaryVnics() { + return secondaryVnics; + } + + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private final NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @return the value + **/ + public NetworkLaunchType getNetworkLaunchType() { + return networkLaunchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private final NodePoolPrimaryVnicDetails primaryVnic; + + public NodePoolPrimaryVnicDetails getPrimaryVnic() { + return primaryVnic; + } + @Override public String toString() { return this.toString(true); @@ -960,6 +1057,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nodeEvictionNodePoolSettings=") .append(String.valueOf(this.nodeEvictionNodePoolSettings)); sb.append(", nodePoolCyclingDetails=").append(String.valueOf(this.nodePoolCyclingDetails)); + sb.append(", secondaryVnics=").append(String.valueOf(this.secondaryVnics)); + sb.append(", networkLaunchType=").append(String.valueOf(this.networkLaunchType)); + sb.append(", primaryVnic=").append(String.valueOf(this.primaryVnic)); sb.append(")"); return sb.toString(); } @@ -999,6 +1099,9 @@ public boolean equals(Object o) { this.nodeEvictionNodePoolSettings, other.nodeEvictionNodePoolSettings) && java.util.Objects.equals( this.nodePoolCyclingDetails, other.nodePoolCyclingDetails) + && java.util.Objects.equals(this.secondaryVnics, other.secondaryVnics) + && java.util.Objects.equals(this.networkLaunchType, other.networkLaunchType) + && java.util.Objects.equals(this.primaryVnic, other.primaryVnic) && super.equals(other); } @@ -1057,6 +1160,13 @@ public int hashCode() { + (this.nodePoolCyclingDetails == null ? 43 : this.nodePoolCyclingDetails.hashCode()); + result = + (result * PRIME) + + (this.secondaryVnics == null ? 43 : this.secondaryVnics.hashCode()); + result = + (result * PRIME) + + (this.networkLaunchType == null ? 43 : this.networkLaunchType.hashCode()); + result = (result * PRIME) + (this.primaryVnic == null ? 43 : this.primaryVnic.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateClusterEndpointConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateClusterEndpointConfigDetails.java index ab8d080e3c5..3731574de8f 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateClusterEndpointConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateClusterEndpointConfigDetails.java @@ -22,12 +22,15 @@ public final class UpdateClusterEndpointConfigDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"nsgIds", "isPublicIpEnabled"}) + @java.beans.ConstructorProperties({"nsgIds", "isPublicIpEnabled", "securityAttributes"}) public UpdateClusterEndpointConfigDetails( - java.util.List nsgIds, Boolean isPublicIpEnabled) { + java.util.List nsgIds, + Boolean isPublicIpEnabled, + java.util.Map> securityAttributes) { super(); this.nsgIds = nsgIds; this.isPublicIpEnabled = isPublicIpEnabled; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -66,13 +69,37 @@ public Builder isPublicIpEnabled(Boolean isPublicIpEnabled) { this.__explicitlySet__.add("isPublicIpEnabled"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateClusterEndpointConfigDetails build() { UpdateClusterEndpointConfigDetails model = - new UpdateClusterEndpointConfigDetails(this.nsgIds, this.isPublicIpEnabled); + new UpdateClusterEndpointConfigDetails( + this.nsgIds, this.isPublicIpEnabled, this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -87,6 +114,9 @@ public Builder copy(UpdateClusterEndpointConfigDetails model) { if (model.wasPropertyExplicitlySet("isPublicIpEnabled")) { this.isPublicIpEnabled(model.getIsPublicIpEnabled()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -132,6 +162,26 @@ public Boolean getIsPublicIpEnabled() { return isPublicIpEnabled; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + * for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -148,6 +198,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", isPublicIpEnabled=").append(String.valueOf(this.isPublicIpEnabled)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -164,6 +215,7 @@ public boolean equals(Object o) { UpdateClusterEndpointConfigDetails other = (UpdateClusterEndpointConfigDetails) o; return java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.isPublicIpEnabled, other.isPublicIpEnabled) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -175,6 +227,11 @@ public int hashCode() { result = (result * PRIME) + (this.isPublicIpEnabled == null ? 43 : this.isPublicIpEnabled.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateNodePoolDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateNodePoolDetails.java index dbfb62434ea..15b7639fd0c 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateNodePoolDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateNodePoolDetails.java @@ -37,7 +37,10 @@ public final class UpdateNodePoolDetails "freeformTags", "definedTags", "nodeEvictionNodePoolSettings", - "nodePoolCyclingDetails" + "nodePoolCyclingDetails", + "secondaryVnics", + "networkLaunchType", + "primaryVnic" }) public UpdateNodePoolDetails( String name, @@ -54,7 +57,10 @@ public UpdateNodePoolDetails( java.util.Map freeformTags, java.util.Map> definedTags, NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings, - NodePoolCyclingDetails nodePoolCyclingDetails) { + NodePoolCyclingDetails nodePoolCyclingDetails, + java.util.List secondaryVnics, + NetworkLaunchType networkLaunchType, + NodePoolPrimaryVnicDetails primaryVnic) { super(); this.name = name; this.kubernetesVersion = kubernetesVersion; @@ -71,6 +77,9 @@ public UpdateNodePoolDetails( this.definedTags = definedTags; this.nodeEvictionNodePoolSettings = nodeEvictionNodePoolSettings; this.nodePoolCyclingDetails = nodePoolCyclingDetails; + this.secondaryVnics = secondaryVnics; + this.networkLaunchType = networkLaunchType; + this.primaryVnic = primaryVnic; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -343,6 +352,47 @@ public Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDeta this.__explicitlySet__.add("nodePoolCyclingDetails"); return this; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @param secondaryVnics the value to set + * @return this builder + **/ + public Builder secondaryVnics(java.util.List secondaryVnics) { + this.secondaryVnics = secondaryVnics; + this.__explicitlySet__.add("secondaryVnics"); + return this; + } + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @param networkLaunchType the value to set + * @return this builder + **/ + public Builder networkLaunchType(NetworkLaunchType networkLaunchType) { + this.networkLaunchType = networkLaunchType; + this.__explicitlySet__.add("networkLaunchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private NodePoolPrimaryVnicDetails primaryVnic; + + public Builder primaryVnic(NodePoolPrimaryVnicDetails primaryVnic) { + this.primaryVnic = primaryVnic; + this.__explicitlySet__.add("primaryVnic"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -364,7 +414,10 @@ public UpdateNodePoolDetails build() { this.freeformTags, this.definedTags, this.nodeEvictionNodePoolSettings, - this.nodePoolCyclingDetails); + this.nodePoolCyclingDetails, + this.secondaryVnics, + this.networkLaunchType, + this.primaryVnic); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -418,6 +471,15 @@ public Builder copy(UpdateNodePoolDetails model) { if (model.wasPropertyExplicitlySet("nodePoolCyclingDetails")) { this.nodePoolCyclingDetails(model.getNodePoolCyclingDetails()); } + if (model.wasPropertyExplicitlySet("secondaryVnics")) { + this.secondaryVnics(model.getSecondaryVnics()); + } + if (model.wasPropertyExplicitlySet("networkLaunchType")) { + this.networkLaunchType(model.getNetworkLaunchType()); + } + if (model.wasPropertyExplicitlySet("primaryVnic")) { + this.primaryVnic(model.getPrimaryVnic()); + } return this; } } @@ -669,6 +731,41 @@ public NodePoolCyclingDetails getNodePoolCyclingDetails() { return nodePoolCyclingDetails; } + /** + * A list of secondary vnics to attach to nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryVnics") + private final java.util.List secondaryVnics; + + /** + * A list of secondary vnics to attach to nodes + * @return the value + **/ + public java.util.List getSecondaryVnics() { + return secondaryVnics; + } + + /** + * Emulation type for the physical network interface card (NIC) for nodes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkLaunchType") + private final NetworkLaunchType networkLaunchType; + + /** + * Emulation type for the physical network interface card (NIC) for nodes + * @return the value + **/ + public NetworkLaunchType getNetworkLaunchType() { + return networkLaunchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryVnic") + private final NodePoolPrimaryVnicDetails primaryVnic; + + public NodePoolPrimaryVnicDetails getPrimaryVnic() { + return primaryVnic; + } + @Override public String toString() { return this.toString(true); @@ -699,6 +796,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nodeEvictionNodePoolSettings=") .append(String.valueOf(this.nodeEvictionNodePoolSettings)); sb.append(", nodePoolCyclingDetails=").append(String.valueOf(this.nodePoolCyclingDetails)); + sb.append(", secondaryVnics=").append(String.valueOf(this.secondaryVnics)); + sb.append(", networkLaunchType=").append(String.valueOf(this.networkLaunchType)); + sb.append(", primaryVnic=").append(String.valueOf(this.primaryVnic)); sb.append(")"); return sb.toString(); } @@ -730,6 +830,9 @@ public boolean equals(Object o) { this.nodeEvictionNodePoolSettings, other.nodeEvictionNodePoolSettings) && java.util.Objects.equals( this.nodePoolCyclingDetails, other.nodePoolCyclingDetails) + && java.util.Objects.equals(this.secondaryVnics, other.secondaryVnics) + && java.util.Objects.equals(this.networkLaunchType, other.networkLaunchType) + && java.util.Objects.equals(this.primaryVnic, other.primaryVnic) && super.equals(other); } @@ -772,6 +875,13 @@ public int hashCode() { + (this.nodePoolCyclingDetails == null ? 43 : this.nodePoolCyclingDetails.hashCode()); + result = + (result * PRIME) + + (this.secondaryVnics == null ? 43 : this.secondaryVnics.hashCode()); + result = + (result * PRIME) + + (this.networkLaunchType == null ? 43 : this.networkLaunchType.hashCode()); + result = (result * PRIME) + (this.primaryVnic == null ? 43 : this.primaryVnic.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 135064e7df9..aa80ea45dac 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-containerinstances @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java index 7b3a5e61d68..227f2c94d69 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java @@ -56,19 +56,25 @@ public Builder username(String username) { * The password which should be used with the registry for authentication. The value is expected in base64 format. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password which should be used with the registry for authentication. The value is expected in base64 format. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -113,6 +119,15 @@ public CreateBasicImagePullSecretDetails( String registryEndpoint, String username, String password) { super(registryEndpoint); this.username = username; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateBasicImagePullSecretDetails( + String registryEndpoint, String username, char[] password) { + super(registryEndpoint); + this.username = username; this.password = password; } @@ -134,13 +149,25 @@ public String getUsername() { * The password which should be used with the registry for authentication. The value is expected in base64 format. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password which should be used with the registry for authentication. The value is expected in base64 format. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password which should be used with the registry for authentication. The value is expected in base64 format. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 142ee871340..b80b30b0c00 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryAsyncClient.java b/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryAsyncClient.java index 1e8e842bb65..39e5be93197 100644 --- a/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryAsyncClient.java +++ b/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryAsyncClient.java @@ -484,7 +484,10 @@ public java.util.concurrent.Future getAccessToken( GetAccessTokenConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "ContainerRegistry", "GetAccessToken", ib.getRequestUri().toString(), ""); + "ContainerRegistry", + "GetAccessToken", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/container-registry/20180419/AccessToken/GetAccessToken"); final java.util.function.Function transformer = GetAccessTokenConverter.fromResponse(java.util.Optional.of(serviceDetails)); diff --git a/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryClient.java b/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryClient.java index 7a70b746171..0c25916f820 100644 --- a/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryClient.java +++ b/bmc-containerregistry/src/main/java/com/oracle/bmc/containerregistry/ContainerRegistryClient.java @@ -496,7 +496,10 @@ public GetAccessTokenResponse getAccessToken(GetAccessTokenRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "ContainerRegistry", "GetAccessToken", ib.getRequestUri().toString(), ""); + "ContainerRegistry", + "GetAccessToken", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/container-registry/20180419/AccessToken/GetAccessToken"); java.util.function.Function transformer = GetAccessTokenConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 2c906876215..b69007c6005 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.91.0 + 2.93.0 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java b/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java index 94edd282787..9f08ccd9445 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java @@ -959,29 +959,29 @@ GetComputeGpuMemoryFabricResponse getComputeGpuMemoryFabric( GetComputeGpuMemoryFabricRequest request); /** - * Gets information about the specified compute host group + * Gets information about the specified compute host + * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use GetComputeHostGroup API. + * Example: Click here to see how to use GetComputeHost API. */ - GetComputeHostGroupResponse getComputeHostGroup(GetComputeHostGroupRequest request); + GetComputeHostResponse getComputeHost(GetComputeHostRequest request); /** - * Gets information about the specified compute host - * + * Gets information about the specified compute host group * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use GetComputeHosts API. + * Example: Click here to see how to use GetComputeHostGroup API. */ - GetComputeHostsResponse getComputeHosts(GetComputeHostsRequest request); + GetComputeHostGroupResponse getComputeHostGroup(GetComputeHostGroupRequest request); /** * Gets the specified Compute Image Capability Schema @@ -1926,29 +1926,29 @@ UpdateComputeGpuMemoryFabricResponse updateComputeGpuMemoryFabric( UpdateComputeGpuMemoryFabricRequest request); /** - * Updates the specified compute host group details. + * Customer can update the some fields for ComputeHost record + * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use UpdateComputeHostGroup API. + * Example: Click here to see how to use UpdateComputeHost API. */ - UpdateComputeHostGroupResponse updateComputeHostGroup(UpdateComputeHostGroupRequest request); + UpdateComputeHostResponse updateComputeHost(UpdateComputeHostRequest request); /** - * Customer can update the some fields for ComputeHost record - * + * Updates the specified compute host group details. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use UpdateComputeHosts API. + * Example: Click here to see how to use UpdateComputeHostGroup API. */ - UpdateComputeHostsResponse updateComputeHosts(UpdateComputeHostsRequest request); + UpdateComputeHostGroupResponse updateComputeHostGroup(UpdateComputeHostGroupRequest request); /** * Updates the specified Compute Image Capability Schema diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java index 8fef41b5b2d..6f1776e653d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java @@ -1192,7 +1192,8 @@ java.util.concurrent.Future getComputeGpuMemo handler); /** - * Gets information about the specified compute host group + * Gets information about the specified compute host + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1201,15 +1202,13 @@ java.util.concurrent.Future getComputeGpuMemo * types of responses (like java.io.InputStream) may not be able to be read in * both places as the underlying stream may only be consumed once. */ - java.util.concurrent.Future getComputeHostGroup( - GetComputeHostGroupRequest request, - com.oracle.bmc.responses.AsyncHandler< - GetComputeHostGroupRequest, GetComputeHostGroupResponse> + java.util.concurrent.Future getComputeHost( + GetComputeHostRequest request, + com.oracle.bmc.responses.AsyncHandler handler); /** - * Gets information about the specified compute host - * + * Gets information about the specified compute host group * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1218,9 +1217,10 @@ java.util.concurrent.Future getComputeHostGroup( * types of responses (like java.io.InputStream) may not be able to be read in * both places as the underlying stream may only be consumed once. */ - java.util.concurrent.Future getComputeHosts( - GetComputeHostsRequest request, - com.oracle.bmc.responses.AsyncHandler + java.util.concurrent.Future getComputeHostGroup( + GetComputeHostGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetComputeHostGroupRequest, GetComputeHostGroupResponse> handler); /** @@ -2402,7 +2402,8 @@ java.util.concurrent.Future updateComputeG handler); /** - * Updates the specified compute host group details. + * Customer can update the some fields for ComputeHost record + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -2411,15 +2412,14 @@ java.util.concurrent.Future updateComputeG * types of responses (like java.io.InputStream) may not be able to be read in * both places as the underlying stream may only be consumed once. */ - java.util.concurrent.Future updateComputeHostGroup( - UpdateComputeHostGroupRequest request, + java.util.concurrent.Future updateComputeHost( + UpdateComputeHostRequest request, com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> + UpdateComputeHostRequest, UpdateComputeHostResponse> handler); /** - * Customer can update the some fields for ComputeHost record - * + * Updates the specified compute host group details. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -2428,10 +2428,10 @@ java.util.concurrent.Future updateComputeHostGro * types of responses (like java.io.InputStream) may not be able to be read in * both places as the underlying stream may only be consumed once. */ - java.util.concurrent.Future updateComputeHosts( - UpdateComputeHostsRequest request, + java.util.concurrent.Future updateComputeHostGroup( + UpdateComputeHostGroupRequest request, com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostsRequest, UpdateComputeHostsResponse> + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> handler); /** diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java index 9b2d3ef81a1..758ef00541c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java @@ -3542,40 +3542,38 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getComputeHostGroup( - GetComputeHostGroupRequest request, + public java.util.concurrent.Future getComputeHost( + GetComputeHostRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetComputeHostGroupRequest, GetComputeHostGroupResponse> + GetComputeHostRequest, GetComputeHostResponse> handler) { - LOG.trace("Called async getComputeHostGroup"); - final GetComputeHostGroupRequest interceptedRequest = - GetComputeHostGroupConverter.interceptRequest(request); + LOG.trace("Called async getComputeHost"); + final GetComputeHostRequest interceptedRequest = + GetComputeHostConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetComputeHostGroupConverter.fromRequest(client, interceptedRequest); + GetComputeHostConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "GetComputeHostGroup", + "GetComputeHost", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/GetComputeHostGroup"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/GetComputeHost"); + final java.util.function.Function transformer = - GetComputeHostGroupConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetComputeHostGroupRequest, GetComputeHostGroupResponse> + GetComputeHostConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetComputeHostGroupRequest, GetComputeHostGroupResponse>, - java.util.concurrent.Future> + GetComputeHostRequest, GetComputeHostResponse>, + 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< - GetComputeHostGroupRequest, GetComputeHostGroupResponse>( + GetComputeHostRequest, GetComputeHostResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -3589,39 +3587,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getComputeHosts( - GetComputeHostsRequest request, + public java.util.concurrent.Future getComputeHostGroup( + GetComputeHostGroupRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetComputeHostsRequest, GetComputeHostsResponse> + GetComputeHostGroupRequest, GetComputeHostGroupResponse> handler) { - LOG.trace("Called async getComputeHosts"); - final GetComputeHostsRequest interceptedRequest = - GetComputeHostsConverter.interceptRequest(request); + LOG.trace("Called async getComputeHostGroup"); + final GetComputeHostGroupRequest interceptedRequest = + GetComputeHostGroupConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetComputeHostsConverter.fromRequest(client, interceptedRequest); + GetComputeHostGroupConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "GetComputeHosts", + "GetComputeHostGroup", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/GetComputeHosts"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/GetComputeHostGroup"); + final java.util.function.Function transformer = - GetComputeHostsConverter.fromResponse( + GetComputeHostGroupConverter.fromResponse( java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + GetComputeHostGroupRequest, GetComputeHostGroupResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetComputeHostsRequest, GetComputeHostsResponse>, - java.util.concurrent.Future> + GetComputeHostGroupRequest, GetComputeHostGroupResponse>, + 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< - GetComputeHostsRequest, GetComputeHostsResponse>( + GetComputeHostGroupRequest, GetComputeHostGroupResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -6603,46 +6602,45 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future updateComputeHostGroup( - UpdateComputeHostGroupRequest request, + public java.util.concurrent.Future updateComputeHost( + UpdateComputeHostRequest request, final com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> + UpdateComputeHostRequest, UpdateComputeHostResponse> handler) { - LOG.trace("Called async updateComputeHostGroup"); - final UpdateComputeHostGroupRequest interceptedRequest = - UpdateComputeHostGroupConverter.interceptRequest(request); + LOG.trace("Called async updateComputeHost"); + final UpdateComputeHostRequest interceptedRequest = + UpdateComputeHostConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateComputeHostGroupConverter.fromRequest(client, interceptedRequest); + UpdateComputeHostConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "UpdateComputeHostGroup", + "UpdateComputeHost", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/UpdateComputeHostGroup"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/UpdateComputeHost"); + final java.util.function.Function transformer = - UpdateComputeHostGroupConverter.fromResponse( + UpdateComputeHostConverter.fromResponse( java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse>, - java.util.concurrent.Future> + UpdateComputeHostRequest, UpdateComputeHostResponse>, + java.util.concurrent.Future> futureSupplier = client.putFutureSupplier( interceptedRequest, - interceptedRequest.getUpdateComputeHostGroupDetails(), + interceptedRequest.getUpdateComputeHostDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse>( + UpdateComputeHostRequest, UpdateComputeHostResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -6656,45 +6654,46 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future updateComputeHosts( - UpdateComputeHostsRequest request, + public java.util.concurrent.Future updateComputeHostGroup( + UpdateComputeHostGroupRequest request, final com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostsRequest, UpdateComputeHostsResponse> + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> handler) { - LOG.trace("Called async updateComputeHosts"); - final UpdateComputeHostsRequest interceptedRequest = - UpdateComputeHostsConverter.interceptRequest(request); + LOG.trace("Called async updateComputeHostGroup"); + final UpdateComputeHostGroupRequest interceptedRequest = + UpdateComputeHostGroupConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateComputeHostsConverter.fromRequest(client, interceptedRequest); + UpdateComputeHostGroupConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "UpdateComputeHosts", + "UpdateComputeHostGroup", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/UpdateComputeHosts"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/UpdateComputeHostGroup"); + final java.util.function.Function transformer = - UpdateComputeHostsConverter.fromResponse( + UpdateComputeHostGroupConverter.fromResponse( java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - UpdateComputeHostsRequest, UpdateComputeHostsResponse>, - java.util.concurrent.Future> + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse>, + java.util.concurrent.Future> futureSupplier = client.putFutureSupplier( interceptedRequest, - interceptedRequest.getUpdateComputeHostsDetails(), + interceptedRequest.getUpdateComputeHostGroupDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateComputeHostsRequest, UpdateComputeHostsResponse>( + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java index e021037c6f8..5bb675b77e1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java @@ -2955,12 +2955,12 @@ public GetComputeGpuMemoryFabricResponse getComputeGpuMemoryFabric( } @Override - public GetComputeHostGroupResponse getComputeHostGroup(GetComputeHostGroupRequest request) { - LOG.trace("Called getComputeHostGroup"); - final GetComputeHostGroupRequest interceptedRequest = - GetComputeHostGroupConverter.interceptRequest(request); + public GetComputeHostResponse getComputeHost(GetComputeHostRequest request) { + LOG.trace("Called getComputeHost"); + final GetComputeHostRequest interceptedRequest = + GetComputeHostConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetComputeHostGroupConverter.fromRequest(client, interceptedRequest); + GetComputeHostConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -2969,13 +2969,11 @@ public GetComputeHostGroupResponse getComputeHostGroup(GetComputeHostGroupReques com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "GetComputeHostGroup", + "GetComputeHost", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/GetComputeHostGroup"); - java.util.function.Function - transformer = - GetComputeHostGroupConverter.fromResponse( - java.util.Optional.of(serviceDetails)); + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/GetComputeHost"); + java.util.function.Function transformer = + GetComputeHostConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -2992,12 +2990,12 @@ public GetComputeHostGroupResponse getComputeHostGroup(GetComputeHostGroupReques } @Override - public GetComputeHostsResponse getComputeHosts(GetComputeHostsRequest request) { - LOG.trace("Called getComputeHosts"); - final GetComputeHostsRequest interceptedRequest = - GetComputeHostsConverter.interceptRequest(request); + public GetComputeHostGroupResponse getComputeHostGroup(GetComputeHostGroupRequest request) { + LOG.trace("Called getComputeHostGroup"); + final GetComputeHostGroupRequest interceptedRequest = + GetComputeHostGroupConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetComputeHostsConverter.fromRequest(client, interceptedRequest); + GetComputeHostGroupConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -3006,12 +3004,12 @@ public GetComputeHostsResponse getComputeHosts(GetComputeHostsRequest request) { com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "GetComputeHosts", + "GetComputeHostGroup", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/GetComputeHosts"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/GetComputeHostGroup"); + java.util.function.Function transformer = - GetComputeHostsConverter.fromResponse( + GetComputeHostGroupConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -5312,13 +5310,12 @@ public UpdateComputeGpuMemoryFabricResponse updateComputeGpuMemoryFabric( } @Override - public UpdateComputeHostGroupResponse updateComputeHostGroup( - UpdateComputeHostGroupRequest request) { - LOG.trace("Called updateComputeHostGroup"); - final UpdateComputeHostGroupRequest interceptedRequest = - UpdateComputeHostGroupConverter.interceptRequest(request); + public UpdateComputeHostResponse updateComputeHost(UpdateComputeHostRequest request) { + LOG.trace("Called updateComputeHost"); + final UpdateComputeHostRequest interceptedRequest = + UpdateComputeHostConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateComputeHostGroupConverter.fromRequest(client, interceptedRequest); + UpdateComputeHostConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -5328,12 +5325,12 @@ public UpdateComputeHostGroupResponse updateComputeHostGroup( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "UpdateComputeHostGroup", + "UpdateComputeHost", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/UpdateComputeHostGroup"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/UpdateComputeHost"); + java.util.function.Function transformer = - UpdateComputeHostGroupConverter.fromResponse( + UpdateComputeHostConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -5347,7 +5344,7 @@ public UpdateComputeHostGroupResponse updateComputeHostGroup( javax.ws.rs.core.Response response = client.put( ib, - retriedRequest.getUpdateComputeHostGroupDetails(), + retriedRequest.getUpdateComputeHostDetails(), retriedRequest); return transformer.apply(response); }); @@ -5355,12 +5352,13 @@ public UpdateComputeHostGroupResponse updateComputeHostGroup( } @Override - public UpdateComputeHostsResponse updateComputeHosts(UpdateComputeHostsRequest request) { - LOG.trace("Called updateComputeHosts"); - final UpdateComputeHostsRequest interceptedRequest = - UpdateComputeHostsConverter.interceptRequest(request); + public UpdateComputeHostGroupResponse updateComputeHostGroup( + UpdateComputeHostGroupRequest request) { + LOG.trace("Called updateComputeHostGroup"); + final UpdateComputeHostGroupRequest interceptedRequest = + UpdateComputeHostGroupConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateComputeHostsConverter.fromRequest(client, interceptedRequest); + UpdateComputeHostGroupConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -5370,12 +5368,12 @@ public UpdateComputeHostsResponse updateComputeHosts(UpdateComputeHostsRequest r com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Compute", - "UpdateComputeHosts", + "UpdateComputeHostGroup", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/UpdateComputeHosts"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/UpdateComputeHostGroup"); + java.util.function.Function transformer = - UpdateComputeHostsConverter.fromResponse( + UpdateComputeHostGroupConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -5389,7 +5387,7 @@ public UpdateComputeHostsResponse updateComputeHosts(UpdateComputeHostsRequest r javax.ws.rs.core.Response response = client.put( ib, - retriedRequest.getUpdateComputeHostsDetails(), + retriedRequest.getUpdateComputeHostGroupDetails(), retriedRequest); return transformer.apply(response); }); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java index dc7b20d454a..cd6e8aabdb2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java @@ -1964,6 +1964,107 @@ public boolean test(GetComputeGpuMemoryFabricResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forComputeHost( + GetComputeHostRequest request, + com.oracle.bmc.core.model.ComputeHost.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 forComputeHost( + 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 + forComputeHost( + GetComputeHostRequest request, + com.oracle.bmc.core.model.ComputeHost.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 forComputeHost( + 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 + forComputeHost( + GetComputeHostRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.core.model.ComputeHost.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 forComputeHost( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ComputeHost. + private com.oracle.bmc.waiter.Waiter + forComputeHost( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetComputeHostRequest request, + final com.oracle.bmc.core.model.ComputeHost.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< + GetComputeHostRequest, GetComputeHostResponse>() { + @Override + public GetComputeHostResponse apply(GetComputeHostRequest request) { + return client.getComputeHost(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetComputeHostResponse response) { + return targetStatesSet.contains( + response.getComputeHost().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -3370,10 +3471,9 @@ public UpdateComputeGpuMemoryClusterResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> - forUpdateComputeHostGroup(UpdateComputeHostGroupRequest request) { - return forUpdateComputeHostGroup( + public com.oracle.bmc.waiter.Waiter + forUpdateComputeHost(UpdateComputeHostRequest request) { + return forUpdateComputeHost( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -3387,10 +3487,9 @@ public UpdateComputeGpuMemoryClusterResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> - forUpdateComputeHostGroup( - UpdateComputeHostGroupRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateComputeHost( + UpdateComputeHostRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -3400,11 +3499,11 @@ public UpdateComputeGpuMemoryClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateComputeHostGroupResponse call() throws Exception { - final UpdateComputeHostGroupResponse response = - client.updateComputeHostGroup(request); + public UpdateComputeHostResponse call() throws Exception { + final UpdateComputeHostResponse response = + client.updateComputeHost(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -3433,9 +3532,10 @@ public UpdateComputeHostGroupResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateComputeHosts(UpdateComputeHostsRequest request) { - return forUpdateComputeHosts( + public com.oracle.bmc.waiter.Waiter< + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> + forUpdateComputeHostGroup(UpdateComputeHostGroupRequest request) { + return forUpdateComputeHostGroup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -3449,9 +3549,10 @@ public UpdateComputeHostGroupResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateComputeHosts( - UpdateComputeHostsRequest request, + public com.oracle.bmc.waiter.Waiter< + UpdateComputeHostGroupRequest, UpdateComputeHostGroupResponse> + forUpdateComputeHostGroup( + UpdateComputeHostGroupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -3461,11 +3562,11 @@ public UpdateComputeHostGroupResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateComputeHostsResponse call() throws Exception { - final UpdateComputeHostsResponse response = - client.updateComputeHosts(request); + public UpdateComputeHostGroupResponse call() throws Exception { + final UpdateComputeHostGroupResponse response = + client.updateComputeHostGroup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java index 95fe0afe43d..0fae12dda58 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java @@ -235,7 +235,7 @@ BulkAddVirtualCircuitPublicPrefixesResponse bulkAddVirtualCircuitPublicPrefixes( BulkAddVirtualCircuitPublicPrefixesRequest request); /** - * Create new IPv6s for a VNIC or Subnet. + * Create new IPv6s in bulk for a VNIC or subnet. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -261,7 +261,7 @@ BulkAddVirtualCircuitPublicPrefixesResponse bulkAddVirtualCircuitPublicPrefixes( BulkCreatePrivateIpsResponse bulkCreatePrivateIps(BulkCreatePrivateIpsRequest request); /** - * Unassigns and deletes IPv6s for a VNIC. + * Unassign and delete IPv6s for a VNIC in bulk. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -274,7 +274,7 @@ BulkAddVirtualCircuitPublicPrefixesResponse bulkAddVirtualCircuitPublicPrefixes( BulkDeleteIpv6sResponse bulkDeleteIpv6s(BulkDeleteIpv6sRequest request); /** - * Unassigns and deletes secondary private IPv4s for a VNIC. + * Unassign and delete secondary private IPv4s for a VNIC. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -304,7 +304,7 @@ BulkDeleteVirtualCircuitPublicPrefixesResponse bulkDeleteVirtualCircuitPublicPre BulkDeleteVirtualCircuitPublicPrefixesRequest request); /** - * detach the specified IPv6s. + * Detach the specified IPv6s. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -317,7 +317,7 @@ BulkDeleteVirtualCircuitPublicPrefixesResponse bulkDeleteVirtualCircuitPublicPre BulkDetachIpv6sResponse bulkDetachIpv6s(BulkDetachIpv6sRequest request); /** - * Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * Unassign the specified private IP addresses from the Virtual Network Interface Card (VNIC). You must specify the PrivateIP object's [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -330,7 +330,7 @@ BulkDeleteVirtualCircuitPublicPrefixesResponse bulkDeleteVirtualCircuitPublicPre BulkDetachPrivateIpsResponse bulkDetachPrivateIps(BulkDetachPrivateIpsRequest request); /** - * Updates the specified IPv6s. + * Updates the specified IPv6s in bulk. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -343,7 +343,7 @@ BulkDeleteVirtualCircuitPublicPrefixesResponse bulkDeleteVirtualCircuitPublicPre BulkUpdateIpv6sResponse bulkUpdateIpv6s(BulkUpdateIpv6sRequest request); /** - * Updates existing secondary Private IPv4s for a VNIC. + * Update existing secondary private IPv4s for a VNIC. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. @@ -3629,6 +3629,55 @@ ListVirtualCircuitPublicPrefixesResponse listVirtualCircuitPublicPrefixes( */ ModifyVcnCidrResponse modifyVcnCidr(ModifyVcnCidrRequest request); + /** + * Updates a Subnet by evaluating a sequence of patch instructions (JSON List Patch). + * This operation is restricted to IPv6 CIDR-related fields only. + * Supported selections (exact match) are: + * - ipv6CidrBlock + * - ipv6CidrBlocks + * Only the REPLACE operation is supported. + * The request must include the If-Match header for optimistic concurrency control. + * This is an asynchronous operation. The subnet\u2019s lifecycleState is set to UPDATING while the patch work request + * is in progress, and changes back to AVAILABLE after the patch operation is complete. + * All patch instructions are applied atomically as a single operation; either all succeed or none are applied. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use PatchSubnet API. + */ + PatchSubnetResponse patchSubnet(PatchSubnetRequest request); + + /** + * Updates a VCN by evaluating a sequence of patch instructions (JSON List Patch). + * This operation is restricted to IPv6 CIDR-related fields only. + * Supported selections (exact match) are: + * - ipv6CidrBlock + * - ipv6PublicCidrBlock + * - ipv6PrivateCidrBlocks + * - byoipv6CidrDetails + * Only the REPLACE operation is supported. + * The request must include the If-Match header for optimistic concurrency control. + * This is an asynchronous operation. The VCN\u2019s lifecycleState is set to UPDATING while the patch work request + * is in progress, and changes back to AVAILABLE after the patch operation is complete. + * All patch instructions are applied atomically as a single operation; either all succeed or none are applied. + * NOTE: + * `ipv6PublicCidrBlock` represents Oracle provided GUA on VCN. With PATCH API, customer can only remove it if present. + * Since this is Oracle provided CIDR, there is no concept of replacing with customer provided CIDR. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use PatchVcn API. + */ + PatchVcnResponse patchVcn(PatchVcnRequest request); + /** * Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java index b16875ebde9..7374ba584ce 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java @@ -276,7 +276,7 @@ java.util.concurrent.Future attachServiceId( handler); /** - * Create new IPv6s for a VNIC or Subnet. + * Create new IPv6s in bulk for a VNIC or subnet. * * * @param request The request object containing the details to send @@ -309,7 +309,7 @@ java.util.concurrent.Future bulkCreatePrivateIps( handler); /** - * Unassigns and deletes IPv6s for a VNIC. + * Unassign and delete IPv6s for a VNIC in bulk. * * * @param request The request object containing the details to send @@ -325,7 +325,7 @@ java.util.concurrent.Future bulkDeleteIpv6s( handler); /** - * Unassigns and deletes secondary private IPv4s for a VNIC. + * Unassign and delete secondary private IPv4s for a VNIC. * * * @param request The request object containing the details to send @@ -364,7 +364,7 @@ java.util.concurrent.Future bulkDeletePrivateIps( handler); /** - * detach the specified IPv6s. + * Detach the specified IPv6s. * * * @param request The request object containing the details to send @@ -380,7 +380,7 @@ java.util.concurrent.Future bulkDetachIpv6s( handler); /** - * Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * Unassign the specified private IP addresses from the Virtual Network Interface Card (VNIC). You must specify the PrivateIP object's [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * * * @param request The request object containing the details to send @@ -397,7 +397,7 @@ java.util.concurrent.Future bulkDetachPrivateIps( handler); /** - * Updates the specified IPv6s. + * Updates the specified IPv6s in bulk. * * * @param request The request object containing the details to send @@ -413,7 +413,7 @@ java.util.concurrent.Future bulkUpdateIpv6s( handler); /** - * Updates existing secondary Private IPv4s for a VNIC. + * Update existing secondary private IPv4s for a VNIC. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -4396,6 +4396,59 @@ java.util.concurrent.Future modifyVcnCidr( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Updates a Subnet by evaluating a sequence of patch instructions (JSON List Patch). + * This operation is restricted to IPv6 CIDR-related fields only. + * Supported selections (exact match) are: + * - ipv6CidrBlock + * - ipv6CidrBlocks + * Only the REPLACE operation is supported. + * The request must include the If-Match header for optimistic concurrency control. + * This is an asynchronous operation. The subnet\u2019s lifecycleState is set to UPDATING while the patch work request + * is in progress, and changes back to AVAILABLE after the patch operation is complete. + * All patch instructions are applied atomically as a single operation; either all succeed or none are applied. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future patchSubnet( + PatchSubnetRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates a VCN by evaluating a sequence of patch instructions (JSON List Patch). + * This operation is restricted to IPv6 CIDR-related fields only. + * Supported selections (exact match) are: + * - ipv6CidrBlock + * - ipv6PublicCidrBlock + * - ipv6PrivateCidrBlocks + * - byoipv6CidrDetails + * Only the REPLACE operation is supported. + * The request must include the If-Match header for optimistic concurrency control. + * This is an asynchronous operation. The VCN\u2019s lifecycleState is set to UPDATING while the patch work request + * is in progress, and changes back to AVAILABLE after the patch operation is complete. + * All patch instructions are applied atomically as a single operation; either all succeed or none are applied. + * NOTE: + * `ipv6PublicCidrBlock` represents Oracle provided GUA on VCN. With PATCH API, customer can only remove it if present. + * Since this is Oracle provided CIDR, there is no concept of replacing with customer provided CIDR. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future patchVcn( + PatchVcnRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java index 883e9848ac3..7f24e3a917a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java @@ -11124,6 +11124,103 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future patchSubnet( + PatchSubnetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async patchSubnet"); + final PatchSubnetRequest interceptedRequest = + PatchSubnetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchSubnetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "VirtualNetwork", + "PatchSubnet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/PatchSubnet"); + final java.util.function.Function + transformer = + PatchSubnetConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PatchSubnetRequest, PatchSubnetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.patchFutureSupplier( + interceptedRequest, + interceptedRequest.getPatchSubnetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PatchSubnetRequest, PatchSubnetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future patchVcn( + PatchVcnRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async patchVcn"); + final PatchVcnRequest interceptedRequest = PatchVcnConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchVcnConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "VirtualNetwork", + "PatchVcn", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/PatchVcn"); + final java.util.function.Function transformer = + PatchVcnConverter.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.patchFutureSupplier( + interceptedRequest, + interceptedRequest.getPatchVcnDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PatchVcnRequest, PatchVcnResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future privateIpVnicDetach( PrivateIpVnicDetachRequest request, diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java index 418a2cf9547..3bd1dd47348 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java @@ -8988,6 +8988,85 @@ public ModifyVcnCidrResponse modifyVcnCidr(ModifyVcnCidrRequest request) { }); } + @Override + public PatchSubnetResponse patchSubnet(PatchSubnetRequest request) { + LOG.trace("Called patchSubnet"); + final PatchSubnetRequest interceptedRequest = + PatchSubnetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchSubnetConverter.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( + "VirtualNetwork", + "PatchSubnet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/PatchSubnet"); + java.util.function.Function transformer = + PatchSubnetConverter.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.getPatchSubnetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public PatchVcnResponse patchVcn(PatchVcnRequest request) { + LOG.trace("Called patchVcn"); + final PatchVcnRequest interceptedRequest = PatchVcnConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchVcnConverter.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( + "VirtualNetwork", + "PatchVcn", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/PatchVcn"); + java.util.function.Function transformer = + PatchVcnConverter.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.getPatchVcnDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public PrivateIpVnicDetachResponse privateIpVnicDetach(PrivateIpVnicDetachRequest request) { LOG.trace("Called privateIpVnicDetach"); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java index e4e00da8e87..dca5146f287 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java @@ -4773,6 +4773,124 @@ public ModifyVcnCidrResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forPatchSubnet( + PatchSubnetRequest request) { + return forPatchSubnet( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forPatchSubnet( + PatchSubnetRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public PatchSubnetResponse call() throws Exception { + final PatchSubnetResponse response = client.patchSubnet(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forPatchVcn( + PatchVcnRequest request) { + return forPatchVcn( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forPatchVcn( + PatchVcnRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public PatchVcnResponse call() throws Exception { + final PatchVcnResponse response = client.patchVcn(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java similarity index 88% rename from bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostsConverter.java rename to bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java index e9310bb13ad..b906d083ffe 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java @@ -11,23 +11,23 @@ import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") -public class GetComputeHostsConverter { +public class GetComputeHostConverter { 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(GetComputeHostsConverter.class); + org.slf4j.LoggerFactory.getLogger(GetComputeHostConverter.class); - public static com.oracle.bmc.core.requests.GetComputeHostsRequest interceptRequest( - com.oracle.bmc.core.requests.GetComputeHostsRequest request) { + public static com.oracle.bmc.core.requests.GetComputeHostRequest interceptRequest( + com.oracle.bmc.core.requests.GetComputeHostRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.core.requests.GetComputeHostsRequest request) { + com.oracle.bmc.core.requests.GetComputeHostRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostId(), "computeHostId must not be blank"); @@ -54,28 +54,26 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( } public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.GetComputeHostsResponse> + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.GetComputeHostResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.GetComputeHostsResponse> + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.GetComputeHostResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.GetComputeHostsResponse> + com.oracle.bmc.core.responses.GetComputeHostResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.GetComputeHostsResponse>() { + com.oracle.bmc.core.responses.GetComputeHostResponse>() { @Override - public com.oracle.bmc.core.responses.GetComputeHostsResponse apply( + public com.oracle.bmc.core.responses.GetComputeHostResponse apply( javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.core.responses.GetComputeHostsResponse"); + "Transform function invoked for com.oracle.bmc.core.responses.GetComputeHostResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< @@ -98,10 +96,10 @@ public com.oracle.bmc.core.responses.GetComputeHostsResponse apply( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.core.responses.GetComputeHostsResponse.Builder + com.oracle.bmc.core.responses.GetComputeHostResponse.Builder builder = - com.oracle.bmc.core.responses - .GetComputeHostsResponse.builder() + com.oracle.bmc.core.responses.GetComputeHostResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -127,7 +125,7 @@ public com.oracle.bmc.core.responses.GetComputeHostsResponse apply( String.class)); } - com.oracle.bmc.core.responses.GetComputeHostsResponse + com.oracle.bmc.core.responses.GetComputeHostResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java index bfeb8bd3f5d..952280d049b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java @@ -120,6 +120,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemainingOcpusGreaterThanOrEqualTo())); } + if (request.getRemainingLocalVolumeInGBsGreaterThanOrEqualTo() != null) { + target = + target.queryParam( + "remainingLocalVolumeInGBsGreaterThanOrEqualTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRemainingLocalVolumeInGBsGreaterThanOrEqualTo())); + } + if (request.getIsMemoryEncryptionEnabled() != null) { target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java new file mode 100644 index 00000000000..6ee921d867c --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.core.model.*; +import com.oracle.bmc.core.requests.*; +import com.oracle.bmc.core.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PatchSubnetConverter { + 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(PatchSubnetConverter.class); + + public static com.oracle.bmc.core.requests.PatchSubnetRequest interceptRequest( + com.oracle.bmc.core.requests.PatchSubnetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.core.requests.PatchSubnetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + Validate.notNull(request.getPatchSubnetDetails(), "patchSubnetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("subnets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getSubnetId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.PatchSubnetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.PatchSubnetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.PatchSubnetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.PatchSubnetResponse>() { + @Override + public com.oracle.bmc.core.responses.PatchSubnetResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.core.responses.PatchSubnetResponse"); + 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.core.responses.PatchSubnetResponse.Builder builder = + com.oracle.bmc.core.responses.PatchSubnetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.core.responses.PatchSubnetResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java new file mode 100644 index 00000000000..e8ead350068 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.core.model.*; +import com.oracle.bmc.core.requests.*; +import com.oracle.bmc.core.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PatchVcnConverter { + 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(PatchVcnConverter.class); + + public static com.oracle.bmc.core.requests.PatchVcnRequest interceptRequest( + com.oracle.bmc.core.requests.PatchVcnRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.core.requests.PatchVcnRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + Validate.notNull(request.getPatchVcnDetails(), "patchVcnDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("vcns") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVcnId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.PatchVcnResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.PatchVcnResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.core.responses.PatchVcnResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.PatchVcnResponse>() { + @Override + public com.oracle.bmc.core.responses.PatchVcnResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.core.responses.PatchVcnResponse"); + 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.core.responses.PatchVcnResponse.Builder builder = + com.oracle.bmc.core.responses.PatchVcnResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.core.responses.PatchVcnResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java similarity index 91% rename from bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostsConverter.java rename to bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java index cebca5a67aa..f91db9f995e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java @@ -11,27 +11,27 @@ import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") -public class UpdateComputeHostsConverter { +public class UpdateComputeHostConverter { 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(UpdateComputeHostsConverter.class); + org.slf4j.LoggerFactory.getLogger(UpdateComputeHostConverter.class); - public static com.oracle.bmc.core.requests.UpdateComputeHostsRequest interceptRequest( - com.oracle.bmc.core.requests.UpdateComputeHostsRequest request) { + public static com.oracle.bmc.core.requests.UpdateComputeHostRequest interceptRequest( + com.oracle.bmc.core.requests.UpdateComputeHostRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.core.requests.UpdateComputeHostsRequest request) { + com.oracle.bmc.core.requests.UpdateComputeHostRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostId(), "computeHostId must not be blank"); Validate.notNull( - request.getUpdateComputeHostsDetails(), "updateComputeHostsDetails is required"); + request.getUpdateComputeHostDetails(), "updateComputeHostDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() @@ -65,27 +65,27 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.UpdateComputeHostsResponse> + com.oracle.bmc.core.responses.UpdateComputeHostResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.UpdateComputeHostsResponse> + com.oracle.bmc.core.responses.UpdateComputeHostResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.UpdateComputeHostsResponse> + com.oracle.bmc.core.responses.UpdateComputeHostResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.core.responses.UpdateComputeHostsResponse>() { + com.oracle.bmc.core.responses.UpdateComputeHostResponse>() { @Override - public com.oracle.bmc.core.responses.UpdateComputeHostsResponse apply( + public com.oracle.bmc.core.responses.UpdateComputeHostResponse apply( javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.core.responses.UpdateComputeHostsResponse"); + "Transform function invoked for com.oracle.bmc.core.responses.UpdateComputeHostResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -103,10 +103,10 @@ public com.oracle.bmc.core.responses.UpdateComputeHostsResponse apply( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.core.responses.UpdateComputeHostsResponse.Builder + com.oracle.bmc.core.responses.UpdateComputeHostResponse.Builder builder = com.oracle.bmc.core.responses - .UpdateComputeHostsResponse.builder() + .UpdateComputeHostResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -141,7 +141,7 @@ public com.oracle.bmc.core.responses.UpdateComputeHostsResponse apply( String.class)); } - com.oracle.bmc.core.responses.UpdateComputeHostsResponse + com.oracle.bmc.core.responses.UpdateComputeHostResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sDetails.java index c58686ad4ed..bd0ebb8010a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv6 addresses creation object. + * Details needed to create secondary IPv6 addresses with a bulk 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 @@ -37,7 +37,7 @@ public BulkCreateIpv6sDetails( public static class Builder { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the IPv6s to. The - * IPv6 will be in the VNIC's subnet. + * IPv6s will be in the VNIC's subnet. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicId") @@ -45,7 +45,7 @@ public static class Builder { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the IPv6s to. The - * IPv6 will be in the VNIC's subnet. + * IPv6s will be in the VNIC's subnet. * * @param vnicId the value to set * @return this builder @@ -76,14 +76,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * Secondary IPv6 addresses to assign. + * A secondary IPv6 address to assign. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkCreateIpv6sItem") private java.util.List bulkCreateIpv6sItem; /** - * Secondary IPv6 addresses to assign. + * A secondary IPv6 address to assign. * * @param bulkCreateIpv6sItem the value to set * @return this builder @@ -136,7 +136,7 @@ public Builder toBuilder() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the IPv6s to. The - * IPv6 will be in the VNIC's subnet. + * IPv6s will be in the VNIC's subnet. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicId") @@ -144,7 +144,7 @@ public Builder toBuilder() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the IPv6s to. The - * IPv6 will be in the VNIC's subnet. + * IPv6s will be in the VNIC's subnet. * * @return the value **/ @@ -171,14 +171,14 @@ public String getSubnetId() { } /** - * Secondary IPv6 addresses to assign. + * A secondary IPv6 address to assign. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkCreateIpv6sItem") private final java.util.List bulkCreateIpv6sItem; /** - * Secondary IPv6 addresses to assign. + * A secondary IPv6 address to assign. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java index 14236fcc3d2..98a1c08bafc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Secondary IPv6 object to creation as part of bulk creation . + * Secondary IPv6 object to use as part of bulk IPv6 object creation. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -213,13 +213,13 @@ public Builder ipv6SubnetCidr(String ipv6SubnetCidr) { return this; } /** - * Length of cidr range. Optional field to specify flexible cidr. + * Length of the CIDR range. Optional field to specify a flexible CIDR. **/ @com.fasterxml.jackson.annotation.JsonProperty("cidrPrefixLength") private Integer cidrPrefixLength; /** - * Length of cidr range. Optional field to specify flexible cidr. + * Length of the CIDR range. Optional field to specify a flexible CIDR. * @param cidrPrefixLength the value to set * @return this builder **/ @@ -474,13 +474,13 @@ public String getIpv6SubnetCidr() { } /** - * Length of cidr range. Optional field to specify flexible cidr. + * Length of the CIDR range. Optional field to specify a flexible CIDR. **/ @com.fasterxml.jackson.annotation.JsonProperty("cidrPrefixLength") private final Integer cidrPrefixLength; /** - * Length of cidr range. Optional field to specify flexible cidr. + * Length of the CIDR range. Optional field to specify a flexible CIDR. * @return the value **/ public Integer getCidrPrefixLength() { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpItem.java index 55014311ac0..f2b52aeb7d4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Secondary private IPv4 address object to create as part of bulk creation. + * An object used to create secondary private IPv4 addresses in a bulk 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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpsDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpsDetails.java index a430b585909..d946f317629 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpsDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreatePrivateIpsDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv4 addresses creation object. + * Details used to create secondary private IPv4 addresses in a bulk 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 @@ -94,14 +94,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * Secondary IPv4 addresses to assign. + * A secondary IPv4 address to assign. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkCreatePrivateIpItem") private java.util.List bulkCreatePrivateIpItem; /** - * Secondary IPv4 addresses to assign. + * A secondary IPv4 address to assign. * * @param bulkCreatePrivateIpItem the value to set * @return this builder @@ -206,14 +206,14 @@ public String getSubnetId() { } /** - * Secondary IPv4 addresses to assign. + * A secondary IPv4 address to assign. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkCreatePrivateIpItem") private final java.util.List bulkCreatePrivateIpItem; /** - * Secondary IPv4 addresses to assign. + * A secondary IPv4 address to assign. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sDetails.java index 9f96bafb51f..1e289da8776 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv6 addresses deletion object. + * A secondary IPv6 address bulk deletion object. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -56,14 +56,14 @@ public Builder vnicId(String vnicId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are deleted. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are deleted. * * @param subnetId the value to set * @return this builder @@ -74,14 +74,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * IPv6 addresses to deleted. + * An IPv6 address to delete. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDeleteIpv6sItem") private java.util.List bulkDeleteIpv6sItem; /** - * IPv6 addresses to deleted. + * An IPv6 address to delete. * * @param bulkDeleteIpv6sItem the value to set * @return this builder @@ -151,14 +151,14 @@ public String getVnicId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are deleted. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6s addresses are deleted. * * @return the value **/ @@ -167,14 +167,14 @@ public String getSubnetId() { } /** - * IPv6 addresses to deleted. + * An IPv6 address to delete. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDeleteIpv6sItem") private final java.util.List bulkDeleteIpv6sItem; /** - * IPv6 addresses to deleted. + * An IPv6 address to delete. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sItem.java index 32a727bce04..d0ae4edcc5c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteIpv6sItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * secondary ip object to delete as part of bulk deletion . + * A secondary IPv6 object to delete as part of a bulk deletion. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -30,13 +30,13 @@ public BulkDeleteIpv6sItem(String ipv6Id) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to delete. **/ @com.fasterxml.jackson.annotation.JsonProperty("ipv6Id") private String ipv6Id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to delete. * @param ipv6Id the value to set * @return this builder **/ @@ -78,13 +78,13 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to delete. **/ @com.fasterxml.jackson.annotation.JsonProperty("ipv6Id") private final String ipv6Id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to be deleted. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 to delete. * @return the value **/ public String getIpv6Id() { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpItem.java index 4946cad9355..1da7704dfe5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Secondary private IPv4 address object to delete as part of bulk deletion. + * Secondary private IPv4 address object to delete as part of a bulk 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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpsDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpsDetails.java index 0bb33555cd9..4b9679caae4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpsDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeletePrivateIpsDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv4 deletion object. + * Details used tp delete Secondary IPv4 objects in a bulk 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 @@ -96,14 +96,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * Secondary IPv4 addresses to deleted + * A secondary IPv4 address to delete. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDeletePrivateIpItem") private java.util.List bulkDeletePrivateIpItem; /** - * Secondary IPv4 addresses to deleted + * A secondary IPv4 address to delete. * * @param bulkDeletePrivateIpItem the value to set * @return this builder @@ -210,14 +210,14 @@ public String getSubnetId() { } /** - * Secondary IPv4 addresses to deleted + * A secondary IPv4 address to delete. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDeletePrivateIpItem") private final java.util.List bulkDeletePrivateIpItem; /** - * Secondary IPv4 addresses to deleted + * A secondary IPv4 address to delete. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sDetails.java index 4b3cc0a67b9..fd4f4ea612a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv6 addresses detach object. + * Details needed to bulk detach secondary IPv6 addresses. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -33,14 +33,14 @@ public BulkDetachIpv6sDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC of which IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC from which multiple IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicId") private String vnicId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC of which IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC from which multiple IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. * * @param vnicId the value to set * @return this builder @@ -51,14 +51,14 @@ public Builder vnicId(String vnicId) { return this; } /** - * Secondary IPv6 addresses to detached. + * A secondary IPv6 address to detach. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDetachIpv6sItem") private java.util.List bulkDetachIpv6sItem; /** - * Secondary IPv6 addresses to detached. + * A secondary IPv6 address to detach. * * @param bulkDetachIpv6sItem the value to set * @return this builder @@ -106,14 +106,14 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC of which IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC from which multiple IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicId") private final String vnicId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC of which IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC from which multiple IPv6s should be detached. The VNIC and IPv6s must be in the same subnet. * * @return the value **/ @@ -122,14 +122,14 @@ public String getVnicId() { } /** - * Secondary IPv6 addresses to detached. + * A secondary IPv6 address to detach. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDetachIpv6sItem") private final java.util.List bulkDetachIpv6sItem; /** - * Secondary IPv6 addresses to detached. + * A secondary IPv6 address to detach. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sItem.java index be666d676ff..01712b52de1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachIpv6sItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Secondary IPv6 object to detach as part of bulk detach operation. + * A secondary IPv6 object to detach as part of a bulk detach 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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpItem.java index f5b12dfff18..a721c722fb2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Secondary private IPv4 address object to detach as part of bulk detach operation. + * An object used to detatch secondary private IPv4 addresses with a bulk 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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpsDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpsDetails.java index d4dd8ebf25d..a66d4e4c22e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpsDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDetachPrivateIpsDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv4 addresses detach object. + * An object used to detatch Secondary IPv4 addresses with a bulk 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 @@ -51,14 +51,14 @@ public Builder vnicId(String vnicId) { return this; } /** - * Secondary IPv4 addresses to detached. + * Secondary IPv4 addresses to detach. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDetachPrivateIpItem") private java.util.List bulkDetachPrivateIpItem; /** - * Secondary IPv4 addresses to detached. + * Secondary IPv4 addresses to detach. * * @param bulkDetachPrivateIpItem the value to set * @return this builder @@ -122,14 +122,14 @@ public String getVnicId() { } /** - * Secondary IPv4 addresses to detached. + * Secondary IPv4 addresses to detach. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkDetachPrivateIpItem") private final java.util.List bulkDetachPrivateIpItem; /** - * Secondary IPv4 addresses to detached. + * Secondary IPv4 addresses to detach. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sDetails.java index 5e8f2cb1656..dfe68480b64 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv6 addresses update object. + * Address details to update for a Secondary IPv6 object. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -53,14 +53,14 @@ public Builder vnicId(String vnicId) { return this; } /** - * Secondary IPv6 addresses to updated. + * A secondary IPv6 address to update. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkUpdateIpv6sItem") private java.util.List bulkUpdateIpv6sItem; /** - * Secondary IPv6 addresses to updated. + * A secondary IPv6 address to update. * * @param bulkUpdateIpv6sItem the value to set * @return this builder @@ -126,14 +126,14 @@ public String getVnicId() { } /** - * Secondary IPv6 addresses to updated. + * A secondary IPv6 address to update. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkUpdateIpv6sItem") private final java.util.List bulkUpdateIpv6sItem; /** - * Secondary IPv6 addresses to updated. + * A secondary IPv6 address to update. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java index 93875116b3a..14ecd7c5c4f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Secondary IPv6 object to update as part of bulk update. + * A secondary IPv6 object to update as part of a bulk update. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -117,14 +117,14 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * The OCID of the IPv6. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 object. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ipv6Id") private String ipv6Id; /** - * The OCID of the IPv6. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 object. * * @param ipv6Id the value to set * @return this builder @@ -295,14 +295,14 @@ public java.util.Map getFreeformTags() { } /** - * The OCID of the IPv6. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 object. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ipv6Id") private final String ipv6Id; /** - * The OCID of the IPv6. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6 object. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpItem.java index de4aa672e20..d3e4a3ccfe0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * secondary private IPv4 address object to update as part of bulk update. + * A secondary private IPv4 address object to update as part of a bulk 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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpsDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpsDetails.java index cd04a12944e..528de7b576e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpsDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdatePrivateIpsDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Bulk Secondary IPv4 addresses update object. + * Details used for a secondary IPv4 address bulk update. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -53,14 +53,14 @@ public Builder vnicId(String vnicId) { return this; } /** - * Secondary IPv4 addresses to updated. + * A secondary IPv4 address to update. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkUpdatePrivateIpItem") private java.util.List bulkUpdatePrivateIpItem; /** - * Secondary IPv4 addresses to updated. + * A secondary IPv4 address to update. * * @param bulkUpdatePrivateIpItem the value to set * @return this builder @@ -126,14 +126,14 @@ public String getVnicId() { } /** - * Secondary IPv4 addresses to updated. + * A secondary IPv4 address to update. * **/ @com.fasterxml.jackson.annotation.JsonProperty("bulkUpdatePrivateIpItem") private final java.util.List bulkUpdatePrivateIpItem; /** - * Secondary IPv4 addresses to updated. + * A secondary IPv4 address to update. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBin.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBin.java index 9e14adf874c..2d558f150f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBin.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBin.java @@ -26,6 +26,8 @@ public final class CapacityBin extends com.oracle.bmc.http.internal.ExplicitlySe "remainingOcpus", "totalMemoryInGBs", "remainingMemoryInGBs", + "totalLocalVolumeInGBs", + "remainingLocalVolumeInGBs", "supportedShapes" }) public CapacityBin( @@ -34,6 +36,8 @@ public CapacityBin( Float remainingOcpus, Float totalMemoryInGBs, Float remainingMemoryInGBs, + Float totalLocalVolumeInGBs, + Float remainingLocalVolumeInGBs, java.util.List supportedShapes) { super(); this.capacityIndex = capacityIndex; @@ -41,6 +45,8 @@ public CapacityBin( this.remainingOcpus = remainingOcpus; this.totalMemoryInGBs = totalMemoryInGBs; this.remainingMemoryInGBs = remainingMemoryInGBs; + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.remainingLocalVolumeInGBs = remainingLocalVolumeInGBs; this.supportedShapes = supportedShapes; } @@ -136,6 +142,42 @@ public Builder remainingMemoryInGBs(Float remainingMemoryInGBs) { this.__explicitlySet__.add("remainingMemoryInGBs"); return this; } + /** + * The total local volume of the capacity bucket, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private Float totalLocalVolumeInGBs; + + /** + * The total local volume of the capacity bucket, in GBs. + * + * @param totalLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder totalLocalVolumeInGBs(Float totalLocalVolumeInGBs) { + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.__explicitlySet__.add("totalLocalVolumeInGBs"); + return this; + } + /** + * The remaining local volume of the capacity bucket, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingLocalVolumeInGBs") + private Float remainingLocalVolumeInGBs; + + /** + * The remaining local volume of the capacity bucket, in GBs. + * + * @param remainingLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder remainingLocalVolumeInGBs(Float remainingLocalVolumeInGBs) { + this.remainingLocalVolumeInGBs = remainingLocalVolumeInGBs; + this.__explicitlySet__.add("remainingLocalVolumeInGBs"); + return this; + } /** * List of VMI shapes supported on each capacity bucket. * @@ -166,6 +208,8 @@ public CapacityBin build() { this.remainingOcpus, this.totalMemoryInGBs, this.remainingMemoryInGBs, + this.totalLocalVolumeInGBs, + this.remainingLocalVolumeInGBs, this.supportedShapes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -190,6 +234,12 @@ public Builder copy(CapacityBin model) { if (model.wasPropertyExplicitlySet("remainingMemoryInGBs")) { this.remainingMemoryInGBs(model.getRemainingMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("totalLocalVolumeInGBs")) { + this.totalLocalVolumeInGBs(model.getTotalLocalVolumeInGBs()); + } + if (model.wasPropertyExplicitlySet("remainingLocalVolumeInGBs")) { + this.remainingLocalVolumeInGBs(model.getRemainingLocalVolumeInGBs()); + } if (model.wasPropertyExplicitlySet("supportedShapes")) { this.supportedShapes(model.getSupportedShapes()); } @@ -288,6 +338,38 @@ public Float getRemainingMemoryInGBs() { return remainingMemoryInGBs; } + /** + * The total local volume of the capacity bucket, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private final Float totalLocalVolumeInGBs; + + /** + * The total local volume of the capacity bucket, in GBs. + * + * @return the value + **/ + public Float getTotalLocalVolumeInGBs() { + return totalLocalVolumeInGBs; + } + + /** + * The remaining local volume of the capacity bucket, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingLocalVolumeInGBs") + private final Float remainingLocalVolumeInGBs; + + /** + * The remaining local volume of the capacity bucket, in GBs. + * + * @return the value + **/ + public Float getRemainingLocalVolumeInGBs() { + return remainingLocalVolumeInGBs; + } + /** * List of VMI shapes supported on each capacity bucket. * @@ -323,6 +405,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", remainingOcpus=").append(String.valueOf(this.remainingOcpus)); sb.append(", totalMemoryInGBs=").append(String.valueOf(this.totalMemoryInGBs)); sb.append(", remainingMemoryInGBs=").append(String.valueOf(this.remainingMemoryInGBs)); + sb.append(", totalLocalVolumeInGBs=").append(String.valueOf(this.totalLocalVolumeInGBs)); + sb.append(", remainingLocalVolumeInGBs=") + .append(String.valueOf(this.remainingLocalVolumeInGBs)); sb.append(", supportedShapes=").append(String.valueOf(this.supportedShapes)); sb.append(")"); return sb.toString(); @@ -343,6 +428,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.remainingOcpus, other.remainingOcpus) && java.util.Objects.equals(this.totalMemoryInGBs, other.totalMemoryInGBs) && java.util.Objects.equals(this.remainingMemoryInGBs, other.remainingMemoryInGBs) + && java.util.Objects.equals(this.totalLocalVolumeInGBs, other.totalLocalVolumeInGBs) + && java.util.Objects.equals( + this.remainingLocalVolumeInGBs, other.remainingLocalVolumeInGBs) && java.util.Objects.equals(this.supportedShapes, other.supportedShapes) && super.equals(other); } @@ -366,6 +454,16 @@ public int hashCode() { + (this.remainingMemoryInGBs == null ? 43 : this.remainingMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.totalLocalVolumeInGBs == null + ? 43 + : this.totalLocalVolumeInGBs.hashCode()); + result = + (result * PRIME) + + (this.remainingLocalVolumeInGBs == null + ? 43 + : this.remainingLocalVolumeInGBs.hashCode()); result = (result * PRIME) + (this.supportedShapes == null ? 43 : this.supportedShapes.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBinPreview.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBinPreview.java index 621b4a455f9..5cd4e7cc864 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBinPreview.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CapacityBinPreview.java @@ -26,17 +26,20 @@ public final class CapacityBinPreview extends com.oracle.bmc.http.internal.Expli "capacityIndex", "totalOcpus", "totalMemoryInGBs", + "totalLocalVolumeInGBs", "supportedShapes" }) public CapacityBinPreview( Integer capacityIndex, Float totalOcpus, Float totalMemoryInGBs, + Float totalLocalVolumeInGBs, java.util.List supportedShapes) { super(); this.capacityIndex = capacityIndex; this.totalOcpus = totalOcpus; this.totalMemoryInGBs = totalMemoryInGBs; + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; this.supportedShapes = supportedShapes; } @@ -96,6 +99,24 @@ public Builder totalMemoryInGBs(Float totalMemoryInGBs) { this.__explicitlySet__.add("totalMemoryInGBs"); return this; } + /** + * The total local volume of the capacity bucket, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private Float totalLocalVolumeInGBs; + + /** + * The total local volume of the capacity bucket, in GBs. + * + * @param totalLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder totalLocalVolumeInGBs(Float totalLocalVolumeInGBs) { + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.__explicitlySet__.add("totalLocalVolumeInGBs"); + return this; + } /** * List of VMI shapes supported on each capacity bucket. * @@ -124,6 +145,7 @@ public CapacityBinPreview build() { this.capacityIndex, this.totalOcpus, this.totalMemoryInGBs, + this.totalLocalVolumeInGBs, this.supportedShapes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -142,6 +164,9 @@ public Builder copy(CapacityBinPreview model) { if (model.wasPropertyExplicitlySet("totalMemoryInGBs")) { this.totalMemoryInGBs(model.getTotalMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("totalLocalVolumeInGBs")) { + this.totalLocalVolumeInGBs(model.getTotalLocalVolumeInGBs()); + } if (model.wasPropertyExplicitlySet("supportedShapes")) { this.supportedShapes(model.getSupportedShapes()); } @@ -208,6 +233,22 @@ public Float getTotalMemoryInGBs() { return totalMemoryInGBs; } + /** + * The total local volume of the capacity bucket, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private final Float totalLocalVolumeInGBs; + + /** + * The total local volume of the capacity bucket, in GBs. + * + * @return the value + **/ + public Float getTotalLocalVolumeInGBs() { + return totalLocalVolumeInGBs; + } + /** * List of VMI shapes supported on each capacity bucket. * @@ -241,6 +282,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("capacityIndex=").append(String.valueOf(this.capacityIndex)); sb.append(", totalOcpus=").append(String.valueOf(this.totalOcpus)); sb.append(", totalMemoryInGBs=").append(String.valueOf(this.totalMemoryInGBs)); + sb.append(", totalLocalVolumeInGBs=").append(String.valueOf(this.totalLocalVolumeInGBs)); sb.append(", supportedShapes=").append(String.valueOf(this.supportedShapes)); sb.append(")"); return sb.toString(); @@ -259,6 +301,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.capacityIndex, other.capacityIndex) && java.util.Objects.equals(this.totalOcpus, other.totalOcpus) && java.util.Objects.equals(this.totalMemoryInGBs, other.totalMemoryInGBs) + && java.util.Objects.equals(this.totalLocalVolumeInGBs, other.totalLocalVolumeInGBs) && java.util.Objects.equals(this.supportedShapes, other.supportedShapes) && super.equals(other); } @@ -274,6 +317,11 @@ public int hashCode() { result = (result * PRIME) + (this.totalMemoryInGBs == null ? 43 : this.totalMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.totalLocalVolumeInGBs == null + ? 43 + : this.totalLocalVolumeInGBs.hashCode()); result = (result * PRIME) + (this.supportedShapes == null ? 43 : this.supportedShapes.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeComputeGpuMemoryClusterCompartmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeComputeGpuMemoryClusterCompartmentDetails.java index 6efdb5bce37..dae74cde27d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeComputeGpuMemoryClusterCompartmentDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeComputeGpuMemoryClusterCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Specifies the compartment to move the compute GPU memory cluster to. + * Specifies the compartment to move the compute GPU Memory Cluster to. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java index 527a8aae536..604c286ebed 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java @@ -5,15 +5,17 @@ package com.oracle.bmc.core.model; /** - * A remote direct memory access (RDMA) network group. + * The data for creating a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster + * is an empty remote direct memory access (RDMA) network group *

- * A cluster network on a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a group of - * high performance computing (HPC), GPU, or optimized instances that are connected with an ultra low-latency network. + * After the compute cluster is created, you can use the compute cluster's OCID with the + * {@link #launchInstance(LaunchInstanceRequest) launchInstance} operation to create instances in the compute cluster. + * The instances must be created in the same compartment and availability domain as the cluster. *

* Use compute clusters when you want to manage instances in the cluster individually in the RDMA network group. *

- * For details about cluster networks that use instance pools to manage groups of identical instances, - * see {@link ClusterNetwork}. + * For details about creating a cluster network that uses instance pools to manage groups of identical instances, + * see {@link #createClusterNetworkDetails(CreateClusterNetworkDetailsRequest) createClusterNetworkDetails}. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryCluster.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryCluster.java index b3d6cf4ac19..9c1b1ff20c4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryCluster.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryCluster.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * The customer facing object includes GPU memory cluster details. + * The customer facing object includes GPU Memory Cluster details. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -33,6 +33,7 @@ public final class ComputeGpuMemoryCluster "computeClusterId", "size", "gpuMemoryClusterScaleConfig", + "privateIpIds", "definedTags", "freeformTags", "systemTags", @@ -49,6 +50,7 @@ public ComputeGpuMemoryCluster( String computeClusterId, Long size, ComputeGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig, + java.util.List privateIpIds, java.util.Map> definedTags, java.util.Map freeformTags, java.util.Map> systemTags, @@ -64,6 +66,7 @@ public ComputeGpuMemoryCluster( this.computeClusterId = computeClusterId; this.size = size; this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.privateIpIds = privateIpIds; this.definedTags = definedTags; this.freeformTags = freeformTags; this.systemTags = systemTags; @@ -74,14 +77,14 @@ public ComputeGpuMemoryCluster( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") private String availabilityDomain; /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * * @param availabilityDomain the value to set * @return this builder @@ -92,14 +95,14 @@ public Builder availabilityDomain(String availabilityDomain) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * * @param id the value to set * @return this builder @@ -146,14 +149,14 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The lifecycle state of the GPU memory cluster + * The lifecycle state of the GPU Memory Cluster * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycle state of the GPU memory cluster + * The lifecycle state of the GPU Memory Cluster * * @param lifecycleState the value to set * @return this builder @@ -200,14 +203,14 @@ public Builder computeClusterId(String computeClusterId) { return this; } /** - * The number of instances currently running in the GpuMemoryCluster + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private Long size; /** - * The number of instances currently running in the GpuMemoryCluster + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. * * @param size the value to set * @return this builder @@ -227,6 +230,22 @@ public Builder gpuMemoryClusterScaleConfig( this.__explicitlySet__.add("gpuMemoryClusterScaleConfig"); return this; } + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateIpIds") + private java.util.List privateIpIds; + + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + * @param privateIpIds the value to set + * @return this builder + **/ + public Builder privateIpIds(java.util.List privateIpIds) { + this.privateIpIds = privateIpIds; + this.__explicitlySet__.add("privateIpIds"); + return this; + } /** * Defined tags for this resource. Each key is predefined and scoped to a * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -317,7 +336,7 @@ public Builder displayName(String displayName) { return this; } /** - * The date and time the GPU memory cluster was created. + * The date and time the GPU Memory Cluster was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -326,7 +345,7 @@ public Builder displayName(String displayName) { private java.util.Date timeCreated; /** - * The date and time the GPU memory cluster was created. + * The date and time the GPU Memory Cluster was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -354,6 +373,7 @@ public ComputeGpuMemoryCluster build() { this.computeClusterId, this.size, this.gpuMemoryClusterScaleConfig, + this.privateIpIds, this.definedTags, this.freeformTags, this.systemTags, @@ -394,6 +414,9 @@ public Builder copy(ComputeGpuMemoryCluster model) { if (model.wasPropertyExplicitlySet("gpuMemoryClusterScaleConfig")) { this.gpuMemoryClusterScaleConfig(model.getGpuMemoryClusterScaleConfig()); } + if (model.wasPropertyExplicitlySet("privateIpIds")) { + this.privateIpIds(model.getPrivateIpIds()); + } if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } @@ -425,14 +448,14 @@ public Builder toBuilder() { } /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") private final String availabilityDomain; /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * * @return the value **/ @@ -441,14 +464,14 @@ public String getAvailabilityDomain() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * * @return the value **/ @@ -489,7 +512,7 @@ public String getCompartmentId() { } /** - * The lifecycle state of the GPU memory cluster + * The lifecycle state of the GPU Memory Cluster * **/ public enum LifecycleState { @@ -541,14 +564,14 @@ public static LifecycleState create(String key) { } }; /** - * The lifecycle state of the GPU memory cluster + * The lifecycle state of the GPU Memory Cluster * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycle state of the GPU memory cluster + * The lifecycle state of the GPU Memory Cluster * * @return the value **/ @@ -589,14 +612,14 @@ public String getComputeClusterId() { } /** - * The number of instances currently running in the GpuMemoryCluster + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Long size; /** - * The number of instances currently running in the GpuMemoryCluster + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. * * @return the value **/ @@ -611,6 +634,20 @@ public ComputeGpuMemoryClusterScaleConfig getGpuMemoryClusterScaleConfig() { return gpuMemoryClusterScaleConfig; } + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateIpIds") + private final java.util.List privateIpIds; + + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + * @return the value + **/ + public java.util.List getPrivateIpIds() { + return privateIpIds; + } + /** * Defined tags for this resource. Each key is predefined and scoped to a * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -692,7 +729,7 @@ public String getDisplayName() { } /** - * The date and time the GPU memory cluster was created. + * The date and time the GPU Memory Cluster was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -701,7 +738,7 @@ public String getDisplayName() { private final java.util.Date timeCreated; /** - * The date and time the GPU memory cluster was created. + * The date and time the GPU Memory Cluster was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -736,6 +773,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", size=").append(String.valueOf(this.size)); sb.append(", gpuMemoryClusterScaleConfig=") .append(String.valueOf(this.gpuMemoryClusterScaleConfig)); + sb.append(", privateIpIds=").append(String.valueOf(this.privateIpIds)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -766,6 +804,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.size, other.size) && java.util.Objects.equals( this.gpuMemoryClusterScaleConfig, other.gpuMemoryClusterScaleConfig) + && java.util.Objects.equals(this.privateIpIds, other.privateIpIds) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -807,6 +846,7 @@ public int hashCode() { + (this.gpuMemoryClusterScaleConfig == null ? 43 : this.gpuMemoryClusterScaleConfig.hashCode()); + result = (result * PRIME) + (this.privateIpIds == null ? 43 : this.privateIpIds.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterCollection.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterCollection.java index e2e2f8db606..05b09a197f9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterCollection.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * A list of compute GPU memory clusters. + * A list of compute GPU Memory Clusters. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -32,13 +32,13 @@ public ComputeGpuMemoryClusterCollection(java.util.List items; /** - * The list of compute GPU memory clusters. + * The list of compute GPU Memory Clusters. * @param items the value to set * @return this builder **/ @@ -81,13 +81,13 @@ public Builder toBuilder() { } /** - * The list of compute GPU memory clusters. + * The list of compute GPU Memory Clusters. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * The list of compute GPU memory clusters. + * The list of compute GPU Memory Clusters. * @return the value **/ public java.util.List getItems() { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceCollection.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceCollection.java index 52545d49305..edcce4adcae 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceCollection.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * A list of compute GPU memory cluster instances. + * A list of compute GPU Memory Cluster instances. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -33,13 +33,13 @@ public ComputeGpuMemoryClusterInstanceCollection( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The list of compute GPU memory cluster instances. + * The list of compute GPU Memory Cluster instances. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * The list of compute GPU memory cluster instances. + * The list of compute GPU Memory Cluster instances. * @param items the value to set * @return this builder **/ @@ -82,13 +82,13 @@ public Builder toBuilder() { } /** - * The list of compute GPU memory cluster instances. + * The list of compute GPU Memory Cluster instances. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * The list of compute GPU memory cluster instances. + * The list of compute GPU Memory Cluster instances. * @return the value **/ public java.util.List getItems() { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceSummary.java index fd81a6e2fe3..6545dc50cad 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterInstanceSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * The customer facing GPU memory cluster instance object details. + * The customer facing GPU Memory Cluster instance object details. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -62,14 +62,14 @@ public ComputeGpuMemoryClusterInstanceSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The availability domain of the GPU memory cluster instance. + * The availability domain of the GPU Memory Cluster instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") private String availabilityDomain; /** - * The availability domain of the GPU memory cluster instance. + * The availability domain of the GPU Memory Cluster instance. * * @param availabilityDomain the value to set * @return this builder @@ -80,14 +80,14 @@ public Builder availabilityDomain(String availabilityDomain) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster instance + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster instance * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster instance + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster instance * * @param id the value to set * @return this builder @@ -118,13 +118,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The fault domain the GPU memory cluster instance is running in. + * The fault domain the GPU Memory Cluster instance is running in. **/ @com.fasterxml.jackson.annotation.JsonProperty("faultDomain") private String faultDomain; /** - * The fault domain the GPU memory cluster instance is running in. + * The fault domain the GPU Memory Cluster instance is running in. * @param faultDomain the value to set * @return this builder **/ @@ -192,14 +192,14 @@ public Builder instanceShape(String instanceShape) { return this; } /** - * The lifecycle state of the GPU memory cluster instance + * The lifecycle state of the GPU Memory Cluster instance * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycle state of the GPU memory cluster instance + * The lifecycle state of the GPU Memory Cluster instance * * @param lifecycleState the value to set * @return this builder @@ -230,7 +230,7 @@ public Builder displayName(String displayName) { return this; } /** - * The date and time the GPU memory cluster instance was created. + * The date and time the GPU Memory Cluster instance was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -239,7 +239,7 @@ public Builder displayName(String displayName) { private java.util.Date timeCreated; /** - * The date and time the GPU memory cluster instance was created. + * The date and time the GPU Memory Cluster instance was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -322,14 +322,14 @@ public Builder toBuilder() { } /** - * The availability domain of the GPU memory cluster instance. + * The availability domain of the GPU Memory Cluster instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") private final String availabilityDomain; /** - * The availability domain of the GPU memory cluster instance. + * The availability domain of the GPU Memory Cluster instance. * * @return the value **/ @@ -338,14 +338,14 @@ public String getAvailabilityDomain() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster instance + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster instance * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster instance + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster instance * * @return the value **/ @@ -372,13 +372,13 @@ public String getCompartmentId() { } /** - * The fault domain the GPU memory cluster instance is running in. + * The fault domain the GPU Memory Cluster instance is running in. **/ @com.fasterxml.jackson.annotation.JsonProperty("faultDomain") private final String faultDomain; /** - * The fault domain the GPU memory cluster instance is running in. + * The fault domain the GPU Memory Cluster instance is running in. * @return the value **/ public String getFaultDomain() { @@ -438,7 +438,7 @@ public String getInstanceShape() { } /** - * The lifecycle state of the GPU memory cluster instance + * The lifecycle state of the GPU Memory Cluster instance * **/ public enum LifecycleState { @@ -496,14 +496,14 @@ public static LifecycleState create(String key) { } }; /** - * The lifecycle state of the GPU memory cluster instance + * The lifecycle state of the GPU Memory Cluster instance * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycle state of the GPU memory cluster instance + * The lifecycle state of the GPU Memory Cluster instance * * @return the value **/ @@ -530,7 +530,7 @@ public String getDisplayName() { } /** - * The date and time the GPU memory cluster instance was created. + * The date and time the GPU Memory Cluster instance was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * @@ -539,7 +539,7 @@ public String getDisplayName() { private final java.util.Date timeCreated; /** - * The date and time the GPU memory cluster instance was created. + * The date and time the GPU Memory Cluster instance was created. *

* Example: {@code 2016-09-15T21:10:29.600Z} * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterScaleConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterScaleConfig.java index 9640de2a8ce..ba938f325a6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterScaleConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterScaleConfig.java @@ -71,14 +71,14 @@ public Builder isDownsizeEnabled(Boolean isDownsizeEnabled) { return this; } /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("targetSize") private Long targetSize; /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * * @param targetSize the value to set * @return this builder @@ -161,14 +161,14 @@ public Boolean getIsDownsizeEnabled() { } /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("targetSize") private final Long targetSize; /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java index d24a6d9dd05..52187ae4c76 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java @@ -58,14 +58,14 @@ public ComputeGpuMemoryClusterSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * * @param id the value to set * @return this builder @@ -76,7 +76,7 @@ public Builder id(String id) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * **/ @@ -84,7 +84,7 @@ public Builder id(String id) { private String compartmentId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * * @param compartmentId the value to set @@ -96,7 +96,7 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The availability domain of GPU memory cluster. + * The availability domain of GPU Memory Cluster. *

* Example: {@code Uocm:PHX-AD-1} * @@ -105,7 +105,7 @@ public Builder compartmentId(String compartmentId) { private String availabilityDomain; /** - * The availability domain of GPU memory cluster. + * The availability domain of GPU Memory Cluster. *

* Example: {@code Uocm:PHX-AD-1} * @@ -118,13 +118,13 @@ public Builder availabilityDomain(String availabilityDomain) { return this; } /** - * The current state of the compute GPU memory cluster. + * The current state of the compute GPU Memory Cluster. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private ComputeGpuMemoryCluster.LifecycleState lifecycleState; /** - * The current state of the compute GPU memory cluster. + * The current state of the compute GPU Memory Cluster. * @param lifecycleState the value to set * @return this builder **/ @@ -311,14 +311,14 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU Memory Cluster * * @return the value **/ @@ -327,7 +327,7 @@ public String getId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * **/ @@ -335,7 +335,7 @@ public String getId() { private final String compartmentId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * * @return the value @@ -345,7 +345,7 @@ public String getCompartmentId() { } /** - * The availability domain of GPU memory cluster. + * The availability domain of GPU Memory Cluster. *

* Example: {@code Uocm:PHX-AD-1} * @@ -354,7 +354,7 @@ public String getCompartmentId() { private final String availabilityDomain; /** - * The availability domain of GPU memory cluster. + * The availability domain of GPU Memory Cluster. *

* Example: {@code Uocm:PHX-AD-1} * @@ -365,13 +365,13 @@ public String getAvailabilityDomain() { } /** - * The current state of the compute GPU memory cluster. + * The current state of the compute GPU Memory Cluster. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final ComputeGpuMemoryCluster.LifecycleState lifecycleState; /** - * The current state of the compute GPU memory cluster. + * The current state of the compute GPU Memory Cluster. * @return the value **/ public ComputeGpuMemoryCluster.LifecycleState getLifecycleState() { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterDetails.java index 51c71f76de0..1af5fc1f505 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * The customer facing object includes GPU memory cluster details. + * The customer facing object includes GPU Memory Cluster details. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -33,7 +33,8 @@ public final class CreateComputeGpuMemoryClusterDetails "definedTags", "freeformTags", "displayName", - "gpuMemoryClusterScaleConfig" + "gpuMemoryClusterScaleConfig", + "privateIpIds" }) public CreateComputeGpuMemoryClusterDetails( String availabilityDomain, @@ -45,7 +46,8 @@ public CreateComputeGpuMemoryClusterDetails( java.util.Map> definedTags, java.util.Map freeformTags, String displayName, - CreateComputeGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig) { + CreateComputeGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig, + java.util.List privateIpIds) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; @@ -57,19 +59,20 @@ public CreateComputeGpuMemoryClusterDetails( this.freeformTags = freeformTags; this.displayName = displayName; this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.privateIpIds = privateIpIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") private String availabilityDomain; /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * * @param availabilityDomain the value to set * @return this builder @@ -80,7 +83,7 @@ public Builder availabilityDomain(String availabilityDomain) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * **/ @@ -88,7 +91,7 @@ public Builder availabilityDomain(String availabilityDomain) { private String compartmentId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * * @param compartmentId the value to set @@ -154,14 +157,14 @@ public Builder instanceConfigurationId(String instanceConfigurationId) { return this; } /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private Long size; /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * * @param size the value to set * @return this builder @@ -250,6 +253,22 @@ public Builder gpuMemoryClusterScaleConfig( this.__explicitlySet__.add("gpuMemoryClusterScaleConfig"); return this; } + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateIpIds") + private java.util.List privateIpIds; + + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + * @param privateIpIds the value to set + * @return this builder + **/ + public Builder privateIpIds(java.util.List privateIpIds) { + this.privateIpIds = privateIpIds; + this.__explicitlySet__.add("privateIpIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -266,7 +285,8 @@ public CreateComputeGpuMemoryClusterDetails build() { this.definedTags, this.freeformTags, this.displayName, - this.gpuMemoryClusterScaleConfig); + this.gpuMemoryClusterScaleConfig, + this.privateIpIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -305,6 +325,9 @@ public Builder copy(CreateComputeGpuMemoryClusterDetails model) { if (model.wasPropertyExplicitlySet("gpuMemoryClusterScaleConfig")) { this.gpuMemoryClusterScaleConfig(model.getGpuMemoryClusterScaleConfig()); } + if (model.wasPropertyExplicitlySet("privateIpIds")) { + this.privateIpIds(model.getPrivateIpIds()); + } return this; } } @@ -321,14 +344,14 @@ public Builder toBuilder() { } /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") private final String availabilityDomain; /** - * The availability domain of the GPU memory cluster. + * The availability domain of the GPU Memory Cluster. * * @return the value **/ @@ -337,7 +360,7 @@ public String getAvailabilityDomain() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * **/ @@ -345,7 +368,7 @@ public String getAvailabilityDomain() { private final String compartmentId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU Memory Cluster. * compartment. * * @return the value @@ -403,14 +426,14 @@ public String getInstanceConfigurationId() { } /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Long size; /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * * @return the value **/ @@ -487,6 +510,20 @@ public CreateComputeGpuMemoryClusterScaleConfig getGpuMemoryClusterScaleConfig() return gpuMemoryClusterScaleConfig; } + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateIpIds") + private final java.util.List privateIpIds; + + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + * @return the value + **/ + public java.util.List getPrivateIpIds() { + return privateIpIds; + } + @Override public String toString() { return this.toString(true); @@ -513,6 +550,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", gpuMemoryClusterScaleConfig=") .append(String.valueOf(this.gpuMemoryClusterScaleConfig)); + sb.append(", privateIpIds=").append(String.valueOf(this.privateIpIds)); sb.append(")"); return sb.toString(); } @@ -539,6 +577,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.gpuMemoryClusterScaleConfig, other.gpuMemoryClusterScaleConfig) + && java.util.Objects.equals(this.privateIpIds, other.privateIpIds) && super.equals(other); } @@ -574,6 +613,7 @@ public int hashCode() { + (this.gpuMemoryClusterScaleConfig == null ? 43 : this.gpuMemoryClusterScaleConfig.hashCode()); + result = (result * PRIME) + (this.privateIpIds == null ? 43 : this.privateIpIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterScaleConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterScaleConfig.java index c6cd221dee9..877c5ebb7c6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterScaleConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeGpuMemoryClusterScaleConfig.java @@ -71,14 +71,14 @@ public Builder isDownsizeEnabled(Boolean isDownsizeEnabled) { return this; } /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("targetSize") private Long targetSize; /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * * @param targetSize the value to set * @return this builder @@ -161,14 +161,14 @@ public Boolean getIsDownsizeEnabled() { } /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("targetSize") private final Long targetSize; /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java index 6068453b698..b31f29d3ae1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java @@ -176,6 +176,7 @@ public Builder instanceId(String instanceId) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -187,6 +188,7 @@ public Builder instanceId(String instanceId) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @param launchMode the value to set @@ -367,6 +369,7 @@ public String getInstanceId() { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -374,6 +377,7 @@ public enum LaunchMode { Native("NATIVE"), Emulated("EMULATED"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), Custom("CUSTOM"), ; @@ -409,6 +413,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -420,6 +425,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @return the value diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java index f63bdbadb84..8f031ce5163 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java @@ -341,7 +341,9 @@ public Builder securityAttributes( /** * Whether IPv6 is enabled for the VCN. Default is {@code false}. * If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block. + *

* You may skip having Oracle allocate the VCN a IPv6 /56 CIDR block by setting isOracleGuaAllocationEnabled to {@code false}. + *

* For important details about IPv6 addressing in a VCN, see [IPv6 Addresses](https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). *

* Example: {@code true} @@ -353,7 +355,9 @@ public Builder securityAttributes( /** * Whether IPv6 is enabled for the VCN. Default is {@code false}. * If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block. + *

* You may skip having Oracle allocate the VCN a IPv6 /56 CIDR block by setting isOracleGuaAllocationEnabled to {@code false}. + *

* For important details about IPv6 addressing in a VCN, see [IPv6 Addresses](https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). *

* Example: {@code true} @@ -717,7 +721,9 @@ public java.util.Map> getSecurityAttribute /** * Whether IPv6 is enabled for the VCN. Default is {@code false}. * If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block. + *

* You may skip having Oracle allocate the VCN a IPv6 /56 CIDR block by setting isOracleGuaAllocationEnabled to {@code false}. + *

* For important details about IPv6 addressing in a VCN, see [IPv6 Addresses](https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). *

* Example: {@code true} @@ -729,7 +735,9 @@ public java.util.Map> getSecurityAttribute /** * Whether IPv6 is enabled for the VCN. Default is {@code false}. * If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block. + *

* You may skip having Oracle allocate the VCN a IPv6 /56 CIDR block by setting isOracleGuaAllocationEnabled to {@code false}. + *

* For important details about IPv6 addressing in a VCN, see [IPv6 Addresses](https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). *

* Example: {@code true} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java index 5cc4edb7348..3383407094c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java @@ -418,14 +418,14 @@ public Builder providerServiceId(String providerServiceId) { return this; } /** - * The service key name offered by the provider (if the customer is connecting via a provider). + * The service key name or activation key offered by the provider (if the customer is connecting via a provider). * **/ @com.fasterxml.jackson.annotation.JsonProperty("providerServiceKeyName") private String providerServiceKeyName; /** - * The service key name offered by the provider (if the customer is connecting via a provider). + * The service key name or activation key offered by the provider (if the customer is connecting via a provider). * * @param providerServiceKeyName the value to set * @return this builder @@ -1017,14 +1017,14 @@ public String getProviderServiceId() { } /** - * The service key name offered by the provider (if the customer is connecting via a provider). + * The service key name or activation key offered by the provider (if the customer is connecting via a provider). * **/ @com.fasterxml.jackson.annotation.JsonProperty("providerServiceKeyName") private final String providerServiceKeyName; /** - * The service key name offered by the provider (if the customer is connecting via a provider). + * The service key name or activation key offered by the provider (if the customer is connecting via a provider). * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java index 92b75a50c6a..98dd66c7a89 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java @@ -39,6 +39,8 @@ public final class DedicatedVmHost extends com.oracle.bmc.http.internal.Explicit "remainingOcpus", "totalMemoryInGBs", "remainingMemoryInGBs", + "totalLocalVolumeInGBs", + "remainingLocalVolumeInGBs", "capacityBins", "computeBareMetalHostId" }) @@ -60,6 +62,8 @@ public DedicatedVmHost( Float remainingOcpus, Float totalMemoryInGBs, Float remainingMemoryInGBs, + Float totalLocalVolumeInGBs, + Float remainingLocalVolumeInGBs, java.util.List capacityBins, String computeBareMetalHostId) { super(); @@ -80,6 +84,8 @@ public DedicatedVmHost( this.remainingOcpus = remainingOcpus; this.totalMemoryInGBs = totalMemoryInGBs; this.remainingMemoryInGBs = remainingMemoryInGBs; + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.remainingLocalVolumeInGBs = remainingLocalVolumeInGBs; this.capacityBins = capacityBins; this.computeBareMetalHostId = computeBareMetalHostId; } @@ -424,14 +430,50 @@ public Builder remainingMemoryInGBs(Float remainingMemoryInGBs) { return this; } /** - * A list of total and remaining CPU and memory per capacity bucket. + * The total local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private Float totalLocalVolumeInGBs; + + /** + * The total local volume of the dedicated VM host, in GBs. + * + * @param totalLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder totalLocalVolumeInGBs(Float totalLocalVolumeInGBs) { + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.__explicitlySet__.add("totalLocalVolumeInGBs"); + return this; + } + /** + * The remaining local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingLocalVolumeInGBs") + private Float remainingLocalVolumeInGBs; + + /** + * The remaining local volume of the dedicated VM host, in GBs. + * + * @param remainingLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder remainingLocalVolumeInGBs(Float remainingLocalVolumeInGBs) { + this.remainingLocalVolumeInGBs = remainingLocalVolumeInGBs; + this.__explicitlySet__.add("remainingLocalVolumeInGBs"); + return this; + } + /** + * A list of total and remaining CPU, memory, and local volume per capacity bucket. * **/ @com.fasterxml.jackson.annotation.JsonProperty("capacityBins") private java.util.List capacityBins; /** - * A list of total and remaining CPU and memory per capacity bucket. + * A list of total and remaining CPU, memory, and local volume per capacity bucket. * * @param capacityBins the value to set * @return this builder @@ -483,6 +525,8 @@ public DedicatedVmHost build() { this.remainingOcpus, this.totalMemoryInGBs, this.remainingMemoryInGBs, + this.totalLocalVolumeInGBs, + this.remainingLocalVolumeInGBs, this.capacityBins, this.computeBareMetalHostId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -544,6 +588,12 @@ public Builder copy(DedicatedVmHost model) { if (model.wasPropertyExplicitlySet("remainingMemoryInGBs")) { this.remainingMemoryInGBs(model.getRemainingMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("totalLocalVolumeInGBs")) { + this.totalLocalVolumeInGBs(model.getTotalLocalVolumeInGBs()); + } + if (model.wasPropertyExplicitlySet("remainingLocalVolumeInGBs")) { + this.remainingLocalVolumeInGBs(model.getRemainingLocalVolumeInGBs()); + } if (model.wasPropertyExplicitlySet("capacityBins")) { this.capacityBins(model.getCapacityBins()); } @@ -920,14 +970,46 @@ public Float getRemainingMemoryInGBs() { } /** - * A list of total and remaining CPU and memory per capacity bucket. + * The total local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private final Float totalLocalVolumeInGBs; + + /** + * The total local volume of the dedicated VM host, in GBs. + * + * @return the value + **/ + public Float getTotalLocalVolumeInGBs() { + return totalLocalVolumeInGBs; + } + + /** + * The remaining local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingLocalVolumeInGBs") + private final Float remainingLocalVolumeInGBs; + + /** + * The remaining local volume of the dedicated VM host, in GBs. + * + * @return the value + **/ + public Float getRemainingLocalVolumeInGBs() { + return remainingLocalVolumeInGBs; + } + + /** + * A list of total and remaining CPU, memory, and local volume per capacity bucket. * **/ @com.fasterxml.jackson.annotation.JsonProperty("capacityBins") private final java.util.List capacityBins; /** - * A list of total and remaining CPU and memory per capacity bucket. + * A list of total and remaining CPU, memory, and local volume per capacity bucket. * * @return the value **/ @@ -984,6 +1066,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", remainingOcpus=").append(String.valueOf(this.remainingOcpus)); sb.append(", totalMemoryInGBs=").append(String.valueOf(this.totalMemoryInGBs)); sb.append(", remainingMemoryInGBs=").append(String.valueOf(this.remainingMemoryInGBs)); + sb.append(", totalLocalVolumeInGBs=").append(String.valueOf(this.totalLocalVolumeInGBs)); + sb.append(", remainingLocalVolumeInGBs=") + .append(String.valueOf(this.remainingLocalVolumeInGBs)); sb.append(", capacityBins=").append(String.valueOf(this.capacityBins)); sb.append(", computeBareMetalHostId=").append(String.valueOf(this.computeBareMetalHostId)); sb.append(")"); @@ -1019,6 +1104,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.remainingOcpus, other.remainingOcpus) && java.util.Objects.equals(this.totalMemoryInGBs, other.totalMemoryInGBs) && java.util.Objects.equals(this.remainingMemoryInGBs, other.remainingMemoryInGBs) + && java.util.Objects.equals(this.totalLocalVolumeInGBs, other.totalLocalVolumeInGBs) + && java.util.Objects.equals( + this.remainingLocalVolumeInGBs, other.remainingLocalVolumeInGBs) && java.util.Objects.equals(this.capacityBins, other.capacityBins) && java.util.Objects.equals( this.computeBareMetalHostId, other.computeBareMetalHostId) @@ -1076,6 +1164,16 @@ public int hashCode() { + (this.remainingMemoryInGBs == null ? 43 : this.remainingMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.totalLocalVolumeInGBs == null + ? 43 + : this.totalLocalVolumeInGBs.hashCode()); + result = + (result * PRIME) + + (this.remainingLocalVolumeInGBs == null + ? 43 + : this.remainingLocalVolumeInGBs.hashCode()); result = (result * PRIME) + (this.capacityBins == null ? 43 : this.capacityBins.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java index 6b68431dcac..6a59c6b28ea 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java @@ -36,7 +36,9 @@ public final class DedicatedVmHostSummary "remainingOcpus", "totalOcpus", "totalMemoryInGBs", - "remainingMemoryInGBs" + "remainingMemoryInGBs", + "totalLocalVolumeInGBs", + "remainingLocalVolumeInGBs" }) public DedicatedVmHostSummary( String availabilityDomain, @@ -51,7 +53,9 @@ public DedicatedVmHostSummary( Float remainingOcpus, Float totalOcpus, Float totalMemoryInGBs, - Float remainingMemoryInGBs) { + Float remainingMemoryInGBs, + Float totalLocalVolumeInGBs, + Float remainingLocalVolumeInGBs) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; @@ -66,6 +70,8 @@ public DedicatedVmHostSummary( this.totalOcpus = totalOcpus; this.totalMemoryInGBs = totalMemoryInGBs; this.remainingMemoryInGBs = remainingMemoryInGBs; + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.remainingLocalVolumeInGBs = remainingLocalVolumeInGBs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -330,6 +336,42 @@ public Builder remainingMemoryInGBs(Float remainingMemoryInGBs) { this.__explicitlySet__.add("remainingMemoryInGBs"); return this; } + /** + * The current total local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private Float totalLocalVolumeInGBs; + + /** + * The current total local volume of the dedicated VM host, in GBs. + * + * @param totalLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder totalLocalVolumeInGBs(Float totalLocalVolumeInGBs) { + this.totalLocalVolumeInGBs = totalLocalVolumeInGBs; + this.__explicitlySet__.add("totalLocalVolumeInGBs"); + return this; + } + /** + * The current available local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingLocalVolumeInGBs") + private Float remainingLocalVolumeInGBs; + + /** + * The current available local volume of the dedicated VM host, in GBs. + * + * @param remainingLocalVolumeInGBs the value to set + * @return this builder + **/ + public Builder remainingLocalVolumeInGBs(Float remainingLocalVolumeInGBs) { + this.remainingLocalVolumeInGBs = remainingLocalVolumeInGBs; + this.__explicitlySet__.add("remainingLocalVolumeInGBs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -349,7 +391,9 @@ public DedicatedVmHostSummary build() { this.remainingOcpus, this.totalOcpus, this.totalMemoryInGBs, - this.remainingMemoryInGBs); + this.remainingMemoryInGBs, + this.totalLocalVolumeInGBs, + this.remainingLocalVolumeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -397,6 +441,12 @@ public Builder copy(DedicatedVmHostSummary model) { if (model.wasPropertyExplicitlySet("remainingMemoryInGBs")) { this.remainingMemoryInGBs(model.getRemainingMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("totalLocalVolumeInGBs")) { + this.totalLocalVolumeInGBs(model.getTotalLocalVolumeInGBs()); + } + if (model.wasPropertyExplicitlySet("remainingLocalVolumeInGBs")) { + this.remainingLocalVolumeInGBs(model.getRemainingLocalVolumeInGBs()); + } return this; } } @@ -699,6 +749,38 @@ public Float getRemainingMemoryInGBs() { return remainingMemoryInGBs; } + /** + * The current total local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalLocalVolumeInGBs") + private final Float totalLocalVolumeInGBs; + + /** + * The current total local volume of the dedicated VM host, in GBs. + * + * @return the value + **/ + public Float getTotalLocalVolumeInGBs() { + return totalLocalVolumeInGBs; + } + + /** + * The current available local volume of the dedicated VM host, in GBs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingLocalVolumeInGBs") + private final Float remainingLocalVolumeInGBs; + + /** + * The current available local volume of the dedicated VM host, in GBs. + * + * @return the value + **/ + public Float getRemainingLocalVolumeInGBs() { + return remainingLocalVolumeInGBs; + } + @Override public String toString() { return this.toString(true); @@ -727,6 +809,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", totalOcpus=").append(String.valueOf(this.totalOcpus)); sb.append(", totalMemoryInGBs=").append(String.valueOf(this.totalMemoryInGBs)); sb.append(", remainingMemoryInGBs=").append(String.valueOf(this.remainingMemoryInGBs)); + sb.append(", totalLocalVolumeInGBs=").append(String.valueOf(this.totalLocalVolumeInGBs)); + sb.append(", remainingLocalVolumeInGBs=") + .append(String.valueOf(this.remainingLocalVolumeInGBs)); sb.append(")"); return sb.toString(); } @@ -755,6 +840,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.totalOcpus, other.totalOcpus) && java.util.Objects.equals(this.totalMemoryInGBs, other.totalMemoryInGBs) && java.util.Objects.equals(this.remainingMemoryInGBs, other.remainingMemoryInGBs) + && java.util.Objects.equals(this.totalLocalVolumeInGBs, other.totalLocalVolumeInGBs) + && java.util.Objects.equals( + this.remainingLocalVolumeInGBs, other.remainingLocalVolumeInGBs) && super.equals(other); } @@ -799,6 +887,16 @@ public int hashCode() { + (this.remainingMemoryInGBs == null ? 43 : this.remainingMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.totalLocalVolumeInGBs == null + ? 43 + : this.totalLocalVolumeInGBs.hashCode()); + result = + (result * PRIME) + + (this.remainingLocalVolumeInGBs == null + ? 43 + : this.remainingLocalVolumeInGBs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Image.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Image.java index acf7feca4d4..9cdf5283e67 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Image.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Image.java @@ -243,6 +243,7 @@ public Builder id(String id) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -254,6 +255,7 @@ public Builder id(String id) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @param launchMode the value to set @@ -658,6 +660,7 @@ public String getId() { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -665,6 +668,7 @@ public enum LaunchMode { Native("NATIVE"), Emulated("EMULATED"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), Custom("CUSTOM"), /** @@ -713,6 +717,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -724,6 +729,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @return the value diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Instance.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Instance.java index 2c2ad02aeea..99d70de8d44 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Instance.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Instance.java @@ -566,6 +566,7 @@ public Builder ipxeScript(String ipxeScript) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -577,6 +578,7 @@ public Builder ipxeScript(String ipxeScript) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @param launchMode the value to set @@ -1452,6 +1454,7 @@ public String getIpxeScript() { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -1459,6 +1462,7 @@ public enum LaunchMode { Native("NATIVE"), Emulated("EMULATED"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), Custom("CUSTOM"), /** @@ -1507,6 +1511,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -1518,6 +1523,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @return the value diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceDetails.java index c8b92366396..1d39533b10e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceDetails.java @@ -687,6 +687,7 @@ public Builder dedicatedVmHostId(String dedicatedVmHostId) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -698,6 +699,7 @@ public Builder dedicatedVmHostId(String dedicatedVmHostId) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @param launchMode the value to set @@ -1478,6 +1480,7 @@ public String getDedicatedVmHostId() { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -1485,6 +1488,7 @@ public enum LaunchMode { Native("NATIVE"), Emulated("EMULATED"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), Custom("CUSTOM"), /** @@ -1533,6 +1537,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * **/ @@ -1544,6 +1549,7 @@ public static LaunchMode create(String key) { * * {@code NATIVE} - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. * * {@code EMULATED} - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * {@code CUSTOM} - VM instances launch with custom configuration settings specified in the {@code LaunchOptions} parameter. * * @return the value diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceShapeConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceShapeConfigDetails.java index 614ed3d05ad..a06d0d5f043 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceShapeConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceShapeConfigDetails.java @@ -37,7 +37,8 @@ public final class InstanceConfigurationLaunchInstanceShapeConfigDetails "memoryInGBs", "baselineOcpuUtilization", "nvmes", - "resourceManagement" + "resourceManagement", + "localVolumeSizeInGBs" }) public InstanceConfigurationLaunchInstanceShapeConfigDetails( Float ocpus, @@ -45,7 +46,8 @@ public InstanceConfigurationLaunchInstanceShapeConfigDetails( Float memoryInGBs, BaselineOcpuUtilization baselineOcpuUtilization, Integer nvmes, - ResourceManagement resourceManagement) { + ResourceManagement resourceManagement, + Integer localVolumeSizeInGBs) { super(); this.ocpus = ocpus; this.vcpus = vcpus; @@ -53,6 +55,7 @@ public InstanceConfigurationLaunchInstanceShapeConfigDetails( this.baselineOcpuUtilization = baselineOcpuUtilization; this.nvmes = nvmes; this.resourceManagement = resourceManagement; + this.localVolumeSizeInGBs = localVolumeSizeInGBs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -181,6 +184,28 @@ public Builder resourceManagement(ResourceManagement resourceManagement) { this.__explicitlySet__.add("resourceManagement"); return this; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + * @param localVolumeSizeInGBs the value to set + * @return this builder + **/ + public Builder localVolumeSizeInGBs(Integer localVolumeSizeInGBs) { + this.localVolumeSizeInGBs = localVolumeSizeInGBs; + this.__explicitlySet__.add("localVolumeSizeInGBs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -193,7 +218,8 @@ public InstanceConfigurationLaunchInstanceShapeConfigDetails build() { this.memoryInGBs, this.baselineOcpuUtilization, this.nvmes, - this.resourceManagement); + this.resourceManagement, + this.localVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -220,6 +246,9 @@ public Builder copy(InstanceConfigurationLaunchInstanceShapeConfigDetails model) if (model.wasPropertyExplicitlySet("resourceManagement")) { this.resourceManagement(model.getResourceManagement()); } + if (model.wasPropertyExplicitlySet("localVolumeSizeInGBs")) { + this.localVolumeSizeInGBs(model.getLocalVolumeSizeInGBs()); + } return this; } } @@ -452,6 +481,26 @@ public ResourceManagement getResourceManagement() { return resourceManagement; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private final Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + * @return the value + **/ + public Integer getLocalVolumeSizeInGBs() { + return localVolumeSizeInGBs; + } + @Override public String toString() { return this.toString(true); @@ -473,6 +522,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.baselineOcpuUtilization)); sb.append(", nvmes=").append(String.valueOf(this.nvmes)); sb.append(", resourceManagement=").append(String.valueOf(this.resourceManagement)); + sb.append(", localVolumeSizeInGBs=").append(String.valueOf(this.localVolumeSizeInGBs)); sb.append(")"); return sb.toString(); } @@ -495,6 +545,7 @@ public boolean equals(Object o) { this.baselineOcpuUtilization, other.baselineOcpuUtilization) && java.util.Objects.equals(this.nvmes, other.nvmes) && java.util.Objects.equals(this.resourceManagement, other.resourceManagement) + && java.util.Objects.equals(this.localVolumeSizeInGBs, other.localVolumeSizeInGBs) && super.equals(other); } @@ -516,6 +567,11 @@ public int hashCode() { + (this.resourceManagement == null ? 43 : this.resourceManagement.hashCode()); + result = + (result * PRIME) + + (this.localVolumeSizeInGBs == null + ? 43 + : this.localVolumeSizeInGBs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java index bdfd81cd646..f0816a19fb5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java @@ -114,6 +114,7 @@ public Builder firmware(Firmware firmware) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkType") @@ -125,6 +126,7 @@ public Builder firmware(Firmware firmware) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * @param networkType the value to set * @return this builder @@ -428,12 +430,14 @@ public Firmware getFirmware() { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * **/ public enum NetworkType { E1000("E1000"), Vfio("VFIO"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -482,6 +486,7 @@ public static NetworkType create(String key) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkType") @@ -493,6 +498,7 @@ public static NetworkType create(String key) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java index 0ccdd1f22fa..4e49b6fe784 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java @@ -36,7 +36,8 @@ public final class InstancePool extends com.oracle.bmc.http.internal.ExplicitlyS "loadBalancers", "instanceDisplayNameFormatter", "instanceHostnameFormatter", - "lifecycleManagement" + "lifecycleManagement", + "currentSize" }) public InstancePool( String id, @@ -52,7 +53,8 @@ public InstancePool( java.util.List loadBalancers, String instanceDisplayNameFormatter, String instanceHostnameFormatter, - InstancePoolLifecycleManagementDetails lifecycleManagement) { + InstancePoolLifecycleManagementDetails lifecycleManagement, + Integer currentSize) { super(); this.id = id; this.compartmentId = compartmentId; @@ -68,6 +70,7 @@ public InstancePool( this.instanceDisplayNameFormatter = instanceDisplayNameFormatter; this.instanceHostnameFormatter = instanceHostnameFormatter; this.lifecycleManagement = lifecycleManagement; + this.currentSize = currentSize; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -335,6 +338,22 @@ public Builder lifecycleManagement( this.__explicitlySet__.add("lifecycleManagement"); return this; } + /** + * Count of instance in running state associated to the Instance Pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSize") + private Integer currentSize; + + /** + * Count of instance in running state associated to the Instance Pool. + * @param currentSize the value to set + * @return this builder + **/ + public Builder currentSize(Integer currentSize) { + this.currentSize = currentSize; + this.__explicitlySet__.add("currentSize"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -355,7 +374,8 @@ public InstancePool build() { this.loadBalancers, this.instanceDisplayNameFormatter, this.instanceHostnameFormatter, - this.lifecycleManagement); + this.lifecycleManagement, + this.currentSize); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -406,6 +426,9 @@ public Builder copy(InstancePool model) { if (model.wasPropertyExplicitlySet("lifecycleManagement")) { this.lifecycleManagement(model.getLifecycleManagement()); } + if (model.wasPropertyExplicitlySet("currentSize")) { + this.currentSize(model.getCurrentSize()); + } return this; } } @@ -706,6 +729,20 @@ public InstancePoolLifecycleManagementDetails getLifecycleManagement() { return lifecycleManagement; } + /** + * Count of instance in running state associated to the Instance Pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSize") + private final Integer currentSize; + + /** + * Count of instance in running state associated to the Instance Pool. + * @return the value + **/ + public Integer getCurrentSize() { + return currentSize; + } + @Override public String toString() { return this.toString(true); @@ -738,6 +775,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", instanceHostnameFormatter=") .append(String.valueOf(this.instanceHostnameFormatter)); sb.append(", lifecycleManagement=").append(String.valueOf(this.lifecycleManagement)); + sb.append(", currentSize=").append(String.valueOf(this.currentSize)); sb.append(")"); return sb.toString(); } @@ -770,6 +808,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.instanceHostnameFormatter, other.instanceHostnameFormatter) && java.util.Objects.equals(this.lifecycleManagement, other.lifecycleManagement) + && java.util.Objects.equals(this.currentSize, other.currentSize) && super.equals(other); } @@ -817,6 +856,7 @@ public int hashCode() { + (this.lifecycleManagement == null ? 43 : this.lifecycleManagement.hashCode()); + result = (result * PRIME) + (this.currentSize == null ? 43 : this.currentSize.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java index dc9ced70fe6..1bd28a2e8f4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java @@ -31,7 +31,8 @@ public final class InstancePoolSummary extends com.oracle.bmc.http.internal.Expl "size", "timeCreated", "definedTags", - "freeformTags" + "freeformTags", + "currentSize" }) public InstancePoolSummary( String id, @@ -43,7 +44,8 @@ public InstancePoolSummary( Integer size, java.util.Date timeCreated, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + Integer currentSize) { super(); this.id = id; this.compartmentId = compartmentId; @@ -55,6 +57,7 @@ public InstancePoolSummary( this.timeCreated = timeCreated; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.currentSize = currentSize; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -244,6 +247,22 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + /** + * Count of instance in running state associated to the Instance Pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSize") + private Integer currentSize; + + /** + * Count of instance in running state associated to the Instance Pool. + * @param currentSize the value to set + * @return this builder + **/ + public Builder currentSize(Integer currentSize) { + this.currentSize = currentSize; + this.__explicitlySet__.add("currentSize"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -260,7 +279,8 @@ public InstancePoolSummary build() { this.size, this.timeCreated, this.definedTags, - this.freeformTags); + this.freeformTags, + this.currentSize); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -299,6 +319,9 @@ public Builder copy(InstancePoolSummary model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("currentSize")) { + this.currentSize(model.getCurrentSize()); + } return this; } } @@ -532,6 +555,20 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * Count of instance in running state associated to the Instance Pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSize") + private final Integer currentSize; + + /** + * Count of instance in running state associated to the Instance Pool. + * @return the value + **/ + public Integer getCurrentSize() { + return currentSize; + } + @Override public String toString() { return this.toString(true); @@ -557,6 +594,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", currentSize=").append(String.valueOf(this.currentSize)); sb.append(")"); return sb.toString(); } @@ -582,6 +620,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.currentSize, other.currentSize) && super.equals(other); } @@ -611,6 +650,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.currentSize == null ? 43 : this.currentSize.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceReservationShapeConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceReservationShapeConfigDetails.java index 68ddb9674ba..98d490dc4e6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceReservationShapeConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceReservationShapeConfigDetails.java @@ -33,11 +33,13 @@ public final class InstanceReservationShapeConfigDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"ocpus", "memoryInGBs"}) - public InstanceReservationShapeConfigDetails(Float ocpus, Float memoryInGBs) { + @java.beans.ConstructorProperties({"ocpus", "memoryInGBs", "resourceManagement"}) + public InstanceReservationShapeConfigDetails( + Float ocpus, Float memoryInGBs, ResourceManagement resourceManagement) { super(); this.ocpus = ocpus; this.memoryInGBs = memoryInGBs; + this.resourceManagement = resourceManagement; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -78,13 +80,32 @@ public Builder memoryInGBs(Float memoryInGBs) { this.__explicitlySet__.add("memoryInGBs"); return this; } + /** + * This field is reserved for internal use. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceManagement") + private ResourceManagement resourceManagement; + + /** + * This field is reserved for internal use. + * + * @param resourceManagement the value to set + * @return this builder + **/ + public Builder resourceManagement(ResourceManagement resourceManagement) { + this.resourceManagement = resourceManagement; + this.__explicitlySet__.add("resourceManagement"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public InstanceReservationShapeConfigDetails build() { InstanceReservationShapeConfigDetails model = - new InstanceReservationShapeConfigDetails(this.ocpus, this.memoryInGBs); + new InstanceReservationShapeConfigDetails( + this.ocpus, this.memoryInGBs, this.resourceManagement); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -99,6 +120,9 @@ public Builder copy(InstanceReservationShapeConfigDetails model) { if (model.wasPropertyExplicitlySet("memoryInGBs")) { this.memoryInGBs(model.getMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("resourceManagement")) { + this.resourceManagement(model.getResourceManagement()); + } return this; } } @@ -146,6 +170,71 @@ public Float getMemoryInGBs() { return memoryInGBs; } + /** + * This field is reserved for internal use. + * + **/ + public enum ResourceManagement { + Dynamic("DYNAMIC"), + Static("STATIC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ResourceManagement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceManagement v : ResourceManagement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResourceManagement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceManagement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResourceManagement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * This field is reserved for internal use. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceManagement") + private final ResourceManagement resourceManagement; + + /** + * This field is reserved for internal use. + * + * @return the value + **/ + public ResourceManagement getResourceManagement() { + return resourceManagement; + } + @Override public String toString() { return this.toString(true); @@ -162,6 +251,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("ocpus=").append(String.valueOf(this.ocpus)); sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", resourceManagement=").append(String.valueOf(this.resourceManagement)); sb.append(")"); return sb.toString(); } @@ -178,6 +268,7 @@ public boolean equals(Object o) { InstanceReservationShapeConfigDetails other = (InstanceReservationShapeConfigDetails) o; return java.util.Objects.equals(this.ocpus, other.ocpus) && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.resourceManagement, other.resourceManagement) && super.equals(other); } @@ -187,6 +278,11 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.resourceManagement == null + ? 43 + : this.resourceManagement.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceShapeConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceShapeConfig.java index 42f00417e75..077aaf083c7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceShapeConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceShapeConfig.java @@ -36,7 +36,8 @@ public final class InstanceShapeConfig extends com.oracle.bmc.http.internal.Expl "localDisksTotalSizeInGBs", "localDiskDescription", "vcpus", - "resourceManagement" + "resourceManagement", + "localVolumeSizeInGBs" }) public InstanceShapeConfig( Float ocpus, @@ -51,7 +52,8 @@ public InstanceShapeConfig( Float localDisksTotalSizeInGBs, String localDiskDescription, Integer vcpus, - ResourceManagement resourceManagement) { + ResourceManagement resourceManagement, + Integer localVolumeSizeInGBs) { super(); this.ocpus = ocpus; this.memoryInGBs = memoryInGBs; @@ -66,6 +68,7 @@ public InstanceShapeConfig( this.localDiskDescription = localDiskDescription; this.vcpus = vcpus; this.resourceManagement = resourceManagement; + this.localVolumeSizeInGBs = localVolumeSizeInGBs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -332,6 +335,26 @@ public Builder resourceManagement(ResourceManagement resourceManagement) { this.__explicitlySet__.add("resourceManagement"); return this; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the shape + * is DenseLV, the value will be greater than 0. For all other shapes, the value will be null. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the shape + * is DenseLV, the value will be greater than 0. For all other shapes, the value will be null. + * + * @param localVolumeSizeInGBs the value to set + * @return this builder + **/ + public Builder localVolumeSizeInGBs(Integer localVolumeSizeInGBs) { + this.localVolumeSizeInGBs = localVolumeSizeInGBs; + this.__explicitlySet__.add("localVolumeSizeInGBs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -351,7 +374,8 @@ public InstanceShapeConfig build() { this.localDisksTotalSizeInGBs, this.localDiskDescription, this.vcpus, - this.resourceManagement); + this.resourceManagement, + this.localVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -399,6 +423,9 @@ public Builder copy(InstanceShapeConfig model) { if (model.wasPropertyExplicitlySet("resourceManagement")) { this.resourceManagement(model.getResourceManagement()); } + if (model.wasPropertyExplicitlySet("localVolumeSizeInGBs")) { + this.localVolumeSizeInGBs(model.getLocalVolumeSizeInGBs()); + } return this; } } @@ -755,6 +782,24 @@ public ResourceManagement getResourceManagement() { return resourceManagement; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the shape + * is DenseLV, the value will be greater than 0. For all other shapes, the value will be null. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private final Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the shape + * is DenseLV, the value will be greater than 0. For all other shapes, the value will be null. + * + * @return the value + **/ + public Integer getLocalVolumeSizeInGBs() { + return localVolumeSizeInGBs; + } + @Override public String toString() { return this.toString(true); @@ -785,6 +830,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", localDiskDescription=").append(String.valueOf(this.localDiskDescription)); sb.append(", vcpus=").append(String.valueOf(this.vcpus)); sb.append(", resourceManagement=").append(String.valueOf(this.resourceManagement)); + sb.append(", localVolumeSizeInGBs=").append(String.valueOf(this.localVolumeSizeInGBs)); sb.append(")"); return sb.toString(); } @@ -815,6 +861,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.localDiskDescription, other.localDiskDescription) && java.util.Objects.equals(this.vcpus, other.vcpus) && java.util.Objects.equals(this.resourceManagement, other.resourceManagement) + && java.util.Objects.equals(this.localVolumeSizeInGBs, other.localVolumeSizeInGBs) && super.equals(other); } @@ -865,6 +912,11 @@ public int hashCode() { + (this.resourceManagement == null ? 43 : this.resourceManagement.hashCode()); + result = + (result * PRIME) + + (this.localVolumeSizeInGBs == null + ? 43 + : this.localVolumeSizeInGBs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceShapeConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceShapeConfigDetails.java index 8b1fc25d1e3..8c5510627b0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceShapeConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceShapeConfigDetails.java @@ -36,7 +36,8 @@ public final class LaunchInstanceShapeConfigDetails "memoryInGBs", "baselineOcpuUtilization", "nvmes", - "resourceManagement" + "resourceManagement", + "localVolumeSizeInGBs" }) public LaunchInstanceShapeConfigDetails( Float ocpus, @@ -44,7 +45,8 @@ public LaunchInstanceShapeConfigDetails( Float memoryInGBs, BaselineOcpuUtilization baselineOcpuUtilization, Integer nvmes, - ResourceManagement resourceManagement) { + ResourceManagement resourceManagement, + Integer localVolumeSizeInGBs) { super(); this.ocpus = ocpus; this.vcpus = vcpus; @@ -52,6 +54,7 @@ public LaunchInstanceShapeConfigDetails( this.baselineOcpuUtilization = baselineOcpuUtilization; this.nvmes = nvmes; this.resourceManagement = resourceManagement; + this.localVolumeSizeInGBs = localVolumeSizeInGBs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -180,6 +183,28 @@ public Builder resourceManagement(ResourceManagement resourceManagement) { this.__explicitlySet__.add("resourceManagement"); return this; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + * @param localVolumeSizeInGBs the value to set + * @return this builder + **/ + public Builder localVolumeSizeInGBs(Integer localVolumeSizeInGBs) { + this.localVolumeSizeInGBs = localVolumeSizeInGBs; + this.__explicitlySet__.add("localVolumeSizeInGBs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -192,7 +217,8 @@ public LaunchInstanceShapeConfigDetails build() { this.memoryInGBs, this.baselineOcpuUtilization, this.nvmes, - this.resourceManagement); + this.resourceManagement, + this.localVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -219,6 +245,9 @@ public Builder copy(LaunchInstanceShapeConfigDetails model) { if (model.wasPropertyExplicitlySet("resourceManagement")) { this.resourceManagement(model.getResourceManagement()); } + if (model.wasPropertyExplicitlySet("localVolumeSizeInGBs")) { + this.localVolumeSizeInGBs(model.getLocalVolumeSizeInGBs()); + } return this; } } @@ -425,6 +454,26 @@ public ResourceManagement getResourceManagement() { return resourceManagement; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private final Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + * @return the value + **/ + public Integer getLocalVolumeSizeInGBs() { + return localVolumeSizeInGBs; + } + @Override public String toString() { return this.toString(true); @@ -446,6 +495,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.baselineOcpuUtilization)); sb.append(", nvmes=").append(String.valueOf(this.nvmes)); sb.append(", resourceManagement=").append(String.valueOf(this.resourceManagement)); + sb.append(", localVolumeSizeInGBs=").append(String.valueOf(this.localVolumeSizeInGBs)); sb.append(")"); return sb.toString(); } @@ -467,6 +517,7 @@ public boolean equals(Object o) { this.baselineOcpuUtilization, other.baselineOcpuUtilization) && java.util.Objects.equals(this.nvmes, other.nvmes) && java.util.Objects.equals(this.resourceManagement, other.resourceManagement) + && java.util.Objects.equals(this.localVolumeSizeInGBs, other.localVolumeSizeInGBs) && super.equals(other); } @@ -488,6 +539,11 @@ public int hashCode() { + (this.resourceManagement == null ? 43 : this.resourceManagement.hashCode()); + result = + (result * PRIME) + + (this.localVolumeSizeInGBs == null + ? 43 + : this.localVolumeSizeInGBs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java index 462d09e85ee..5521b78d6d0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java @@ -111,6 +111,7 @@ public Builder firmware(Firmware firmware) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkType") @@ -122,6 +123,7 @@ public Builder firmware(Firmware firmware) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * @param networkType the value to set * @return this builder @@ -425,12 +427,14 @@ public Firmware getFirmware() { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * **/ public enum NetworkType { E1000("E1000"), Vfio("VFIO"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -479,6 +483,7 @@ public static NetworkType create(String key) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkType") @@ -490,6 +495,7 @@ public static NetworkType create(String key) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetDetails.java new file mode 100644 index 00000000000..c14cd0c16d8 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetDetails.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * The request to patch the subnet. + * Example: + * { + * "patchSubnetInstructions": [ + * { + * "operation": "REPLACE", + * "selection": "ipv6CidrBlock", + * "value": {"cidr": "2001::/56"} + * }, + * { + * "operation": "REPLACE", + * "selection": "ipv6CidrBlocks", + * "value": { "cidrs": [ "2001:db8:1234:1111::/64", "2001:db8:1234:2121::/64" ] } + * } + * ] + * } + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = PatchSubnetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchSubnetDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"patchSubnetInstructions"}) + public PatchSubnetDetails(java.util.List patchSubnetInstructions) { + super(); + this.patchSubnetInstructions = patchSubnetInstructions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of patch instructions for Subnet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchSubnetInstructions") + private java.util.List patchSubnetInstructions; + + /** + * List of patch instructions for Subnet. + * @param patchSubnetInstructions the value to set + * @return this builder + **/ + public Builder patchSubnetInstructions( + java.util.List patchSubnetInstructions) { + this.patchSubnetInstructions = patchSubnetInstructions; + this.__explicitlySet__.add("patchSubnetInstructions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchSubnetDetails build() { + PatchSubnetDetails model = new PatchSubnetDetails(this.patchSubnetInstructions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchSubnetDetails model) { + if (model.wasPropertyExplicitlySet("patchSubnetInstructions")) { + this.patchSubnetInstructions(model.getPatchSubnetInstructions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of patch instructions for Subnet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchSubnetInstructions") + private final java.util.List patchSubnetInstructions; + + /** + * List of patch instructions for Subnet. + * @return the value + **/ + public java.util.List getPatchSubnetInstructions() { + return patchSubnetInstructions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchSubnetDetails("); + sb.append("super=").append(super.toString()); + sb.append("patchSubnetInstructions=").append(String.valueOf(this.patchSubnetInstructions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchSubnetDetails)) { + return false; + } + + PatchSubnetDetails other = (PatchSubnetDetails) o; + return java.util.Objects.equals(this.patchSubnetInstructions, other.patchSubnetInstructions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.patchSubnetInstructions == null + ? 43 + : this.patchSubnetInstructions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetInstruction.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetInstruction.java new file mode 100644 index 00000000000..17c26696224 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetInstruction.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * A single instruction to be included as part of PatchSubnet 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: 20160918") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation", + defaultImpl = PatchSubnetInstruction.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchSubnetReplaceInstruction.class, + name = "REPLACE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PatchSubnetInstruction extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"selection"}) + protected PatchSubnetInstruction(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 Subnet resource representation. + * The PatchSubnet operation restricts supported selections (see PatchSubnet documentation). + * Example: "ipv6CidrBlocks" + * + **/ + @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 Subnet resource representation. + * The PatchSubnet operation restricts supported selections (see PatchSubnet documentation). + * Example: "ipv6CidrBlocks" + * + * @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("PatchSubnetInstruction("); + 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 PatchSubnetInstruction)) { + return false; + } + + PatchSubnetInstruction other = (PatchSubnetInstruction) o; + return java.util.Objects.equals(this.selection, other.selection) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The operation to apply. Values are capitalized per OCI convention but should be compared + * case-insensitively. + * + **/ + public enum Operation { + Replace("REPLACE"), + ; + + 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-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetReplaceInstruction.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetReplaceInstruction.java new file mode 100644 index 00000000000..ea0dc32587c --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetReplaceInstruction.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Replaces the entire value of the selected subnet CIDR field with the specified final state. + * For IPv6 CIDR list selections (for example, {@code ipv6CidrBlocks}), the supplied array is treated + * as the authoritative set of CIDRs for that field: + * * CIDRs present in both the existing list and the new list remain unchanged. + * * CIDRs present in the existing list but not in the new list are removed. + * * CIDRs present in the new list but not in the existing list are added. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = PatchSubnetReplaceInstruction.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 PatchSubnetReplaceInstruction extends PatchSubnetInstruction { + @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 desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify a single element. + * For list fields (for example, {@code ipv6CidrBlocks}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6CidrBlocks", "value": { "cidrs": [ "2001:db8:1234:1111::/64", "2001:db8:1234:2121::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * The desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify a single element. + * For list fields (for example, {@code ipv6CidrBlocks}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6CidrBlocks", "value": { "cidrs": [ "2001:db8:1234:1111::/64", "2001:db8:1234:2121::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + * @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 PatchSubnetReplaceInstruction build() { + PatchSubnetReplaceInstruction model = + new PatchSubnetReplaceInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchSubnetReplaceInstruction 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 PatchSubnetReplaceInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * The desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify a single element. + * For list fields (for example, {@code ipv6CidrBlocks}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6CidrBlocks", "value": { "cidrs": [ "2001:db8:1234:1111::/64", "2001:db8:1234:2121::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * The desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify a single element. + * For list fields (for example, {@code ipv6CidrBlocks}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6CidrBlocks", "value": { "cidrs": [ "2001:db8:1234:1111::/64", "2001:db8:1234:2121::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + * @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("PatchSubnetReplaceInstruction("); + 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 PatchSubnetReplaceInstruction)) { + return false; + } + + PatchSubnetReplaceInstruction other = (PatchSubnetReplaceInstruction) 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-core/src/main/java/com/oracle/bmc/core/model/PatchVcnDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnDetails.java new file mode 100644 index 00000000000..dd011798512 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * The request to patch the VCN. + * Example: + * { + * "patchVcnInstructions": [ + * { + * "operation": "REPLACE", + * "selection": "ipv6CidrBlock", + * "value": {"cidr": "2001::/56"} + * }, + * { + * "operation": "REPLACE", + * "selection": "ipv6PublicCidrBlock", + * "value": {"cidr": "2001:0db8:0123::/48"} + * }, + * { + * "operation": "REPLACE", + * "selection": "byoipv6CidrDetails", + * "value": { + * "cidrs": [ + * { + * "byoipv6RangeId": "ocid1.byoiprange.oc1.", + * "ipv6CidrBlock": "2001:0db8:0123::/48" + * }, + * { + * "byoipv6RangeId": "ocid1.byoiprange.oc1.", + * "ipv6CidrBlock": "2001:0db8:0456::/48" + * } + * ] + * } + * }, + * { + * "operation": "REPLACE", + * "selection": "ipv6PrivateCidrBlocks", + * "value": { "cidrs": ["fd00:1000:0:1::/64", "fd00:1000:0:2::/64"] } + * } + * ] + * } + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = PatchVcnDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchVcnDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"patchVcnInstructions"}) + public PatchVcnDetails(java.util.List patchVcnInstructions) { + super(); + this.patchVcnInstructions = patchVcnInstructions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of patch instructions for VCN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchVcnInstructions") + private java.util.List patchVcnInstructions; + + /** + * List of patch instructions for VCN. + * @param patchVcnInstructions the value to set + * @return this builder + **/ + public Builder patchVcnInstructions( + java.util.List patchVcnInstructions) { + this.patchVcnInstructions = patchVcnInstructions; + this.__explicitlySet__.add("patchVcnInstructions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchVcnDetails build() { + PatchVcnDetails model = new PatchVcnDetails(this.patchVcnInstructions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchVcnDetails model) { + if (model.wasPropertyExplicitlySet("patchVcnInstructions")) { + this.patchVcnInstructions(model.getPatchVcnInstructions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of patch instructions for VCN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchVcnInstructions") + private final java.util.List patchVcnInstructions; + + /** + * List of patch instructions for VCN. + * @return the value + **/ + public java.util.List getPatchVcnInstructions() { + return patchVcnInstructions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchVcnDetails("); + sb.append("super=").append(super.toString()); + sb.append("patchVcnInstructions=").append(String.valueOf(this.patchVcnInstructions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchVcnDetails)) { + return false; + } + + PatchVcnDetails other = (PatchVcnDetails) o; + return java.util.Objects.equals(this.patchVcnInstructions, other.patchVcnInstructions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.patchVcnInstructions == null + ? 43 + : this.patchVcnInstructions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnInstruction.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnInstruction.java new file mode 100644 index 00000000000..ccafce1db5b --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnInstruction.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * A single instruction to be included as part of PatchVcn 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: 20160918") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation", + defaultImpl = PatchVcnInstruction.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchVcnReplaceInstruction.class, + name = "REPLACE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PatchVcnInstruction extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"selection"}) + protected PatchVcnInstruction(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 VCN resource representation. + * The PatchVcn operation restricts supported selections (see PatchVcn documentation). + * Example: "ipv6PrivateCidrBlocks" + * + **/ + @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 VCN resource representation. + * The PatchVcn operation restricts supported selections (see PatchVcn documentation). + * Example: "ipv6PrivateCidrBlocks" + * + * @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("PatchVcnInstruction("); + 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 PatchVcnInstruction)) { + return false; + } + + PatchVcnInstruction other = (PatchVcnInstruction) o; + return java.util.Objects.equals(this.selection, other.selection) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The operation to apply. Values are capitalized per OCI convention but should be compared + * case-insensitively. + * + **/ + public enum Operation { + Replace("REPLACE"), + ; + + 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-core/src/main/java/com/oracle/bmc/core/model/PatchVcnReplaceInstruction.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnReplaceInstruction.java new file mode 100644 index 00000000000..d0b9aee2fcc --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnReplaceInstruction.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Replaces the entire value of the selected VCN IPv6 CIDR field with the specified final state. + * For CIDR list selections (for example, {@code ipv6PrivateCidrBlocks}, {@code byoipv6CidrDetails}), the supplied array is treated + * as the authoritative set of CIDRs for that field: + * * CIDRs present in both the existing list and the new list remain unchanged. + * * CIDRs present in the existing list but not in the new list are removed. + * * CIDRs present in the new list but not in the existing list are added. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = PatchVcnReplaceInstruction.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 PatchVcnReplaceInstruction extends PatchVcnInstruction { + @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 desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify the CIDR. + * For fields that take multiple CIDRs (for example, {@code ipv6PrivateCidrBlocks},{@code byoipv6CidrDetails}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6PrivateCidrBlocks", "value": { "cidrs": [ "fd00:1000:0:1::/64", "fd00:1000:0:2::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * The desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify the CIDR. + * For fields that take multiple CIDRs (for example, {@code ipv6PrivateCidrBlocks},{@code byoipv6CidrDetails}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6PrivateCidrBlocks", "value": { "cidrs": [ "fd00:1000:0:1::/64", "fd00:1000:0:2::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + * @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 PatchVcnReplaceInstruction build() { + PatchVcnReplaceInstruction model = + new PatchVcnReplaceInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchVcnReplaceInstruction 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 PatchVcnReplaceInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * The desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify the CIDR. + * For fields that take multiple CIDRs (for example, {@code ipv6PrivateCidrBlocks},{@code byoipv6CidrDetails}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6PrivateCidrBlocks", "value": { "cidrs": [ "fd00:1000:0:1::/64", "fd00:1000:0:2::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * The desired final IPv6 CIDR value(s) to apply to the selected field. This field must + * always be a JSON object. + * For fields that take a single CIDR (for example, {@code ipv6CidrBlock}), specify the CIDR. + * For fields that take multiple CIDRs (for example, {@code ipv6PrivateCidrBlocks},{@code byoipv6CidrDetails}), specify the full desired list. + * Examples: + * - { "operation": "REPLACE", "selection": "ipv6PrivateCidrBlocks", "value": { "cidrs": [ "fd00:1000:0:1::/64", "fd00:1000:0:2::/64" ] } } + * - { "operation": "REPLACE", "selection": "ipv6CidrBlock", "value": { "cidr": "2001:db8:1234:1111::/64" } } + * + * @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("PatchVcnReplaceInstruction("); + 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 PatchVcnReplaceInstruction)) { + return false; + } + + PatchVcnReplaceInstruction other = (PatchVcnReplaceInstruction) 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-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterDetails.java index ec6d614b4c9..c7315748992 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Updates compute GPU memory cluster details. + * Updates compute GPU Memory Cluster details. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -29,7 +29,8 @@ public final class UpdateComputeGpuMemoryClusterDetails "definedTags", "freeformTags", "displayName", - "gpuMemoryClusterScaleConfig" + "gpuMemoryClusterScaleConfig", + "privateIpIds" }) public UpdateComputeGpuMemoryClusterDetails( String instanceConfigurationId, @@ -37,7 +38,8 @@ public UpdateComputeGpuMemoryClusterDetails( java.util.Map> definedTags, java.util.Map freeformTags, String displayName, - UpdateComputeGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig) { + UpdateComputeGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig, + java.util.List privateIpIds) { super(); this.instanceConfigurationId = instanceConfigurationId; this.size = size; @@ -45,6 +47,7 @@ public UpdateComputeGpuMemoryClusterDetails( this.freeformTags = freeformTags; this.displayName = displayName; this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.privateIpIds = privateIpIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -68,14 +71,14 @@ public Builder instanceConfigurationId(String instanceConfigurationId) { return this; } /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private Long size; /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * * @param size the value to set * @return this builder @@ -164,6 +167,22 @@ public Builder gpuMemoryClusterScaleConfig( this.__explicitlySet__.add("gpuMemoryClusterScaleConfig"); return this; } + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateIpIds") + private java.util.List privateIpIds; + + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + * @param privateIpIds the value to set + * @return this builder + **/ + public Builder privateIpIds(java.util.List privateIpIds) { + this.privateIpIds = privateIpIds; + this.__explicitlySet__.add("privateIpIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -176,7 +195,8 @@ public UpdateComputeGpuMemoryClusterDetails build() { this.definedTags, this.freeformTags, this.displayName, - this.gpuMemoryClusterScaleConfig); + this.gpuMemoryClusterScaleConfig, + this.privateIpIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -203,6 +223,9 @@ public Builder copy(UpdateComputeGpuMemoryClusterDetails model) { if (model.wasPropertyExplicitlySet("gpuMemoryClusterScaleConfig")) { this.gpuMemoryClusterScaleConfig(model.getGpuMemoryClusterScaleConfig()); } + if (model.wasPropertyExplicitlySet("privateIpIds")) { + this.privateIpIds(model.getPrivateIpIds()); + } return this; } } @@ -235,14 +258,14 @@ public String getInstanceConfigurationId() { } /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Long size; /** - * The number of instances currently running in the GpuMemoryCluster + * The desired number of instances for the GPU Memory Cluster. * * @return the value **/ @@ -319,6 +342,20 @@ public UpdateComputeGpuMemoryClusterScaleConfig getGpuMemoryClusterScaleConfig() return gpuMemoryClusterScaleConfig; } + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateIpIds") + private final java.util.List privateIpIds; + + /** + * Unique list of OCIDs for private IPs (IPv4/IPv6) associated with the GPU Memory Cluster + * @return the value + **/ + public java.util.List getPrivateIpIds() { + return privateIpIds; + } + @Override public String toString() { return this.toString(true); @@ -340,6 +377,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", gpuMemoryClusterScaleConfig=") .append(String.valueOf(this.gpuMemoryClusterScaleConfig)); + sb.append(", privateIpIds=").append(String.valueOf(this.privateIpIds)); sb.append(")"); return sb.toString(); } @@ -361,6 +399,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.gpuMemoryClusterScaleConfig, other.gpuMemoryClusterScaleConfig) + && java.util.Objects.equals(this.privateIpIds, other.privateIpIds) && super.equals(other); } @@ -382,6 +421,7 @@ public int hashCode() { + (this.gpuMemoryClusterScaleConfig == null ? 43 : this.gpuMemoryClusterScaleConfig.hashCode()); + result = (result * PRIME) + (this.privateIpIds == null ? 43 : this.privateIpIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterScaleConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterScaleConfig.java index 2472d7cf7ab..4c44ceb3bda 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterScaleConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeGpuMemoryClusterScaleConfig.java @@ -71,14 +71,14 @@ public Builder isDownsizeEnabled(Boolean isDownsizeEnabled) { return this; } /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("targetSize") private Long targetSize; /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * * @param targetSize the value to set * @return this builder @@ -161,14 +161,14 @@ public Boolean getIsDownsizeEnabled() { } /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * **/ @com.fasterxml.jackson.annotation.JsonProperty("targetSize") private final Long targetSize; /** - * The configured target size for the GPU Memory cluster. + * The configured target size for the GPU Memory Cluster. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeHostsDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeHostDetails.java similarity index 95% rename from bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeHostsDetails.java rename to bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeHostDetails.java index f12721bde38..952bd382828 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeHostsDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeHostDetails.java @@ -17,14 +17,14 @@ **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateComputeHostsDetails.Builder.class + builder = UpdateComputeHostDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateComputeHostsDetails +public final class UpdateComputeHostDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"definedTags", "displayName", "freeformTags"}) - public UpdateComputeHostsDetails( + public UpdateComputeHostDetails( java.util.Map> definedTags, String displayName, java.util.Map freeformTags) { @@ -109,9 +109,9 @@ public Builder freeformTags(java.util.Map freeformTags) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateComputeHostsDetails build() { - UpdateComputeHostsDetails model = - new UpdateComputeHostsDetails( + public UpdateComputeHostDetails build() { + UpdateComputeHostDetails model = + new UpdateComputeHostDetails( this.definedTags, this.displayName, this.freeformTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -120,7 +120,7 @@ public UpdateComputeHostsDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateComputeHostsDetails model) { + public Builder copy(UpdateComputeHostDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } @@ -219,7 +219,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateComputeHostsDetails("); + sb.append("UpdateComputeHostDetails("); sb.append("super=").append(super.toString()); sb.append("definedTags=").append(String.valueOf(this.definedTags)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -233,11 +233,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateComputeHostsDetails)) { + if (!(o instanceof UpdateComputeHostDetails)) { return false; } - UpdateComputeHostsDetails other = (UpdateComputeHostsDetails) o; + UpdateComputeHostDetails other = (UpdateComputeHostDetails) o; return java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceShapeConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceShapeConfigDetails.java index 50b4395b4dc..eca5344acf1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceShapeConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceShapeConfigDetails.java @@ -36,7 +36,8 @@ public final class UpdateInstanceShapeConfigDetails "memoryInGBs", "baselineOcpuUtilization", "nvmes", - "resourceManagement" + "resourceManagement", + "localVolumeSizeInGBs" }) public UpdateInstanceShapeConfigDetails( Float ocpus, @@ -44,7 +45,8 @@ public UpdateInstanceShapeConfigDetails( Float memoryInGBs, BaselineOcpuUtilization baselineOcpuUtilization, Integer nvmes, - ResourceManagement resourceManagement) { + ResourceManagement resourceManagement, + Integer localVolumeSizeInGBs) { super(); this.ocpus = ocpus; this.vcpus = vcpus; @@ -52,6 +54,7 @@ public UpdateInstanceShapeConfigDetails( this.baselineOcpuUtilization = baselineOcpuUtilization; this.nvmes = nvmes; this.resourceManagement = resourceManagement; + this.localVolumeSizeInGBs = localVolumeSizeInGBs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -180,6 +183,28 @@ public Builder resourceManagement(ResourceManagement resourceManagement) { this.__explicitlySet__.add("resourceManagement"); return this; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + * @param localVolumeSizeInGBs the value to set + * @return this builder + **/ + public Builder localVolumeSizeInGBs(Integer localVolumeSizeInGBs) { + this.localVolumeSizeInGBs = localVolumeSizeInGBs; + this.__explicitlySet__.add("localVolumeSizeInGBs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -192,7 +217,8 @@ public UpdateInstanceShapeConfigDetails build() { this.memoryInGBs, this.baselineOcpuUtilization, this.nvmes, - this.resourceManagement); + this.resourceManagement, + this.localVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -219,6 +245,9 @@ public Builder copy(UpdateInstanceShapeConfigDetails model) { if (model.wasPropertyExplicitlySet("resourceManagement")) { this.resourceManagement(model.getResourceManagement()); } + if (model.wasPropertyExplicitlySet("localVolumeSizeInGBs")) { + this.localVolumeSizeInGBs(model.getLocalVolumeSizeInGBs()); + } return this; } } @@ -425,6 +454,26 @@ public ResourceManagement getResourceManagement() { return resourceManagement; } + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("localVolumeSizeInGBs") + private final Integer localVolumeSizeInGBs; + + /** + * The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the selected shape + * is DenseLV, the value must be greater than 0. For all other shapes, the value must be null (if specified); + * any non-null value for a non-DenseLV shape results in an error. + * + * @return the value + **/ + public Integer getLocalVolumeSizeInGBs() { + return localVolumeSizeInGBs; + } + @Override public String toString() { return this.toString(true); @@ -446,6 +495,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.baselineOcpuUtilization)); sb.append(", nvmes=").append(String.valueOf(this.nvmes)); sb.append(", resourceManagement=").append(String.valueOf(this.resourceManagement)); + sb.append(", localVolumeSizeInGBs=").append(String.valueOf(this.localVolumeSizeInGBs)); sb.append(")"); return sb.toString(); } @@ -467,6 +517,7 @@ public boolean equals(Object o) { this.baselineOcpuUtilization, other.baselineOcpuUtilization) && java.util.Objects.equals(this.nvmes, other.nvmes) && java.util.Objects.equals(this.resourceManagement, other.resourceManagement) + && java.util.Objects.equals(this.localVolumeSizeInGBs, other.localVolumeSizeInGBs) && super.equals(other); } @@ -488,6 +539,11 @@ public int hashCode() { + (this.resourceManagement == null ? 43 : this.resourceManagement.hashCode()); + result = + (result * PRIME) + + (this.localVolumeSizeInGBs == null + ? 43 + : this.localVolumeSizeInGBs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java index 257d747e392..46a6d12942b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java @@ -86,6 +86,7 @@ public Builder bootVolumeType(BootVolumeType bootVolumeType) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. *

* Before you change the networking type, detach all VNICs and block volumes except for the primary * VNIC and the boot volume. @@ -108,6 +109,7 @@ public Builder bootVolumeType(BootVolumeType bootVolumeType) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. *

* Before you change the networking type, detach all VNICs and block volumes except for the primary * VNIC and the boot volume. @@ -302,6 +304,7 @@ public BootVolumeType getBootVolumeType() { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. *

* Before you change the networking type, detach all VNICs and block volumes except for the primary * VNIC and the boot volume. @@ -319,6 +322,7 @@ public BootVolumeType getBootVolumeType() { public enum NetworkType { Vfio("VFIO"), Paravirtualized("PARAVIRTUALIZED"), + Acceleratedpv("ACCELERATEDPV"), ; private final String value; @@ -353,6 +357,7 @@ public static NetworkType create(String key) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. *

* Before you change the networking type, detach all VNICs and block volumes except for the primary * VNIC and the boot volume. @@ -375,6 +380,7 @@ public static NetworkType create(String key) { * * {@code VFIO} - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * {@code PARAVIRTUALIZED} - VM instances launch with paravirtualized devices using VirtIO drivers. + * * {@code ACCELERATEDPV} - VM instances launch with accelerated paravirtualized networking type. *

* Before you change the networking type, detach all VNICs and block volumes except for the primary * VNIC and the boot volume. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java index 7d35ef7f931..1c833ea0a3e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java @@ -234,6 +234,7 @@ public Builder nsgIds(java.util.List nsgIds) { * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the value of the {@code skipSourceDestCheck} attribute is ignored. * This is because the source/destination check is always disabled for VNICs in a VLAN. + *

* Example: {@code true} * **/ @@ -249,6 +250,7 @@ public Builder nsgIds(java.util.List nsgIds) { * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the value of the {@code skipSourceDestCheck} attribute is ignored. * This is because the source/destination check is always disabled for VNICs in a VLAN. + *

* Example: {@code true} * * @param skipSourceDestCheck the value to set @@ -508,6 +510,7 @@ public java.util.List getNsgIds() { * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the value of the {@code skipSourceDestCheck} attribute is ignored. * This is because the source/destination check is always disabled for VNICs in a VLAN. + *

* Example: {@code true} * **/ @@ -523,6 +526,7 @@ public java.util.List getNsgIds() { * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the value of the {@code skipSourceDestCheck} attribute is ignored. * This is because the source/destination check is always disabled for VNICs in a VLAN. + *

* Example: {@code true} * * @return the value diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java index 3562fc57ce8..c5eef13c895 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java @@ -464,7 +464,6 @@ public Builder publicIp(String publicIp) { * about why you would skip the source/destination check, see * [Using a Private IP as a Route Target](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). *

- * * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the {@code skipSourceDestCheck} attribute is {@code true}. * This is because the source/destination check is always disabled for VNICs in a VLAN. @@ -481,7 +480,6 @@ public Builder publicIp(String publicIp) { * about why you would skip the source/destination check, see * [Using a Private IP as a Route Target](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). *

- * * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the {@code skipSourceDestCheck} attribute is {@code true}. * This is because the source/destination check is always disabled for VNICs in a VLAN. @@ -1060,7 +1058,6 @@ public String getPublicIp() { * about why you would skip the source/destination check, see * [Using a Private IP as a Route Target](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). *

- * * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the {@code skipSourceDestCheck} attribute is {@code true}. * This is because the source/destination check is always disabled for VNICs in a VLAN. @@ -1077,7 +1074,6 @@ public String getPublicIp() { * about why you would skip the source/destination check, see * [Using a Private IP as a Route Target](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). *

- * * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of * belonging to a subnet), the {@code skipSourceDestCheck} attribute is {@code true}. * This is because the source/destination check is always disabled for VNICs in a VLAN. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreateIpv6sRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreateIpv6sRequest.java index 0eb71c4d4c0..4cfe0939233 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreateIpv6sRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreateIpv6sRequest.java @@ -14,12 +14,12 @@ public class BulkCreateIpv6sRequest com.oracle.bmc.core.model.BulkCreateIpv6sDetails> { /** - * Bulk Create Ipv6s. + * Create Ipv6s in bulk. */ private com.oracle.bmc.core.model.BulkCreateIpv6sDetails bulkCreateIpv6sDetails; /** - * Bulk Create Ipv6s. + * Create Ipv6s in bulk. */ public com.oracle.bmc.core.model.BulkCreateIpv6sDetails getBulkCreateIpv6sDetails() { return bulkCreateIpv6sDetails; @@ -79,12 +79,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Bulk Create Ipv6s. + * Create Ipv6s in bulk. */ private com.oracle.bmc.core.model.BulkCreateIpv6sDetails bulkCreateIpv6sDetails = null; /** - * Bulk Create Ipv6s. + * Create Ipv6s in bulk. * @param bulkCreateIpv6sDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreatePrivateIpsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreatePrivateIpsRequest.java index f7e4f2f3e65..11e04cc186c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreatePrivateIpsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkCreatePrivateIpsRequest.java @@ -14,12 +14,12 @@ public class BulkCreatePrivateIpsRequest com.oracle.bmc.core.model.BulkCreatePrivateIpsDetails> { /** - * Create private IPs details. + * Details used to create secondary private IPs. */ private com.oracle.bmc.core.model.BulkCreatePrivateIpsDetails bulkCreatePrivateIpsDetails; /** - * Create private IPs details. + * Details used to create secondary private IPs. */ public com.oracle.bmc.core.model.BulkCreatePrivateIpsDetails getBulkCreatePrivateIpsDetails() { return bulkCreatePrivateIpsDetails; @@ -80,13 +80,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Create private IPs details. + * Details used to create secondary private IPs. */ private com.oracle.bmc.core.model.BulkCreatePrivateIpsDetails bulkCreatePrivateIpsDetails = null; /** - * Create private IPs details. + * Details used to create secondary private IPs. * @param bulkCreatePrivateIpsDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeleteIpv6sRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeleteIpv6sRequest.java index 50a755f7a0c..fab9a524589 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeleteIpv6sRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeleteIpv6sRequest.java @@ -14,12 +14,12 @@ public class BulkDeleteIpv6sRequest com.oracle.bmc.core.model.BulkDeleteIpv6sDetails> { /** - * Delete IPv6s details. + * Details of the IPv6s to delete. */ private com.oracle.bmc.core.model.BulkDeleteIpv6sDetails bulkDeleteIpv6sDetails; /** - * Delete IPv6s details. + * Details of the IPv6s to delete. */ public com.oracle.bmc.core.model.BulkDeleteIpv6sDetails getBulkDeleteIpv6sDetails() { return bulkDeleteIpv6sDetails; @@ -79,12 +79,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Delete IPv6s details. + * Details of the IPv6s to delete. */ private com.oracle.bmc.core.model.BulkDeleteIpv6sDetails bulkDeleteIpv6sDetails = null; /** - * Delete IPv6s details. + * Details of the IPv6s to delete. * @param bulkDeleteIpv6sDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeletePrivateIpsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeletePrivateIpsRequest.java index d51ead7730d..97cc99be6f7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeletePrivateIpsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDeletePrivateIpsRequest.java @@ -14,12 +14,12 @@ public class BulkDeletePrivateIpsRequest com.oracle.bmc.core.model.BulkDeletePrivateIpsDetails> { /** - * Details of secondary IPv4 addresses to deleted. + * Details of the secondary IPv4 addresses to delete. */ private com.oracle.bmc.core.model.BulkDeletePrivateIpsDetails bulkDeletePrivateIpsDetails; /** - * Details of secondary IPv4 addresses to deleted. + * Details of the secondary IPv4 addresses to delete. */ public com.oracle.bmc.core.model.BulkDeletePrivateIpsDetails getBulkDeletePrivateIpsDetails() { return bulkDeletePrivateIpsDetails; @@ -80,13 +80,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details of secondary IPv4 addresses to deleted. + * Details of the secondary IPv4 addresses to delete. */ private com.oracle.bmc.core.model.BulkDeletePrivateIpsDetails bulkDeletePrivateIpsDetails = null; /** - * Details of secondary IPv4 addresses to deleted. + * Details of the secondary IPv4 addresses to delete. * @param bulkDeletePrivateIpsDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachIpv6sRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachIpv6sRequest.java index ed99cd15982..8020b6d4afa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachIpv6sRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachIpv6sRequest.java @@ -14,12 +14,12 @@ public class BulkDetachIpv6sRequest com.oracle.bmc.core.model.BulkDetachIpv6sDetails> { /** - * detach IPv6s details. + * Details needed to detach IPv6s in bulk. */ private com.oracle.bmc.core.model.BulkDetachIpv6sDetails bulkDetachIpv6sDetails; /** - * detach IPv6s details. + * Details needed to detach IPv6s in bulk. */ public com.oracle.bmc.core.model.BulkDetachIpv6sDetails getBulkDetachIpv6sDetails() { return bulkDetachIpv6sDetails; @@ -79,12 +79,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * detach IPv6s details. + * Details needed to detach IPv6s in bulk. */ private com.oracle.bmc.core.model.BulkDetachIpv6sDetails bulkDetachIpv6sDetails = null; /** - * detach IPv6s details. + * Details needed to detach IPv6s in bulk. * @param bulkDetachIpv6sDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachPrivateIpsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachPrivateIpsRequest.java index 620b12adf18..3e4a9ca864c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachPrivateIpsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkDetachPrivateIpsRequest.java @@ -14,12 +14,12 @@ public class BulkDetachPrivateIpsRequest com.oracle.bmc.core.model.BulkDetachPrivateIpsDetails> { /** - * Secondary IPv4 addresses to detach. + * The secondary IPv4 addresses to detach. */ private com.oracle.bmc.core.model.BulkDetachPrivateIpsDetails bulkDetachPrivateIpsDetails; /** - * Secondary IPv4 addresses to detach. + * The secondary IPv4 addresses to detach. */ public com.oracle.bmc.core.model.BulkDetachPrivateIpsDetails getBulkDetachPrivateIpsDetails() { return bulkDetachPrivateIpsDetails; @@ -80,13 +80,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Secondary IPv4 addresses to detach. + * The secondary IPv4 addresses to detach. */ private com.oracle.bmc.core.model.BulkDetachPrivateIpsDetails bulkDetachPrivateIpsDetails = null; /** - * Secondary IPv4 addresses to detach. + * The secondary IPv4 addresses to detach. * @param bulkDetachPrivateIpsDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdateIpv6sRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdateIpv6sRequest.java index 2a31b0ef004..e9566e8571c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdateIpv6sRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdateIpv6sRequest.java @@ -14,12 +14,12 @@ public class BulkUpdateIpv6sRequest com.oracle.bmc.core.model.BulkUpdateIpv6sDetails> { /** - * Update IPv6s details. + * Details of the IPv6s to update. */ private com.oracle.bmc.core.model.BulkUpdateIpv6sDetails bulkUpdateIpv6sDetails; /** - * Update IPv6s details. + * Details of the IPv6s to update. */ public com.oracle.bmc.core.model.BulkUpdateIpv6sDetails getBulkUpdateIpv6sDetails() { return bulkUpdateIpv6sDetails; @@ -79,12 +79,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Update IPv6s details. + * Details of the IPv6s to update. */ private com.oracle.bmc.core.model.BulkUpdateIpv6sDetails bulkUpdateIpv6sDetails = null; /** - * Update IPv6s details. + * Details of the IPv6s to update. * @param bulkUpdateIpv6sDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdatePrivateIpsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdatePrivateIpsRequest.java index 36eb9046672..7e5705138c1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdatePrivateIpsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/BulkUpdatePrivateIpsRequest.java @@ -14,12 +14,12 @@ public class BulkUpdatePrivateIpsRequest com.oracle.bmc.core.model.BulkUpdatePrivateIpsDetails> { /** - * Details of secondary IPv4 addresses to be updated. + * Details of the secondary IPv4 addresses to update. */ private com.oracle.bmc.core.model.BulkUpdatePrivateIpsDetails bulkUpdatePrivateIpsDetails; /** - * Details of secondary IPv4 addresses to be updated. + * Details of the secondary IPv4 addresses to update. */ public com.oracle.bmc.core.model.BulkUpdatePrivateIpsDetails getBulkUpdatePrivateIpsDetails() { return bulkUpdatePrivateIpsDetails; @@ -80,13 +80,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details of secondary IPv4 addresses to be updated. + * Details of the secondary IPv4 addresses to update. */ private com.oracle.bmc.core.model.BulkUpdatePrivateIpsDetails bulkUpdatePrivateIpsDetails = null; /** - * Details of secondary IPv4 addresses to be updated. + * Details of the secondary IPv4 addresses to update. * @param bulkUpdatePrivateIpsDetails the value to set * @return this builder instance */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetComputeHostsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetComputeHostRequest.java similarity index 85% rename from bmc-core/src/main/java/com/oracle/bmc/core/requests/GetComputeHostsRequest.java rename to bmc-core/src/main/java/com/oracle/bmc/core/requests/GetComputeHostRequest.java index 5dea9ec5770..994d8e96bd5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetComputeHostsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetComputeHostRequest.java @@ -6,10 +6,10 @@ import com.oracle.bmc.core.model.*; /** - * Example: Click here to see how to use GetComputeHostsRequest. + * Example: Click here to see how to use GetComputeHostRequest. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") -public class GetComputeHostsRequest extends com.oracle.bmc.requests.BmcRequest { +public class GetComputeHostRequest extends com.oracle.bmc.requests.BmcRequest { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. @@ -42,7 +42,7 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GetComputeHostsRequest, java.lang.Void> { + GetComputeHostRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -110,7 +110,7 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetComputeHostsRequest o) { + public Builder copy(GetComputeHostRequest o) { computeHostId(o.getComputeHostId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -119,36 +119,36 @@ public Builder copy(GetComputeHostsRequest o) { } /** - * Build the instance of GetComputeHostsRequest as configured by this builder + * Build the instance of GetComputeHostRequest 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 GetComputeHostsRequest + * @return instance of GetComputeHostRequest */ - public GetComputeHostsRequest build() { - GetComputeHostsRequest request = buildWithoutInvocationCallback(); + public GetComputeHostRequest build() { + GetComputeHostRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GetComputeHostsRequest as configured by this builder + * Build the instance of GetComputeHostRequest 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 GetComputeHostsRequest + * @return instance of GetComputeHostRequest */ - public GetComputeHostsRequest buildWithoutInvocationCallback() { - GetComputeHostsRequest request = new GetComputeHostsRequest(); + public GetComputeHostRequest buildWithoutInvocationCallback() { + GetComputeHostRequest request = new GetComputeHostRequest(); request.computeHostId = computeHostId; request.opcRequestId = opcRequestId; return request; - // new GetComputeHostsRequest(computeHostId, opcRequestId); + // new GetComputeHostRequest(computeHostId, opcRequestId); } } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetComputeHostsRequest)) { + if (!(o instanceof GetComputeHostRequest)) { return false; } - GetComputeHostsRequest other = (GetComputeHostsRequest) o; + GetComputeHostRequest other = (GetComputeHostRequest) o; return super.equals(o) && java.util.Objects.equals(this.computeHostId, other.computeHostId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDedicatedVmHostsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDedicatedVmHostsRequest.java index 2daef509399..46e0b15300b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDedicatedVmHostsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDedicatedVmHostsRequest.java @@ -316,6 +316,17 @@ public Float getRemainingMemoryInGBsGreaterThanOrEqualTo() { public Float getRemainingOcpusGreaterThanOrEqualTo() { return remainingOcpusGreaterThanOrEqualTo; } + /** + * The remaining local volume of the dedicated VM host, in GBs. + */ + private Float remainingLocalVolumeInGBsGreaterThanOrEqualTo; + + /** + * The remaining local volume of the dedicated VM host, in GBs. + */ + public Float getRemainingLocalVolumeInGBsGreaterThanOrEqualTo() { + return remainingLocalVolumeInGBsGreaterThanOrEqualTo; + } /** * A filter to return only confidential Dedicated VM hosts (DVMH) or confidential VM instances on DVMH. * @@ -570,6 +581,23 @@ public Builder remainingOcpusGreaterThanOrEqualTo( return this; } + /** + * The remaining local volume of the dedicated VM host, in GBs. + */ + private Float remainingLocalVolumeInGBsGreaterThanOrEqualTo = null; + + /** + * The remaining local volume of the dedicated VM host, in GBs. + * @param remainingLocalVolumeInGBsGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder remainingLocalVolumeInGBsGreaterThanOrEqualTo( + Float remainingLocalVolumeInGBsGreaterThanOrEqualTo) { + this.remainingLocalVolumeInGBsGreaterThanOrEqualTo = + remainingLocalVolumeInGBsGreaterThanOrEqualTo; + return this; + } + /** * A filter to return only confidential Dedicated VM hosts (DVMH) or confidential VM instances on DVMH. * @@ -628,6 +656,8 @@ public Builder copy(ListDedicatedVmHostsRequest o) { remainingMemoryInGBsGreaterThanOrEqualTo( o.getRemainingMemoryInGBsGreaterThanOrEqualTo()); remainingOcpusGreaterThanOrEqualTo(o.getRemainingOcpusGreaterThanOrEqualTo()); + remainingLocalVolumeInGBsGreaterThanOrEqualTo( + o.getRemainingLocalVolumeInGBsGreaterThanOrEqualTo()); isMemoryEncryptionEnabled(o.getIsMemoryEncryptionEnabled()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -674,9 +704,11 @@ public ListDedicatedVmHostsRequest buildWithoutInvocationCallback() { request.remainingMemoryInGBsGreaterThanOrEqualTo = remainingMemoryInGBsGreaterThanOrEqualTo; request.remainingOcpusGreaterThanOrEqualTo = remainingOcpusGreaterThanOrEqualTo; + request.remainingLocalVolumeInGBsGreaterThanOrEqualTo = + remainingLocalVolumeInGBsGreaterThanOrEqualTo; request.isMemoryEncryptionEnabled = isMemoryEncryptionEnabled; return request; - // new ListDedicatedVmHostsRequest(compartmentId, availabilityDomain, lifecycleState, displayName, instanceShapeName, limit, page, opcRequestId, sortBy, sortOrder, remainingMemoryInGBsGreaterThanOrEqualTo, remainingOcpusGreaterThanOrEqualTo, isMemoryEncryptionEnabled); + // new ListDedicatedVmHostsRequest(compartmentId, availabilityDomain, lifecycleState, displayName, instanceShapeName, limit, page, opcRequestId, sortBy, sortOrder, remainingMemoryInGBsGreaterThanOrEqualTo, remainingOcpusGreaterThanOrEqualTo, remainingLocalVolumeInGBsGreaterThanOrEqualTo, isMemoryEncryptionEnabled); } } @@ -698,6 +730,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .remainingMemoryInGBsGreaterThanOrEqualTo(remainingMemoryInGBsGreaterThanOrEqualTo) .remainingOcpusGreaterThanOrEqualTo(remainingOcpusGreaterThanOrEqualTo) + .remainingLocalVolumeInGBsGreaterThanOrEqualTo( + remainingLocalVolumeInGBsGreaterThanOrEqualTo) .isMemoryEncryptionEnabled(isMemoryEncryptionEnabled); } @@ -728,6 +762,8 @@ public String toString() { .append(String.valueOf(this.remainingMemoryInGBsGreaterThanOrEqualTo)); sb.append(",remainingOcpusGreaterThanOrEqualTo=") .append(String.valueOf(this.remainingOcpusGreaterThanOrEqualTo)); + sb.append(",remainingLocalVolumeInGBsGreaterThanOrEqualTo=") + .append(String.valueOf(this.remainingLocalVolumeInGBsGreaterThanOrEqualTo)); sb.append(",isMemoryEncryptionEnabled=") .append(String.valueOf(this.isMemoryEncryptionEnabled)); sb.append(")"); @@ -761,6 +797,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.remainingOcpusGreaterThanOrEqualTo, other.remainingOcpusGreaterThanOrEqualTo) + && java.util.Objects.equals( + this.remainingLocalVolumeInGBsGreaterThanOrEqualTo, + other.remainingLocalVolumeInGBsGreaterThanOrEqualTo) && java.util.Objects.equals( this.isMemoryEncryptionEnabled, other.isMemoryEncryptionEnabled); } @@ -799,6 +838,11 @@ public int hashCode() { + (this.remainingOcpusGreaterThanOrEqualTo == null ? 43 : this.remainingOcpusGreaterThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.remainingLocalVolumeInGBsGreaterThanOrEqualTo == null + ? 43 + : this.remainingLocalVolumeInGBsGreaterThanOrEqualTo.hashCode()); result = (result * PRIME) + (this.isMemoryEncryptionEnabled == null diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchSubnetRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchSubnetRequest.java new file mode 100644 index 00000000000..14cb35e1915 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchSubnetRequest.java @@ -0,0 +1,360 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use PatchSubnetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PatchSubnetRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + */ + private String subnetId; + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + */ + public String getSubnetId() { + return subnetId; + } + /** + * Details object for patching a subnet. + */ + private com.oracle.bmc.core.model.PatchSubnetDetails patchSubnetDetails; + + /** + * Details object for patching a subnet. + */ + public com.oracle.bmc.core.model.PatchSubnetDetails getPatchSubnetDetails() { + return patchSubnetDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due 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; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * 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.core.model.PatchSubnetDetails getBody$() { + return patchSubnetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchSubnetRequest, com.oracle.bmc.core.model.PatchSubnetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + */ + private String subnetId = null; + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + * @param subnetId the value to set + * @return this builder instance + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * Details object for patching a subnet. + */ + private com.oracle.bmc.core.model.PatchSubnetDetails patchSubnetDetails = null; + + /** + * Details object for patching a subnet. + * @param patchSubnetDetails the value to set + * @return this builder instance + */ + public Builder patchSubnetDetails( + com.oracle.bmc.core.model.PatchSubnetDetails patchSubnetDetails) { + this.patchSubnetDetails = patchSubnetDetails; + 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * 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(PatchSubnetRequest o) { + subnetId(o.getSubnetId()); + patchSubnetDetails(o.getPatchSubnetDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchSubnetRequest 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 PatchSubnetRequest + */ + public PatchSubnetRequest build() { + PatchSubnetRequest 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.core.model.PatchSubnetDetails body) { + patchSubnetDetails(body); + return this; + } + + /** + * Build the instance of PatchSubnetRequest 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 PatchSubnetRequest + */ + public PatchSubnetRequest buildWithoutInvocationCallback() { + PatchSubnetRequest request = new PatchSubnetRequest(); + request.subnetId = subnetId; + request.patchSubnetDetails = patchSubnetDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new PatchSubnetRequest(subnetId, patchSubnetDetails, opcRetryToken, 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() + .subnetId(subnetId) + .patchSubnetDetails(patchSubnetDetails) + .opcRetryToken(opcRetryToken) + .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(",subnetId=").append(String.valueOf(this.subnetId)); + sb.append(",patchSubnetDetails=").append(String.valueOf(this.patchSubnetDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchSubnetRequest)) { + return false; + } + + PatchSubnetRequest other = (PatchSubnetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.patchSubnetDetails, other.patchSubnetDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.patchSubnetDetails == null + ? 43 + : this.patchSubnetDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchVcnRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchVcnRequest.java new file mode 100644 index 00000000000..7a2c95966be --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchVcnRequest.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use PatchVcnRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PatchVcnRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + */ + private String vcnId; + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + */ + public String getVcnId() { + return vcnId; + } + /** + * Details object for patching a VCN. + */ + private com.oracle.bmc.core.model.PatchVcnDetails patchVcnDetails; + + /** + * Details object for patching a VCN. + */ + public com.oracle.bmc.core.model.PatchVcnDetails getPatchVcnDetails() { + return patchVcnDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.core.model.PatchVcnDetails getBody$() { + return patchVcnDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchVcnRequest, com.oracle.bmc.core.model.PatchVcnDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + */ + private String vcnId = null; + + /** + * Specify the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + * @param vcnId the value to set + * @return this builder instance + */ + public Builder vcnId(String vcnId) { + this.vcnId = vcnId; + return this; + } + + /** + * Details object for patching a VCN. + */ + private com.oracle.bmc.core.model.PatchVcnDetails patchVcnDetails = null; + + /** + * Details object for patching a VCN. + * @param patchVcnDetails the value to set + * @return this builder instance + */ + public Builder patchVcnDetails(com.oracle.bmc.core.model.PatchVcnDetails patchVcnDetails) { + this.patchVcnDetails = patchVcnDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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(PatchVcnRequest o) { + vcnId(o.getVcnId()); + patchVcnDetails(o.getPatchVcnDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchVcnRequest 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 PatchVcnRequest + */ + public PatchVcnRequest build() { + PatchVcnRequest 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.core.model.PatchVcnDetails body) { + patchVcnDetails(body); + return this; + } + + /** + * Build the instance of PatchVcnRequest 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 PatchVcnRequest + */ + public PatchVcnRequest buildWithoutInvocationCallback() { + PatchVcnRequest request = new PatchVcnRequest(); + request.vcnId = vcnId; + request.patchVcnDetails = patchVcnDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new PatchVcnRequest(vcnId, patchVcnDetails, opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vcnId(vcnId) + .patchVcnDetails(patchVcnDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vcnId=").append(String.valueOf(this.vcnId)); + sb.append(",patchVcnDetails=").append(String.valueOf(this.patchVcnDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchVcnRequest)) { + return false; + } + + PatchVcnRequest other = (PatchVcnRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vcnId, other.vcnId) + && java.util.Objects.equals(this.patchVcnDetails, other.patchVcnDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); + result = + (result * PRIME) + + (this.patchVcnDetails == null ? 43 : this.patchVcnDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateComputeHostsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateComputeHostRequest.java similarity index 82% rename from bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateComputeHostsRequest.java rename to bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateComputeHostRequest.java index 92c738bb5c4..93b2d575da6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateComputeHostsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateComputeHostRequest.java @@ -6,12 +6,12 @@ import com.oracle.bmc.core.model.*; /** - * Example: Click here to see how to use UpdateComputeHostsRequest. + * Example: Click here to see how to use UpdateComputeHostRequest. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") -public class UpdateComputeHostsRequest +public class UpdateComputeHostRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.core.model.UpdateComputeHostsDetails> { + com.oracle.bmc.core.model.UpdateComputeHostDetails> { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. @@ -29,13 +29,13 @@ public String getComputeHostId() { /** * Update compute capacity topology details. */ - private com.oracle.bmc.core.model.UpdateComputeHostsDetails updateComputeHostsDetails; + private com.oracle.bmc.core.model.UpdateComputeHostDetails updateComputeHostDetails; /** * Update compute capacity topology details. */ - public com.oracle.bmc.core.model.UpdateComputeHostsDetails getUpdateComputeHostsDetails() { - return updateComputeHostsDetails; + public com.oracle.bmc.core.model.UpdateComputeHostDetails getUpdateComputeHostDetails() { + return updateComputeHostDetails; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} @@ -97,14 +97,13 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.core.model.UpdateComputeHostsDetails getBody$() { - return updateComputeHostsDetails; + public com.oracle.bmc.core.model.UpdateComputeHostDetails getBody$() { + return updateComputeHostDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - UpdateComputeHostsRequest, - com.oracle.bmc.core.model.UpdateComputeHostsDetails> { + UpdateComputeHostRequest, com.oracle.bmc.core.model.UpdateComputeHostDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -129,17 +128,16 @@ public Builder computeHostId(String computeHostId) { /** * Update compute capacity topology details. */ - private com.oracle.bmc.core.model.UpdateComputeHostsDetails updateComputeHostsDetails = - null; + private com.oracle.bmc.core.model.UpdateComputeHostDetails updateComputeHostDetails = null; /** * Update compute capacity topology details. - * @param updateComputeHostsDetails the value to set + * @param updateComputeHostDetails the value to set * @return this builder instance */ - public Builder updateComputeHostsDetails( - com.oracle.bmc.core.model.UpdateComputeHostsDetails updateComputeHostsDetails) { - this.updateComputeHostsDetails = updateComputeHostsDetails; + public Builder updateComputeHostDetails( + com.oracle.bmc.core.model.UpdateComputeHostDetails updateComputeHostDetails) { + this.updateComputeHostDetails = updateComputeHostDetails; return this; } @@ -235,9 +233,9 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateComputeHostsRequest o) { + public Builder copy(UpdateComputeHostRequest o) { computeHostId(o.getComputeHostId()); - updateComputeHostsDetails(o.getUpdateComputeHostsDetails()); + updateComputeHostDetails(o.getUpdateComputeHostDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); @@ -247,17 +245,17 @@ public Builder copy(UpdateComputeHostsRequest o) { } /** - * Build the instance of UpdateComputeHostsRequest as configured by this builder + * Build the instance of UpdateComputeHostRequest 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 UpdateComputeHostsRequest + * @return instance of UpdateComputeHostRequest */ - public UpdateComputeHostsRequest build() { - UpdateComputeHostsRequest request = buildWithoutInvocationCallback(); + public UpdateComputeHostRequest build() { + UpdateComputeHostRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -269,28 +267,28 @@ public UpdateComputeHostsRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$(com.oracle.bmc.core.model.UpdateComputeHostsDetails body) { - updateComputeHostsDetails(body); + public Builder body$(com.oracle.bmc.core.model.UpdateComputeHostDetails body) { + updateComputeHostDetails(body); return this; } /** - * Build the instance of UpdateComputeHostsRequest as configured by this builder + * Build the instance of UpdateComputeHostRequest 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 UpdateComputeHostsRequest + * @return instance of UpdateComputeHostRequest */ - public UpdateComputeHostsRequest buildWithoutInvocationCallback() { - UpdateComputeHostsRequest request = new UpdateComputeHostsRequest(); + public UpdateComputeHostRequest buildWithoutInvocationCallback() { + UpdateComputeHostRequest request = new UpdateComputeHostRequest(); request.computeHostId = computeHostId; - request.updateComputeHostsDetails = updateComputeHostsDetails; + request.updateComputeHostDetails = updateComputeHostDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new UpdateComputeHostsRequest(computeHostId, updateComputeHostsDetails, ifMatch, opcRequestId, opcRetryToken); + // new UpdateComputeHostRequest(computeHostId, updateComputeHostDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -301,7 +299,7 @@ public UpdateComputeHostsRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .computeHostId(computeHostId) - .updateComputeHostsDetails(updateComputeHostsDetails) + .updateComputeHostDetails(updateComputeHostDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); @@ -321,8 +319,8 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",computeHostId=").append(String.valueOf(this.computeHostId)); - sb.append(",updateComputeHostsDetails=") - .append(String.valueOf(this.updateComputeHostsDetails)); + sb.append(",updateComputeHostDetails=") + .append(String.valueOf(this.updateComputeHostDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); @@ -335,15 +333,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateComputeHostsRequest)) { + if (!(o instanceof UpdateComputeHostRequest)) { return false; } - UpdateComputeHostsRequest other = (UpdateComputeHostsRequest) o; + UpdateComputeHostRequest other = (UpdateComputeHostRequest) o; return super.equals(o) && java.util.Objects.equals(this.computeHostId, other.computeHostId) && java.util.Objects.equals( - this.updateComputeHostsDetails, other.updateComputeHostsDetails) + this.updateComputeHostDetails, other.updateComputeHostDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); @@ -358,9 +356,9 @@ public int hashCode() { + (this.computeHostId == null ? 43 : this.computeHostId.hashCode()); result = (result * PRIME) - + (this.updateComputeHostsDetails == null + + (this.updateComputeHostDetails == null ? 43 - : this.updateComputeHostsDetails.hashCode()); + : this.updateComputeHostDetails.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetComputeHostsResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetComputeHostResponse.java similarity index 93% rename from bmc-core/src/main/java/com/oracle/bmc/core/responses/GetComputeHostsResponse.java rename to bmc-core/src/main/java/com/oracle/bmc/core/responses/GetComputeHostResponse.java index 7b22c629578..75c28185e0b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetComputeHostsResponse.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetComputeHostResponse.java @@ -7,7 +7,7 @@ import com.oracle.bmc.core.model.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") -public class GetComputeHostsResponse extends com.oracle.bmc.responses.BmcResponse { +public class GetComputeHostResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. See {@code if-match}. * @@ -60,7 +60,7 @@ public com.oracle.bmc.core.model.ComputeHost getComputeHost() { "opcRequestId", "computeHost" }) - private GetComputeHostsResponse( + private GetComputeHostResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String etag, @@ -142,7 +142,7 @@ public Builder computeHost(com.oracle.bmc.core.model.ComputeHost computeHost) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetComputeHostsResponse o) { + public Builder copy(GetComputeHostResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); etag(o.getEtag()); @@ -156,8 +156,8 @@ public Builder copy(GetComputeHostsResponse o) { * Build the response object. * @return the response object */ - public GetComputeHostsResponse build() { - return new GetComputeHostsResponse( + public GetComputeHostResponse build() { + return new GetComputeHostResponse( __httpStatusCode__, headers, etag, opcRequestId, computeHost); } } @@ -187,11 +187,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetComputeHostsResponse)) { + if (!(o instanceof GetComputeHostResponse)) { return false; } - GetComputeHostsResponse other = (GetComputeHostsResponse) o; + GetComputeHostResponse other = (GetComputeHostResponse) o; return super.equals(o) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchSubnetResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchSubnetResponse.java new file mode 100644 index 00000000000..6aa9c8731f4 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchSubnetResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PatchSubnetResponse 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private PatchSubnetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PatchSubnetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public PatchSubnetResponse build() { + return new PatchSubnetResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchSubnetResponse)) { + return false; + } + + PatchSubnetResponse other = (PatchSubnetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchVcnResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchVcnResponse.java new file mode 100644 index 00000000000..1b4653d7ded --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchVcnResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PatchVcnResponse 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private PatchVcnResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PatchVcnResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public PatchVcnResponse build() { + return new PatchVcnResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchVcnResponse)) { + return false; + } + + PatchVcnResponse other = (PatchVcnResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateComputeHostsResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateComputeHostResponse.java similarity index 94% rename from bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateComputeHostsResponse.java rename to bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateComputeHostResponse.java index 0e8011b4661..4677acb166c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateComputeHostsResponse.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateComputeHostResponse.java @@ -7,7 +7,7 @@ import com.oracle.bmc.core.model.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") -public class UpdateComputeHostsResponse extends com.oracle.bmc.responses.BmcResponse { +public class UpdateComputeHostResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. See {@code if-match}. * @@ -66,7 +66,7 @@ public String getOpcWorkRequestId() { "opcRequestId", "opcWorkRequestId" }) - private UpdateComputeHostsResponse( + private UpdateComputeHostResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String etag, @@ -154,7 +154,7 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateComputeHostsResponse o) { + public Builder copy(UpdateComputeHostResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); etag(o.getEtag()); @@ -168,8 +168,8 @@ public Builder copy(UpdateComputeHostsResponse o) { * Build the response object. * @return the response object */ - public UpdateComputeHostsResponse build() { - return new UpdateComputeHostsResponse( + public UpdateComputeHostResponse build() { + return new UpdateComputeHostResponse( __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId); } } @@ -199,11 +199,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateComputeHostsResponse)) { + if (!(o instanceof UpdateComputeHostResponse)) { return false; } - UpdateComputeHostsResponse other = (UpdateComputeHostsResponse) o; + UpdateComputeHostResponse other = (UpdateComputeHostResponse) o; return super.equals(o) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml new file mode 100644 index 00000000000..fea8ebca353 --- /dev/null +++ b/bmc-costad/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 2.93.0 + ../pom.xml + + oci-java-sdk-costad + Oracle Cloud Infrastructure SDK - Costad + This project contains the SDK used for Oracle Cloud Infrastructure Costad + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 2.93.0 + + + \ No newline at end of file diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAd.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAd.java new file mode 100644 index 00000000000..22e757d46b1 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAd.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; + +/** + * Use the CostAd API to manage cost monitor, cost anomaly events and subscription list. For more information, see [Cost Anomaly Detection Overview](https://docs.oracle.com/iaas/Content/Billing/Concepts/costanomalydetectionoverview.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public interface CostAd extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new CostAlert Subscription. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateCostAlertSubscription API. + */ + CreateCostAlertSubscriptionResponse createCostAlertSubscription( + CreateCostAlertSubscriptionRequest request); + + /** + * Creates a new costAnomaly Monitor. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateCostAnomalyMonitor API. + */ + CreateCostAnomalyMonitorResponse createCostAnomalyMonitor( + CreateCostAnomalyMonitorRequest request); + + /** + * Deletes a specified CostAlertSubscription 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 DeleteCostAlertSubscription API. + */ + DeleteCostAlertSubscriptionResponse deleteCostAlertSubscription( + DeleteCostAlertSubscriptionRequest request); + + /** + * Deletes a specified CostAnomalyMonitor 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 DeleteCostAnomalyMonitor API. + */ + DeleteCostAnomalyMonitorResponse deleteCostAnomalyMonitor( + DeleteCostAnomalyMonitorRequest request); + + /** + * Disables the cost anomaly monitor. This stops cost anomaly detection for targeted resource(s). + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DisableCostAnomalyMonitor API. + */ + DisableCostAnomalyMonitorResponse disableCostAnomalyMonitor( + DisableCostAnomalyMonitorRequest request); + + /** + * Enables the cost anomaly monitor. This (re)starts the cost anomaly detection for targeted resource(s). + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use EnableCostAnomalyMonitor API. + */ + EnableCostAnomalyMonitorResponse enableCostAnomalyMonitor( + EnableCostAnomalyMonitorRequest request); + + /** + * Gets a CostAlertSubscription by the identifier. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetCostAlertSubscription API. + */ + GetCostAlertSubscriptionResponse getCostAlertSubscription( + GetCostAlertSubscriptionRequest request); + + /** + * Gets a CostAnomalyEvent by the identifier. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetCostAnomalyEvent API. + */ + GetCostAnomalyEventResponse getCostAnomalyEvent(GetCostAnomalyEventRequest request); + + /** + * Gets a CostAnomalyMonitor by the identifier. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetCostAnomalyMonitor API. + */ + GetCostAnomalyMonitorResponse getCostAnomalyMonitor(GetCostAnomalyMonitorRequest request); + + /** + * Gets a list of Cost Alert Subscription in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListCostAlertSubscriptions API. + */ + ListCostAlertSubscriptionsResponse listCostAlertSubscriptions( + ListCostAlertSubscriptionsRequest request); + + /** + * Gets a list of Cost Anomaly Event in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListCostAnomalyEvents API. + */ + ListCostAnomalyEventsResponse listCostAnomalyEvents(ListCostAnomalyEventsRequest request); + + /** + * Gets a list of Cost Anomaly Monitors in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListCostAnomalyMonitors API. + */ + ListCostAnomalyMonitorsResponse listCostAnomalyMonitors(ListCostAnomalyMonitorsRequest request); + + /** + * Gets a list of Cost Anomaly Events analytics summary - aggregated metrics for a given time period. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use SummarizeCostAnomalyEventAnalytics API. + */ + SummarizeCostAnomalyEventAnalyticsResponse summarizeCostAnomalyEventAnalytics( + SummarizeCostAnomalyEventAnalyticsRequest request); + + /** + * Update a CostAlertSubscription identified by the OCID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateCostAlertSubscription API. + */ + UpdateCostAlertSubscriptionResponse updateCostAlertSubscription( + UpdateCostAlertSubscriptionRequest request); + + /** + * Update a CostAnomalyEvent identified by the OCID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateCostAnomalyEvent API. + */ + UpdateCostAnomalyEventResponse updateCostAnomalyEvent(UpdateCostAnomalyEventRequest request); + + /** + * Update a CostAnomalyMonitor identified by the OCID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateCostAnomalyMonitor API. + */ + UpdateCostAnomalyMonitorResponse updateCostAnomalyMonitor( + UpdateCostAnomalyMonitorRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + CostAdWaiters 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. + */ + CostAdPaginators getPaginators(); +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsync.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsync.java new file mode 100644 index 00000000000..2723ff84462 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsync.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; + +/** + * Use the CostAd API to manage cost monitor, cost anomaly events and subscription list. For more information, see [Cost Anomaly Detection Overview](https://docs.oracle.com/iaas/Content/Billing/Concepts/costanomalydetectionoverview.htm). + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public interface CostAdAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new CostAlert Subscription. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createCostAlertSubscription( + CreateCostAlertSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateCostAlertSubscriptionRequest, CreateCostAlertSubscriptionResponse> + handler); + + /** + * Creates a new costAnomaly Monitor. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createCostAnomalyMonitor( + CreateCostAnomalyMonitorRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateCostAnomalyMonitorRequest, CreateCostAnomalyMonitorResponse> + handler); + + /** + * Deletes a specified CostAlertSubscription 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 deleteCostAlertSubscription( + DeleteCostAlertSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteCostAlertSubscriptionRequest, DeleteCostAlertSubscriptionResponse> + handler); + + /** + * Deletes a specified CostAnomalyMonitor 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 deleteCostAnomalyMonitor( + DeleteCostAnomalyMonitorRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteCostAnomalyMonitorRequest, DeleteCostAnomalyMonitorResponse> + handler); + + /** + * Disables the cost anomaly monitor. This stops cost anomaly detection for targeted resource(s). + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future disableCostAnomalyMonitor( + DisableCostAnomalyMonitorRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableCostAnomalyMonitorRequest, DisableCostAnomalyMonitorResponse> + handler); + + /** + * Enables the cost anomaly monitor. This (re)starts the cost anomaly detection for targeted resource(s). + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future enableCostAnomalyMonitor( + EnableCostAnomalyMonitorRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableCostAnomalyMonitorRequest, EnableCostAnomalyMonitorResponse> + handler); + + /** + * Gets a CostAlertSubscription by the identifier. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCostAlertSubscription( + GetCostAlertSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + handler); + + /** + * Gets a CostAnomalyEvent by the identifier. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCostAnomalyEvent( + GetCostAnomalyEventRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyEventRequest, GetCostAnomalyEventResponse> + handler); + + /** + * Gets a CostAnomalyMonitor by the identifier. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCostAnomalyMonitor( + GetCostAnomalyMonitorRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse> + handler); + + /** + * Gets a list of Cost Alert Subscription in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listCostAlertSubscriptions( + ListCostAlertSubscriptionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCostAlertSubscriptionsRequest, ListCostAlertSubscriptionsResponse> + handler); + + /** + * Gets a list of Cost Anomaly Event in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listCostAnomalyEvents( + ListCostAnomalyEventsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse> + handler); + + /** + * Gets a list of Cost Anomaly Monitors in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listCostAnomalyMonitors( + ListCostAnomalyMonitorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse> + handler); + + /** + * Gets a list of Cost Anomaly Events analytics summary - aggregated metrics for a given time period. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + summarizeCostAnomalyEventAnalytics( + SummarizeCostAnomalyEventAnalyticsRequest request, + com.oracle.bmc.responses.AsyncHandler< + SummarizeCostAnomalyEventAnalyticsRequest, + SummarizeCostAnomalyEventAnalyticsResponse> + handler); + + /** + * Update a CostAlertSubscription identified by the OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateCostAlertSubscription( + UpdateCostAlertSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAlertSubscriptionRequest, UpdateCostAlertSubscriptionResponse> + handler); + + /** + * Update a CostAnomalyEvent identified by the OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateCostAnomalyEvent( + UpdateCostAnomalyEventRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyEventRequest, UpdateCostAnomalyEventResponse> + handler); + + /** + * Update a CostAnomalyMonitor identified by the OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateCostAnomalyMonitor( + UpdateCostAnomalyMonitorRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyMonitorRequest, UpdateCostAnomalyMonitorResponse> + handler); +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java new file mode 100644 index 00000000000..11312a9ff83 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java @@ -0,0 +1,1237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.costad.internal.http.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for CostAd 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: 20190111") +public class CostAdAsyncClient implements CostAdAsync { + /** + * Service instance for CostAd. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(CostAdClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://costad.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CostAdAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public CostAdAsyncClient( + 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 CostAdAsyncClient( + 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 CostAdAsyncClient( + 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 CostAdAsyncClient( + 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 CostAdAsyncClient( + 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 CostAdAsyncClient( + 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 CostAdAsyncClient( + 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 CostAdAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public CostAdAsyncClient 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 CostAdAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future + createCostAlertSubscription( + CreateCostAlertSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCostAlertSubscriptionRequest, + CreateCostAlertSubscriptionResponse> + handler) { + LOG.trace("Called async createCostAlertSubscription"); + final CreateCostAlertSubscriptionRequest interceptedRequest = + CreateCostAlertSubscriptionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "CreateCostAlertSubscription", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateCostAlertSubscriptionResponse> + transformer = + CreateCostAlertSubscriptionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateCostAlertSubscriptionRequest, CreateCostAlertSubscriptionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateCostAlertSubscriptionRequest, + CreateCostAlertSubscriptionResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateCostAlertSubscriptionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateCostAlertSubscriptionRequest, CreateCostAlertSubscriptionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createCostAnomalyMonitor( + CreateCostAnomalyMonitorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCostAnomalyMonitorRequest, CreateCostAnomalyMonitorResponse> + handler) { + LOG.trace("Called async createCostAnomalyMonitor"); + final CreateCostAnomalyMonitorRequest interceptedRequest = + CreateCostAnomalyMonitorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "CreateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateCostAnomalyMonitorResponse> + transformer = + CreateCostAnomalyMonitorConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateCostAnomalyMonitorRequest, CreateCostAnomalyMonitorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateCostAnomalyMonitorRequest, CreateCostAnomalyMonitorResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateCostAnomalyMonitorDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateCostAnomalyMonitorRequest, CreateCostAnomalyMonitorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteCostAlertSubscription( + DeleteCostAlertSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCostAlertSubscriptionRequest, + DeleteCostAlertSubscriptionResponse> + handler) { + LOG.trace("Called async deleteCostAlertSubscription"); + final DeleteCostAlertSubscriptionRequest interceptedRequest = + DeleteCostAlertSubscriptionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "DeleteCostAlertSubscription", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteCostAlertSubscriptionResponse> + transformer = + DeleteCostAlertSubscriptionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteCostAlertSubscriptionRequest, DeleteCostAlertSubscriptionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCostAlertSubscriptionRequest, + DeleteCostAlertSubscriptionResponse>, + 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< + DeleteCostAlertSubscriptionRequest, DeleteCostAlertSubscriptionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteCostAnomalyMonitor( + DeleteCostAnomalyMonitorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCostAnomalyMonitorRequest, DeleteCostAnomalyMonitorResponse> + handler) { + LOG.trace("Called async deleteCostAnomalyMonitor"); + final DeleteCostAnomalyMonitorRequest interceptedRequest = + DeleteCostAnomalyMonitorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "DeleteCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteCostAnomalyMonitorResponse> + transformer = + DeleteCostAnomalyMonitorConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteCostAnomalyMonitorRequest, DeleteCostAnomalyMonitorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCostAnomalyMonitorRequest, DeleteCostAnomalyMonitorResponse>, + 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< + DeleteCostAnomalyMonitorRequest, DeleteCostAnomalyMonitorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future disableCostAnomalyMonitor( + DisableCostAnomalyMonitorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableCostAnomalyMonitorRequest, DisableCostAnomalyMonitorResponse> + handler) { + LOG.trace("Called async disableCostAnomalyMonitor"); + final DisableCostAnomalyMonitorRequest interceptedRequest = + DisableCostAnomalyMonitorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "DisableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DisableCostAnomalyMonitorResponse> + transformer = + DisableCostAnomalyMonitorConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DisableCostAnomalyMonitorRequest, DisableCostAnomalyMonitorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DisableCostAnomalyMonitorRequest, + DisableCostAnomalyMonitorResponse>, + 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< + DisableCostAnomalyMonitorRequest, DisableCostAnomalyMonitorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future enableCostAnomalyMonitor( + EnableCostAnomalyMonitorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableCostAnomalyMonitorRequest, EnableCostAnomalyMonitorResponse> + handler) { + LOG.trace("Called async enableCostAnomalyMonitor"); + final EnableCostAnomalyMonitorRequest interceptedRequest = + EnableCostAnomalyMonitorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "EnableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, EnableCostAnomalyMonitorResponse> + transformer = + EnableCostAnomalyMonitorConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + EnableCostAnomalyMonitorRequest, EnableCostAnomalyMonitorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + EnableCostAnomalyMonitorRequest, EnableCostAnomalyMonitorResponse>, + 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< + EnableCostAnomalyMonitorRequest, EnableCostAnomalyMonitorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getCostAlertSubscription( + GetCostAlertSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + handler) { + LOG.trace("Called async getCostAlertSubscription"); + final GetCostAlertSubscriptionRequest interceptedRequest = + GetCostAlertSubscriptionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "GetCostAlertSubscription", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetCostAlertSubscriptionResponse> + transformer = + GetCostAlertSubscriptionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse>, + 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< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getCostAnomalyEvent( + GetCostAnomalyEventRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyEventRequest, GetCostAnomalyEventResponse> + handler) { + LOG.trace("Called async getCostAnomalyEvent"); + final GetCostAnomalyEventRequest interceptedRequest = + GetCostAnomalyEventConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCostAnomalyEventConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "GetCostAnomalyEvent", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetCostAnomalyEventConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyEventRequest, GetCostAnomalyEventResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyEventRequest, GetCostAnomalyEventResponse>, + 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< + GetCostAnomalyEventRequest, GetCostAnomalyEventResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getCostAnomalyMonitor( + GetCostAnomalyMonitorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse> + handler) { + LOG.trace("Called async getCostAnomalyMonitor"); + final GetCostAnomalyMonitorRequest interceptedRequest = + GetCostAnomalyMonitorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "GetCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetCostAnomalyMonitorConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse>, + 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< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCostAlertSubscriptions( + ListCostAlertSubscriptionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCostAlertSubscriptionsRequest, + ListCostAlertSubscriptionsResponse> + handler) { + LOG.trace("Called async listCostAlertSubscriptions"); + final ListCostAlertSubscriptionsRequest interceptedRequest = + ListCostAlertSubscriptionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCostAlertSubscriptionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "ListCostAlertSubscriptions", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCostAlertSubscriptionsResponse> + transformer = + ListCostAlertSubscriptionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCostAlertSubscriptionsRequest, ListCostAlertSubscriptionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCostAlertSubscriptionsRequest, + ListCostAlertSubscriptionsResponse>, + 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< + ListCostAlertSubscriptionsRequest, ListCostAlertSubscriptionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listCostAnomalyEvents( + ListCostAnomalyEventsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse> + handler) { + LOG.trace("Called async listCostAnomalyEvents"); + final ListCostAnomalyEventsRequest interceptedRequest = + ListCostAnomalyEventsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCostAnomalyEventsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "ListCostAnomalyEvents", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListCostAnomalyEventsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse>, + 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< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listCostAnomalyMonitors( + ListCostAnomalyMonitorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse> + handler) { + LOG.trace("Called async listCostAnomalyMonitors"); + final ListCostAnomalyMonitorsRequest interceptedRequest = + ListCostAnomalyMonitorsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCostAnomalyMonitorsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "ListCostAnomalyMonitors", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCostAnomalyMonitorsResponse> + transformer = + ListCostAnomalyMonitorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse>, + 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< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + summarizeCostAnomalyEventAnalytics( + SummarizeCostAnomalyEventAnalyticsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SummarizeCostAnomalyEventAnalyticsRequest, + SummarizeCostAnomalyEventAnalyticsResponse> + handler) { + LOG.trace("Called async summarizeCostAnomalyEventAnalytics"); + final SummarizeCostAnomalyEventAnalyticsRequest interceptedRequest = + SummarizeCostAnomalyEventAnalyticsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SummarizeCostAnomalyEventAnalyticsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", + "SummarizeCostAnomalyEventAnalytics", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, SummarizeCostAnomalyEventAnalyticsResponse> + transformer = + SummarizeCostAnomalyEventAnalyticsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + SummarizeCostAnomalyEventAnalyticsRequest, + SummarizeCostAnomalyEventAnalyticsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + SummarizeCostAnomalyEventAnalyticsRequest, + SummarizeCostAnomalyEventAnalyticsResponse>, + 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< + SummarizeCostAnomalyEventAnalyticsRequest, + SummarizeCostAnomalyEventAnalyticsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateCostAlertSubscription( + UpdateCostAlertSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCostAlertSubscriptionRequest, + UpdateCostAlertSubscriptionResponse> + handler) { + LOG.trace("Called async updateCostAlertSubscription"); + final UpdateCostAlertSubscriptionRequest interceptedRequest = + UpdateCostAlertSubscriptionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "UpdateCostAlertSubscription", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateCostAlertSubscriptionResponse> + transformer = + UpdateCostAlertSubscriptionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAlertSubscriptionRequest, UpdateCostAlertSubscriptionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAlertSubscriptionRequest, + UpdateCostAlertSubscriptionResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateCostAlertSubscriptionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateCostAlertSubscriptionRequest, UpdateCostAlertSubscriptionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateCostAnomalyEvent( + UpdateCostAnomalyEventRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyEventRequest, UpdateCostAnomalyEventResponse> + handler) { + LOG.trace("Called async updateCostAnomalyEvent"); + final UpdateCostAnomalyEventRequest interceptedRequest = + UpdateCostAnomalyEventConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCostAnomalyEventConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "UpdateCostAnomalyEvent", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + UpdateCostAnomalyEventConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyEventRequest, UpdateCostAnomalyEventResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyEventRequest, UpdateCostAnomalyEventResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateCostAnomalyEventDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateCostAnomalyEventRequest, UpdateCostAnomalyEventResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateCostAnomalyMonitor( + UpdateCostAnomalyMonitorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyMonitorRequest, UpdateCostAnomalyMonitorResponse> + handler) { + LOG.trace("Called async updateCostAnomalyMonitor"); + final UpdateCostAnomalyMonitorRequest interceptedRequest = + UpdateCostAnomalyMonitorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CostAd", "UpdateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateCostAnomalyMonitorResponse> + transformer = + UpdateCostAnomalyMonitorConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyMonitorRequest, UpdateCostAnomalyMonitorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateCostAnomalyMonitorRequest, UpdateCostAnomalyMonitorResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateCostAnomalyMonitorDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateCostAnomalyMonitorRequest, UpdateCostAnomalyMonitorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java new file mode 100644 index 00000000000..80ca69997ca --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java @@ -0,0 +1,1163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.costad.internal.http.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CostAdClient implements CostAd { + /** + * Service instance for CostAd. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(CostAdClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://costad.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CostAdClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final CostAdWaiters waiters; + + private final CostAdPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + 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 CostAdClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("CostAd-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new CostAdWaiters(executorService, this); + + this.paginators = new CostAdPaginators(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 CostAdClient 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 CostAdClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public CreateCostAlertSubscriptionResponse createCostAlertSubscription( + CreateCostAlertSubscriptionRequest request) { + LOG.trace("Called createCostAlertSubscription"); + final CreateCostAlertSubscriptionRequest interceptedRequest = + CreateCostAlertSubscriptionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCostAlertSubscriptionConverter.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( + "CostAd", "CreateCostAlertSubscription", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + CreateCostAlertSubscriptionConverter.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 + .getCreateCostAlertSubscriptionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateCostAnomalyMonitorResponse createCostAnomalyMonitor( + CreateCostAnomalyMonitorRequest request) { + LOG.trace("Called createCostAnomalyMonitor"); + final CreateCostAnomalyMonitorRequest interceptedRequest = + CreateCostAnomalyMonitorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCostAnomalyMonitorConverter.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( + "CostAd", "CreateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + CreateCostAnomalyMonitorConverter.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.getCreateCostAnomalyMonitorDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteCostAlertSubscriptionResponse deleteCostAlertSubscription( + DeleteCostAlertSubscriptionRequest request) { + LOG.trace("Called deleteCostAlertSubscription"); + final DeleteCostAlertSubscriptionRequest interceptedRequest = + DeleteCostAlertSubscriptionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCostAlertSubscriptionConverter.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( + "CostAd", "DeleteCostAlertSubscription", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + DeleteCostAlertSubscriptionConverter.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 DeleteCostAnomalyMonitorResponse deleteCostAnomalyMonitor( + DeleteCostAnomalyMonitorRequest request) { + LOG.trace("Called deleteCostAnomalyMonitor"); + final DeleteCostAnomalyMonitorRequest interceptedRequest = + DeleteCostAnomalyMonitorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCostAnomalyMonitorConverter.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( + "CostAd", "DeleteCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + DeleteCostAnomalyMonitorConverter.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 DisableCostAnomalyMonitorResponse disableCostAnomalyMonitor( + DisableCostAnomalyMonitorRequest request) { + LOG.trace("Called disableCostAnomalyMonitor"); + final DisableCostAnomalyMonitorRequest interceptedRequest = + DisableCostAnomalyMonitorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableCostAnomalyMonitorConverter.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( + "CostAd", "DisableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + DisableCostAnomalyMonitorConverter.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 EnableCostAnomalyMonitorResponse enableCostAnomalyMonitor( + EnableCostAnomalyMonitorRequest request) { + LOG.trace("Called enableCostAnomalyMonitor"); + final EnableCostAnomalyMonitorRequest interceptedRequest = + EnableCostAnomalyMonitorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableCostAnomalyMonitorConverter.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( + "CostAd", "EnableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + EnableCostAnomalyMonitorConverter.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 GetCostAlertSubscriptionResponse getCostAlertSubscription( + GetCostAlertSubscriptionRequest request) { + LOG.trace("Called getCostAlertSubscription"); + final GetCostAlertSubscriptionRequest interceptedRequest = + GetCostAlertSubscriptionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCostAlertSubscriptionConverter.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( + "CostAd", "GetCostAlertSubscription", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetCostAlertSubscriptionConverter.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 GetCostAnomalyEventResponse getCostAnomalyEvent(GetCostAnomalyEventRequest request) { + LOG.trace("Called getCostAnomalyEvent"); + final GetCostAnomalyEventRequest interceptedRequest = + GetCostAnomalyEventConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCostAnomalyEventConverter.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( + "CostAd", "GetCostAnomalyEvent", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetCostAnomalyEventConverter.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 GetCostAnomalyMonitorResponse getCostAnomalyMonitor( + GetCostAnomalyMonitorRequest request) { + LOG.trace("Called getCostAnomalyMonitor"); + final GetCostAnomalyMonitorRequest interceptedRequest = + GetCostAnomalyMonitorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCostAnomalyMonitorConverter.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( + "CostAd", "GetCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetCostAnomalyMonitorConverter.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 ListCostAlertSubscriptionsResponse listCostAlertSubscriptions( + ListCostAlertSubscriptionsRequest request) { + LOG.trace("Called listCostAlertSubscriptions"); + final ListCostAlertSubscriptionsRequest interceptedRequest = + ListCostAlertSubscriptionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCostAlertSubscriptionsConverter.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( + "CostAd", "ListCostAlertSubscriptions", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListCostAlertSubscriptionsConverter.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 ListCostAnomalyEventsResponse listCostAnomalyEvents( + ListCostAnomalyEventsRequest request) { + LOG.trace("Called listCostAnomalyEvents"); + final ListCostAnomalyEventsRequest interceptedRequest = + ListCostAnomalyEventsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCostAnomalyEventsConverter.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( + "CostAd", "ListCostAnomalyEvents", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListCostAnomalyEventsConverter.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 ListCostAnomalyMonitorsResponse listCostAnomalyMonitors( + ListCostAnomalyMonitorsRequest request) { + LOG.trace("Called listCostAnomalyMonitors"); + final ListCostAnomalyMonitorsRequest interceptedRequest = + ListCostAnomalyMonitorsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCostAnomalyMonitorsConverter.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( + "CostAd", "ListCostAnomalyMonitors", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListCostAnomalyMonitorsConverter.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 SummarizeCostAnomalyEventAnalyticsResponse summarizeCostAnomalyEventAnalytics( + SummarizeCostAnomalyEventAnalyticsRequest request) { + LOG.trace("Called summarizeCostAnomalyEventAnalytics"); + final SummarizeCostAnomalyEventAnalyticsRequest interceptedRequest = + SummarizeCostAnomalyEventAnalyticsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SummarizeCostAnomalyEventAnalyticsConverter.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( + "CostAd", + "SummarizeCostAnomalyEventAnalytics", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, SummarizeCostAnomalyEventAnalyticsResponse> + transformer = + SummarizeCostAnomalyEventAnalyticsConverter.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 UpdateCostAlertSubscriptionResponse updateCostAlertSubscription( + UpdateCostAlertSubscriptionRequest request) { + LOG.trace("Called updateCostAlertSubscription"); + final UpdateCostAlertSubscriptionRequest interceptedRequest = + UpdateCostAlertSubscriptionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCostAlertSubscriptionConverter.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( + "CostAd", "UpdateCostAlertSubscription", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateCostAlertSubscriptionConverter.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 + .getUpdateCostAlertSubscriptionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateCostAnomalyEventResponse updateCostAnomalyEvent( + UpdateCostAnomalyEventRequest request) { + LOG.trace("Called updateCostAnomalyEvent"); + final UpdateCostAnomalyEventRequest interceptedRequest = + UpdateCostAnomalyEventConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCostAnomalyEventConverter.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( + "CostAd", "UpdateCostAnomalyEvent", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateCostAnomalyEventConverter.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.getUpdateCostAnomalyEventDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateCostAnomalyMonitorResponse updateCostAnomalyMonitor( + UpdateCostAnomalyMonitorRequest request) { + LOG.trace("Called updateCostAnomalyMonitor"); + final UpdateCostAnomalyMonitorRequest interceptedRequest = + UpdateCostAnomalyMonitorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCostAnomalyMonitorConverter.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( + "CostAd", "UpdateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateCostAnomalyMonitorConverter.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.getUpdateCostAnomalyMonitorDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CostAdWaiters getWaiters() { + return waiters; + } + + @Override + public CostAdPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdPaginators.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdPaginators.java new file mode 100644 index 00000000000..4c3f2955ac1 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdPaginators.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of CostAd 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: 20190111") +public class CostAdPaginators { + private final CostAd client; + + public CostAdPaginators(CostAd client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCostAlertSubscriptions 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 listCostAlertSubscriptionsResponseIterator( + final ListCostAlertSubscriptionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCostAlertSubscriptionsRequest.Builder, ListCostAlertSubscriptionsRequest, + ListCostAlertSubscriptionsResponse>( + new java.util.function.Supplier() { + @Override + public ListCostAlertSubscriptionsRequest.Builder get() { + return ListCostAlertSubscriptionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCostAlertSubscriptionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAlertSubscriptionsRequest.Builder>, + ListCostAlertSubscriptionsRequest>() { + @Override + public ListCostAlertSubscriptionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAlertSubscriptionsRequest.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< + ListCostAlertSubscriptionsRequest, ListCostAlertSubscriptionsResponse>() { + @Override + public ListCostAlertSubscriptionsResponse apply( + ListCostAlertSubscriptionsRequest request) { + return client.listCostAlertSubscriptions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.costad.model.CostAlertSubscriptionSummary} objects + * contained in responses from the listCostAlertSubscriptions 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.costad.model.CostAlertSubscriptionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCostAlertSubscriptionsRecordIterator( + final ListCostAlertSubscriptionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCostAlertSubscriptionsRequest.Builder, ListCostAlertSubscriptionsRequest, + ListCostAlertSubscriptionsResponse, + com.oracle.bmc.costad.model.CostAlertSubscriptionSummary>( + new java.util.function.Supplier() { + @Override + public ListCostAlertSubscriptionsRequest.Builder get() { + return ListCostAlertSubscriptionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCostAlertSubscriptionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAlertSubscriptionsRequest.Builder>, + ListCostAlertSubscriptionsRequest>() { + @Override + public ListCostAlertSubscriptionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAlertSubscriptionsRequest.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< + ListCostAlertSubscriptionsRequest, ListCostAlertSubscriptionsResponse>() { + @Override + public ListCostAlertSubscriptionsResponse apply( + ListCostAlertSubscriptionsRequest request) { + return client.listCostAlertSubscriptions(request); + } + }, + new java.util.function.Function< + ListCostAlertSubscriptionsResponse, + java.util.List< + com.oracle.bmc.costad.model.CostAlertSubscriptionSummary>>() { + @Override + public java.util.List + apply(ListCostAlertSubscriptionsResponse response) { + return response.getCostAlertSubscriptionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCostAnomalyEvents 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 listCostAnomalyEventsResponseIterator( + final ListCostAnomalyEventsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCostAnomalyEventsRequest.Builder, ListCostAnomalyEventsRequest, + ListCostAnomalyEventsResponse>( + new java.util.function.Supplier() { + @Override + public ListCostAnomalyEventsRequest.Builder get() { + return ListCostAnomalyEventsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCostAnomalyEventsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyEventsRequest.Builder>, + ListCostAnomalyEventsRequest>() { + @Override + public ListCostAnomalyEventsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyEventsRequest.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< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse>() { + @Override + public ListCostAnomalyEventsResponse apply( + ListCostAnomalyEventsRequest request) { + return client.listCostAnomalyEvents(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.costad.model.CostAnomalyEventSummary} objects + * contained in responses from the listCostAnomalyEvents 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.costad.model.CostAnomalyEventSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCostAnomalyEventsRecordIterator(final ListCostAnomalyEventsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCostAnomalyEventsRequest.Builder, ListCostAnomalyEventsRequest, + ListCostAnomalyEventsResponse, com.oracle.bmc.costad.model.CostAnomalyEventSummary>( + new java.util.function.Supplier() { + @Override + public ListCostAnomalyEventsRequest.Builder get() { + return ListCostAnomalyEventsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCostAnomalyEventsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyEventsRequest.Builder>, + ListCostAnomalyEventsRequest>() { + @Override + public ListCostAnomalyEventsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyEventsRequest.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< + ListCostAnomalyEventsRequest, ListCostAnomalyEventsResponse>() { + @Override + public ListCostAnomalyEventsResponse apply( + ListCostAnomalyEventsRequest request) { + return client.listCostAnomalyEvents(request); + } + }, + new java.util.function.Function< + ListCostAnomalyEventsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListCostAnomalyEventsResponse response) { + return response.getCostAnomalyEventCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCostAnomalyMonitors 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 listCostAnomalyMonitorsResponseIterator( + final ListCostAnomalyMonitorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCostAnomalyMonitorsRequest.Builder, ListCostAnomalyMonitorsRequest, + ListCostAnomalyMonitorsResponse>( + new java.util.function.Supplier() { + @Override + public ListCostAnomalyMonitorsRequest.Builder get() { + return ListCostAnomalyMonitorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCostAnomalyMonitorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyMonitorsRequest.Builder>, + ListCostAnomalyMonitorsRequest>() { + @Override + public ListCostAnomalyMonitorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyMonitorsRequest.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< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse>() { + @Override + public ListCostAnomalyMonitorsResponse apply( + ListCostAnomalyMonitorsRequest request) { + return client.listCostAnomalyMonitors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.costad.model.CostAnomalyMonitorSummary} objects + * contained in responses from the listCostAnomalyMonitors 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.costad.model.CostAnomalyMonitorSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCostAnomalyMonitorsRecordIterator(final ListCostAnomalyMonitorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCostAnomalyMonitorsRequest.Builder, ListCostAnomalyMonitorsRequest, + ListCostAnomalyMonitorsResponse, + com.oracle.bmc.costad.model.CostAnomalyMonitorSummary>( + new java.util.function.Supplier() { + @Override + public ListCostAnomalyMonitorsRequest.Builder get() { + return ListCostAnomalyMonitorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCostAnomalyMonitorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyMonitorsRequest.Builder>, + ListCostAnomalyMonitorsRequest>() { + @Override + public ListCostAnomalyMonitorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCostAnomalyMonitorsRequest.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< + ListCostAnomalyMonitorsRequest, ListCostAnomalyMonitorsResponse>() { + @Override + public ListCostAnomalyMonitorsResponse apply( + ListCostAnomalyMonitorsRequest request) { + return client.listCostAnomalyMonitors(request); + } + }, + new java.util.function.Function< + ListCostAnomalyMonitorsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListCostAnomalyMonitorsResponse response) { + return response.getCostAnomalyMonitorCollection().getItems(); + } + }); + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdWaiters.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdWaiters.java new file mode 100644 index 00000000000..ddf27f2401e --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdWaiters.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of CostAd. + *

+ * 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: 20190111") +public class CostAdWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final CostAd client; + + public CostAdWaiters(java.util.concurrent.ExecutorService executorService, CostAd 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< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + forCostAlertSubscription( + GetCostAlertSubscriptionRequest request, + com.oracle.bmc.costad.model.CostAlertSubscription.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 forCostAlertSubscription( + 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< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + forCostAlertSubscription( + GetCostAlertSubscriptionRequest request, + com.oracle.bmc.costad.model.CostAlertSubscription.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 forCostAlertSubscription( + 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< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + forCostAlertSubscription( + GetCostAlertSubscriptionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.costad.model.CostAlertSubscription.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 forCostAlertSubscription( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CostAlertSubscription. + private com.oracle.bmc.waiter.Waiter< + GetCostAlertSubscriptionRequest, GetCostAlertSubscriptionResponse> + forCostAlertSubscription( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCostAlertSubscriptionRequest request, + final com.oracle.bmc.costad.model.CostAlertSubscription.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< + GetCostAlertSubscriptionRequest, + GetCostAlertSubscriptionResponse>() { + @Override + public GetCostAlertSubscriptionResponse apply( + GetCostAlertSubscriptionRequest request) { + return client.getCostAlertSubscription(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetCostAlertSubscriptionResponse response) { + return targetStatesSet.contains( + response.getCostAlertSubscription().getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCostAnomalyEvent( + GetCostAnomalyEventRequest request, + com.oracle.bmc.costad.model.CostAnomalyEvent.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 forCostAnomalyEvent( + 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 + forCostAnomalyEvent( + GetCostAnomalyEventRequest request, + com.oracle.bmc.costad.model.CostAnomalyEvent.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 forCostAnomalyEvent( + 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 + forCostAnomalyEvent( + GetCostAnomalyEventRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.costad.model.CostAnomalyEvent.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 forCostAnomalyEvent( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CostAnomalyEvent. + private com.oracle.bmc.waiter.Waiter + forCostAnomalyEvent( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCostAnomalyEventRequest request, + final com.oracle.bmc.costad.model.CostAnomalyEvent.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< + GetCostAnomalyEventRequest, GetCostAnomalyEventResponse>() { + @Override + public GetCostAnomalyEventResponse apply( + GetCostAnomalyEventRequest request) { + return client.getCostAnomalyEvent(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetCostAnomalyEventResponse response) { + return targetStatesSet.contains( + response.getCostAnomalyEvent().getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCostAnomalyMonitor( + GetCostAnomalyMonitorRequest request, + com.oracle.bmc.costad.model.CostAnomalyMonitor.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 forCostAnomalyMonitor( + 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 + forCostAnomalyMonitor( + GetCostAnomalyMonitorRequest request, + com.oracle.bmc.costad.model.CostAnomalyMonitor.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 forCostAnomalyMonitor( + 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 + forCostAnomalyMonitor( + GetCostAnomalyMonitorRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.costad.model.CostAnomalyMonitor.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 forCostAnomalyMonitor( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CostAnomalyMonitor. + private com.oracle.bmc.waiter.Waiter< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse> + forCostAnomalyMonitor( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCostAnomalyMonitorRequest request, + final com.oracle.bmc.costad.model.CostAnomalyMonitor.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< + GetCostAnomalyMonitorRequest, GetCostAnomalyMonitorResponse>() { + @Override + public GetCostAnomalyMonitorResponse apply( + GetCostAnomalyMonitorRequest request) { + return client.getCostAnomalyMonitor(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetCostAnomalyMonitorResponse response) { + return targetStatesSet.contains( + response.getCostAnomalyMonitor().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.costad.model.CostAnomalyMonitor.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/SdkClientsMetadata.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/SdkClientsMetadata.java new file mode 100644 index 00000000000..fa94f603384 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/SdkClientsMetadata.java @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad; + +import com.oracle.bmc.SdkClients; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@SdkClients({CostAdAsyncClient.class, CostAdClient.class}) +public final class SdkClientsMetadata {} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/CreateCostAlertSubscriptionConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/CreateCostAlertSubscriptionConverter.java new file mode 100644 index 00000000000..83ef88eccf3 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/CreateCostAlertSubscriptionConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CreateCostAlertSubscriptionConverter { + 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(CreateCostAlertSubscriptionConverter.class); + + public static com.oracle.bmc.costad.requests.CreateCostAlertSubscriptionRequest + interceptRequest( + com.oracle.bmc.costad.requests.CreateCostAlertSubscriptionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.CreateCostAlertSubscriptionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateCostAlertSubscriptionDetails(), + "createCostAlertSubscriptionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190111").path("costAlertSubscriptions"); + + 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.costad.responses.CreateCostAlertSubscriptionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.CreateCostAlertSubscriptionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.CreateCostAlertSubscriptionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .CreateCostAlertSubscriptionResponse>() { + @Override + public com.oracle.bmc.costad.responses + .CreateCostAlertSubscriptionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.CreateCostAlertSubscriptionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAlertSubscription>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscription + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscription + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAlertSubscription> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.CreateCostAlertSubscriptionResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .CreateCostAlertSubscriptionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAlertSubscription(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.costad.responses.CreateCostAlertSubscriptionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/CreateCostAnomalyMonitorConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/CreateCostAnomalyMonitorConverter.java new file mode 100644 index 00000000000..b72f6b7a2c4 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/CreateCostAnomalyMonitorConverter.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CreateCostAnomalyMonitorConverter { + 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(CreateCostAnomalyMonitorConverter.class); + + public static com.oracle.bmc.costad.requests.CreateCostAnomalyMonitorRequest interceptRequest( + com.oracle.bmc.costad.requests.CreateCostAnomalyMonitorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.CreateCostAnomalyMonitorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateCostAnomalyMonitorDetails(), + "createCostAnomalyMonitorDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190111").path("costAnomalyMonitors"); + + 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.costad.responses.CreateCostAnomalyMonitorResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.CreateCostAnomalyMonitorResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.CreateCostAnomalyMonitorResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .CreateCostAnomalyMonitorResponse>() { + @Override + public com.oracle.bmc.costad.responses.CreateCostAnomalyMonitorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.CreateCostAnomalyMonitorResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitor>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyMonitor> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.CreateCostAnomalyMonitorResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .CreateCostAnomalyMonitorResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyMonitor(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.costad.responses.CreateCostAnomalyMonitorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DeleteCostAlertSubscriptionConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DeleteCostAlertSubscriptionConverter.java new file mode 100644 index 00000000000..42236ac24fe --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DeleteCostAlertSubscriptionConverter.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DeleteCostAlertSubscriptionConverter { + 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(DeleteCostAlertSubscriptionConverter.class); + + public static com.oracle.bmc.costad.requests.DeleteCostAlertSubscriptionRequest + interceptRequest( + com.oracle.bmc.costad.requests.DeleteCostAlertSubscriptionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.DeleteCostAlertSubscriptionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAlertSubscriptionId(), "costAlertSubscriptionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAlertSubscriptions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAlertSubscriptionId())); + + 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.costad.responses.DeleteCostAlertSubscriptionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.DeleteCostAlertSubscriptionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.DeleteCostAlertSubscriptionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .DeleteCostAlertSubscriptionResponse>() { + @Override + public com.oracle.bmc.costad.responses + .DeleteCostAlertSubscriptionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.DeleteCostAlertSubscriptionResponse"); + 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.costad.responses.DeleteCostAlertSubscriptionResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .DeleteCostAlertSubscriptionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.costad.responses.DeleteCostAlertSubscriptionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DeleteCostAnomalyMonitorConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DeleteCostAnomalyMonitorConverter.java new file mode 100644 index 00000000000..ad1985f8ee4 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DeleteCostAnomalyMonitorConverter.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DeleteCostAnomalyMonitorConverter { + 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(DeleteCostAnomalyMonitorConverter.class); + + public static com.oracle.bmc.costad.requests.DeleteCostAnomalyMonitorRequest interceptRequest( + com.oracle.bmc.costad.requests.DeleteCostAnomalyMonitorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.DeleteCostAnomalyMonitorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAnomalyMonitorId(), "costAnomalyMonitorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyMonitors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyMonitorId())); + + 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.costad.responses.DeleteCostAnomalyMonitorResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.DeleteCostAnomalyMonitorResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.DeleteCostAnomalyMonitorResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .DeleteCostAnomalyMonitorResponse>() { + @Override + public com.oracle.bmc.costad.responses.DeleteCostAnomalyMonitorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.DeleteCostAnomalyMonitorResponse"); + 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.costad.responses.DeleteCostAnomalyMonitorResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .DeleteCostAnomalyMonitorResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.costad.responses.DeleteCostAnomalyMonitorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DisableCostAnomalyMonitorConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DisableCostAnomalyMonitorConverter.java new file mode 100644 index 00000000000..34b535f52fc --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/DisableCostAnomalyMonitorConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DisableCostAnomalyMonitorConverter { + 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(DisableCostAnomalyMonitorConverter.class); + + public static com.oracle.bmc.costad.requests.DisableCostAnomalyMonitorRequest interceptRequest( + com.oracle.bmc.costad.requests.DisableCostAnomalyMonitorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.DisableCostAnomalyMonitorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAnomalyMonitorId(), "costAnomalyMonitorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyMonitors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyMonitorId())) + .path("actions") + .path("disable"); + + 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.costad.responses.DisableCostAnomalyMonitorResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.DisableCostAnomalyMonitorResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.DisableCostAnomalyMonitorResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .DisableCostAnomalyMonitorResponse>() { + @Override + public com.oracle.bmc.costad.responses.DisableCostAnomalyMonitorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.DisableCostAnomalyMonitorResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitor>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyMonitor> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.DisableCostAnomalyMonitorResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .DisableCostAnomalyMonitorResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyMonitor(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.costad.responses.DisableCostAnomalyMonitorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/EnableCostAnomalyMonitorConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/EnableCostAnomalyMonitorConverter.java new file mode 100644 index 00000000000..0a70ab38bf2 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/EnableCostAnomalyMonitorConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class EnableCostAnomalyMonitorConverter { + 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(EnableCostAnomalyMonitorConverter.class); + + public static com.oracle.bmc.costad.requests.EnableCostAnomalyMonitorRequest interceptRequest( + com.oracle.bmc.costad.requests.EnableCostAnomalyMonitorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.EnableCostAnomalyMonitorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAnomalyMonitorId(), "costAnomalyMonitorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyMonitors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyMonitorId())) + .path("actions") + .path("enable"); + + 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.costad.responses.EnableCostAnomalyMonitorResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.EnableCostAnomalyMonitorResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.EnableCostAnomalyMonitorResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .EnableCostAnomalyMonitorResponse>() { + @Override + public com.oracle.bmc.costad.responses.EnableCostAnomalyMonitorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.EnableCostAnomalyMonitorResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitor>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyMonitor> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.EnableCostAnomalyMonitorResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .EnableCostAnomalyMonitorResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyMonitor(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.costad.responses.EnableCostAnomalyMonitorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAlertSubscriptionConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAlertSubscriptionConverter.java new file mode 100644 index 00000000000..80bbe76ac7a --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAlertSubscriptionConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAlertSubscriptionConverter { + 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(GetCostAlertSubscriptionConverter.class); + + public static com.oracle.bmc.costad.requests.GetCostAlertSubscriptionRequest interceptRequest( + com.oracle.bmc.costad.requests.GetCostAlertSubscriptionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.GetCostAlertSubscriptionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAlertSubscriptionId(), "costAlertSubscriptionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAlertSubscriptions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAlertSubscriptionId())); + + 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.costad.responses.GetCostAlertSubscriptionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAlertSubscriptionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAlertSubscriptionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .GetCostAlertSubscriptionResponse>() { + @Override + public com.oracle.bmc.costad.responses.GetCostAlertSubscriptionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.GetCostAlertSubscriptionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAlertSubscription>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscription + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscription + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAlertSubscription> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.GetCostAlertSubscriptionResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .GetCostAlertSubscriptionResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAlertSubscription(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.costad.responses.GetCostAlertSubscriptionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAnomalyEventConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAnomalyEventConverter.java new file mode 100644 index 00000000000..d497b62feab --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAnomalyEventConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAnomalyEventConverter { + 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(GetCostAnomalyEventConverter.class); + + public static com.oracle.bmc.costad.requests.GetCostAnomalyEventRequest interceptRequest( + com.oracle.bmc.costad.requests.GetCostAnomalyEventRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.GetCostAnomalyEventRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCostAnomalyEventId(), "costAnomalyEventId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyEvents") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyEventId())); + + 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.costad.responses.GetCostAnomalyEventResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAnomalyEventResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAnomalyEventResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAnomalyEventResponse>() { + @Override + public com.oracle.bmc.costad.responses.GetCostAnomalyEventResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.GetCostAnomalyEventResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyEvent>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyEvent + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyEvent + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyEvent> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.GetCostAnomalyEventResponse.Builder + builder = + com.oracle.bmc.costad.responses + .GetCostAnomalyEventResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyEvent(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.costad.responses.GetCostAnomalyEventResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAnomalyMonitorConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAnomalyMonitorConverter.java new file mode 100644 index 00000000000..f0c83bd003f --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/GetCostAnomalyMonitorConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAnomalyMonitorConverter { + 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(GetCostAnomalyMonitorConverter.class); + + public static com.oracle.bmc.costad.requests.GetCostAnomalyMonitorRequest interceptRequest( + com.oracle.bmc.costad.requests.GetCostAnomalyMonitorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.GetCostAnomalyMonitorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAnomalyMonitorId(), "costAnomalyMonitorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyMonitors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyMonitorId())); + + 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.costad.responses.GetCostAnomalyMonitorResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAnomalyMonitorResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAnomalyMonitorResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.GetCostAnomalyMonitorResponse>() { + @Override + public com.oracle.bmc.costad.responses.GetCostAnomalyMonitorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.GetCostAnomalyMonitorResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitor>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyMonitor> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.GetCostAnomalyMonitorResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .GetCostAnomalyMonitorResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyMonitor(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.costad.responses.GetCostAnomalyMonitorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAlertSubscriptionsConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAlertSubscriptionsConverter.java new file mode 100644 index 00000000000..81001710610 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAlertSubscriptionsConverter.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAlertSubscriptionsConverter { + 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(ListCostAlertSubscriptionsConverter.class); + + public static com.oracle.bmc.costad.requests.ListCostAlertSubscriptionsRequest interceptRequest( + com.oracle.bmc.costad.requests.ListCostAlertSubscriptionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.ListCostAlertSubscriptionsRequest 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("/20190111").path("costAlertSubscriptions"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().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.costad.responses.ListCostAlertSubscriptionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAlertSubscriptionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAlertSubscriptionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .ListCostAlertSubscriptionsResponse>() { + @Override + public com.oracle.bmc.costad.responses + .ListCostAlertSubscriptionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.ListCostAlertSubscriptionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAlertSubscriptionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscriptionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscriptionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAlertSubscriptionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.ListCostAlertSubscriptionsResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .ListCostAlertSubscriptionsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAlertSubscriptionCollection(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.costad.responses.ListCostAlertSubscriptionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAnomalyEventsConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAnomalyEventsConverter.java new file mode 100644 index 00000000000..3673afb4ac4 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAnomalyEventsConverter.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAnomalyEventsConverter { + 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(ListCostAnomalyEventsConverter.class); + + public static com.oracle.bmc.costad.requests.ListCostAnomalyEventsRequest interceptRequest( + com.oracle.bmc.costad.requests.ListCostAnomalyEventsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.ListCostAnomalyEventsRequest 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("/20190111").path("costAnomalyEvents"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getCostAnomalyMonitorId() != null) { + target = + target.queryParam( + "costAnomalyMonitorId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCostAnomalyMonitorId())); + } + + if (request.getTargetTenantId() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetTenantId", + request.getTargetTenantId(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated); + } + + if (request.getTimeAnomalyEventStartDate() != null) { + target = + target.queryParam( + "timeAnomalyEventStartDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAnomalyEventStartDate())); + } + + if (request.getTimeAnomalyEventEndDate() != null) { + target = + target.queryParam( + "timeAnomalyEventEndDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAnomalyEventEndDate())); + } + + if (request.getRegion() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "region", + request.getRegion(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated); + } + + if (request.getCostImpact() != null) { + target = + target.queryParam( + "costImpact", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCostImpact())); + } + + if (request.getCostImpactPercentage() != null) { + target = + target.queryParam( + "costImpactPercentage", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCostImpactPercentage())); + } + + 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.costad.responses.ListCostAnomalyEventsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAnomalyEventsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAnomalyEventsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAnomalyEventsResponse>() { + @Override + public com.oracle.bmc.costad.responses.ListCostAnomalyEventsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.ListCostAnomalyEventsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyEventCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAnomalyEventCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAnomalyEventCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyEventCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.ListCostAnomalyEventsResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .ListCostAnomalyEventsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyEventCollection(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.costad.responses.ListCostAnomalyEventsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAnomalyMonitorsConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAnomalyMonitorsConverter.java new file mode 100644 index 00000000000..a2a4b200948 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/ListCostAnomalyMonitorsConverter.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAnomalyMonitorsConverter { + 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(ListCostAnomalyMonitorsConverter.class); + + public static com.oracle.bmc.costad.requests.ListCostAnomalyMonitorsRequest interceptRequest( + com.oracle.bmc.costad.requests.ListCostAnomalyMonitorsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.ListCostAnomalyMonitorsRequest 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("/20190111").path("costAnomalyMonitors"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getTargetTenantId() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetTenantId", + request.getTargetTenantId(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated); + } + + if (request.getRegion() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "region", + request.getRegion(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated); + } + + 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.costad.responses.ListCostAnomalyMonitorsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAnomalyMonitorsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAnomalyMonitorsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.ListCostAnomalyMonitorsResponse>() { + @Override + public com.oracle.bmc.costad.responses.ListCostAnomalyMonitorsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.ListCostAnomalyMonitorsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitorCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAnomalyMonitorCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAnomalyMonitorCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitorCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.ListCostAnomalyMonitorsResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .ListCostAnomalyMonitorsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyMonitorCollection(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.costad.responses.ListCostAnomalyMonitorsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/SummarizeCostAnomalyEventAnalyticsConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/SummarizeCostAnomalyEventAnalyticsConverter.java new file mode 100644 index 00000000000..1324c40b559 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/SummarizeCostAnomalyEventAnalyticsConverter.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class SummarizeCostAnomalyEventAnalyticsConverter { + 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(SummarizeCostAnomalyEventAnalyticsConverter.class); + + public static com.oracle.bmc.costad.requests.SummarizeCostAnomalyEventAnalyticsRequest + interceptRequest( + com.oracle.bmc.costad.requests.SummarizeCostAnomalyEventAnalyticsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.SummarizeCostAnomalyEventAnalyticsRequest 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("/20190111").path("costAnomalyEventAnalytics"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getCostAnomalyMonitorId() != null) { + target = + target.queryParam( + "costAnomalyMonitorId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCostAnomalyMonitorId())); + } + + if (request.getTargetTenantId() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetTenantId", + request.getTargetTenantId(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated); + } + + if (request.getTimeAnomalyEventStartDate() != null) { + target = + target.queryParam( + "timeAnomalyEventStartDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAnomalyEventStartDate())); + } + + if (request.getTimeAnomalyEventEndDate() != null) { + target = + target.queryParam( + "timeAnomalyEventEndDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAnomalyEventEndDate())); + } + + if (request.getRegion() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "region", + request.getRegion(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated); + } + + if (request.getCostImpact() != null) { + target = + target.queryParam( + "costImpact", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCostImpact())); + } + + if (request.getCostImpactPercentage() != null) { + target = + target.queryParam( + "costImpactPercentage", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCostImpactPercentage())); + } + + 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.costad.responses.SummarizeCostAnomalyEventAnalyticsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.SummarizeCostAnomalyEventAnalyticsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.SummarizeCostAnomalyEventAnalyticsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .SummarizeCostAnomalyEventAnalyticsResponse>() { + @Override + public com.oracle.bmc.costad.responses + .SummarizeCostAnomalyEventAnalyticsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.SummarizeCostAnomalyEventAnalyticsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyEventAnalyticCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAnomalyEventAnalyticCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAnomalyEventAnalyticCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyEventAnalyticCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses + .SummarizeCostAnomalyEventAnalyticsResponse.Builder + builder = + com.oracle.bmc.costad.responses + .SummarizeCostAnomalyEventAnalyticsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyEventAnalyticCollection(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.costad.responses + .SummarizeCostAnomalyEventAnalyticsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAlertSubscriptionConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAlertSubscriptionConverter.java new file mode 100644 index 00000000000..d90874d5f99 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAlertSubscriptionConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAlertSubscriptionConverter { + 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(UpdateCostAlertSubscriptionConverter.class); + + public static com.oracle.bmc.costad.requests.UpdateCostAlertSubscriptionRequest + interceptRequest( + com.oracle.bmc.costad.requests.UpdateCostAlertSubscriptionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.UpdateCostAlertSubscriptionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAlertSubscriptionId(), "costAlertSubscriptionId must not be blank"); + Validate.notNull( + request.getUpdateCostAlertSubscriptionDetails(), + "updateCostAlertSubscriptionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAlertSubscriptions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAlertSubscriptionId())); + + 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.costad.responses.UpdateCostAlertSubscriptionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAlertSubscriptionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAlertSubscriptionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .UpdateCostAlertSubscriptionResponse>() { + @Override + public com.oracle.bmc.costad.responses + .UpdateCostAlertSubscriptionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.UpdateCostAlertSubscriptionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAlertSubscription>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscription + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model + .CostAlertSubscription + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAlertSubscription> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.UpdateCostAlertSubscriptionResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .UpdateCostAlertSubscriptionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAlertSubscription(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.costad.responses.UpdateCostAlertSubscriptionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAnomalyEventConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAnomalyEventConverter.java new file mode 100644 index 00000000000..c2572b60a09 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAnomalyEventConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAnomalyEventConverter { + 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(UpdateCostAnomalyEventConverter.class); + + public static com.oracle.bmc.costad.requests.UpdateCostAnomalyEventRequest interceptRequest( + com.oracle.bmc.costad.requests.UpdateCostAnomalyEventRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.UpdateCostAnomalyEventRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCostAnomalyEventId(), "costAnomalyEventId must not be blank"); + Validate.notNull( + request.getUpdateCostAnomalyEventDetails(), + "updateCostAnomalyEventDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyEvents") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyEventId())); + + 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.costad.responses.UpdateCostAnomalyEventResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAnomalyEventResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAnomalyEventResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAnomalyEventResponse>() { + @Override + public com.oracle.bmc.costad.responses.UpdateCostAnomalyEventResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.UpdateCostAnomalyEventResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyEvent>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyEvent + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyEvent + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyEvent> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.UpdateCostAnomalyEventResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .UpdateCostAnomalyEventResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyEvent(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.costad.responses.UpdateCostAnomalyEventResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAnomalyMonitorConverter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAnomalyMonitorConverter.java new file mode 100644 index 00000000000..4ec5dc3a440 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/internal/http/UpdateCostAnomalyMonitorConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.costad.model.*; +import com.oracle.bmc.costad.requests.*; +import com.oracle.bmc.costad.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAnomalyMonitorConverter { + 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(UpdateCostAnomalyMonitorConverter.class); + + public static com.oracle.bmc.costad.requests.UpdateCostAnomalyMonitorRequest interceptRequest( + com.oracle.bmc.costad.requests.UpdateCostAnomalyMonitorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.costad.requests.UpdateCostAnomalyMonitorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCostAnomalyMonitorId(), "costAnomalyMonitorId must not be blank"); + Validate.notNull( + request.getUpdateCostAnomalyMonitorDetails(), + "updateCostAnomalyMonitorDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190111") + .path("costAnomalyMonitors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCostAnomalyMonitorId())); + + 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.costad.responses.UpdateCostAnomalyMonitorResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAnomalyMonitorResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses.UpdateCostAnomalyMonitorResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.costad.responses + .UpdateCostAnomalyMonitorResponse>() { + @Override + public com.oracle.bmc.costad.responses.UpdateCostAnomalyMonitorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.costad.responses.UpdateCostAnomalyMonitorResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model + .CostAnomalyMonitor>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.costad.model.CostAnomalyMonitor + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.costad.model.CostAnomalyMonitor> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.costad.responses.UpdateCostAnomalyMonitorResponse + .Builder + builder = + com.oracle.bmc.costad.responses + .UpdateCostAnomalyMonitorResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.costAnomalyMonitor(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.costad.responses.UpdateCostAnomalyMonitorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscription.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscription.java new file mode 100644 index 00000000000..aea69ac06a5 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscription.java @@ -0,0 +1,690 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAlertSubscription. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAlertSubscription.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAlertSubscription + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "lifecycleState", + "channels", + "description", + "timeCreated", + "timeUpdated", + "costAnomalyMonitors", + "definedTags", + "freeformTags", + "systemTags" + }) + public CostAlertSubscription( + String id, + String compartmentId, + String name, + LifecycleState lifecycleState, + String channels, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Object costAnomalyMonitors, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.lifecycleState = lifecycleState; + this.channels = channels; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.costAnomalyMonitors = costAnomalyMonitors; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the Cost Alert Subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Cost Alert Subscription. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the compartment which hold the cost alert subscription resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment which hold the cost alert subscription resource. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The name of the cost alert subscription. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The current state of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the cost alert subscription. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The notification channels string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channels") + private String channels; + + /** + * The notification channels string. + * @param channels the value to set + * @return this builder + **/ + public Builder channels(String channels) { + this.channels = channels; + this.__explicitlySet__.add("channels"); + return this; + } + /** + * The description of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the cost alert subscription. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The time that the cost alert subscription was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the cost alert subscription was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the cost alert subscription was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the cost alert subscription was updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * List of monitor identifiers + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAnomalyMonitors") + private Object costAnomalyMonitors; + + /** + * List of monitor identifiers + * @param costAnomalyMonitors the value to set + * @return this builder + **/ + public Builder costAnomalyMonitors(Object costAnomalyMonitors) { + this.costAnomalyMonitors = costAnomalyMonitors; + this.__explicitlySet__.add("costAnomalyMonitors"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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 CostAlertSubscription build() { + CostAlertSubscription model = + new CostAlertSubscription( + this.id, + this.compartmentId, + this.name, + this.lifecycleState, + this.channels, + this.description, + this.timeCreated, + this.timeUpdated, + this.costAnomalyMonitors, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAlertSubscription model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("channels")) { + this.channels(model.getChannels()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("costAnomalyMonitors")) { + this.costAnomalyMonitors(model.getCostAnomalyMonitors()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the Cost Alert Subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Cost Alert Subscription. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the compartment which hold the cost alert subscription resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment which hold the cost alert subscription resource. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The current state of the cost alert subscription. + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the cost alert subscription. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The notification channels string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channels") + private final String channels; + + /** + * The notification channels string. + * @return the value + **/ + public String getChannels() { + return channels; + } + + /** + * The description of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the cost alert subscription. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The time that the cost alert subscription was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the cost alert subscription was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the cost alert subscription was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the cost alert subscription was updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * List of monitor identifiers + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAnomalyMonitors") + private final Object costAnomalyMonitors; + + /** + * List of monitor identifiers + * @return the value + **/ + public Object getCostAnomalyMonitors() { + return costAnomalyMonitors; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAlertSubscription("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", channels=").append(String.valueOf(this.channels)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", costAnomalyMonitors=").append(String.valueOf(this.costAnomalyMonitors)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAlertSubscription)) { + return false; + } + + CostAlertSubscription other = (CostAlertSubscription) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.channels, other.channels) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.costAnomalyMonitors, other.costAnomalyMonitors) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.channels == null ? 43 : this.channels.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.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.costAnomalyMonitors == null + ? 43 + : this.costAnomalyMonitors.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionCollection.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionCollection.java new file mode 100644 index 00000000000..dd3a7eddf64 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * Results of a costAlertSubscription search. Contains both CostAlertSubscriptionSummary items and other data. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAlertSubscriptionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAlertSubscriptionCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CostAlertSubscriptionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of CostAnomalyMonitorSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of CostAnomalyMonitorSummary 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 CostAlertSubscriptionCollection build() { + CostAlertSubscriptionCollection model = new CostAlertSubscriptionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAlertSubscriptionCollection 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 CostAnomalyMonitorSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of CostAnomalyMonitorSummary 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("CostAlertSubscriptionCollection("); + 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 CostAlertSubscriptionCollection)) { + return false; + } + + CostAlertSubscriptionCollection other = (CostAlertSubscriptionCollection) 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-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionMap.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionMap.java new file mode 100644 index 00000000000..7631f0b8448 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionMap.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The mapping of cost monitor to alert subscription along with thresholds. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAlertSubscriptionMap.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAlertSubscriptionMap + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operator", + "thresholdAbsoluteValue", + "thresholdRelativePercent", + "costAlertSubscriptionId" + }) + public CostAlertSubscriptionMap( + Operator operator, + Integer thresholdAbsoluteValue, + Integer thresholdRelativePercent, + String costAlertSubscriptionId) { + super(); + this.operator = operator; + this.thresholdAbsoluteValue = thresholdAbsoluteValue; + this.thresholdRelativePercent = thresholdRelativePercent; + this.costAlertSubscriptionId = costAlertSubscriptionId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The filter operator. Example: 'AND', 'OR'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operator") + private Operator operator; + + /** + * The filter operator. Example: 'AND', 'OR'. + * @param operator the value to set + * @return this builder + **/ + public Builder operator(Operator operator) { + this.operator = operator; + this.__explicitlySet__.add("operator"); + return this; + } + /** + * The absolute threshold value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdAbsoluteValue") + private Integer thresholdAbsoluteValue; + + /** + * The absolute threshold value. + * @param thresholdAbsoluteValue the value to set + * @return this builder + **/ + public Builder thresholdAbsoluteValue(Integer thresholdAbsoluteValue) { + this.thresholdAbsoluteValue = thresholdAbsoluteValue; + this.__explicitlySet__.add("thresholdAbsoluteValue"); + return this; + } + /** + * The relative percentage threshold value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdRelativePercent") + private Integer thresholdRelativePercent; + + /** + * The relative percentage threshold value. + * @param thresholdRelativePercent the value to set + * @return this builder + **/ + public Builder thresholdRelativePercent(Integer thresholdRelativePercent) { + this.thresholdRelativePercent = thresholdRelativePercent; + this.__explicitlySet__.add("thresholdRelativePercent"); + return this; + } + /** + * The costAlertSubscription ocid which the cost monitor alert maps to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionId") + private String costAlertSubscriptionId; + + /** + * The costAlertSubscription ocid which the cost monitor alert maps to. + * @param costAlertSubscriptionId the value to set + * @return this builder + **/ + public Builder costAlertSubscriptionId(String costAlertSubscriptionId) { + this.costAlertSubscriptionId = costAlertSubscriptionId; + this.__explicitlySet__.add("costAlertSubscriptionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CostAlertSubscriptionMap build() { + CostAlertSubscriptionMap model = + new CostAlertSubscriptionMap( + this.operator, + this.thresholdAbsoluteValue, + this.thresholdRelativePercent, + this.costAlertSubscriptionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAlertSubscriptionMap model) { + if (model.wasPropertyExplicitlySet("operator")) { + this.operator(model.getOperator()); + } + if (model.wasPropertyExplicitlySet("thresholdAbsoluteValue")) { + this.thresholdAbsoluteValue(model.getThresholdAbsoluteValue()); + } + if (model.wasPropertyExplicitlySet("thresholdRelativePercent")) { + this.thresholdRelativePercent(model.getThresholdRelativePercent()); + } + if (model.wasPropertyExplicitlySet("costAlertSubscriptionId")) { + this.costAlertSubscriptionId(model.getCostAlertSubscriptionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The filter operator. Example: 'AND', 'OR'. + **/ + public enum Operator { + And("AND"), + Or("OR"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Operator.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operator v : Operator.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Operator(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operator create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Operator', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The filter operator. Example: 'AND', 'OR'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operator") + private final Operator operator; + + /** + * The filter operator. Example: 'AND', 'OR'. + * @return the value + **/ + public Operator getOperator() { + return operator; + } + + /** + * The absolute threshold value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdAbsoluteValue") + private final Integer thresholdAbsoluteValue; + + /** + * The absolute threshold value. + * @return the value + **/ + public Integer getThresholdAbsoluteValue() { + return thresholdAbsoluteValue; + } + + /** + * The relative percentage threshold value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdRelativePercent") + private final Integer thresholdRelativePercent; + + /** + * The relative percentage threshold value. + * @return the value + **/ + public Integer getThresholdRelativePercent() { + return thresholdRelativePercent; + } + + /** + * The costAlertSubscription ocid which the cost monitor alert maps to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionId") + private final String costAlertSubscriptionId; + + /** + * The costAlertSubscription ocid which the cost monitor alert maps to. + * @return the value + **/ + public String getCostAlertSubscriptionId() { + return costAlertSubscriptionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAlertSubscriptionMap("); + sb.append("super=").append(super.toString()); + sb.append("operator=").append(String.valueOf(this.operator)); + sb.append(", thresholdAbsoluteValue=").append(String.valueOf(this.thresholdAbsoluteValue)); + sb.append(", thresholdRelativePercent=") + .append(String.valueOf(this.thresholdRelativePercent)); + sb.append(", costAlertSubscriptionId=") + .append(String.valueOf(this.costAlertSubscriptionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAlertSubscriptionMap)) { + return false; + } + + CostAlertSubscriptionMap other = (CostAlertSubscriptionMap) o; + return java.util.Objects.equals(this.operator, other.operator) + && java.util.Objects.equals( + this.thresholdAbsoluteValue, other.thresholdAbsoluteValue) + && java.util.Objects.equals( + this.thresholdRelativePercent, other.thresholdRelativePercent) + && java.util.Objects.equals( + this.costAlertSubscriptionId, other.costAlertSubscriptionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.operator == null ? 43 : this.operator.hashCode()); + result = + (result * PRIME) + + (this.thresholdAbsoluteValue == null + ? 43 + : this.thresholdAbsoluteValue.hashCode()); + result = + (result * PRIME) + + (this.thresholdRelativePercent == null + ? 43 + : this.thresholdRelativePercent.hashCode()); + result = + (result * PRIME) + + (this.costAlertSubscriptionId == null + ? 43 + : this.costAlertSubscriptionId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionSummary.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionSummary.java new file mode 100644 index 00000000000..a4f25ecd112 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAlertSubscriptionSummary.java @@ -0,0 +1,518 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAlertSubscription. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAlertSubscriptionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAlertSubscriptionSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "channelTypes", + "timeCreated", + "lifecycleState", + "definedTags", + "freeformTags", + "systemTags" + }) + public CostAlertSubscriptionSummary( + String id, + String compartmentId, + String name, + String channelTypes, + java.util.Date timeCreated, + CostAlertSubscription.LifecycleState lifecycleState, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.channelTypes = channelTypes; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the Cost Alert Subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Cost Alert Subscription. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the compartment which hold the cost alert subscription resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment which hold the cost alert subscription resource. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The name of the cost alert subscription. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The notification channels types string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channelTypes") + private String channelTypes; + + /** + * The notification channels types string. + * @param channelTypes the value to set + * @return this builder + **/ + public Builder channelTypes(String channelTypes) { + this.channelTypes = channelTypes; + this.__explicitlySet__.add("channelTypes"); + return this; + } + /** + * The time that the cost alert subscription was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the cost alert subscription was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The current state of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private CostAlertSubscription.LifecycleState lifecycleState; + + /** + * The current state of the cost alert subscription. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(CostAlertSubscription.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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 CostAlertSubscriptionSummary build() { + CostAlertSubscriptionSummary model = + new CostAlertSubscriptionSummary( + this.id, + this.compartmentId, + this.name, + this.channelTypes, + this.timeCreated, + this.lifecycleState, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAlertSubscriptionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("channelTypes")) { + this.channelTypes(model.getChannelTypes()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the Cost Alert Subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Cost Alert Subscription. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the compartment which hold the cost alert subscription resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment which hold the cost alert subscription resource. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The notification channels types string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channelTypes") + private final String channelTypes; + + /** + * The notification channels types string. + * @return the value + **/ + public String getChannelTypes() { + return channelTypes; + } + + /** + * The time that the cost alert subscription was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the cost alert subscription was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The current state of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final CostAlertSubscription.LifecycleState lifecycleState; + + /** + * The current state of the cost alert subscription. + * @return the value + **/ + public CostAlertSubscription.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAlertSubscriptionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", channelTypes=").append(String.valueOf(this.channelTypes)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAlertSubscriptionSummary)) { + return false; + } + + CostAlertSubscriptionSummary other = (CostAlertSubscriptionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.channelTypes, other.channelTypes) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.channelTypes == null ? 43 : this.channelTypes.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEvent.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEvent.java new file mode 100644 index 00000000000..52f9acefef4 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEvent.java @@ -0,0 +1,968 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAnomalyEvent. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CostAnomalyEvent.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyEvent extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "costAnomalyName", + "compartmentId", + "lifecycleState", + "costMonitorId", + "costMonitorName", + "costMonitorType", + "targetResourceFilter", + "timeAnomalyEventDate", + "costImpact", + "costVariancePercentage", + "rootCauseDetail", + "feedbackResponse", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags" + }) + public CostAnomalyEvent( + String id, + String costAnomalyName, + String compartmentId, + LifecycleState lifecycleState, + String costMonitorId, + String costMonitorName, + MonitorType costMonitorType, + TargetResourceFilter targetResourceFilter, + java.util.Date timeAnomalyEventDate, + Double costImpact, + Double costVariancePercentage, + RootCauseDetail rootCauseDetail, + FeedbackResponse feedbackResponse, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.costAnomalyName = costAnomalyName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.costMonitorId = costMonitorId; + this.costMonitorName = costMonitorName; + this.costMonitorType = costMonitorType; + this.targetResourceFilter = targetResourceFilter; + this.timeAnomalyEventDate = timeAnomalyEventDate; + this.costImpact = costImpact; + this.costVariancePercentage = costVariancePercentage; + this.rootCauseDetail = rootCauseDetail; + this.feedbackResponse = feedbackResponse; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the Cost Anomaly Event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Cost Anomaly Event. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The name of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAnomalyName") + private String costAnomalyName; + + /** + * The name of the associated cost monitor. + * @param costAnomalyName the value to set + * @return this builder + **/ + public Builder costAnomalyName(String costAnomalyName) { + this.costAnomalyName = costAnomalyName; + this.__explicitlySet__.add("costAnomalyName"); + return this; + } + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The 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 current state of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the cost anomaly event. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The OCID of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorId") + private String costMonitorId; + + /** + * The OCID of the associated cost monitor. + * @param costMonitorId the value to set + * @return this builder + **/ + public Builder costMonitorId(String costMonitorId) { + this.costMonitorId = costMonitorId; + this.__explicitlySet__.add("costMonitorId"); + return this; + } + /** + * The name of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorName") + private String costMonitorName; + + /** + * The name of the associated cost monitor. + * @param costMonitorName the value to set + * @return this builder + **/ + public Builder costMonitorName(String costMonitorName) { + this.costMonitorName = costMonitorName; + this.__explicitlySet__.add("costMonitorName"); + return this; + } + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorType") + private MonitorType costMonitorType; + + /** + * Type of cost monitor + * @param costMonitorType the value to set + * @return this builder + **/ + public Builder costMonitorType(MonitorType costMonitorType) { + this.costMonitorType = costMonitorType; + this.__explicitlySet__.add("costMonitorType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private TargetResourceFilter targetResourceFilter; + + public Builder targetResourceFilter(TargetResourceFilter targetResourceFilter) { + this.targetResourceFilter = targetResourceFilter; + this.__explicitlySet__.add("targetResourceFilter"); + return this; + } + /** + * The event date of the anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAnomalyEventDate") + private java.util.Date timeAnomalyEventDate; + + /** + * The event date of the anomaly event. + * @param timeAnomalyEventDate the value to set + * @return this builder + **/ + public Builder timeAnomalyEventDate(java.util.Date timeAnomalyEventDate) { + this.timeAnomalyEventDate = timeAnomalyEventDate; + this.__explicitlySet__.add("timeAnomalyEventDate"); + return this; + } + /** + * The cost impact of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costImpact") + private Double costImpact; + + /** + * The cost impact of the detected anomaly. + * @param costImpact the value to set + * @return this builder + **/ + public Builder costImpact(Double costImpact) { + this.costImpact = costImpact; + this.__explicitlySet__.add("costImpact"); + return this; + } + /** + * The cost variance percentage of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costVariancePercentage") + private Double costVariancePercentage; + + /** + * The cost variance percentage of the detected anomaly. + * @param costVariancePercentage the value to set + * @return this builder + **/ + public Builder costVariancePercentage(Double costVariancePercentage) { + this.costVariancePercentage = costVariancePercentage; + this.__explicitlySet__.add("costVariancePercentage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rootCauseDetail") + private RootCauseDetail rootCauseDetail; + + public Builder rootCauseDetail(RootCauseDetail rootCauseDetail) { + this.rootCauseDetail = rootCauseDetail; + this.__explicitlySet__.add("rootCauseDetail"); + return this; + } + /** + * The feedback response for the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feedbackResponse") + private FeedbackResponse feedbackResponse; + + /** + * The feedback response for the cost anomaly event. + * @param feedbackResponse the value to set + * @return this builder + **/ + public Builder feedbackResponse(FeedbackResponse feedbackResponse) { + this.feedbackResponse = feedbackResponse; + this.__explicitlySet__.add("feedbackResponse"); + return this; + } + /** + * The created time of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The created time of the cost anomaly event. + * @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 updated time of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The updated time of the cost anomaly event. + * @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; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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 CostAnomalyEvent build() { + CostAnomalyEvent model = + new CostAnomalyEvent( + this.id, + this.costAnomalyName, + this.compartmentId, + this.lifecycleState, + this.costMonitorId, + this.costMonitorName, + this.costMonitorType, + this.targetResourceFilter, + this.timeAnomalyEventDate, + this.costImpact, + this.costVariancePercentage, + this.rootCauseDetail, + this.feedbackResponse, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyEvent model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("costAnomalyName")) { + this.costAnomalyName(model.getCostAnomalyName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("costMonitorId")) { + this.costMonitorId(model.getCostMonitorId()); + } + if (model.wasPropertyExplicitlySet("costMonitorName")) { + this.costMonitorName(model.getCostMonitorName()); + } + if (model.wasPropertyExplicitlySet("costMonitorType")) { + this.costMonitorType(model.getCostMonitorType()); + } + if (model.wasPropertyExplicitlySet("targetResourceFilter")) { + this.targetResourceFilter(model.getTargetResourceFilter()); + } + if (model.wasPropertyExplicitlySet("timeAnomalyEventDate")) { + this.timeAnomalyEventDate(model.getTimeAnomalyEventDate()); + } + if (model.wasPropertyExplicitlySet("costImpact")) { + this.costImpact(model.getCostImpact()); + } + if (model.wasPropertyExplicitlySet("costVariancePercentage")) { + this.costVariancePercentage(model.getCostVariancePercentage()); + } + if (model.wasPropertyExplicitlySet("rootCauseDetail")) { + this.rootCauseDetail(model.getRootCauseDetail()); + } + if (model.wasPropertyExplicitlySet("feedbackResponse")) { + this.feedbackResponse(model.getFeedbackResponse()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the Cost Anomaly Event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Cost Anomaly Event. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The name of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAnomalyName") + private final String costAnomalyName; + + /** + * The name of the associated cost monitor. + * @return the value + **/ + public String getCostAnomalyName() { + return costAnomalyName; + } + + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The current state of the cost anomaly event. + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the cost anomaly event. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The OCID of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorId") + private final String costMonitorId; + + /** + * The OCID of the associated cost monitor. + * @return the value + **/ + public String getCostMonitorId() { + return costMonitorId; + } + + /** + * The name of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorName") + private final String costMonitorName; + + /** + * The name of the associated cost monitor. + * @return the value + **/ + public String getCostMonitorName() { + return costMonitorName; + } + + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorType") + private final MonitorType costMonitorType; + + /** + * Type of cost monitor + * @return the value + **/ + public MonitorType getCostMonitorType() { + return costMonitorType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private final TargetResourceFilter targetResourceFilter; + + public TargetResourceFilter getTargetResourceFilter() { + return targetResourceFilter; + } + + /** + * The event date of the anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAnomalyEventDate") + private final java.util.Date timeAnomalyEventDate; + + /** + * The event date of the anomaly event. + * @return the value + **/ + public java.util.Date getTimeAnomalyEventDate() { + return timeAnomalyEventDate; + } + + /** + * The cost impact of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costImpact") + private final Double costImpact; + + /** + * The cost impact of the detected anomaly. + * @return the value + **/ + public Double getCostImpact() { + return costImpact; + } + + /** + * The cost variance percentage of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costVariancePercentage") + private final Double costVariancePercentage; + + /** + * The cost variance percentage of the detected anomaly. + * @return the value + **/ + public Double getCostVariancePercentage() { + return costVariancePercentage; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rootCauseDetail") + private final RootCauseDetail rootCauseDetail; + + public RootCauseDetail getRootCauseDetail() { + return rootCauseDetail; + } + + /** + * The feedback response for the cost anomaly event. + **/ + public enum FeedbackResponse { + AccurateAnomaly("ACCURATE_ANOMALY"), + ExpectedAnomaly("EXPECTED_ANOMALY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FeedbackResponse.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FeedbackResponse v : FeedbackResponse.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FeedbackResponse(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FeedbackResponse create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FeedbackResponse', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The feedback response for the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feedbackResponse") + private final FeedbackResponse feedbackResponse; + + /** + * The feedback response for the cost anomaly event. + * @return the value + **/ + public FeedbackResponse getFeedbackResponse() { + return feedbackResponse; + } + + /** + * The created time of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The created time of the cost anomaly event. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The updated time of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The updated time of the cost anomaly event. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAnomalyEvent("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", costAnomalyName=").append(String.valueOf(this.costAnomalyName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", costMonitorId=").append(String.valueOf(this.costMonitorId)); + sb.append(", costMonitorName=").append(String.valueOf(this.costMonitorName)); + sb.append(", costMonitorType=").append(String.valueOf(this.costMonitorType)); + sb.append(", targetResourceFilter=").append(String.valueOf(this.targetResourceFilter)); + sb.append(", timeAnomalyEventDate=").append(String.valueOf(this.timeAnomalyEventDate)); + sb.append(", costImpact=").append(String.valueOf(this.costImpact)); + sb.append(", costVariancePercentage=").append(String.valueOf(this.costVariancePercentage)); + sb.append(", rootCauseDetail=").append(String.valueOf(this.rootCauseDetail)); + sb.append(", feedbackResponse=").append(String.valueOf(this.feedbackResponse)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAnomalyEvent)) { + return false; + } + + CostAnomalyEvent other = (CostAnomalyEvent) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.costAnomalyName, other.costAnomalyName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.costMonitorId, other.costMonitorId) + && java.util.Objects.equals(this.costMonitorName, other.costMonitorName) + && java.util.Objects.equals(this.costMonitorType, other.costMonitorType) + && java.util.Objects.equals(this.targetResourceFilter, other.targetResourceFilter) + && java.util.Objects.equals(this.timeAnomalyEventDate, other.timeAnomalyEventDate) + && java.util.Objects.equals(this.costImpact, other.costImpact) + && java.util.Objects.equals( + this.costVariancePercentage, other.costVariancePercentage) + && java.util.Objects.equals(this.rootCauseDetail, other.rootCauseDetail) + && java.util.Objects.equals(this.feedbackResponse, other.feedbackResponse) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.costAnomalyName == null ? 43 : this.costAnomalyName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.costMonitorId == null ? 43 : this.costMonitorId.hashCode()); + result = + (result * PRIME) + + (this.costMonitorName == null ? 43 : this.costMonitorName.hashCode()); + result = + (result * PRIME) + + (this.costMonitorType == null ? 43 : this.costMonitorType.hashCode()); + result = + (result * PRIME) + + (this.targetResourceFilter == null + ? 43 + : this.targetResourceFilter.hashCode()); + result = + (result * PRIME) + + (this.timeAnomalyEventDate == null + ? 43 + : this.timeAnomalyEventDate.hashCode()); + result = (result * PRIME) + (this.costImpact == null ? 43 : this.costImpact.hashCode()); + result = + (result * PRIME) + + (this.costVariancePercentage == null + ? 43 + : this.costVariancePercentage.hashCode()); + result = + (result * PRIME) + + (this.rootCauseDetail == null ? 43 : this.rootCauseDetail.hashCode()); + result = + (result * PRIME) + + (this.feedbackResponse == null ? 43 : this.feedbackResponse.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventAnalyticCollection.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventAnalyticCollection.java new file mode 100644 index 00000000000..248373b5d17 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventAnalyticCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * Results of a CostAnomalyEventAnalytics search. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyEventAnalyticCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyEventAnalyticCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CostAnomalyEventAnalyticCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of CostAnomalyEvent Analytic summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of CostAnomalyEvent Analytic summary. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CostAnomalyEventAnalyticCollection build() { + CostAnomalyEventAnalyticCollection model = + new CostAnomalyEventAnalyticCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyEventAnalyticCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of CostAnomalyEvent Analytic summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of CostAnomalyEvent Analytic summary. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAnomalyEventAnalyticCollection("); + 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 CostAnomalyEventAnalyticCollection)) { + return false; + } + + CostAnomalyEventAnalyticCollection other = (CostAnomalyEventAnalyticCollection) 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-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventAnalyticSummary.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventAnalyticSummary.java new file mode 100644 index 00000000000..ad7ce3c68ed --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventAnalyticSummary.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAnomalyEventAnalyticSummary. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyEventAnalyticSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyEventAnalyticSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"count", "averageCostImpact", "averageCostVariance"}) + public CostAnomalyEventAnalyticSummary( + Integer count, Double averageCostImpact, Double averageCostVariance) { + super(); + this.count = count; + this.averageCostImpact = averageCostImpact; + this.averageCostVariance = averageCostVariance; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of cost anomaly events in the given time period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private Integer count; + + /** + * The number of cost anomaly events in the given time period. + * @param count the value to set + * @return this builder + **/ + public Builder count(Integer count) { + this.count = count; + this.__explicitlySet__.add("count"); + return this; + } + /** + * The average cost impact of the anomaly events in the given time period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("averageCostImpact") + private Double averageCostImpact; + + /** + * The average cost impact of the anomaly events in the given time period. + * @param averageCostImpact the value to set + * @return this builder + **/ + public Builder averageCostImpact(Double averageCostImpact) { + this.averageCostImpact = averageCostImpact; + this.__explicitlySet__.add("averageCostImpact"); + return this; + } + /** + * The average cost variance of the anomaly events in the given time period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("averageCostVariance") + private Double averageCostVariance; + + /** + * The average cost variance of the anomaly events in the given time period. + * @param averageCostVariance the value to set + * @return this builder + **/ + public Builder averageCostVariance(Double averageCostVariance) { + this.averageCostVariance = averageCostVariance; + this.__explicitlySet__.add("averageCostVariance"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CostAnomalyEventAnalyticSummary build() { + CostAnomalyEventAnalyticSummary model = + new CostAnomalyEventAnalyticSummary( + this.count, this.averageCostImpact, this.averageCostVariance); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyEventAnalyticSummary model) { + if (model.wasPropertyExplicitlySet("count")) { + this.count(model.getCount()); + } + if (model.wasPropertyExplicitlySet("averageCostImpact")) { + this.averageCostImpact(model.getAverageCostImpact()); + } + if (model.wasPropertyExplicitlySet("averageCostVariance")) { + this.averageCostVariance(model.getAverageCostVariance()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The number of cost anomaly events in the given time period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private final Integer count; + + /** + * The number of cost anomaly events in the given time period. + * @return the value + **/ + public Integer getCount() { + return count; + } + + /** + * The average cost impact of the anomaly events in the given time period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("averageCostImpact") + private final Double averageCostImpact; + + /** + * The average cost impact of the anomaly events in the given time period. + * @return the value + **/ + public Double getAverageCostImpact() { + return averageCostImpact; + } + + /** + * The average cost variance of the anomaly events in the given time period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("averageCostVariance") + private final Double averageCostVariance; + + /** + * The average cost variance of the anomaly events in the given time period. + * @return the value + **/ + public Double getAverageCostVariance() { + return averageCostVariance; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAnomalyEventAnalyticSummary("); + sb.append("super=").append(super.toString()); + sb.append("count=").append(String.valueOf(this.count)); + sb.append(", averageCostImpact=").append(String.valueOf(this.averageCostImpact)); + sb.append(", averageCostVariance=").append(String.valueOf(this.averageCostVariance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAnomalyEventAnalyticSummary)) { + return false; + } + + CostAnomalyEventAnalyticSummary other = (CostAnomalyEventAnalyticSummary) o; + return java.util.Objects.equals(this.count, other.count) + && java.util.Objects.equals(this.averageCostImpact, other.averageCostImpact) + && java.util.Objects.equals(this.averageCostVariance, other.averageCostVariance) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.count == null ? 43 : this.count.hashCode()); + result = + (result * PRIME) + + (this.averageCostImpact == null ? 43 : this.averageCostImpact.hashCode()); + result = + (result * PRIME) + + (this.averageCostVariance == null + ? 43 + : this.averageCostVariance.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventCollection.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventCollection.java new file mode 100644 index 00000000000..8d430ce6d62 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * Results of a costAnomalyEvent search. Contains both CostAnomalyEventSummary items and other data. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyEventCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyEventCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CostAnomalyEventCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of CostAnomalyMonitorSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of CostAnomalyMonitorSummary 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 CostAnomalyEventCollection build() { + CostAnomalyEventCollection model = new CostAnomalyEventCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyEventCollection 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 CostAnomalyMonitorSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of CostAnomalyMonitorSummary 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("CostAnomalyEventCollection("); + 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 CostAnomalyEventCollection)) { + return false; + } + + CostAnomalyEventCollection other = (CostAnomalyEventCollection) 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-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventSummary.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventSummary.java new file mode 100644 index 00000000000..8ad6c1ea7b9 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyEventSummary.java @@ -0,0 +1,753 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAnomalyEvent. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyEventSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyEventSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "costAnomalyName", + "compartmentId", + "costMonitorId", + "costMonitorName", + "costMonitorType", + "lifecycleState", + "targetResourceFilter", + "rootCauseDetail", + "timeAnomalyEventDate", + "costImpact", + "costVariancePercentage", + "definedTags", + "freeformTags", + "systemTags" + }) + public CostAnomalyEventSummary( + String id, + String costAnomalyName, + String compartmentId, + String costMonitorId, + String costMonitorName, + MonitorType costMonitorType, + CostAnomalyEvent.LifecycleState lifecycleState, + TargetResourceFilter targetResourceFilter, + RootCauseDetail rootCauseDetail, + java.util.Date timeAnomalyEventDate, + Double costImpact, + Double costVariancePercentage, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.costAnomalyName = costAnomalyName; + this.compartmentId = compartmentId; + this.costMonitorId = costMonitorId; + this.costMonitorName = costMonitorName; + this.costMonitorType = costMonitorType; + this.lifecycleState = lifecycleState; + this.targetResourceFilter = targetResourceFilter; + this.rootCauseDetail = rootCauseDetail; + this.timeAnomalyEventDate = timeAnomalyEventDate; + this.costImpact = costImpact; + this.costVariancePercentage = costVariancePercentage; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the Cost Anomaly Event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Cost Anomaly Event. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The name of the associated cost Anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAnomalyName") + private String costAnomalyName; + + /** + * The name of the associated cost Anomaly. + * @param costAnomalyName the value to set + * @return this builder + **/ + public Builder costAnomalyName(String costAnomalyName) { + this.costAnomalyName = costAnomalyName; + this.__explicitlySet__.add("costAnomalyName"); + return this; + } + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The 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 associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorId") + private String costMonitorId; + + /** + * The OCID of the associated cost monitor. + * @param costMonitorId the value to set + * @return this builder + **/ + public Builder costMonitorId(String costMonitorId) { + this.costMonitorId = costMonitorId; + this.__explicitlySet__.add("costMonitorId"); + return this; + } + /** + * The name of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorName") + private String costMonitorName; + + /** + * The name of the associated cost monitor. + * @param costMonitorName the value to set + * @return this builder + **/ + public Builder costMonitorName(String costMonitorName) { + this.costMonitorName = costMonitorName; + this.__explicitlySet__.add("costMonitorName"); + return this; + } + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorType") + private MonitorType costMonitorType; + + /** + * Type of cost monitor + * @param costMonitorType the value to set + * @return this builder + **/ + public Builder costMonitorType(MonitorType costMonitorType) { + this.costMonitorType = costMonitorType; + this.__explicitlySet__.add("costMonitorType"); + return this; + } + /** + * The current state of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private CostAnomalyEvent.LifecycleState lifecycleState; + + /** + * The current state of the cost anomaly event. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(CostAnomalyEvent.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private TargetResourceFilter targetResourceFilter; + + public Builder targetResourceFilter(TargetResourceFilter targetResourceFilter) { + this.targetResourceFilter = targetResourceFilter; + this.__explicitlySet__.add("targetResourceFilter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rootCauseDetail") + private RootCauseDetail rootCauseDetail; + + public Builder rootCauseDetail(RootCauseDetail rootCauseDetail) { + this.rootCauseDetail = rootCauseDetail; + this.__explicitlySet__.add("rootCauseDetail"); + return this; + } + /** + * The event date of the anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAnomalyEventDate") + private java.util.Date timeAnomalyEventDate; + + /** + * The event date of the anomaly event. + * @param timeAnomalyEventDate the value to set + * @return this builder + **/ + public Builder timeAnomalyEventDate(java.util.Date timeAnomalyEventDate) { + this.timeAnomalyEventDate = timeAnomalyEventDate; + this.__explicitlySet__.add("timeAnomalyEventDate"); + return this; + } + /** + * The cost impact of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costImpact") + private Double costImpact; + + /** + * The cost impact of the detected anomaly. + * @param costImpact the value to set + * @return this builder + **/ + public Builder costImpact(Double costImpact) { + this.costImpact = costImpact; + this.__explicitlySet__.add("costImpact"); + return this; + } + /** + * The cost variance percentage of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costVariancePercentage") + private Double costVariancePercentage; + + /** + * The cost variance percentage of the detected anomaly. + * @param costVariancePercentage the value to set + * @return this builder + **/ + public Builder costVariancePercentage(Double costVariancePercentage) { + this.costVariancePercentage = costVariancePercentage; + this.__explicitlySet__.add("costVariancePercentage"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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 CostAnomalyEventSummary build() { + CostAnomalyEventSummary model = + new CostAnomalyEventSummary( + this.id, + this.costAnomalyName, + this.compartmentId, + this.costMonitorId, + this.costMonitorName, + this.costMonitorType, + this.lifecycleState, + this.targetResourceFilter, + this.rootCauseDetail, + this.timeAnomalyEventDate, + this.costImpact, + this.costVariancePercentage, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyEventSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("costAnomalyName")) { + this.costAnomalyName(model.getCostAnomalyName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("costMonitorId")) { + this.costMonitorId(model.getCostMonitorId()); + } + if (model.wasPropertyExplicitlySet("costMonitorName")) { + this.costMonitorName(model.getCostMonitorName()); + } + if (model.wasPropertyExplicitlySet("costMonitorType")) { + this.costMonitorType(model.getCostMonitorType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("targetResourceFilter")) { + this.targetResourceFilter(model.getTargetResourceFilter()); + } + if (model.wasPropertyExplicitlySet("rootCauseDetail")) { + this.rootCauseDetail(model.getRootCauseDetail()); + } + if (model.wasPropertyExplicitlySet("timeAnomalyEventDate")) { + this.timeAnomalyEventDate(model.getTimeAnomalyEventDate()); + } + if (model.wasPropertyExplicitlySet("costImpact")) { + this.costImpact(model.getCostImpact()); + } + if (model.wasPropertyExplicitlySet("costVariancePercentage")) { + this.costVariancePercentage(model.getCostVariancePercentage()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the Cost Anomaly Event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Cost Anomaly Event. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The name of the associated cost Anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costAnomalyName") + private final String costAnomalyName; + + /** + * The name of the associated cost Anomaly. + * @return the value + **/ + public String getCostAnomalyName() { + return costAnomalyName; + } + + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The OCID of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorId") + private final String costMonitorId; + + /** + * The OCID of the associated cost monitor. + * @return the value + **/ + public String getCostMonitorId() { + return costMonitorId; + } + + /** + * The name of the associated cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorName") + private final String costMonitorName; + + /** + * The name of the associated cost monitor. + * @return the value + **/ + public String getCostMonitorName() { + return costMonitorName; + } + + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costMonitorType") + private final MonitorType costMonitorType; + + /** + * Type of cost monitor + * @return the value + **/ + public MonitorType getCostMonitorType() { + return costMonitorType; + } + + /** + * The current state of the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final CostAnomalyEvent.LifecycleState lifecycleState; + + /** + * The current state of the cost anomaly event. + * @return the value + **/ + public CostAnomalyEvent.LifecycleState getLifecycleState() { + return lifecycleState; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private final TargetResourceFilter targetResourceFilter; + + public TargetResourceFilter getTargetResourceFilter() { + return targetResourceFilter; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rootCauseDetail") + private final RootCauseDetail rootCauseDetail; + + public RootCauseDetail getRootCauseDetail() { + return rootCauseDetail; + } + + /** + * The event date of the anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAnomalyEventDate") + private final java.util.Date timeAnomalyEventDate; + + /** + * The event date of the anomaly event. + * @return the value + **/ + public java.util.Date getTimeAnomalyEventDate() { + return timeAnomalyEventDate; + } + + /** + * The cost impact of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costImpact") + private final Double costImpact; + + /** + * The cost impact of the detected anomaly. + * @return the value + **/ + public Double getCostImpact() { + return costImpact; + } + + /** + * The cost variance percentage of the detected anomaly. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("costVariancePercentage") + private final Double costVariancePercentage; + + /** + * The cost variance percentage of the detected anomaly. + * @return the value + **/ + public Double getCostVariancePercentage() { + return costVariancePercentage; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAnomalyEventSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", costAnomalyName=").append(String.valueOf(this.costAnomalyName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", costMonitorId=").append(String.valueOf(this.costMonitorId)); + sb.append(", costMonitorName=").append(String.valueOf(this.costMonitorName)); + sb.append(", costMonitorType=").append(String.valueOf(this.costMonitorType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", targetResourceFilter=").append(String.valueOf(this.targetResourceFilter)); + sb.append(", rootCauseDetail=").append(String.valueOf(this.rootCauseDetail)); + sb.append(", timeAnomalyEventDate=").append(String.valueOf(this.timeAnomalyEventDate)); + sb.append(", costImpact=").append(String.valueOf(this.costImpact)); + sb.append(", costVariancePercentage=").append(String.valueOf(this.costVariancePercentage)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAnomalyEventSummary)) { + return false; + } + + CostAnomalyEventSummary other = (CostAnomalyEventSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.costAnomalyName, other.costAnomalyName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.costMonitorId, other.costMonitorId) + && java.util.Objects.equals(this.costMonitorName, other.costMonitorName) + && java.util.Objects.equals(this.costMonitorType, other.costMonitorType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.targetResourceFilter, other.targetResourceFilter) + && java.util.Objects.equals(this.rootCauseDetail, other.rootCauseDetail) + && java.util.Objects.equals(this.timeAnomalyEventDate, other.timeAnomalyEventDate) + && java.util.Objects.equals(this.costImpact, other.costImpact) + && java.util.Objects.equals( + this.costVariancePercentage, other.costVariancePercentage) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.costAnomalyName == null ? 43 : this.costAnomalyName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.costMonitorId == null ? 43 : this.costMonitorId.hashCode()); + result = + (result * PRIME) + + (this.costMonitorName == null ? 43 : this.costMonitorName.hashCode()); + result = + (result * PRIME) + + (this.costMonitorType == null ? 43 : this.costMonitorType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.targetResourceFilter == null + ? 43 + : this.targetResourceFilter.hashCode()); + result = + (result * PRIME) + + (this.rootCauseDetail == null ? 43 : this.rootCauseDetail.hashCode()); + result = + (result * PRIME) + + (this.timeAnomalyEventDate == null + ? 43 + : this.timeAnomalyEventDate.hashCode()); + result = (result * PRIME) + (this.costImpact == null ? 43 : this.costImpact.hashCode()); + result = + (result * PRIME) + + (this.costVariancePercentage == null + ? 43 + : this.costVariancePercentage.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitor.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitor.java new file mode 100644 index 00000000000..4991edf850b --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitor.java @@ -0,0 +1,754 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAnomalyMonitor. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyMonitor.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyMonitor extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "type", + "description", + "lifecycleState", + "lifecycleDetails", + "targetResourceFilter", + "costAlertSubscriptionMap", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags" + }) + public CostAnomalyMonitor( + String id, + String compartmentId, + String name, + MonitorType type, + String description, + LifecycleState lifecycleState, + String lifecycleDetails, + TargetResourceFilter targetResourceFilter, + CostAlertSubscriptionMap costAlertSubscriptionMap, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.type = type; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.targetResourceFilter = targetResourceFilter; + this.costAlertSubscriptionMap = costAlertSubscriptionMap; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the Cost Anomaly Monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Cost Anomaly Monitor. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The 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 name of the cost anomaly monitor. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MonitorType type; + + /** + * Type of cost monitor + * @param type the value to set + * @return this builder + **/ + public Builder type(MonitorType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The description of the budget. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the budget. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the cost monitor. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current state details of the cost monitor. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The current state details of the cost monitor. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private TargetResourceFilter targetResourceFilter; + + public Builder targetResourceFilter(TargetResourceFilter targetResourceFilter) { + this.targetResourceFilter = targetResourceFilter; + this.__explicitlySet__.add("targetResourceFilter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionMap") + private CostAlertSubscriptionMap costAlertSubscriptionMap; + + public Builder costAlertSubscriptionMap(CostAlertSubscriptionMap costAlertSubscriptionMap) { + this.costAlertSubscriptionMap = costAlertSubscriptionMap; + this.__explicitlySet__.add("costAlertSubscriptionMap"); + return this; + } + /** + * The time that the cost monitor was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the cost monitor was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the cost monitor was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the cost monitor was last updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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 CostAnomalyMonitor build() { + CostAnomalyMonitor model = + new CostAnomalyMonitor( + this.id, + this.compartmentId, + this.name, + this.type, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.targetResourceFilter, + this.costAlertSubscriptionMap, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyMonitor model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("targetResourceFilter")) { + this.targetResourceFilter(model.getTargetResourceFilter()); + } + if (model.wasPropertyExplicitlySet("costAlertSubscriptionMap")) { + this.costAlertSubscriptionMap(model.getCostAlertSubscriptionMap()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the Cost Anomaly Monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Cost Anomaly Monitor. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final MonitorType type; + + /** + * Type of cost monitor + * @return the value + **/ + public MonitorType getType() { + return type; + } + + /** + * The description of the budget. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the budget. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current state of the cost monitor. + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the cost monitor. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current state details of the cost monitor. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The current state details of the cost monitor. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private final TargetResourceFilter targetResourceFilter; + + public TargetResourceFilter getTargetResourceFilter() { + return targetResourceFilter; + } + + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionMap") + private final CostAlertSubscriptionMap costAlertSubscriptionMap; + + public CostAlertSubscriptionMap getCostAlertSubscriptionMap() { + return costAlertSubscriptionMap; + } + + /** + * The time that the cost monitor was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the cost monitor was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the cost monitor was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the cost monitor was last updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAnomalyMonitor("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", targetResourceFilter=").append(String.valueOf(this.targetResourceFilter)); + sb.append(", costAlertSubscriptionMap=") + .append(String.valueOf(this.costAlertSubscriptionMap)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAnomalyMonitor)) { + return false; + } + + CostAnomalyMonitor other = (CostAnomalyMonitor) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.targetResourceFilter, other.targetResourceFilter) + && java.util.Objects.equals( + this.costAlertSubscriptionMap, other.costAlertSubscriptionMap) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.targetResourceFilter == null + ? 43 + : this.targetResourceFilter.hashCode()); + result = + (result * PRIME) + + (this.costAlertSubscriptionMap == null + ? 43 + : this.costAlertSubscriptionMap.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitorCollection.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitorCollection.java new file mode 100644 index 00000000000..c3bf5cd07f9 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitorCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * Results of a costAnomalyMonitor search. Contains both CostAnomalyMonitorSummary items and other data. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyMonitorCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyMonitorCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CostAnomalyMonitorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of CostAnomalyMonitorSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of CostAnomalyMonitorSummary 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 CostAnomalyMonitorCollection build() { + CostAnomalyMonitorCollection model = new CostAnomalyMonitorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyMonitorCollection 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 CostAnomalyMonitorSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of CostAnomalyMonitorSummary 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("CostAnomalyMonitorCollection("); + 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 CostAnomalyMonitorCollection)) { + return false; + } + + CostAnomalyMonitorCollection other = (CostAnomalyMonitorCollection) 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-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitorSummary.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitorSummary.java new file mode 100644 index 00000000000..d7e184be717 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CostAnomalyMonitorSummary.java @@ -0,0 +1,628 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * A CostAnomalyMonitor. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CostAnomalyMonitorSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CostAnomalyMonitorSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "type", + "description", + "lifecycleState", + "targetResourceFilter", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags" + }) + public CostAnomalyMonitorSummary( + String id, + String compartmentId, + String name, + MonitorType type, + String description, + CostAnomalyMonitor.LifecycleState lifecycleState, + TargetResourceFilter targetResourceFilter, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.type = type; + this.description = description; + this.lifecycleState = lifecycleState; + this.targetResourceFilter = targetResourceFilter; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the Cost Anomaly Monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Cost Anomaly Monitor. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The 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 name of the cost anomaly monitor. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MonitorType type; + + /** + * Type of cost monitor + * @param type the value to set + * @return this builder + **/ + public Builder type(MonitorType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The description of the budget. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the budget. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private CostAnomalyMonitor.LifecycleState lifecycleState; + + /** + * The current state of the cost monitor. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(CostAnomalyMonitor.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private TargetResourceFilter targetResourceFilter; + + public Builder targetResourceFilter(TargetResourceFilter targetResourceFilter) { + this.targetResourceFilter = targetResourceFilter; + this.__explicitlySet__.add("targetResourceFilter"); + return this; + } + /** + * The time that the cost monitor was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the cost monitor was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the cost monitor was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the cost monitor was last updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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 CostAnomalyMonitorSummary build() { + CostAnomalyMonitorSummary model = + new CostAnomalyMonitorSummary( + this.id, + this.compartmentId, + this.name, + this.type, + this.description, + this.lifecycleState, + this.targetResourceFilter, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CostAnomalyMonitorSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("targetResourceFilter")) { + this.targetResourceFilter(model.getTargetResourceFilter()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the Cost Anomaly Monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Cost Anomaly Monitor. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Type of cost monitor + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final MonitorType type; + + /** + * Type of cost monitor + * @return the value + **/ + public MonitorType getType() { + return type; + } + + /** + * The description of the budget. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the budget. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current state of the cost monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final CostAnomalyMonitor.LifecycleState lifecycleState; + + /** + * The current state of the cost monitor. + * @return the value + **/ + public CostAnomalyMonitor.LifecycleState getLifecycleState() { + return lifecycleState; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private final TargetResourceFilter targetResourceFilter; + + public TargetResourceFilter getTargetResourceFilter() { + return targetResourceFilter; + } + + /** + * The time that the cost monitor was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the cost monitor was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the cost monitor was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the cost monitor was last updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * 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.oracle.com/iaas/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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CostAnomalyMonitorSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", targetResourceFilter=").append(String.valueOf(this.targetResourceFilter)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CostAnomalyMonitorSummary)) { + return false; + } + + CostAnomalyMonitorSummary other = (CostAnomalyMonitorSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.targetResourceFilter, other.targetResourceFilter) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.targetResourceFilter == null + ? 43 + : this.targetResourceFilter.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CreateCostAlertSubscriptionDetails.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CreateCostAlertSubscriptionDetails.java new file mode 100644 index 00000000000..b44eebb0cd3 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CreateCostAlertSubscriptionDetails.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The create CostAlertSubscriptionDetails details. + * The clients should pass compartmentId where the resource should belong, description and channels. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCostAlertSubscriptionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateCostAlertSubscriptionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "name", + "description", + "channels", + "definedTags", + "freeformTags" + }) + public CreateCostAlertSubscriptionDetails( + String compartmentId, + String name, + String description, + String channels, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.compartmentId = compartmentId; + this.name = name; + this.description = description; + this.channels = channels; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The 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 name of the cost alert subscription. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + * @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 the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the cost alert subscription. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The notification channels string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channels") + private String channels; + + /** + * The notification channels string. + * @param channels the value to set + * @return this builder + **/ + public Builder channels(String channels) { + this.channels = channels; + this.__explicitlySet__.add("channels"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCostAlertSubscriptionDetails build() { + CreateCostAlertSubscriptionDetails model = + new CreateCostAlertSubscriptionDetails( + this.compartmentId, + this.name, + this.description, + this.channels, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCostAlertSubscriptionDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("channels")) { + this.channels(model.getChannels()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the cost alert subscription. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The description of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the cost alert subscription. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The notification channels string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channels") + private final String channels; + + /** + * The notification channels string. + * @return the value + **/ + public String getChannels() { + return channels; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCostAlertSubscriptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", channels=").append(String.valueOf(this.channels)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCostAlertSubscriptionDetails)) { + return false; + } + + CreateCostAlertSubscriptionDetails other = (CreateCostAlertSubscriptionDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.channels, other.channels) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.channels == null ? 43 : this.channels.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CreateCostAnomalyMonitorDetails.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CreateCostAnomalyMonitorDetails.java new file mode 100644 index 00000000000..45e26af2b4c --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/CreateCostAnomalyMonitorDetails.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The create CostAnomalyMonitor details. + * The clients should pass ocid of the compartmentId for the monitor resource to be created. tenantIdFilter and resourceFilter + * targets resources to monitor in a given tenancy. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCostAnomalyMonitorDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateCostAnomalyMonitorDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "name", + "description", + "targetResourceFilter", + "costAlertSubscriptionMap", + "definedTags", + "freeformTags" + }) + public CreateCostAnomalyMonitorDetails( + String compartmentId, + String name, + String description, + TargetResourceFilter targetResourceFilter, + CostAlertSubscriptionMap costAlertSubscriptionMap, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.compartmentId = compartmentId; + this.name = name; + this.description = description; + this.targetResourceFilter = targetResourceFilter; + this.costAlertSubscriptionMap = costAlertSubscriptionMap; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The 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 name of the cost anomaly monitor. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + * @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 the cost anomaly monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the cost anomaly monitor. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private TargetResourceFilter targetResourceFilter; + + public Builder targetResourceFilter(TargetResourceFilter targetResourceFilter) { + this.targetResourceFilter = targetResourceFilter; + this.__explicitlySet__.add("targetResourceFilter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionMap") + private CostAlertSubscriptionMap costAlertSubscriptionMap; + + public Builder costAlertSubscriptionMap(CostAlertSubscriptionMap costAlertSubscriptionMap) { + this.costAlertSubscriptionMap = costAlertSubscriptionMap; + this.__explicitlySet__.add("costAlertSubscriptionMap"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCostAnomalyMonitorDetails build() { + CreateCostAnomalyMonitorDetails model = + new CreateCostAnomalyMonitorDetails( + this.compartmentId, + this.name, + this.description, + this.targetResourceFilter, + this.costAlertSubscriptionMap, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCostAnomalyMonitorDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("targetResourceFilter")) { + this.targetResourceFilter(model.getTargetResourceFilter()); + } + if (model.wasPropertyExplicitlySet("costAlertSubscriptionMap")) { + this.costAlertSubscriptionMap(model.getCostAlertSubscriptionMap()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the cost anomaly monitor. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The description of the cost anomaly monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the cost anomaly monitor. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceFilter") + private final TargetResourceFilter targetResourceFilter; + + public TargetResourceFilter getTargetResourceFilter() { + return targetResourceFilter; + } + + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionMap") + private final CostAlertSubscriptionMap costAlertSubscriptionMap; + + public CostAlertSubscriptionMap getCostAlertSubscriptionMap() { + return costAlertSubscriptionMap; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCostAnomalyMonitorDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", targetResourceFilter=").append(String.valueOf(this.targetResourceFilter)); + sb.append(", costAlertSubscriptionMap=") + .append(String.valueOf(this.costAlertSubscriptionMap)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCostAnomalyMonitorDetails)) { + return false; + } + + CreateCostAnomalyMonitorDetails other = (CreateCostAnomalyMonitorDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.targetResourceFilter, other.targetResourceFilter) + && java.util.Objects.equals( + this.costAlertSubscriptionMap, other.costAlertSubscriptionMap) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.targetResourceFilter == null + ? 43 + : this.targetResourceFilter.hashCode()); + result = + (result * PRIME) + + (this.costAlertSubscriptionMap == null + ? 43 + : this.costAlertSubscriptionMap.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/Dimension.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/Dimension.java new file mode 100644 index 00000000000..5e9cc1b1743 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/Dimension.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The dimension used for filtering. Available dimensions are: "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "tenantName, "tenantId", "platform", "region", "logicalAd", "resourceId". + * For example: + * {@code [{value: "COMPUTE", key: "service"}]} + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Dimension.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Dimension extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "value"}) + public Dimension(String key, String value) { + super(); + this.key = key; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The dimension key. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The dimension key. + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * The dimension value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The dimension value. + * @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 Dimension build() { + Dimension model = new Dimension(this.key, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Dimension model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + 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); + } + + /** + * The dimension key. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The dimension key. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * The dimension value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The dimension value. + * @return the value + **/ + public String 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("Dimension("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + 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 Dimension)) { + return false; + } + + Dimension other = (Dimension) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/MonitorType.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/MonitorType.java new file mode 100644 index 00000000000..e423dc8fbcb --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/MonitorType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The reset period for the budget. The valid value is DEFAULT,CUSTOM + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public enum MonitorType { + Default("DEFAULT"), + Custom("CUSTOM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MonitorType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MonitorType v : MonitorType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MonitorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MonitorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MonitorType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/RootCauseDetail.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/RootCauseDetail.java new file mode 100644 index 00000000000..1e4ede9ee18 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/RootCauseDetail.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The root cause details of the cost anomaly event. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RootCauseDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RootCauseDetail extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"value"}) + public RootCauseDetail(Object value) { + super(); + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The json object representing the root cause details of the anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * The json object representing the root cause details of the anomaly event. + * @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 RootCauseDetail build() { + RootCauseDetail model = new RootCauseDetail(this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RootCauseDetail model) { + 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); + } + + /** + * The json object representing the root cause details of the anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * The json object representing the root cause details of the anomaly event. + * @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("RootCauseDetail("); + sb.append("super=").append(super.toString()); + 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 RootCauseDetail)) { + return false; + } + + RootCauseDetail other = (RootCauseDetail) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortByForCostAd.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortByForCostAd.java new file mode 100644 index 00000000000..c8286888459 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortByForCostAd.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The field to sort costAd by. + * Default is timeCreated (DESC). + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public enum SortByForCostAd { + TimeCreated("timeCreated"), + Name("name"), + Id("id"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortByForCostAd v : SortByForCostAd.values()) { + map.put(v.getValue(), v); + } + } + + SortByForCostAd(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortByForCostAd create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortByForCostAd: " + key); + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortByForCostAnomalyEvent.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortByForCostAnomalyEvent.java new file mode 100644 index 00000000000..64368adae5e --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortByForCostAnomalyEvent.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The field to sort costAd by. + * Default is timeAnomalyEventDate (DESC). + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public enum SortByForCostAnomalyEvent { + TimeAnomalyEventDate("timeAnomalyEventDate"), + CostAnomalyName("costAnomalyName"), + Id("id"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortByForCostAnomalyEvent v : SortByForCostAnomalyEvent.values()) { + map.put(v.getValue(), v); + } + } + + SortByForCostAnomalyEvent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortByForCostAnomalyEvent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortByForCostAnomalyEvent: " + key); + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortOrder.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortOrder.java new file mode 100644 index 00000000000..de21ad007a3 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/SortOrder.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The sort order to use. Valid values are 'asc' or 'desc'. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +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-costad/src/main/java/com/oracle/bmc/costad/model/Tag.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/Tag.java new file mode 100644 index 00000000000..9d3ec760e72 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/Tag.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The tag used for filtering. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Tag.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Tag extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "key", "value"}) + public Tag(String namespace, String key, String value) { + super(); + this.namespace = namespace; + this.key = key; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The tag namespace. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The tag namespace. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The tag key. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The tag key. + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * The tag value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The tag value. + * @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 Tag build() { + Tag model = new Tag(this.namespace, this.key, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Tag model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + 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); + } + + /** + * The tag namespace. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The tag namespace. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * The tag key. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The tag key. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * The tag value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The tag value. + * @return the value + **/ + public String 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("Tag("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", key=").append(String.valueOf(this.key)); + 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 Tag)) { + return false; + } + + Tag other = (Tag) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/TargetResourceFilter.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/TargetResourceFilter.java new file mode 100644 index 00000000000..911e59b277f --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/TargetResourceFilter.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The filter object to target resources for cost monitor. + * Cost generated by one or more resources identified by this + * filter is monitored for anomalous deviations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetResourceFilter.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetResourceFilter extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"operator", "dimensions", "tags", "filters"}) + public TargetResourceFilter( + Operator operator, + java.util.List dimensions, + java.util.List tags, + java.util.List filters) { + super(); + this.operator = operator; + this.dimensions = dimensions; + this.tags = tags; + this.filters = filters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The filter operator. Example: 'AND', 'OR'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operator") + private Operator operator; + + /** + * The filter operator. Example: 'AND', 'OR'. + * @param operator the value to set + * @return this builder + **/ + public Builder operator(Operator operator) { + this.operator = operator; + this.__explicitlySet__.add("operator"); + return this; + } + /** + * The dimensions to filter on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private java.util.List dimensions; + + /** + * The dimensions to filter on. + * @param dimensions the value to set + * @return this builder + **/ + public Builder dimensions(java.util.List dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } + /** + * The tags to filter on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tags") + private java.util.List tags; + + /** + * The tags to filter on. + * @param tags the value to set + * @return this builder + **/ + public Builder tags(java.util.List tags) { + this.tags = tags; + this.__explicitlySet__.add("tags"); + return this; + } + /** + * The nested filter object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private java.util.List filters; + + /** + * The nested filter object. + * @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 TargetResourceFilter build() { + TargetResourceFilter model = + new TargetResourceFilter( + this.operator, this.dimensions, this.tags, this.filters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetResourceFilter model) { + if (model.wasPropertyExplicitlySet("operator")) { + this.operator(model.getOperator()); + } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } + if (model.wasPropertyExplicitlySet("tags")) { + this.tags(model.getTags()); + } + 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); + } + + /** + * The filter operator. Example: 'AND', 'OR'. + **/ + public enum Operator { + And("AND"), + Or("OR"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Operator.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operator v : Operator.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Operator(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operator create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Operator', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The filter operator. Example: 'AND', 'OR'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operator") + private final Operator operator; + + /** + * The filter operator. Example: 'AND', 'OR'. + * @return the value + **/ + public Operator getOperator() { + return operator; + } + + /** + * The dimensions to filter on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final java.util.List dimensions; + + /** + * The dimensions to filter on. + * @return the value + **/ + public java.util.List getDimensions() { + return dimensions; + } + + /** + * The tags to filter on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tags") + private final java.util.List tags; + + /** + * The tags to filter on. + * @return the value + **/ + public java.util.List getTags() { + return tags; + } + + /** + * The nested filter object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private final java.util.List filters; + + /** + * The nested filter object. + * @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("TargetResourceFilter("); + sb.append("super=").append(super.toString()); + sb.append("operator=").append(String.valueOf(this.operator)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); + sb.append(", tags=").append(String.valueOf(this.tags)); + 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 TargetResourceFilter)) { + return false; + } + + TargetResourceFilter other = (TargetResourceFilter) o; + return java.util.Objects.equals(this.operator, other.operator) + && java.util.Objects.equals(this.dimensions, other.dimensions) + && java.util.Objects.equals(this.tags, other.tags) + && java.util.Objects.equals(this.filters, other.filters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.operator == null ? 43 : this.operator.hashCode()); + result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); + result = (result * PRIME) + (this.tags == null ? 43 : this.tags.hashCode()); + result = (result * PRIME) + (this.filters == null ? 43 : this.filters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAlertSubscriptionDetails.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAlertSubscriptionDetails.java new file mode 100644 index 00000000000..fb6542c2f5b --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAlertSubscriptionDetails.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The update CostAlertSubscriptionDetails 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: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCostAlertSubscriptionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateCostAlertSubscriptionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"description", "channels", "definedTags", "freeformTags"}) + public UpdateCostAlertSubscriptionDetails( + String description, + String channels, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.description = description; + this.channels = channels; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The description of the cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the cost alert subscription. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The notification channels string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channels") + private String channels; + + /** + * The notification channels string. + * @param channels the value to set + * @return this builder + **/ + public Builder channels(String channels) { + this.channels = channels; + this.__explicitlySet__.add("channels"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateCostAlertSubscriptionDetails build() { + UpdateCostAlertSubscriptionDetails model = + new UpdateCostAlertSubscriptionDetails( + this.description, this.channels, this.definedTags, this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCostAlertSubscriptionDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("channels")) { + this.channels(model.getChannels()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 cost alert subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the cost alert subscription. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The notification channels string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channels") + private final String channels; + + /** + * The notification channels string. + * @return the value + **/ + public String getChannels() { + return channels; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateCostAlertSubscriptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", channels=").append(String.valueOf(this.channels)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCostAlertSubscriptionDetails)) { + return false; + } + + UpdateCostAlertSubscriptionDetails other = (UpdateCostAlertSubscriptionDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.channels, other.channels) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.channels == null ? 43 : this.channels.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAnomalyEventDetails.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAnomalyEventDetails.java new file mode 100644 index 00000000000..cb9e8e23df2 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAnomalyEventDetails.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * The update CostAnomalyEvent 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: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCostAnomalyEventDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateCostAnomalyEventDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feedbackResponse", "definedTags", "freeformTags"}) + public UpdateCostAnomalyEventDetails( + CostAnomalyEvent.FeedbackResponse feedbackResponse, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.feedbackResponse = feedbackResponse; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The feedback response for the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feedbackResponse") + private CostAnomalyEvent.FeedbackResponse feedbackResponse; + + /** + * The feedback response for the cost anomaly event. + * @param feedbackResponse the value to set + * @return this builder + **/ + public Builder feedbackResponse(CostAnomalyEvent.FeedbackResponse feedbackResponse) { + this.feedbackResponse = feedbackResponse; + this.__explicitlySet__.add("feedbackResponse"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateCostAnomalyEventDetails build() { + UpdateCostAnomalyEventDetails model = + new UpdateCostAnomalyEventDetails( + this.feedbackResponse, this.definedTags, this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCostAnomalyEventDetails model) { + if (model.wasPropertyExplicitlySet("feedbackResponse")) { + this.feedbackResponse(model.getFeedbackResponse()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The feedback response for the cost anomaly event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feedbackResponse") + private final CostAnomalyEvent.FeedbackResponse feedbackResponse; + + /** + * The feedback response for the cost anomaly event. + * @return the value + **/ + public CostAnomalyEvent.FeedbackResponse getFeedbackResponse() { + return feedbackResponse; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateCostAnomalyEventDetails("); + sb.append("super=").append(super.toString()); + sb.append("feedbackResponse=").append(String.valueOf(this.feedbackResponse)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCostAnomalyEventDetails)) { + return false; + } + + UpdateCostAnomalyEventDetails other = (UpdateCostAnomalyEventDetails) o; + return java.util.Objects.equals(this.feedbackResponse, other.feedbackResponse) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.feedbackResponse == null ? 43 : this.feedbackResponse.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAnomalyMonitorDetails.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAnomalyMonitorDetails.java new file mode 100644 index 00000000000..0b4cd473d11 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/model/UpdateCostAnomalyMonitorDetails.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.model; + +/** + * Update CostAnomalyMonitor 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: 20190111") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCostAnomalyMonitorDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateCostAnomalyMonitorDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "costAlertSubscriptionMap", + "definedTags", + "freeformTags" + }) + public UpdateCostAnomalyMonitorDetails( + String description, + CostAlertSubscriptionMap costAlertSubscriptionMap, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.description = description; + this.costAlertSubscriptionMap = costAlertSubscriptionMap; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The description of the cost anomaly monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the cost anomaly monitor. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionMap") + private CostAlertSubscriptionMap costAlertSubscriptionMap; + + public Builder costAlertSubscriptionMap(CostAlertSubscriptionMap costAlertSubscriptionMap) { + this.costAlertSubscriptionMap = costAlertSubscriptionMap; + this.__explicitlySet__.add("costAlertSubscriptionMap"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateCostAnomalyMonitorDetails build() { + UpdateCostAnomalyMonitorDetails model = + new UpdateCostAnomalyMonitorDetails( + this.description, + this.costAlertSubscriptionMap, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCostAnomalyMonitorDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("costAlertSubscriptionMap")) { + this.costAlertSubscriptionMap(model.getCostAlertSubscriptionMap()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 cost anomaly monitor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the cost anomaly monitor. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("costAlertSubscriptionMap") + private final CostAlertSubscriptionMap costAlertSubscriptionMap; + + public CostAlertSubscriptionMap getCostAlertSubscriptionMap() { + return costAlertSubscriptionMap; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateCostAnomalyMonitorDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", costAlertSubscriptionMap=") + .append(String.valueOf(this.costAlertSubscriptionMap)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCostAnomalyMonitorDetails)) { + return false; + } + + UpdateCostAnomalyMonitorDetails other = (UpdateCostAnomalyMonitorDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.costAlertSubscriptionMap, other.costAlertSubscriptionMap) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.costAlertSubscriptionMap == null + ? 43 + : this.costAlertSubscriptionMap.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/CreateCostAlertSubscriptionRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/CreateCostAlertSubscriptionRequest.java new file mode 100644 index 00000000000..dcfca92d5e6 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/CreateCostAlertSubscriptionRequest.java @@ -0,0 +1,285 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use CreateCostAlertSubscriptionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CreateCostAlertSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails> { + + /** + * Details for the new subscription. + */ + private com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails + createCostAlertSubscriptionDetails; + + /** + * Details for the new subscription. + */ + public com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails + getCreateCostAlertSubscriptionDetails() { + return createCostAlertSubscriptionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails getBody$() { + return createCostAlertSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateCostAlertSubscriptionRequest, + com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new subscription. + */ + private com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails + createCostAlertSubscriptionDetails = null; + + /** + * Details for the new subscription. + * @param createCostAlertSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder createCostAlertSubscriptionDetails( + com.oracle.bmc.costad.model.CreateCostAlertSubscriptionDetails + createCostAlertSubscriptionDetails) { + this.createCostAlertSubscriptionDetails = createCostAlertSubscriptionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCostAlertSubscriptionRequest o) { + createCostAlertSubscriptionDetails(o.getCreateCostAlertSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateCostAlertSubscriptionRequest 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 CreateCostAlertSubscriptionRequest + */ + public CreateCostAlertSubscriptionRequest build() { + CreateCostAlertSubscriptionRequest 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.costad.model.CreateCostAlertSubscriptionDetails body) { + createCostAlertSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of CreateCostAlertSubscriptionRequest 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 CreateCostAlertSubscriptionRequest + */ + public CreateCostAlertSubscriptionRequest buildWithoutInvocationCallback() { + CreateCostAlertSubscriptionRequest request = new CreateCostAlertSubscriptionRequest(); + request.createCostAlertSubscriptionDetails = createCostAlertSubscriptionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateCostAlertSubscriptionRequest(createCostAlertSubscriptionDetails, 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() + .createCostAlertSubscriptionDetails(createCostAlertSubscriptionDetails) + .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(",createCostAlertSubscriptionDetails=") + .append(String.valueOf(this.createCostAlertSubscriptionDetails)); + 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 CreateCostAlertSubscriptionRequest)) { + return false; + } + + CreateCostAlertSubscriptionRequest other = (CreateCostAlertSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createCostAlertSubscriptionDetails, + other.createCostAlertSubscriptionDetails) + && 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.createCostAlertSubscriptionDetails == null + ? 43 + : this.createCostAlertSubscriptionDetails.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-costad/src/main/java/com/oracle/bmc/costad/requests/CreateCostAnomalyMonitorRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/CreateCostAnomalyMonitorRequest.java new file mode 100644 index 00000000000..97e8288bfab --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/CreateCostAnomalyMonitorRequest.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use CreateCostAnomalyMonitorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CreateCostAnomalyMonitorRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails> { + + /** + * Details for the new monitor. + */ + private com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails + createCostAnomalyMonitorDetails; + + /** + * Details for the new monitor. + */ + public com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails + getCreateCostAnomalyMonitorDetails() { + return createCostAnomalyMonitorDetails; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails getBody$() { + return createCostAnomalyMonitorDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateCostAnomalyMonitorRequest, + com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new monitor. + */ + private com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails + createCostAnomalyMonitorDetails = null; + + /** + * Details for the new monitor. + * @param createCostAnomalyMonitorDetails the value to set + * @return this builder instance + */ + public Builder createCostAnomalyMonitorDetails( + com.oracle.bmc.costad.model.CreateCostAnomalyMonitorDetails + createCostAnomalyMonitorDetails) { + this.createCostAnomalyMonitorDetails = createCostAnomalyMonitorDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCostAnomalyMonitorRequest o) { + createCostAnomalyMonitorDetails(o.getCreateCostAnomalyMonitorDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateCostAnomalyMonitorRequest 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 CreateCostAnomalyMonitorRequest + */ + public CreateCostAnomalyMonitorRequest build() { + CreateCostAnomalyMonitorRequest 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.costad.model.CreateCostAnomalyMonitorDetails body) { + createCostAnomalyMonitorDetails(body); + return this; + } + + /** + * Build the instance of CreateCostAnomalyMonitorRequest 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 CreateCostAnomalyMonitorRequest + */ + public CreateCostAnomalyMonitorRequest buildWithoutInvocationCallback() { + CreateCostAnomalyMonitorRequest request = new CreateCostAnomalyMonitorRequest(); + request.createCostAnomalyMonitorDetails = createCostAnomalyMonitorDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateCostAnomalyMonitorRequest(createCostAnomalyMonitorDetails, 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() + .createCostAnomalyMonitorDetails(createCostAnomalyMonitorDetails) + .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(",createCostAnomalyMonitorDetails=") + .append(String.valueOf(this.createCostAnomalyMonitorDetails)); + 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 CreateCostAnomalyMonitorRequest)) { + return false; + } + + CreateCostAnomalyMonitorRequest other = (CreateCostAnomalyMonitorRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createCostAnomalyMonitorDetails, other.createCostAnomalyMonitorDetails) + && 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.createCostAnomalyMonitorDetails == null + ? 43 + : this.createCostAnomalyMonitorDetails.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-costad/src/main/java/com/oracle/bmc/costad/requests/DeleteCostAlertSubscriptionRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/DeleteCostAlertSubscriptionRequest.java new file mode 100644 index 00000000000..a79a8224c45 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/DeleteCostAlertSubscriptionRequest.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use DeleteCostAlertSubscriptionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DeleteCostAlertSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAlertSubscription OCID. + */ + private String costAlertSubscriptionId; + + /** + * The unique costAlertSubscription OCID. + */ + public String getCostAlertSubscriptionId() { + return costAlertSubscriptionId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCostAlertSubscriptionRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAlertSubscription OCID. + */ + private String costAlertSubscriptionId = null; + + /** + * The unique costAlertSubscription OCID. + * @param costAlertSubscriptionId the value to set + * @return this builder instance + */ + public Builder costAlertSubscriptionId(String costAlertSubscriptionId) { + this.costAlertSubscriptionId = costAlertSubscriptionId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCostAlertSubscriptionRequest o) { + costAlertSubscriptionId(o.getCostAlertSubscriptionId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCostAlertSubscriptionRequest 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 DeleteCostAlertSubscriptionRequest + */ + public DeleteCostAlertSubscriptionRequest build() { + DeleteCostAlertSubscriptionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteCostAlertSubscriptionRequest 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 DeleteCostAlertSubscriptionRequest + */ + public DeleteCostAlertSubscriptionRequest buildWithoutInvocationCallback() { + DeleteCostAlertSubscriptionRequest request = new DeleteCostAlertSubscriptionRequest(); + request.costAlertSubscriptionId = costAlertSubscriptionId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteCostAlertSubscriptionRequest(costAlertSubscriptionId, 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() + .costAlertSubscriptionId(costAlertSubscriptionId) + .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(",costAlertSubscriptionId=").append(String.valueOf(this.costAlertSubscriptionId)); + 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 DeleteCostAlertSubscriptionRequest)) { + return false; + } + + DeleteCostAlertSubscriptionRequest other = (DeleteCostAlertSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.costAlertSubscriptionId, other.costAlertSubscriptionId) + && 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.costAlertSubscriptionId == null + ? 43 + : this.costAlertSubscriptionId.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-costad/src/main/java/com/oracle/bmc/costad/requests/DeleteCostAnomalyMonitorRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/DeleteCostAnomalyMonitorRequest.java new file mode 100644 index 00000000000..4b649e89f2a --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/DeleteCostAnomalyMonitorRequest.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use DeleteCostAnomalyMonitorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DeleteCostAnomalyMonitorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId; + + /** + * The unique costAnomalyMonitor OCID. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCostAnomalyMonitorRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId = null; + + /** + * The unique costAnomalyMonitor OCID. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCostAnomalyMonitorRequest o) { + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCostAnomalyMonitorRequest 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 DeleteCostAnomalyMonitorRequest + */ + public DeleteCostAnomalyMonitorRequest build() { + DeleteCostAnomalyMonitorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteCostAnomalyMonitorRequest 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 DeleteCostAnomalyMonitorRequest + */ + public DeleteCostAnomalyMonitorRequest buildWithoutInvocationCallback() { + DeleteCostAnomalyMonitorRequest request = new DeleteCostAnomalyMonitorRequest(); + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteCostAnomalyMonitorRequest(costAnomalyMonitorId, 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() + .costAnomalyMonitorId(costAnomalyMonitorId) + .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(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + 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 DeleteCostAnomalyMonitorRequest)) { + return false; + } + + DeleteCostAnomalyMonitorRequest other = (DeleteCostAnomalyMonitorRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && 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.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.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-costad/src/main/java/com/oracle/bmc/costad/requests/DisableCostAnomalyMonitorRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/DisableCostAnomalyMonitorRequest.java new file mode 100644 index 00000000000..3963e4ada37 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/DisableCostAnomalyMonitorRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use DisableCostAnomalyMonitorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DisableCostAnomalyMonitorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId; + + /** + * The unique costAnomalyMonitor OCID. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableCostAnomalyMonitorRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId = null; + + /** + * The unique costAnomalyMonitor OCID. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DisableCostAnomalyMonitorRequest o) { + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableCostAnomalyMonitorRequest 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 DisableCostAnomalyMonitorRequest + */ + public DisableCostAnomalyMonitorRequest build() { + DisableCostAnomalyMonitorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DisableCostAnomalyMonitorRequest 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 DisableCostAnomalyMonitorRequest + */ + public DisableCostAnomalyMonitorRequest buildWithoutInvocationCallback() { + DisableCostAnomalyMonitorRequest request = new DisableCostAnomalyMonitorRequest(); + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new DisableCostAnomalyMonitorRequest(costAnomalyMonitorId, 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() + .costAnomalyMonitorId(costAnomalyMonitorId) + .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(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + 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 DisableCostAnomalyMonitorRequest)) { + return false; + } + + DisableCostAnomalyMonitorRequest other = (DisableCostAnomalyMonitorRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && 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.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.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-costad/src/main/java/com/oracle/bmc/costad/requests/EnableCostAnomalyMonitorRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/EnableCostAnomalyMonitorRequest.java new file mode 100644 index 00000000000..31d3d37499f --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/EnableCostAnomalyMonitorRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use EnableCostAnomalyMonitorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class EnableCostAnomalyMonitorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId; + + /** + * The unique costAnomalyMonitor OCID. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableCostAnomalyMonitorRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId = null; + + /** + * The unique costAnomalyMonitor OCID. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableCostAnomalyMonitorRequest o) { + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableCostAnomalyMonitorRequest 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 EnableCostAnomalyMonitorRequest + */ + public EnableCostAnomalyMonitorRequest build() { + EnableCostAnomalyMonitorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of EnableCostAnomalyMonitorRequest 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 EnableCostAnomalyMonitorRequest + */ + public EnableCostAnomalyMonitorRequest buildWithoutInvocationCallback() { + EnableCostAnomalyMonitorRequest request = new EnableCostAnomalyMonitorRequest(); + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new EnableCostAnomalyMonitorRequest(costAnomalyMonitorId, 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() + .costAnomalyMonitorId(costAnomalyMonitorId) + .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(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + 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 EnableCostAnomalyMonitorRequest)) { + return false; + } + + EnableCostAnomalyMonitorRequest other = (EnableCostAnomalyMonitorRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && 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.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.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-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAlertSubscriptionRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAlertSubscriptionRequest.java new file mode 100644 index 00000000000..f6f9ccee6d1 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAlertSubscriptionRequest.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use GetCostAlertSubscriptionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAlertSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAlertSubscription OCID. + */ + private String costAlertSubscriptionId; + + /** + * The unique costAlertSubscription OCID. + */ + public String getCostAlertSubscriptionId() { + return costAlertSubscriptionId; + } + /** + * 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< + GetCostAlertSubscriptionRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAlertSubscription OCID. + */ + private String costAlertSubscriptionId = null; + + /** + * The unique costAlertSubscription OCID. + * @param costAlertSubscriptionId the value to set + * @return this builder instance + */ + public Builder costAlertSubscriptionId(String costAlertSubscriptionId) { + this.costAlertSubscriptionId = costAlertSubscriptionId; + 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(GetCostAlertSubscriptionRequest o) { + costAlertSubscriptionId(o.getCostAlertSubscriptionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCostAlertSubscriptionRequest 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 GetCostAlertSubscriptionRequest + */ + public GetCostAlertSubscriptionRequest build() { + GetCostAlertSubscriptionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCostAlertSubscriptionRequest 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 GetCostAlertSubscriptionRequest + */ + public GetCostAlertSubscriptionRequest buildWithoutInvocationCallback() { + GetCostAlertSubscriptionRequest request = new GetCostAlertSubscriptionRequest(); + request.costAlertSubscriptionId = costAlertSubscriptionId; + request.opcRequestId = opcRequestId; + return request; + // new GetCostAlertSubscriptionRequest(costAlertSubscriptionId, 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() + .costAlertSubscriptionId(costAlertSubscriptionId) + .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(",costAlertSubscriptionId=").append(String.valueOf(this.costAlertSubscriptionId)); + 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 GetCostAlertSubscriptionRequest)) { + return false; + } + + GetCostAlertSubscriptionRequest other = (GetCostAlertSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.costAlertSubscriptionId, other.costAlertSubscriptionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.costAlertSubscriptionId == null + ? 43 + : this.costAlertSubscriptionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAnomalyEventRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAnomalyEventRequest.java new file mode 100644 index 00000000000..0bbf916a117 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAnomalyEventRequest.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use GetCostAnomalyEventRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAnomalyEventRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAnomalyEventId OCID. + */ + private String costAnomalyEventId; + + /** + * The unique costAnomalyEventId OCID. + */ + public String getCostAnomalyEventId() { + return costAnomalyEventId; + } + /** + * 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< + GetCostAnomalyEventRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyEventId OCID. + */ + private String costAnomalyEventId = null; + + /** + * The unique costAnomalyEventId OCID. + * @param costAnomalyEventId the value to set + * @return this builder instance + */ + public Builder costAnomalyEventId(String costAnomalyEventId) { + this.costAnomalyEventId = costAnomalyEventId; + 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(GetCostAnomalyEventRequest o) { + costAnomalyEventId(o.getCostAnomalyEventId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCostAnomalyEventRequest 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 GetCostAnomalyEventRequest + */ + public GetCostAnomalyEventRequest build() { + GetCostAnomalyEventRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCostAnomalyEventRequest 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 GetCostAnomalyEventRequest + */ + public GetCostAnomalyEventRequest buildWithoutInvocationCallback() { + GetCostAnomalyEventRequest request = new GetCostAnomalyEventRequest(); + request.costAnomalyEventId = costAnomalyEventId; + request.opcRequestId = opcRequestId; + return request; + // new GetCostAnomalyEventRequest(costAnomalyEventId, 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().costAnomalyEventId(costAnomalyEventId).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(",costAnomalyEventId=").append(String.valueOf(this.costAnomalyEventId)); + 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 GetCostAnomalyEventRequest)) { + return false; + } + + GetCostAnomalyEventRequest other = (GetCostAnomalyEventRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyEventId, other.costAnomalyEventId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.costAnomalyEventId == null + ? 43 + : this.costAnomalyEventId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAnomalyMonitorRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAnomalyMonitorRequest.java new file mode 100644 index 00000000000..a8ba170ce83 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/GetCostAnomalyMonitorRequest.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use GetCostAnomalyMonitorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAnomalyMonitorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId; + + /** + * The unique costAnomalyMonitor OCID. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * 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< + GetCostAnomalyMonitorRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId = null; + + /** + * The unique costAnomalyMonitor OCID. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + 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(GetCostAnomalyMonitorRequest o) { + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCostAnomalyMonitorRequest 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 GetCostAnomalyMonitorRequest + */ + public GetCostAnomalyMonitorRequest build() { + GetCostAnomalyMonitorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCostAnomalyMonitorRequest 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 GetCostAnomalyMonitorRequest + */ + public GetCostAnomalyMonitorRequest buildWithoutInvocationCallback() { + GetCostAnomalyMonitorRequest request = new GetCostAnomalyMonitorRequest(); + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.opcRequestId = opcRequestId; + return request; + // new GetCostAnomalyMonitorRequest(costAnomalyMonitorId, 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().costAnomalyMonitorId(costAnomalyMonitorId).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(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + 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 GetCostAnomalyMonitorRequest)) { + return false; + } + + GetCostAnomalyMonitorRequest other = (GetCostAnomalyMonitorRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAlertSubscriptionsRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAlertSubscriptionsRequest.java new file mode 100644 index 00000000000..421fa5f0d82 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAlertSubscriptionsRequest.java @@ -0,0 +1,410 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use ListCostAlertSubscriptionsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAlertSubscriptionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.costad.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAd sortBy; + + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + */ + public com.oracle.bmc.costad.model.SortByForCostAd getSortBy() { + return sortBy; + } + /** + * Unique, non-changeable resource name. + * + */ + private String name; + + /** + * Unique, non-changeable resource name. + * + */ + public String getName() { + return name; + } + /** + * The current state of the cost alert subscription. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription.LifecycleState lifecycleState; + + /** + * The current state of the cost alert subscription. + */ + public com.oracle.bmc.costad.model.CostAlertSubscription.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * 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< + ListCostAlertSubscriptionsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.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.costad.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAd sortBy = null; + + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(com.oracle.bmc.costad.model.SortByForCostAd sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique, non-changeable resource name. + * + */ + private String name = null; + + /** + * Unique, non-changeable resource name. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The current state of the cost alert subscription. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription.LifecycleState lifecycleState = + null; + + /** + * The current state of the cost alert subscription. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.costad.model.CostAlertSubscription.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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(ListCostAlertSubscriptionsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCostAlertSubscriptionsRequest 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 ListCostAlertSubscriptionsRequest + */ + public ListCostAlertSubscriptionsRequest build() { + ListCostAlertSubscriptionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCostAlertSubscriptionsRequest 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 ListCostAlertSubscriptionsRequest + */ + public ListCostAlertSubscriptionsRequest buildWithoutInvocationCallback() { + ListCostAlertSubscriptionsRequest request = new ListCostAlertSubscriptionsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.name = name; + request.lifecycleState = lifecycleState; + request.opcRequestId = opcRequestId; + return request; + // new ListCostAlertSubscriptionsRequest(compartmentId, limit, page, sortOrder, sortBy, name, lifecycleState, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .name(name) + .lifecycleState(lifecycleState) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCostAlertSubscriptionsRequest)) { + return false; + } + + ListCostAlertSubscriptionsRequest other = (ListCostAlertSubscriptionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAnomalyEventsRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAnomalyEventsRequest.java new file mode 100644 index 00000000000..970c0042953 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAnomalyEventsRequest.java @@ -0,0 +1,637 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use ListCostAnomalyEventsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAnomalyEventsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.costad.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAnomalyEvent sortBy; + + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + */ + public com.oracle.bmc.costad.model.SortByForCostAnomalyEvent getSortBy() { + return sortBy; + } + /** + * Unique, non-changeable resource name. + * + */ + private String name; + + /** + * Unique, non-changeable resource name. + * + */ + public String getName() { + return name; + } + /** + * The cost monitor ocid. + */ + private String costAnomalyMonitorId; + + /** + * The cost monitor ocid. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * The target tenantId ocid filter param. + */ + private java.util.List targetTenantId; + + /** + * The target tenantId ocid filter param. + */ + public java.util.List getTargetTenantId() { + return targetTenantId; + } + /** + * startDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventStartDate; + + /** + * startDate for anomaly event date. + */ + public java.util.Date getTimeAnomalyEventStartDate() { + return timeAnomalyEventStartDate; + } + /** + * endDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventEndDate; + + /** + * endDate for anomaly event date. + */ + public java.util.Date getTimeAnomalyEventEndDate() { + return timeAnomalyEventEndDate; + } + /** + * region of the anomaly event. + */ + private java.util.List region; + + /** + * region of the anomaly event. + */ + public java.util.List getRegion() { + return region; + } + /** + * cost impact (absolute) of the anomaly event. + */ + private Double costImpact; + + /** + * cost impact (absolute) of the anomaly event. + */ + public Double getCostImpact() { + return costImpact; + } + /** + * cost impact (percentage) of the anomaly event. + */ + private Double costImpactPercentage; + + /** + * cost impact (percentage) of the anomaly event. + */ + public Double getCostImpactPercentage() { + return costImpactPercentage; + } + /** + * 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< + ListCostAnomalyEventsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.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.costad.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAnomalyEvent sortBy = null; + + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(com.oracle.bmc.costad.model.SortByForCostAnomalyEvent sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique, non-changeable resource name. + * + */ + private String name = null; + + /** + * Unique, non-changeable resource name. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The cost monitor ocid. + */ + private String costAnomalyMonitorId = null; + + /** + * The cost monitor ocid. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + return this; + } + + /** + * The target tenantId ocid filter param. + */ + private java.util.List targetTenantId = null; + + /** + * The target tenantId ocid filter param. + * @param targetTenantId the value to set + * @return this builder instance + */ + public Builder targetTenantId(java.util.List targetTenantId) { + this.targetTenantId = targetTenantId; + return this; + } + + /** + * Singular setter. The target tenantId ocid filter param. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetTenantId(String singularValue) { + return this.targetTenantId(java.util.Arrays.asList(singularValue)); + } + + /** + * startDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventStartDate = null; + + /** + * startDate for anomaly event date. + * @param timeAnomalyEventStartDate the value to set + * @return this builder instance + */ + public Builder timeAnomalyEventStartDate(java.util.Date timeAnomalyEventStartDate) { + this.timeAnomalyEventStartDate = timeAnomalyEventStartDate; + return this; + } + + /** + * endDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventEndDate = null; + + /** + * endDate for anomaly event date. + * @param timeAnomalyEventEndDate the value to set + * @return this builder instance + */ + public Builder timeAnomalyEventEndDate(java.util.Date timeAnomalyEventEndDate) { + this.timeAnomalyEventEndDate = timeAnomalyEventEndDate; + return this; + } + + /** + * region of the anomaly event. + */ + private java.util.List region = null; + + /** + * region of the anomaly event. + * @param region the value to set + * @return this builder instance + */ + public Builder region(java.util.List region) { + this.region = region; + return this; + } + + /** + * Singular setter. region of the anomaly event. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder region(String singularValue) { + return this.region(java.util.Arrays.asList(singularValue)); + } + + /** + * cost impact (absolute) of the anomaly event. + */ + private Double costImpact = null; + + /** + * cost impact (absolute) of the anomaly event. + * @param costImpact the value to set + * @return this builder instance + */ + public Builder costImpact(Double costImpact) { + this.costImpact = costImpact; + return this; + } + + /** + * cost impact (percentage) of the anomaly event. + */ + private Double costImpactPercentage = null; + + /** + * cost impact (percentage) of the anomaly event. + * @param costImpactPercentage the value to set + * @return this builder instance + */ + public Builder costImpactPercentage(Double costImpactPercentage) { + this.costImpactPercentage = costImpactPercentage; + 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(ListCostAnomalyEventsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + name(o.getName()); + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + targetTenantId(o.getTargetTenantId()); + timeAnomalyEventStartDate(o.getTimeAnomalyEventStartDate()); + timeAnomalyEventEndDate(o.getTimeAnomalyEventEndDate()); + region(o.getRegion()); + costImpact(o.getCostImpact()); + costImpactPercentage(o.getCostImpactPercentage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCostAnomalyEventsRequest 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 ListCostAnomalyEventsRequest + */ + public ListCostAnomalyEventsRequest build() { + ListCostAnomalyEventsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCostAnomalyEventsRequest 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 ListCostAnomalyEventsRequest + */ + public ListCostAnomalyEventsRequest buildWithoutInvocationCallback() { + ListCostAnomalyEventsRequest request = new ListCostAnomalyEventsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.name = name; + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.targetTenantId = targetTenantId; + request.timeAnomalyEventStartDate = timeAnomalyEventStartDate; + request.timeAnomalyEventEndDate = timeAnomalyEventEndDate; + request.region = region; + request.costImpact = costImpact; + request.costImpactPercentage = costImpactPercentage; + request.opcRequestId = opcRequestId; + return request; + // new ListCostAnomalyEventsRequest(compartmentId, limit, page, sortOrder, sortBy, name, costAnomalyMonitorId, targetTenantId, timeAnomalyEventStartDate, timeAnomalyEventEndDate, region, costImpact, costImpactPercentage, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .name(name) + .costAnomalyMonitorId(costAnomalyMonitorId) + .targetTenantId(targetTenantId) + .timeAnomalyEventStartDate(timeAnomalyEventStartDate) + .timeAnomalyEventEndDate(timeAnomalyEventEndDate) + .region(region) + .costImpact(costImpact) + .costImpactPercentage(costImpactPercentage) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + sb.append(",targetTenantId=").append(String.valueOf(this.targetTenantId)); + sb.append(",timeAnomalyEventStartDate=") + .append(String.valueOf(this.timeAnomalyEventStartDate)); + sb.append(",timeAnomalyEventEndDate=").append(String.valueOf(this.timeAnomalyEventEndDate)); + sb.append(",region=").append(String.valueOf(this.region)); + sb.append(",costImpact=").append(String.valueOf(this.costImpact)); + sb.append(",costImpactPercentage=").append(String.valueOf(this.costImpactPercentage)); + 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 ListCostAnomalyEventsRequest)) { + return false; + } + + ListCostAnomalyEventsRequest other = (ListCostAnomalyEventsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && java.util.Objects.equals(this.targetTenantId, other.targetTenantId) + && java.util.Objects.equals( + this.timeAnomalyEventStartDate, other.timeAnomalyEventStartDate) + && java.util.Objects.equals( + this.timeAnomalyEventEndDate, other.timeAnomalyEventEndDate) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.costImpact, other.costImpact) + && java.util.Objects.equals(this.costImpactPercentage, other.costImpactPercentage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.hashCode()); + result = + (result * PRIME) + + (this.targetTenantId == null ? 43 : this.targetTenantId.hashCode()); + result = + (result * PRIME) + + (this.timeAnomalyEventStartDate == null + ? 43 + : this.timeAnomalyEventStartDate.hashCode()); + result = + (result * PRIME) + + (this.timeAnomalyEventEndDate == null + ? 43 + : this.timeAnomalyEventEndDate.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.costImpact == null ? 43 : this.costImpact.hashCode()); + result = + (result * PRIME) + + (this.costImpactPercentage == null + ? 43 + : this.costImpactPercentage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAnomalyMonitorsRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAnomalyMonitorsRequest.java new file mode 100644 index 00000000000..32b8f4c8d7c --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/ListCostAnomalyMonitorsRequest.java @@ -0,0 +1,493 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use ListCostAnomalyMonitorsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAnomalyMonitorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.costad.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAd sortBy; + + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + */ + public com.oracle.bmc.costad.model.SortByForCostAd getSortBy() { + return sortBy; + } + /** + * The current state of the cost monitor. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor.LifecycleState lifecycleState; + + /** + * The current state of the cost monitor. + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitor.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * Unique, non-changeable resource name. + * + */ + private String name; + + /** + * Unique, non-changeable resource name. + * + */ + public String getName() { + return name; + } + /** + * The target tenantId ocid filter param. + */ + private java.util.List targetTenantId; + + /** + * The target tenantId ocid filter param. + */ + public java.util.List getTargetTenantId() { + return targetTenantId; + } + /** + * Cost Anomaly Monitor target resource filter region. + */ + private java.util.List region; + + /** + * Cost Anomaly Monitor target resource filter region. + */ + public java.util.List getRegion() { + return region; + } + /** + * 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< + ListCostAnomalyMonitorsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.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.costad.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAd sortBy = null; + + /** + * The field to sort by. If not specified, the default is timeCreated. + * The default sort order for timeCreated is DESC. + * The default sort order for displayName is ASC in alphanumeric order. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(com.oracle.bmc.costad.model.SortByForCostAd sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The current state of the cost monitor. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor.LifecycleState lifecycleState = null; + + /** + * The current state of the cost monitor. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.costad.model.CostAnomalyMonitor.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Unique, non-changeable resource name. + * + */ + private String name = null; + + /** + * Unique, non-changeable resource name. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The target tenantId ocid filter param. + */ + private java.util.List targetTenantId = null; + + /** + * The target tenantId ocid filter param. + * @param targetTenantId the value to set + * @return this builder instance + */ + public Builder targetTenantId(java.util.List targetTenantId) { + this.targetTenantId = targetTenantId; + return this; + } + + /** + * Singular setter. The target tenantId ocid filter param. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetTenantId(String singularValue) { + return this.targetTenantId(java.util.Arrays.asList(singularValue)); + } + + /** + * Cost Anomaly Monitor target resource filter region. + */ + private java.util.List region = null; + + /** + * Cost Anomaly Monitor target resource filter region. + * @param region the value to set + * @return this builder instance + */ + public Builder region(java.util.List region) { + this.region = region; + return this; + } + + /** + * Singular setter. Cost Anomaly Monitor target resource filter region. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder region(String singularValue) { + return this.region(java.util.Arrays.asList(singularValue)); + } + + /** + * 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(ListCostAnomalyMonitorsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + lifecycleState(o.getLifecycleState()); + name(o.getName()); + targetTenantId(o.getTargetTenantId()); + region(o.getRegion()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCostAnomalyMonitorsRequest 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 ListCostAnomalyMonitorsRequest + */ + public ListCostAnomalyMonitorsRequest build() { + ListCostAnomalyMonitorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCostAnomalyMonitorsRequest 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 ListCostAnomalyMonitorsRequest + */ + public ListCostAnomalyMonitorsRequest buildWithoutInvocationCallback() { + ListCostAnomalyMonitorsRequest request = new ListCostAnomalyMonitorsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.lifecycleState = lifecycleState; + request.name = name; + request.targetTenantId = targetTenantId; + request.region = region; + request.opcRequestId = opcRequestId; + return request; + // new ListCostAnomalyMonitorsRequest(compartmentId, limit, page, sortOrder, sortBy, lifecycleState, name, targetTenantId, region, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .lifecycleState(lifecycleState) + .name(name) + .targetTenantId(targetTenantId) + .region(region) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",targetTenantId=").append(String.valueOf(this.targetTenantId)); + sb.append(",region=").append(String.valueOf(this.region)); + 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 ListCostAnomalyMonitorsRequest)) { + return false; + } + + ListCostAnomalyMonitorsRequest other = (ListCostAnomalyMonitorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.targetTenantId, other.targetTenantId) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.targetTenantId == null ? 43 : this.targetTenantId.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/SummarizeCostAnomalyEventAnalyticsRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/SummarizeCostAnomalyEventAnalyticsRequest.java new file mode 100644 index 00000000000..9844dd6b8f4 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/SummarizeCostAnomalyEventAnalyticsRequest.java @@ -0,0 +1,639 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use SummarizeCostAnomalyEventAnalyticsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class SummarizeCostAnomalyEventAnalyticsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.costad.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAnomalyEvent sortBy; + + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + */ + public com.oracle.bmc.costad.model.SortByForCostAnomalyEvent getSortBy() { + return sortBy; + } + /** + * Unique, non-changeable resource name. + * + */ + private String name; + + /** + * Unique, non-changeable resource name. + * + */ + public String getName() { + return name; + } + /** + * The cost monitor ocid. + */ + private String costAnomalyMonitorId; + + /** + * The cost monitor ocid. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * The target tenantId ocid filter param. + */ + private java.util.List targetTenantId; + + /** + * The target tenantId ocid filter param. + */ + public java.util.List getTargetTenantId() { + return targetTenantId; + } + /** + * startDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventStartDate; + + /** + * startDate for anomaly event date. + */ + public java.util.Date getTimeAnomalyEventStartDate() { + return timeAnomalyEventStartDate; + } + /** + * endDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventEndDate; + + /** + * endDate for anomaly event date. + */ + public java.util.Date getTimeAnomalyEventEndDate() { + return timeAnomalyEventEndDate; + } + /** + * region of the anomaly event. + */ + private java.util.List region; + + /** + * region of the anomaly event. + */ + public java.util.List getRegion() { + return region; + } + /** + * cost impact (absolute) of the anomaly event. + */ + private Double costImpact; + + /** + * cost impact (absolute) of the anomaly event. + */ + public Double getCostImpact() { + return costImpact; + } + /** + * cost impact (percentage) of the anomaly event. + */ + private Double costImpactPercentage; + + /** + * cost impact (percentage) of the anomaly event. + */ + public Double getCostImpactPercentage() { + return costImpactPercentage; + } + /** + * 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< + SummarizeCostAnomalyEventAnalyticsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.costad.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.costad.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + */ + private com.oracle.bmc.costad.model.SortByForCostAnomalyEvent sortBy = null; + + /** + * The field to sort by. If not specified, the default is timeAnomalyEventDate. + * The default sort order for timeAnomalyEventDate is DESC. + * The default sort order for costAnomalyName is ASC in alphanumeric order. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(com.oracle.bmc.costad.model.SortByForCostAnomalyEvent sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique, non-changeable resource name. + * + */ + private String name = null; + + /** + * Unique, non-changeable resource name. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The cost monitor ocid. + */ + private String costAnomalyMonitorId = null; + + /** + * The cost monitor ocid. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + return this; + } + + /** + * The target tenantId ocid filter param. + */ + private java.util.List targetTenantId = null; + + /** + * The target tenantId ocid filter param. + * @param targetTenantId the value to set + * @return this builder instance + */ + public Builder targetTenantId(java.util.List targetTenantId) { + this.targetTenantId = targetTenantId; + return this; + } + + /** + * Singular setter. The target tenantId ocid filter param. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetTenantId(String singularValue) { + return this.targetTenantId(java.util.Arrays.asList(singularValue)); + } + + /** + * startDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventStartDate = null; + + /** + * startDate for anomaly event date. + * @param timeAnomalyEventStartDate the value to set + * @return this builder instance + */ + public Builder timeAnomalyEventStartDate(java.util.Date timeAnomalyEventStartDate) { + this.timeAnomalyEventStartDate = timeAnomalyEventStartDate; + return this; + } + + /** + * endDate for anomaly event date. + */ + private java.util.Date timeAnomalyEventEndDate = null; + + /** + * endDate for anomaly event date. + * @param timeAnomalyEventEndDate the value to set + * @return this builder instance + */ + public Builder timeAnomalyEventEndDate(java.util.Date timeAnomalyEventEndDate) { + this.timeAnomalyEventEndDate = timeAnomalyEventEndDate; + return this; + } + + /** + * region of the anomaly event. + */ + private java.util.List region = null; + + /** + * region of the anomaly event. + * @param region the value to set + * @return this builder instance + */ + public Builder region(java.util.List region) { + this.region = region; + return this; + } + + /** + * Singular setter. region of the anomaly event. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder region(String singularValue) { + return this.region(java.util.Arrays.asList(singularValue)); + } + + /** + * cost impact (absolute) of the anomaly event. + */ + private Double costImpact = null; + + /** + * cost impact (absolute) of the anomaly event. + * @param costImpact the value to set + * @return this builder instance + */ + public Builder costImpact(Double costImpact) { + this.costImpact = costImpact; + return this; + } + + /** + * cost impact (percentage) of the anomaly event. + */ + private Double costImpactPercentage = null; + + /** + * cost impact (percentage) of the anomaly event. + * @param costImpactPercentage the value to set + * @return this builder instance + */ + public Builder costImpactPercentage(Double costImpactPercentage) { + this.costImpactPercentage = costImpactPercentage; + 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(SummarizeCostAnomalyEventAnalyticsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + name(o.getName()); + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + targetTenantId(o.getTargetTenantId()); + timeAnomalyEventStartDate(o.getTimeAnomalyEventStartDate()); + timeAnomalyEventEndDate(o.getTimeAnomalyEventEndDate()); + region(o.getRegion()); + costImpact(o.getCostImpact()); + costImpactPercentage(o.getCostImpactPercentage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SummarizeCostAnomalyEventAnalyticsRequest 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 SummarizeCostAnomalyEventAnalyticsRequest + */ + public SummarizeCostAnomalyEventAnalyticsRequest build() { + SummarizeCostAnomalyEventAnalyticsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of SummarizeCostAnomalyEventAnalyticsRequest 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 SummarizeCostAnomalyEventAnalyticsRequest + */ + public SummarizeCostAnomalyEventAnalyticsRequest buildWithoutInvocationCallback() { + SummarizeCostAnomalyEventAnalyticsRequest request = + new SummarizeCostAnomalyEventAnalyticsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.name = name; + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.targetTenantId = targetTenantId; + request.timeAnomalyEventStartDate = timeAnomalyEventStartDate; + request.timeAnomalyEventEndDate = timeAnomalyEventEndDate; + request.region = region; + request.costImpact = costImpact; + request.costImpactPercentage = costImpactPercentage; + request.opcRequestId = opcRequestId; + return request; + // new SummarizeCostAnomalyEventAnalyticsRequest(compartmentId, limit, page, sortOrder, sortBy, name, costAnomalyMonitorId, targetTenantId, timeAnomalyEventStartDate, timeAnomalyEventEndDate, region, costImpact, costImpactPercentage, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .name(name) + .costAnomalyMonitorId(costAnomalyMonitorId) + .targetTenantId(targetTenantId) + .timeAnomalyEventStartDate(timeAnomalyEventStartDate) + .timeAnomalyEventEndDate(timeAnomalyEventEndDate) + .region(region) + .costImpact(costImpact) + .costImpactPercentage(costImpactPercentage) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + sb.append(",targetTenantId=").append(String.valueOf(this.targetTenantId)); + sb.append(",timeAnomalyEventStartDate=") + .append(String.valueOf(this.timeAnomalyEventStartDate)); + sb.append(",timeAnomalyEventEndDate=").append(String.valueOf(this.timeAnomalyEventEndDate)); + sb.append(",region=").append(String.valueOf(this.region)); + sb.append(",costImpact=").append(String.valueOf(this.costImpact)); + sb.append(",costImpactPercentage=").append(String.valueOf(this.costImpactPercentage)); + 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 SummarizeCostAnomalyEventAnalyticsRequest)) { + return false; + } + + SummarizeCostAnomalyEventAnalyticsRequest other = + (SummarizeCostAnomalyEventAnalyticsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && java.util.Objects.equals(this.targetTenantId, other.targetTenantId) + && java.util.Objects.equals( + this.timeAnomalyEventStartDate, other.timeAnomalyEventStartDate) + && java.util.Objects.equals( + this.timeAnomalyEventEndDate, other.timeAnomalyEventEndDate) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.costImpact, other.costImpact) + && java.util.Objects.equals(this.costImpactPercentage, other.costImpactPercentage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.hashCode()); + result = + (result * PRIME) + + (this.targetTenantId == null ? 43 : this.targetTenantId.hashCode()); + result = + (result * PRIME) + + (this.timeAnomalyEventStartDate == null + ? 43 + : this.timeAnomalyEventStartDate.hashCode()); + result = + (result * PRIME) + + (this.timeAnomalyEventEndDate == null + ? 43 + : this.timeAnomalyEventEndDate.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.costImpact == null ? 43 : this.costImpact.hashCode()); + result = + (result * PRIME) + + (this.costImpactPercentage == null + ? 43 + : this.costImpactPercentage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAlertSubscriptionRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAlertSubscriptionRequest.java new file mode 100644 index 00000000000..87a992fd110 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAlertSubscriptionRequest.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use UpdateCostAlertSubscriptionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAlertSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails> { + + /** + * The unique costAlertSubscription OCID. + */ + private String costAlertSubscriptionId; + + /** + * The unique costAlertSubscription OCID. + */ + public String getCostAlertSubscriptionId() { + return costAlertSubscriptionId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails + updateCostAlertSubscriptionDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails + getUpdateCostAlertSubscriptionDetails() { + return updateCostAlertSubscriptionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails getBody$() { + return updateCostAlertSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateCostAlertSubscriptionRequest, + com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAlertSubscription OCID. + */ + private String costAlertSubscriptionId = null; + + /** + * The unique costAlertSubscription OCID. + * @param costAlertSubscriptionId the value to set + * @return this builder instance + */ + public Builder costAlertSubscriptionId(String costAlertSubscriptionId) { + this.costAlertSubscriptionId = costAlertSubscriptionId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails + updateCostAlertSubscriptionDetails = null; + + /** + * The information to be updated. + * @param updateCostAlertSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder updateCostAlertSubscriptionDetails( + com.oracle.bmc.costad.model.UpdateCostAlertSubscriptionDetails + updateCostAlertSubscriptionDetails) { + this.updateCostAlertSubscriptionDetails = updateCostAlertSubscriptionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCostAlertSubscriptionRequest o) { + costAlertSubscriptionId(o.getCostAlertSubscriptionId()); + updateCostAlertSubscriptionDetails(o.getUpdateCostAlertSubscriptionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCostAlertSubscriptionRequest 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 UpdateCostAlertSubscriptionRequest + */ + public UpdateCostAlertSubscriptionRequest build() { + UpdateCostAlertSubscriptionRequest 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.costad.model.UpdateCostAlertSubscriptionDetails body) { + updateCostAlertSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of UpdateCostAlertSubscriptionRequest 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 UpdateCostAlertSubscriptionRequest + */ + public UpdateCostAlertSubscriptionRequest buildWithoutInvocationCallback() { + UpdateCostAlertSubscriptionRequest request = new UpdateCostAlertSubscriptionRequest(); + request.costAlertSubscriptionId = costAlertSubscriptionId; + request.updateCostAlertSubscriptionDetails = updateCostAlertSubscriptionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateCostAlertSubscriptionRequest(costAlertSubscriptionId, updateCostAlertSubscriptionDetails, 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() + .costAlertSubscriptionId(costAlertSubscriptionId) + .updateCostAlertSubscriptionDetails(updateCostAlertSubscriptionDetails) + .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(",costAlertSubscriptionId=").append(String.valueOf(this.costAlertSubscriptionId)); + sb.append(",updateCostAlertSubscriptionDetails=") + .append(String.valueOf(this.updateCostAlertSubscriptionDetails)); + 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 UpdateCostAlertSubscriptionRequest)) { + return false; + } + + UpdateCostAlertSubscriptionRequest other = (UpdateCostAlertSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.costAlertSubscriptionId, other.costAlertSubscriptionId) + && java.util.Objects.equals( + this.updateCostAlertSubscriptionDetails, + other.updateCostAlertSubscriptionDetails) + && 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.costAlertSubscriptionId == null + ? 43 + : this.costAlertSubscriptionId.hashCode()); + result = + (result * PRIME) + + (this.updateCostAlertSubscriptionDetails == null + ? 43 + : this.updateCostAlertSubscriptionDetails.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-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAnomalyEventRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAnomalyEventRequest.java new file mode 100644 index 00000000000..01ca52cb072 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAnomalyEventRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use UpdateCostAnomalyEventRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAnomalyEventRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails> { + + /** + * The unique costAnomalyEventId OCID. + */ + private String costAnomalyEventId; + + /** + * The unique costAnomalyEventId OCID. + */ + public String getCostAnomalyEventId() { + return costAnomalyEventId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails updateCostAnomalyEventDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails + getUpdateCostAnomalyEventDetails() { + return updateCostAnomalyEventDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails getBody$() { + return updateCostAnomalyEventDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateCostAnomalyEventRequest, + com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyEventId OCID. + */ + private String costAnomalyEventId = null; + + /** + * The unique costAnomalyEventId OCID. + * @param costAnomalyEventId the value to set + * @return this builder instance + */ + public Builder costAnomalyEventId(String costAnomalyEventId) { + this.costAnomalyEventId = costAnomalyEventId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails + updateCostAnomalyEventDetails = null; + + /** + * The information to be updated. + * @param updateCostAnomalyEventDetails the value to set + * @return this builder instance + */ + public Builder updateCostAnomalyEventDetails( + com.oracle.bmc.costad.model.UpdateCostAnomalyEventDetails + updateCostAnomalyEventDetails) { + this.updateCostAnomalyEventDetails = updateCostAnomalyEventDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCostAnomalyEventRequest o) { + costAnomalyEventId(o.getCostAnomalyEventId()); + updateCostAnomalyEventDetails(o.getUpdateCostAnomalyEventDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCostAnomalyEventRequest 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 UpdateCostAnomalyEventRequest + */ + public UpdateCostAnomalyEventRequest build() { + UpdateCostAnomalyEventRequest 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.costad.model.UpdateCostAnomalyEventDetails body) { + updateCostAnomalyEventDetails(body); + return this; + } + + /** + * Build the instance of UpdateCostAnomalyEventRequest 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 UpdateCostAnomalyEventRequest + */ + public UpdateCostAnomalyEventRequest buildWithoutInvocationCallback() { + UpdateCostAnomalyEventRequest request = new UpdateCostAnomalyEventRequest(); + request.costAnomalyEventId = costAnomalyEventId; + request.updateCostAnomalyEventDetails = updateCostAnomalyEventDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateCostAnomalyEventRequest(costAnomalyEventId, updateCostAnomalyEventDetails, 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() + .costAnomalyEventId(costAnomalyEventId) + .updateCostAnomalyEventDetails(updateCostAnomalyEventDetails) + .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(",costAnomalyEventId=").append(String.valueOf(this.costAnomalyEventId)); + sb.append(",updateCostAnomalyEventDetails=") + .append(String.valueOf(this.updateCostAnomalyEventDetails)); + 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 UpdateCostAnomalyEventRequest)) { + return false; + } + + UpdateCostAnomalyEventRequest other = (UpdateCostAnomalyEventRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyEventId, other.costAnomalyEventId) + && java.util.Objects.equals( + this.updateCostAnomalyEventDetails, other.updateCostAnomalyEventDetails) + && 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.costAnomalyEventId == null + ? 43 + : this.costAnomalyEventId.hashCode()); + result = + (result * PRIME) + + (this.updateCostAnomalyEventDetails == null + ? 43 + : this.updateCostAnomalyEventDetails.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-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAnomalyMonitorRequest.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAnomalyMonitorRequest.java new file mode 100644 index 00000000000..165bc0b3756 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/requests/UpdateCostAnomalyMonitorRequest.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.requests; + +import com.oracle.bmc.costad.model.*; +/** + * Example: Click here to see how to use UpdateCostAnomalyMonitorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAnomalyMonitorRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails> { + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId; + + /** + * The unique costAnomalyMonitor OCID. + */ + public String getCostAnomalyMonitorId() { + return costAnomalyMonitorId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails + updateCostAnomalyMonitorDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails + getUpdateCostAnomalyMonitorDetails() { + return updateCostAnomalyMonitorDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails getBody$() { + return updateCostAnomalyMonitorDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateCostAnomalyMonitorRequest, + com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique costAnomalyMonitor OCID. + */ + private String costAnomalyMonitorId = null; + + /** + * The unique costAnomalyMonitor OCID. + * @param costAnomalyMonitorId the value to set + * @return this builder instance + */ + public Builder costAnomalyMonitorId(String costAnomalyMonitorId) { + this.costAnomalyMonitorId = costAnomalyMonitorId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails + updateCostAnomalyMonitorDetails = null; + + /** + * The information to be updated. + * @param updateCostAnomalyMonitorDetails the value to set + * @return this builder instance + */ + public Builder updateCostAnomalyMonitorDetails( + com.oracle.bmc.costad.model.UpdateCostAnomalyMonitorDetails + updateCostAnomalyMonitorDetails) { + this.updateCostAnomalyMonitorDetails = updateCostAnomalyMonitorDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCostAnomalyMonitorRequest o) { + costAnomalyMonitorId(o.getCostAnomalyMonitorId()); + updateCostAnomalyMonitorDetails(o.getUpdateCostAnomalyMonitorDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCostAnomalyMonitorRequest 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 UpdateCostAnomalyMonitorRequest + */ + public UpdateCostAnomalyMonitorRequest build() { + UpdateCostAnomalyMonitorRequest 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.costad.model.UpdateCostAnomalyMonitorDetails body) { + updateCostAnomalyMonitorDetails(body); + return this; + } + + /** + * Build the instance of UpdateCostAnomalyMonitorRequest 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 UpdateCostAnomalyMonitorRequest + */ + public UpdateCostAnomalyMonitorRequest buildWithoutInvocationCallback() { + UpdateCostAnomalyMonitorRequest request = new UpdateCostAnomalyMonitorRequest(); + request.costAnomalyMonitorId = costAnomalyMonitorId; + request.updateCostAnomalyMonitorDetails = updateCostAnomalyMonitorDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateCostAnomalyMonitorRequest(costAnomalyMonitorId, updateCostAnomalyMonitorDetails, 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() + .costAnomalyMonitorId(costAnomalyMonitorId) + .updateCostAnomalyMonitorDetails(updateCostAnomalyMonitorDetails) + .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(",costAnomalyMonitorId=").append(String.valueOf(this.costAnomalyMonitorId)); + sb.append(",updateCostAnomalyMonitorDetails=") + .append(String.valueOf(this.updateCostAnomalyMonitorDetails)); + 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 UpdateCostAnomalyMonitorRequest)) { + return false; + } + + UpdateCostAnomalyMonitorRequest other = (UpdateCostAnomalyMonitorRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.costAnomalyMonitorId, other.costAnomalyMonitorId) + && java.util.Objects.equals( + this.updateCostAnomalyMonitorDetails, other.updateCostAnomalyMonitorDetails) + && 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.costAnomalyMonitorId == null + ? 43 + : this.costAnomalyMonitorId.hashCode()); + result = + (result * PRIME) + + (this.updateCostAnomalyMonitorDetails == null + ? 43 + : this.updateCostAnomalyMonitorDetails.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-costad/src/main/java/com/oracle/bmc/costad/responses/CreateCostAlertSubscriptionResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/CreateCostAlertSubscriptionResponse.java new file mode 100644 index 00000000000..0af0eb9ef7a --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/CreateCostAlertSubscriptionResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CreateCostAlertSubscriptionResponse 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 CostAlertSubscription instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription; + + /** + * The returned CostAlertSubscription instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAlertSubscription getCostAlertSubscription() { + return costAlertSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAlertSubscription" + }) + private CreateCostAlertSubscriptionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAlertSubscription = costAlertSubscription; + } + + 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 CostAlertSubscription instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription; + + /** + * The returned CostAlertSubscription instance. + * @param costAlertSubscription the value to set + * @return this builder + */ + public Builder costAlertSubscription( + com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription) { + this.costAlertSubscription = costAlertSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCostAlertSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAlertSubscription(o.getCostAlertSubscription()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateCostAlertSubscriptionResponse build() { + return new CreateCostAlertSubscriptionResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAlertSubscription); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAlertSubscription=").append(String.valueOf(costAlertSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCostAlertSubscriptionResponse)) { + return false; + } + + CreateCostAlertSubscriptionResponse other = (CreateCostAlertSubscriptionResponse) 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.costAlertSubscription, other.costAlertSubscription); + } + + @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.costAlertSubscription == null + ? 43 + : this.costAlertSubscription.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/CreateCostAnomalyMonitorResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/CreateCostAnomalyMonitorResponse.java new file mode 100644 index 00000000000..49b0193b2a0 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/CreateCostAnomalyMonitorResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class CreateCostAnomalyMonitorResponse 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 CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitor getCostAnomalyMonitor() { + return costAnomalyMonitor; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAnomalyMonitor" + }) + private CreateCostAnomalyMonitorResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAnomalyMonitor = costAnomalyMonitor; + } + + 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 CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @param costAnomalyMonitor the value to set + * @return this builder + */ + public Builder costAnomalyMonitor( + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + this.costAnomalyMonitor = costAnomalyMonitor; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCostAnomalyMonitorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAnomalyMonitor(o.getCostAnomalyMonitor()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateCostAnomalyMonitorResponse build() { + return new CreateCostAnomalyMonitorResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAnomalyMonitor); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyMonitor=").append(String.valueOf(costAnomalyMonitor)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCostAnomalyMonitorResponse)) { + return false; + } + + CreateCostAnomalyMonitorResponse other = (CreateCostAnomalyMonitorResponse) 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.costAnomalyMonitor, other.costAnomalyMonitor); + } + + @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.costAnomalyMonitor == null + ? 43 + : this.costAnomalyMonitor.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DeleteCostAlertSubscriptionResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DeleteCostAlertSubscriptionResponse.java new file mode 100644 index 00000000000..770738f2386 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DeleteCostAlertSubscriptionResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DeleteCostAlertSubscriptionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCostAlertSubscriptionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCostAlertSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteCostAlertSubscriptionResponse build() { + return new DeleteCostAlertSubscriptionResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteCostAlertSubscriptionResponse)) { + return false; + } + + DeleteCostAlertSubscriptionResponse other = (DeleteCostAlertSubscriptionResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DeleteCostAnomalyMonitorResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DeleteCostAnomalyMonitorResponse.java new file mode 100644 index 00000000000..1b8d19d0f13 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DeleteCostAnomalyMonitorResponse.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DeleteCostAnomalyMonitorResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCostAnomalyMonitorResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCostAnomalyMonitorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteCostAnomalyMonitorResponse build() { + return new DeleteCostAnomalyMonitorResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteCostAnomalyMonitorResponse)) { + return false; + } + + DeleteCostAnomalyMonitorResponse other = (DeleteCostAnomalyMonitorResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DisableCostAnomalyMonitorResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DisableCostAnomalyMonitorResponse.java new file mode 100644 index 00000000000..c5d0a227cff --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/DisableCostAnomalyMonitorResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class DisableCostAnomalyMonitorResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitor getCostAnomalyMonitor() { + return costAnomalyMonitor; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "costAnomalyMonitor" + }) + private DisableCostAnomalyMonitorResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.costAnomalyMonitor = costAnomalyMonitor; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @param costAnomalyMonitor the value to set + * @return this builder + */ + public Builder costAnomalyMonitor( + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + this.costAnomalyMonitor = costAnomalyMonitor; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DisableCostAnomalyMonitorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + costAnomalyMonitor(o.getCostAnomalyMonitor()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DisableCostAnomalyMonitorResponse build() { + return new DisableCostAnomalyMonitorResponse( + __httpStatusCode__, headers, etag, opcRequestId, costAnomalyMonitor); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyMonitor=").append(String.valueOf(costAnomalyMonitor)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableCostAnomalyMonitorResponse)) { + return false; + } + + DisableCostAnomalyMonitorResponse other = (DisableCostAnomalyMonitorResponse) 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.costAnomalyMonitor, other.costAnomalyMonitor); + } + + @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.costAnomalyMonitor == null + ? 43 + : this.costAnomalyMonitor.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/EnableCostAnomalyMonitorResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/EnableCostAnomalyMonitorResponse.java new file mode 100644 index 00000000000..a5cdfaa5407 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/EnableCostAnomalyMonitorResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class EnableCostAnomalyMonitorResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitor getCostAnomalyMonitor() { + return costAnomalyMonitor; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "costAnomalyMonitor" + }) + private EnableCostAnomalyMonitorResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.costAnomalyMonitor = costAnomalyMonitor; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @param costAnomalyMonitor the value to set + * @return this builder + */ + public Builder costAnomalyMonitor( + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + this.costAnomalyMonitor = costAnomalyMonitor; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableCostAnomalyMonitorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + costAnomalyMonitor(o.getCostAnomalyMonitor()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public EnableCostAnomalyMonitorResponse build() { + return new EnableCostAnomalyMonitorResponse( + __httpStatusCode__, headers, etag, opcRequestId, costAnomalyMonitor); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyMonitor=").append(String.valueOf(costAnomalyMonitor)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableCostAnomalyMonitorResponse)) { + return false; + } + + EnableCostAnomalyMonitorResponse other = (EnableCostAnomalyMonitorResponse) 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.costAnomalyMonitor, other.costAnomalyMonitor); + } + + @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.costAnomalyMonitor == null + ? 43 + : this.costAnomalyMonitor.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAlertSubscriptionResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAlertSubscriptionResponse.java new file mode 100644 index 00000000000..9b8de8f86d4 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAlertSubscriptionResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAlertSubscriptionResponse 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 CostAlertSubscription instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription; + + /** + * The returned CostAlertSubscription instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAlertSubscription getCostAlertSubscription() { + return costAlertSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAlertSubscription" + }) + private GetCostAlertSubscriptionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAlertSubscription = costAlertSubscription; + } + + 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 CostAlertSubscription instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription; + + /** + * The returned CostAlertSubscription instance. + * @param costAlertSubscription the value to set + * @return this builder + */ + public Builder costAlertSubscription( + com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription) { + this.costAlertSubscription = costAlertSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCostAlertSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAlertSubscription(o.getCostAlertSubscription()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCostAlertSubscriptionResponse build() { + return new GetCostAlertSubscriptionResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAlertSubscription); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAlertSubscription=").append(String.valueOf(costAlertSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCostAlertSubscriptionResponse)) { + return false; + } + + GetCostAlertSubscriptionResponse other = (GetCostAlertSubscriptionResponse) 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.costAlertSubscription, other.costAlertSubscription); + } + + @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.costAlertSubscription == null + ? 43 + : this.costAlertSubscription.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAnomalyEventResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAnomalyEventResponse.java new file mode 100644 index 00000000000..5a1bb955823 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAnomalyEventResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAnomalyEventResponse 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 CostAnomalyEvent instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent; + + /** + * The returned CostAnomalyEvent instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyEvent getCostAnomalyEvent() { + return costAnomalyEvent; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAnomalyEvent" + }) + private GetCostAnomalyEventResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAnomalyEvent = costAnomalyEvent; + } + + 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 CostAnomalyEvent instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent; + + /** + * The returned CostAnomalyEvent instance. + * @param costAnomalyEvent the value to set + * @return this builder + */ + public Builder costAnomalyEvent( + com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent) { + this.costAnomalyEvent = costAnomalyEvent; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCostAnomalyEventResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAnomalyEvent(o.getCostAnomalyEvent()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCostAnomalyEventResponse build() { + return new GetCostAnomalyEventResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAnomalyEvent); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyEvent=").append(String.valueOf(costAnomalyEvent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCostAnomalyEventResponse)) { + return false; + } + + GetCostAnomalyEventResponse other = (GetCostAnomalyEventResponse) 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.costAnomalyEvent, other.costAnomalyEvent); + } + + @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.costAnomalyEvent == null ? 43 : this.costAnomalyEvent.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAnomalyMonitorResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAnomalyMonitorResponse.java new file mode 100644 index 00000000000..a6716cb1f8d --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/GetCostAnomalyMonitorResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class GetCostAnomalyMonitorResponse 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 CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitor getCostAnomalyMonitor() { + return costAnomalyMonitor; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAnomalyMonitor" + }) + private GetCostAnomalyMonitorResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAnomalyMonitor = costAnomalyMonitor; + } + + 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 CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @param costAnomalyMonitor the value to set + * @return this builder + */ + public Builder costAnomalyMonitor( + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + this.costAnomalyMonitor = costAnomalyMonitor; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCostAnomalyMonitorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAnomalyMonitor(o.getCostAnomalyMonitor()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCostAnomalyMonitorResponse build() { + return new GetCostAnomalyMonitorResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAnomalyMonitor); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyMonitor=").append(String.valueOf(costAnomalyMonitor)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCostAnomalyMonitorResponse)) { + return false; + } + + GetCostAnomalyMonitorResponse other = (GetCostAnomalyMonitorResponse) 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.costAnomalyMonitor, other.costAnomalyMonitor); + } + + @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.costAnomalyMonitor == null + ? 43 + : this.costAnomalyMonitor.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAlertSubscriptionsResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAlertSubscriptionsResponse.java new file mode 100644 index 00000000000..fcb3d4bb61f --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAlertSubscriptionsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAlertSubscriptionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned CostAlertSubscriptionCollection instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscriptionCollection + costAlertSubscriptionCollection; + + /** + * The returned CostAlertSubscriptionCollection instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAlertSubscriptionCollection + getCostAlertSubscriptionCollection() { + return costAlertSubscriptionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "costAlertSubscriptionCollection" + }) + private ListCostAlertSubscriptionsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.costad.model.CostAlertSubscriptionCollection + costAlertSubscriptionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.costAlertSubscriptionCollection = costAlertSubscriptionCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned CostAlertSubscriptionCollection instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscriptionCollection + costAlertSubscriptionCollection; + + /** + * The returned CostAlertSubscriptionCollection instance. + * @param costAlertSubscriptionCollection the value to set + * @return this builder + */ + public Builder costAlertSubscriptionCollection( + com.oracle.bmc.costad.model.CostAlertSubscriptionCollection + costAlertSubscriptionCollection) { + this.costAlertSubscriptionCollection = costAlertSubscriptionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCostAlertSubscriptionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + costAlertSubscriptionCollection(o.getCostAlertSubscriptionCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCostAlertSubscriptionsResponse build() { + return new ListCostAlertSubscriptionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + costAlertSubscriptionCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAlertSubscriptionCollection=") + .append(String.valueOf(costAlertSubscriptionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCostAlertSubscriptionsResponse)) { + return false; + } + + ListCostAlertSubscriptionsResponse other = (ListCostAlertSubscriptionsResponse) 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.costAlertSubscriptionCollection, + other.costAlertSubscriptionCollection); + } + + @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.costAlertSubscriptionCollection == null + ? 43 + : this.costAlertSubscriptionCollection.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAnomalyEventsResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAnomalyEventsResponse.java new file mode 100644 index 00000000000..953ae114521 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAnomalyEventsResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAnomalyEventsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned CostAnomalyEventCollection instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEventCollection costAnomalyEventCollection; + + /** + * The returned CostAnomalyEventCollection instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyEventCollection getCostAnomalyEventCollection() { + return costAnomalyEventCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "costAnomalyEventCollection" + }) + private ListCostAnomalyEventsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.costad.model.CostAnomalyEventCollection costAnomalyEventCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.costAnomalyEventCollection = costAnomalyEventCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned CostAnomalyEventCollection instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEventCollection costAnomalyEventCollection; + + /** + * The returned CostAnomalyEventCollection instance. + * @param costAnomalyEventCollection the value to set + * @return this builder + */ + public Builder costAnomalyEventCollection( + com.oracle.bmc.costad.model.CostAnomalyEventCollection costAnomalyEventCollection) { + this.costAnomalyEventCollection = costAnomalyEventCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCostAnomalyEventsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + costAnomalyEventCollection(o.getCostAnomalyEventCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCostAnomalyEventsResponse build() { + return new ListCostAnomalyEventsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + costAnomalyEventCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyEventCollection=") + .append(String.valueOf(costAnomalyEventCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCostAnomalyEventsResponse)) { + return false; + } + + ListCostAnomalyEventsResponse other = (ListCostAnomalyEventsResponse) 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.costAnomalyEventCollection, other.costAnomalyEventCollection); + } + + @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.costAnomalyEventCollection == null + ? 43 + : this.costAnomalyEventCollection.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAnomalyMonitorsResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAnomalyMonitorsResponse.java new file mode 100644 index 00000000000..c43efa0ff33 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/ListCostAnomalyMonitorsResponse.java @@ -0,0 +1,232 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class ListCostAnomalyMonitorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned CostAnomalyMonitorCollection instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitorCollection costAnomalyMonitorCollection; + + /** + * The returned CostAnomalyMonitorCollection instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitorCollection + getCostAnomalyMonitorCollection() { + return costAnomalyMonitorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "costAnomalyMonitorCollection" + }) + private ListCostAnomalyMonitorsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.costad.model.CostAnomalyMonitorCollection costAnomalyMonitorCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.costAnomalyMonitorCollection = costAnomalyMonitorCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned CostAnomalyMonitorCollection instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitorCollection + costAnomalyMonitorCollection; + + /** + * The returned CostAnomalyMonitorCollection instance. + * @param costAnomalyMonitorCollection the value to set + * @return this builder + */ + public Builder costAnomalyMonitorCollection( + com.oracle.bmc.costad.model.CostAnomalyMonitorCollection + costAnomalyMonitorCollection) { + this.costAnomalyMonitorCollection = costAnomalyMonitorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCostAnomalyMonitorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + costAnomalyMonitorCollection(o.getCostAnomalyMonitorCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCostAnomalyMonitorsResponse build() { + return new ListCostAnomalyMonitorsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + costAnomalyMonitorCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyMonitorCollection=") + .append(String.valueOf(costAnomalyMonitorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCostAnomalyMonitorsResponse)) { + return false; + } + + ListCostAnomalyMonitorsResponse other = (ListCostAnomalyMonitorsResponse) 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.costAnomalyMonitorCollection, other.costAnomalyMonitorCollection); + } + + @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.costAnomalyMonitorCollection == null + ? 43 + : this.costAnomalyMonitorCollection.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/SummarizeCostAnomalyEventAnalyticsResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/SummarizeCostAnomalyEventAnalyticsResponse.java new file mode 100644 index 00000000000..ebef474a695 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/SummarizeCostAnomalyEventAnalyticsResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class SummarizeCostAnomalyEventAnalyticsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned CostAnomalyEventAnalyticCollection instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEventAnalyticCollection + costAnomalyEventAnalyticCollection; + + /** + * The returned CostAnomalyEventAnalyticCollection instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyEventAnalyticCollection + getCostAnomalyEventAnalyticCollection() { + return costAnomalyEventAnalyticCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "costAnomalyEventAnalyticCollection" + }) + private SummarizeCostAnomalyEventAnalyticsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.costad.model.CostAnomalyEventAnalyticCollection + costAnomalyEventAnalyticCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.costAnomalyEventAnalyticCollection = costAnomalyEventAnalyticCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned CostAnomalyEventAnalyticCollection instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEventAnalyticCollection + costAnomalyEventAnalyticCollection; + + /** + * The returned CostAnomalyEventAnalyticCollection instance. + * @param costAnomalyEventAnalyticCollection the value to set + * @return this builder + */ + public Builder costAnomalyEventAnalyticCollection( + com.oracle.bmc.costad.model.CostAnomalyEventAnalyticCollection + costAnomalyEventAnalyticCollection) { + this.costAnomalyEventAnalyticCollection = costAnomalyEventAnalyticCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SummarizeCostAnomalyEventAnalyticsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + costAnomalyEventAnalyticCollection(o.getCostAnomalyEventAnalyticCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public SummarizeCostAnomalyEventAnalyticsResponse build() { + return new SummarizeCostAnomalyEventAnalyticsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + costAnomalyEventAnalyticCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyEventAnalyticCollection=") + .append(String.valueOf(costAnomalyEventAnalyticCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SummarizeCostAnomalyEventAnalyticsResponse)) { + return false; + } + + SummarizeCostAnomalyEventAnalyticsResponse other = + (SummarizeCostAnomalyEventAnalyticsResponse) 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.costAnomalyEventAnalyticCollection, + other.costAnomalyEventAnalyticCollection); + } + + @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.costAnomalyEventAnalyticCollection == null + ? 43 + : this.costAnomalyEventAnalyticCollection.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAlertSubscriptionResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAlertSubscriptionResponse.java new file mode 100644 index 00000000000..a13541cd301 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAlertSubscriptionResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAlertSubscriptionResponse 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 CostAlertSubscription instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription; + + /** + * The returned CostAlertSubscription instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAlertSubscription getCostAlertSubscription() { + return costAlertSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAlertSubscription" + }) + private UpdateCostAlertSubscriptionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAlertSubscription = costAlertSubscription; + } + + 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 CostAlertSubscription instance. + */ + private com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription; + + /** + * The returned CostAlertSubscription instance. + * @param costAlertSubscription the value to set + * @return this builder + */ + public Builder costAlertSubscription( + com.oracle.bmc.costad.model.CostAlertSubscription costAlertSubscription) { + this.costAlertSubscription = costAlertSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCostAlertSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAlertSubscription(o.getCostAlertSubscription()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateCostAlertSubscriptionResponse build() { + return new UpdateCostAlertSubscriptionResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAlertSubscription); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAlertSubscription=").append(String.valueOf(costAlertSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCostAlertSubscriptionResponse)) { + return false; + } + + UpdateCostAlertSubscriptionResponse other = (UpdateCostAlertSubscriptionResponse) 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.costAlertSubscription, other.costAlertSubscription); + } + + @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.costAlertSubscription == null + ? 43 + : this.costAlertSubscription.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAnomalyEventResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAnomalyEventResponse.java new file mode 100644 index 00000000000..82ed0060170 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAnomalyEventResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAnomalyEventResponse 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 CostAnomalyEvent instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent; + + /** + * The returned CostAnomalyEvent instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyEvent getCostAnomalyEvent() { + return costAnomalyEvent; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAnomalyEvent" + }) + private UpdateCostAnomalyEventResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAnomalyEvent = costAnomalyEvent; + } + + 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 CostAnomalyEvent instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent; + + /** + * The returned CostAnomalyEvent instance. + * @param costAnomalyEvent the value to set + * @return this builder + */ + public Builder costAnomalyEvent( + com.oracle.bmc.costad.model.CostAnomalyEvent costAnomalyEvent) { + this.costAnomalyEvent = costAnomalyEvent; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCostAnomalyEventResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAnomalyEvent(o.getCostAnomalyEvent()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateCostAnomalyEventResponse build() { + return new UpdateCostAnomalyEventResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAnomalyEvent); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyEvent=").append(String.valueOf(costAnomalyEvent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCostAnomalyEventResponse)) { + return false; + } + + UpdateCostAnomalyEventResponse other = (UpdateCostAnomalyEventResponse) 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.costAnomalyEvent, other.costAnomalyEvent); + } + + @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.costAnomalyEvent == null ? 43 : this.costAnomalyEvent.hashCode()); + return result; + } +} diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAnomalyMonitorResponse.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAnomalyMonitorResponse.java new file mode 100644 index 00000000000..7d200d305b6 --- /dev/null +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/responses/UpdateCostAnomalyMonitorResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.costad.responses; + +import com.oracle.bmc.costad.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") +public class UpdateCostAnomalyMonitorResponse 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 CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @return the value + */ + public com.oracle.bmc.costad.model.CostAnomalyMonitor getCostAnomalyMonitor() { + return costAnomalyMonitor; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "costAnomalyMonitor" + }) + private UpdateCostAnomalyMonitorResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.costAnomalyMonitor = costAnomalyMonitor; + } + + 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 CostAnomalyMonitor instance. + */ + private com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor; + + /** + * The returned CostAnomalyMonitor instance. + * @param costAnomalyMonitor the value to set + * @return this builder + */ + public Builder costAnomalyMonitor( + com.oracle.bmc.costad.model.CostAnomalyMonitor costAnomalyMonitor) { + this.costAnomalyMonitor = costAnomalyMonitor; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCostAnomalyMonitorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + costAnomalyMonitor(o.getCostAnomalyMonitor()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateCostAnomalyMonitorResponse build() { + return new UpdateCostAnomalyMonitorResponse( + __httpStatusCode__, headers, opcRequestId, etag, costAnomalyMonitor); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",costAnomalyMonitor=").append(String.valueOf(costAnomalyMonitor)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCostAnomalyMonitorResponse)) { + return false; + } + + UpdateCostAnomalyMonitorResponse other = (UpdateCostAnomalyMonitorResponse) 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.costAnomalyMonitor, other.costAnomalyMonitor); + } + + @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.costAnomalyMonitor == null + ? 43 + : this.costAnomalyMonitor.hashCode()); + return result; + } +} diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 93c75a4e733..d2e7aa7becd 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-dashboardservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 1a269bbbb18..fdc72f72491 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.91.0 + 2.93.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 19462a2799b..18da3daf528 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 @@ -4223,7 +4223,7 @@ ListDbHomePatchHistoryEntriesResponse listDbHomePatchHistoryEntries( ListDbServersResponse listDbServers(ListDbServersRequest request); /** - * Gets a list of expected compute performance parameters for a virtual machine DB system based on system configuration. + * Gets a list of expected compute performance parameters for a virtual machine DB system based on system configuration. Adding compartmentId does not affect results. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index b2815ce2ae9..e7238fa0552 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 @@ -5432,7 +5432,7 @@ java.util.concurrent.Future listDbServers( handler); /** - * Gets a list of expected compute performance parameters for a virtual machine DB system based on system configuration. + * Gets a list of expected compute performance parameters for a virtual machine DB system based on system configuration. Adding compartmentId does not affect results. * * * @param request The request object containing the details to send diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemComputePerformancesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemComputePerformancesConverter.java index 31a3887e3a2..da44f0b4a76 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemComputePerformancesConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemComputePerformancesConverter.java @@ -43,6 +43,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDbSystemShape())); } + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListParamsForActionTypeConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListParamsForActionTypeConverter.java index ca14111e243..6fe2f26f590 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListParamsForActionTypeConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListParamsForActionTypeConverter.java @@ -40,6 +40,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getType().getValue())); + if (request.getPlanIntent() != null) { + target = + target.queryParam( + "planIntent", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPlanIntent().getValue())); + } + if (request.getLimit() != null) { target = target.queryParam( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPlansConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPlansConverter.java index 920233a489e..432d32f1b9e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPlansConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPlansConverter.java @@ -112,6 +112,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getId())); } + if (request.getPlanIntent() != null) { + target = + target.queryParam( + "planIntent", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPlanIntent().getValue())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPoliciesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPoliciesConverter.java index c6b102a98f6..1dee4755220 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPoliciesConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListSchedulingPoliciesConverter.java @@ -88,6 +88,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDisplayName())); } + if (request.getCadence() != null) { + target = + target.queryParam( + "cadence", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCadence().getValue())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java index 44abc737473..8a1c4a78227 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java @@ -1130,13 +1130,13 @@ public Builder dbSplitThreshold(Integer dbSplitThreshold) { return this; } /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. **/ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private Integer vmFailoverReservation; /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. * @param vmFailoverReservation the value to set * @return this builder **/ @@ -2666,13 +2666,13 @@ public Integer getDbSplitThreshold() { } /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. **/ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private final Integer vmFailoverReservation; /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. * @return the value **/ public Integer getVmFailoverReservation() { @@ -2747,6 +2747,7 @@ public DistributionAffinity getDistributionAffinity() { public enum NetServicesArchitecture { Dedicated("DEDICATED"), Shared("SHARED"), + Drcp("DRCP"), /** * 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/AutonomousContainerDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java index 9cd1c90a32e..7fa3253aecc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java @@ -1131,13 +1131,13 @@ public Builder dbSplitThreshold(Integer dbSplitThreshold) { return this; } /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. **/ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private Integer vmFailoverReservation; /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. * @param vmFailoverReservation the value to set * @return this builder **/ @@ -2667,13 +2667,13 @@ public Integer getDbSplitThreshold() { } /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. **/ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private final Integer vmFailoverReservation; /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. * @return the value **/ public Integer getVmFailoverReservation() { @@ -2748,6 +2748,7 @@ public DistributionAffinity getDistributionAffinity() { public enum NetServicesArchitecture { Dedicated("DEDICATED"), Shared("SHARED"), + Drcp("DRCP"), /** * 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/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index 6092a73167f..8a77450949b 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 @@ -1664,6 +1664,7 @@ public Builder isPreview(Boolean isPreview) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -1681,6 +1682,7 @@ public Builder isPreview(Boolean isPreview) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4838,6 +4840,7 @@ public Boolean getIsPreview() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4900,6 +4903,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4917,6 +4921,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -6543,6 +6548,7 @@ public DisasterRecoveryConfiguration getRemoteDisasterRecoveryConfiguration() { public enum NetServicesArchitecture { Dedicated("DEDICATED"), Shared("SHARED"), + Drcp("DRCP"), /** * 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/AutonomousDatabaseConnectionUrls.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java index 2ef0905a628..9020acb583b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java @@ -33,7 +33,8 @@ public final class AutonomousDatabaseConnectionUrls "mongoDbUrl", "machineLearningNotebookUrl", "ordsUrl", - "databaseTransformsUrl" + "databaseTransformsUrl", + "spatialStudioUrl" }) public AutonomousDatabaseConnectionUrls( String sqlDevWebUrl, @@ -43,7 +44,8 @@ public AutonomousDatabaseConnectionUrls( String mongoDbUrl, String machineLearningNotebookUrl, String ordsUrl, - String databaseTransformsUrl) { + String databaseTransformsUrl, + String spatialStudioUrl) { super(); this.sqlDevWebUrl = sqlDevWebUrl; this.apexUrl = apexUrl; @@ -53,6 +55,7 @@ public AutonomousDatabaseConnectionUrls( this.machineLearningNotebookUrl = machineLearningNotebookUrl; this.ordsUrl = ordsUrl; this.databaseTransformsUrl = databaseTransformsUrl; + this.spatialStudioUrl = spatialStudioUrl; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -185,6 +188,22 @@ public Builder databaseTransformsUrl(String databaseTransformsUrl) { this.__explicitlySet__.add("databaseTransformsUrl"); return this; } + /** + * The URL of the Spatial Studio for the Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("spatialStudioUrl") + private String spatialStudioUrl; + + /** + * The URL of the Spatial Studio for the Autonomous AI Database. + * @param spatialStudioUrl the value to set + * @return this builder + **/ + public Builder spatialStudioUrl(String spatialStudioUrl) { + this.spatialStudioUrl = spatialStudioUrl; + this.__explicitlySet__.add("spatialStudioUrl"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -199,7 +218,8 @@ public AutonomousDatabaseConnectionUrls build() { this.mongoDbUrl, this.machineLearningNotebookUrl, this.ordsUrl, - this.databaseTransformsUrl); + this.databaseTransformsUrl, + this.spatialStudioUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -232,6 +252,9 @@ public Builder copy(AutonomousDatabaseConnectionUrls model) { if (model.wasPropertyExplicitlySet("databaseTransformsUrl")) { this.databaseTransformsUrl(model.getDatabaseTransformsUrl()); } + if (model.wasPropertyExplicitlySet("spatialStudioUrl")) { + this.spatialStudioUrl(model.getSpatialStudioUrl()); + } return this; } } @@ -359,6 +382,20 @@ public String getDatabaseTransformsUrl() { return databaseTransformsUrl; } + /** + * The URL of the Spatial Studio for the Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("spatialStudioUrl") + private final String spatialStudioUrl; + + /** + * The URL of the Spatial Studio for the Autonomous AI Database. + * @return the value + **/ + public String getSpatialStudioUrl() { + return spatialStudioUrl; + } + @Override public String toString() { return this.toString(true); @@ -383,6 +420,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.machineLearningNotebookUrl)); sb.append(", ordsUrl=").append(String.valueOf(this.ordsUrl)); sb.append(", databaseTransformsUrl=").append(String.valueOf(this.databaseTransformsUrl)); + sb.append(", spatialStudioUrl=").append(String.valueOf(this.spatialStudioUrl)); sb.append(")"); return sb.toString(); } @@ -408,6 +446,7 @@ public boolean equals(Object o) { this.machineLearningNotebookUrl, other.machineLearningNotebookUrl) && java.util.Objects.equals(this.ordsUrl, other.ordsUrl) && java.util.Objects.equals(this.databaseTransformsUrl, other.databaseTransformsUrl) + && java.util.Objects.equals(this.spatialStudioUrl, other.spatialStudioUrl) && super.equals(other); } @@ -437,6 +476,9 @@ public int hashCode() { + (this.databaseTransformsUrl == null ? 43 : this.databaseTransformsUrl.hashCode()); + result = + (result * PRIME) + + (this.spatialStudioUrl == null ? 43 : this.spatialStudioUrl.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 b85aa1a21c9..c7c7f8b3372 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 @@ -1667,6 +1667,7 @@ public Builder isPreview(Boolean isPreview) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -1684,6 +1685,7 @@ public Builder isPreview(Boolean isPreview) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4841,6 +4843,7 @@ public Boolean getIsPreview() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4903,6 +4906,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4920,6 +4924,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -6546,6 +6551,7 @@ public DisasterRecoveryConfiguration getRemoteDisasterRecoveryConfiguration() { public enum NetServicesArchitecture { Dedicated("DEDICATED"), Shared("SHARED"), + Drcp("DRCP"), /** * 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/AutonomousDbPreviewVersionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java index bce16e2f143..3e5c35861d5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java @@ -103,6 +103,7 @@ public Builder timePreviewEnd(java.util.Date timePreviewEnd) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -120,6 +121,7 @@ public Builder timePreviewEnd(java.util.Date timePreviewEnd) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -249,6 +251,7 @@ public java.util.Date getTimePreviewEnd() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -311,6 +314,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -328,6 +332,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java index 7d234b8fc88..563d5bc3097 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java @@ -95,6 +95,7 @@ public Builder version(String version) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -112,6 +113,7 @@ public Builder version(String version) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -339,6 +341,7 @@ public String getVersion() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -401,6 +404,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -418,6 +422,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java index 6e7d5d87d4a..dee6ff172b7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java @@ -1664,6 +1664,7 @@ public Builder isPreview(Boolean isPreview) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -1681,6 +1682,7 @@ public Builder isPreview(Boolean isPreview) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4786,6 +4788,7 @@ public Boolean getIsPreview() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4835,6 +4838,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -4852,6 +4856,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -6324,6 +6329,7 @@ public DisasterRecoveryConfiguration getRemoteDisasterRecoveryConfiguration() { public enum NetServicesArchitecture { Dedicated("DEDICATED"), Shared("SHARED"), + Drcp("DRCP"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmCluster.java index 42fec9748a8..69c51751037 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmCluster.java @@ -30,6 +30,8 @@ public final class AutonomousVmCluster extends com.oracle.bmc.http.internal.Expl "lifecycleState", "lifecycleDetails", "timeZone", + "distributionAlgorithm", + "sgaPercentage", "exadataInfrastructureId", "vmClusterNetworkId", "isLocalBackupEnabled", @@ -84,6 +86,8 @@ public AutonomousVmCluster( LifecycleState lifecycleState, String lifecycleDetails, String timeZone, + DistributionAlgorithm distributionAlgorithm, + Float sgaPercentage, String exadataInfrastructureId, String vmClusterNetworkId, Boolean isLocalBackupEnabled, @@ -137,6 +141,8 @@ public AutonomousVmCluster( this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeZone = timeZone; + this.distributionAlgorithm = distributionAlgorithm; + this.sgaPercentage = sgaPercentage; this.exadataInfrastructureId = exadataInfrastructureId; this.vmClusterNetworkId = vmClusterNetworkId; this.isLocalBackupEnabled = isLocalBackupEnabled; @@ -299,6 +305,38 @@ public Builder timeZone(String timeZone) { this.__explicitlySet__.add("timeZone"); return this; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @param sgaPercentage the value to set + * @return this builder + **/ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. **/ @@ -1070,6 +1108,8 @@ public AutonomousVmCluster build() { this.lifecycleState, this.lifecycleDetails, this.timeZone, + this.distributionAlgorithm, + this.sgaPercentage, this.exadataInfrastructureId, this.vmClusterNetworkId, this.isLocalBackupEnabled, @@ -1144,6 +1184,12 @@ public Builder copy(AutonomousVmCluster model) { if (model.wasPropertyExplicitlySet("timeZone")) { this.timeZone(model.getTimeZone()); } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } if (model.wasPropertyExplicitlySet("exadataInfrastructureId")) { this.exadataInfrastructureId(model.getExadataInfrastructureId()); } @@ -1451,6 +1497,82 @@ public String getTimeZone() { return timeZone; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributionAlgorithm.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributionAlgorithm', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @return the value + **/ + public Float getSgaPercentage() { + return sgaPercentage; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. **/ @@ -2227,6 +2349,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(", exadataInfrastructureId=") .append(String.valueOf(this.exadataInfrastructureId)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); @@ -2310,6 +2434,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && java.util.Objects.equals( this.exadataInfrastructureId, other.exadataInfrastructureId) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) @@ -2400,6 +2526,14 @@ public int hashCode() { (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + (this.exadataInfrastructureId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmClusterSummary.java index 741b663bb59..27d28283f80 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousVmClusterSummary.java @@ -31,6 +31,8 @@ public final class AutonomousVmClusterSummary "lifecycleState", "lifecycleDetails", "timeZone", + "distributionAlgorithm", + "sgaPercentage", "exadataInfrastructureId", "vmClusterNetworkId", "isLocalBackupEnabled", @@ -85,6 +87,8 @@ public AutonomousVmClusterSummary( LifecycleState lifecycleState, String lifecycleDetails, String timeZone, + DistributionAlgorithm distributionAlgorithm, + Float sgaPercentage, String exadataInfrastructureId, String vmClusterNetworkId, Boolean isLocalBackupEnabled, @@ -138,6 +142,8 @@ public AutonomousVmClusterSummary( this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeZone = timeZone; + this.distributionAlgorithm = distributionAlgorithm; + this.sgaPercentage = sgaPercentage; this.exadataInfrastructureId = exadataInfrastructureId; this.vmClusterNetworkId = vmClusterNetworkId; this.isLocalBackupEnabled = isLocalBackupEnabled; @@ -300,6 +306,38 @@ public Builder timeZone(String timeZone) { this.__explicitlySet__.add("timeZone"); return this; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @param sgaPercentage the value to set + * @return this builder + **/ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. **/ @@ -1071,6 +1109,8 @@ public AutonomousVmClusterSummary build() { this.lifecycleState, this.lifecycleDetails, this.timeZone, + this.distributionAlgorithm, + this.sgaPercentage, this.exadataInfrastructureId, this.vmClusterNetworkId, this.isLocalBackupEnabled, @@ -1145,6 +1185,12 @@ public Builder copy(AutonomousVmClusterSummary model) { if (model.wasPropertyExplicitlySet("timeZone")) { this.timeZone(model.getTimeZone()); } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } if (model.wasPropertyExplicitlySet("exadataInfrastructureId")) { this.exadataInfrastructureId(model.getExadataInfrastructureId()); } @@ -1452,6 +1498,82 @@ public String getTimeZone() { return timeZone; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributionAlgorithm.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributionAlgorithm', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @return the value + **/ + public Float getSgaPercentage() { + return sgaPercentage; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. **/ @@ -2228,6 +2350,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(", exadataInfrastructureId=") .append(String.valueOf(this.exadataInfrastructureId)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); @@ -2311,6 +2435,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && java.util.Objects.equals( this.exadataInfrastructureId, other.exadataInfrastructureId) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) @@ -2401,6 +2527,14 @@ public int hashCode() { (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + (this.exadataInfrastructureId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmCluster.java index b0cdc15bc04..f829c334d38 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmCluster.java @@ -86,7 +86,9 @@ public final class CloudAutonomousVmCluster "systemTags", "subscriptionId", "multiCloudIdentityConnectorConfigs", - "tdeKeyStoreType" + "tdeKeyStoreType", + "distributionAlgorithm", + "sgaPercentage" }) public CloudAutonomousVmCluster( String id, @@ -151,7 +153,9 @@ public CloudAutonomousVmCluster( java.util.Map> systemTags, String subscriptionId, java.util.List multiCloudIdentityConnectorConfigs, - TdeKeyStoreType tdeKeyStoreType) { + TdeKeyStoreType tdeKeyStoreType, + DistributionAlgorithm distributionAlgorithm, + Float sgaPercentage) { super(); this.id = id; this.compartmentId = compartmentId; @@ -217,6 +221,8 @@ public CloudAutonomousVmCluster( this.subscriptionId = subscriptionId; this.multiCloudIdentityConnectorConfigs = multiCloudIdentityConnectorConfigs; this.tdeKeyStoreType = tdeKeyStoreType; + this.distributionAlgorithm = distributionAlgorithm; + this.sgaPercentage = sgaPercentage; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1302,6 +1308,38 @@ public Builder tdeKeyStoreType(TdeKeyStoreType tdeKeyStoreType) { this.__explicitlySet__.add("tdeKeyStoreType"); return this; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @param sgaPercentage the value to set + * @return this builder + **/ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1371,7 +1409,9 @@ public CloudAutonomousVmCluster build() { this.systemTags, this.subscriptionId, this.multiCloudIdentityConnectorConfigs, - this.tdeKeyStoreType); + this.tdeKeyStoreType, + this.distributionAlgorithm, + this.sgaPercentage); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1576,6 +1616,12 @@ public Builder copy(CloudAutonomousVmCluster model) { if (model.wasPropertyExplicitlySet("tdeKeyStoreType")) { this.tdeKeyStoreType(model.getTdeKeyStoreType()); } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } return this; } } @@ -2740,6 +2786,82 @@ public TdeKeyStoreType getTdeKeyStoreType() { return tdeKeyStoreType; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributionAlgorithm.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributionAlgorithm', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @return the value + **/ + public Float getSgaPercentage() { + return sgaPercentage; + } + @Override public String toString() { return this.toString(true); @@ -2835,6 +2957,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", multiCloudIdentityConnectorConfigs=") .append(String.valueOf(this.multiCloudIdentityConnectorConfigs)); sb.append(", tdeKeyStoreType=").append(String.valueOf(this.tdeKeyStoreType)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(")"); return sb.toString(); } @@ -2941,6 +3065,8 @@ public boolean equals(Object o) { this.multiCloudIdentityConnectorConfigs, other.multiCloudIdentityConnectorConfigs) && java.util.Objects.equals(this.tdeKeyStoreType, other.tdeKeyStoreType) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && super.equals(other); } @@ -3155,6 +3281,14 @@ public int hashCode() { result = (result * PRIME) + (this.tdeKeyStoreType == null ? 43 : this.tdeKeyStoreType.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmClusterSummary.java index b72a340de15..060b8232824 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudAutonomousVmClusterSummary.java @@ -86,7 +86,9 @@ public final class CloudAutonomousVmClusterSummary "systemTags", "subscriptionId", "multiCloudIdentityConnectorConfigs", - "tdeKeyStoreType" + "tdeKeyStoreType", + "distributionAlgorithm", + "sgaPercentage" }) public CloudAutonomousVmClusterSummary( String id, @@ -151,7 +153,9 @@ public CloudAutonomousVmClusterSummary( java.util.Map> systemTags, String subscriptionId, java.util.List multiCloudIdentityConnectorConfigs, - TdeKeyStoreType tdeKeyStoreType) { + TdeKeyStoreType tdeKeyStoreType, + DistributionAlgorithm distributionAlgorithm, + Float sgaPercentage) { super(); this.id = id; this.compartmentId = compartmentId; @@ -217,6 +221,8 @@ public CloudAutonomousVmClusterSummary( this.subscriptionId = subscriptionId; this.multiCloudIdentityConnectorConfigs = multiCloudIdentityConnectorConfigs; this.tdeKeyStoreType = tdeKeyStoreType; + this.distributionAlgorithm = distributionAlgorithm; + this.sgaPercentage = sgaPercentage; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1302,6 +1308,38 @@ public Builder tdeKeyStoreType(TdeKeyStoreType tdeKeyStoreType) { this.__explicitlySet__.add("tdeKeyStoreType"); return this; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @param sgaPercentage the value to set + * @return this builder + **/ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1371,7 +1409,9 @@ public CloudAutonomousVmClusterSummary build() { this.systemTags, this.subscriptionId, this.multiCloudIdentityConnectorConfigs, - this.tdeKeyStoreType); + this.tdeKeyStoreType, + this.distributionAlgorithm, + this.sgaPercentage); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1576,6 +1616,12 @@ public Builder copy(CloudAutonomousVmClusterSummary model) { if (model.wasPropertyExplicitlySet("tdeKeyStoreType")) { this.tdeKeyStoreType(model.getTdeKeyStoreType()); } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } return this; } } @@ -2740,6 +2786,82 @@ public TdeKeyStoreType getTdeKeyStoreType() { return tdeKeyStoreType; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributionAlgorithm.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributionAlgorithm', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @return the value + **/ + public Float getSgaPercentage() { + return sgaPercentage; + } + @Override public String toString() { return this.toString(true); @@ -2835,6 +2957,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", multiCloudIdentityConnectorConfigs=") .append(String.valueOf(this.multiCloudIdentityConnectorConfigs)); sb.append(", tdeKeyStoreType=").append(String.valueOf(this.tdeKeyStoreType)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(")"); return sb.toString(); } @@ -2941,6 +3065,8 @@ public boolean equals(Object o) { this.multiCloudIdentityConnectorConfigs, other.multiCloudIdentityConnectorConfigs) && java.util.Objects.equals(this.tdeKeyStoreType, other.tdeKeyStoreType) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && super.equals(other); } @@ -3155,6 +3281,14 @@ public int hashCode() { result = (result * PRIME) + (this.tdeKeyStoreType == null ? 43 : this.tdeKeyStoreType.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java index 314f9d2ba8b..a3a17c7a402 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java @@ -49,6 +49,7 @@ public final class CloudExadataInfrastructure "timeCreated", "lifecycleDetails", "maintenanceWindow", + "maintenanceVersionPreferences", "lastMaintenanceRunId", "nextMaintenanceRunId", "freeformTags", @@ -92,6 +93,7 @@ public CloudExadataInfrastructure( java.util.Date timeCreated, String lifecycleDetails, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, String lastMaintenanceRunId, String nextMaintenanceRunId, java.util.Map freeformTags, @@ -134,6 +136,7 @@ public CloudExadataInfrastructure( this.timeCreated = timeCreated; this.lifecycleDetails = lifecycleDetails; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.lastMaintenanceRunId = lastMaintenanceRunId; this.nextMaintenanceRunId = nextMaintenanceRunId; this.freeformTags = freeformTags; @@ -551,6 +554,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance run. **/ @@ -872,6 +885,7 @@ public CloudExadataInfrastructure build() { this.timeCreated, this.lifecycleDetails, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.lastMaintenanceRunId, this.nextMaintenanceRunId, this.freeformTags, @@ -971,6 +985,9 @@ public Builder copy(CloudExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("lastMaintenanceRunId")) { this.lastMaintenanceRunId(model.getLastMaintenanceRunId()); } @@ -1434,6 +1451,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance run. **/ @@ -1778,6 +1802,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", lastMaintenanceRunId=").append(String.valueOf(this.lastMaintenanceRunId)); sb.append(", nextMaintenanceRunId=").append(String.valueOf(this.nextMaintenanceRunId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -1840,6 +1866,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.lastMaintenanceRunId, other.lastMaintenanceRunId) && java.util.Objects.equals(this.nextMaintenanceRunId, other.nextMaintenanceRunId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -1946,6 +1974,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.lastMaintenanceRunId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java index 239b49a5830..6b15fa6ee08 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java @@ -49,6 +49,7 @@ public final class CloudExadataInfrastructureSummary "timeCreated", "lifecycleDetails", "maintenanceWindow", + "maintenanceVersionPreferences", "lastMaintenanceRunId", "nextMaintenanceRunId", "freeformTags", @@ -92,6 +93,7 @@ public CloudExadataInfrastructureSummary( java.util.Date timeCreated, String lifecycleDetails, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, String lastMaintenanceRunId, String nextMaintenanceRunId, java.util.Map freeformTags, @@ -134,6 +136,7 @@ public CloudExadataInfrastructureSummary( this.timeCreated = timeCreated; this.lifecycleDetails = lifecycleDetails; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.lastMaintenanceRunId = lastMaintenanceRunId; this.nextMaintenanceRunId = nextMaintenanceRunId; this.freeformTags = freeformTags; @@ -551,6 +554,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance run. **/ @@ -872,6 +885,7 @@ public CloudExadataInfrastructureSummary build() { this.timeCreated, this.lifecycleDetails, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.lastMaintenanceRunId, this.nextMaintenanceRunId, this.freeformTags, @@ -971,6 +985,9 @@ public Builder copy(CloudExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("lastMaintenanceRunId")) { this.lastMaintenanceRunId(model.getLastMaintenanceRunId()); } @@ -1434,6 +1451,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance run. **/ @@ -1778,6 +1802,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", lastMaintenanceRunId=").append(String.valueOf(this.lastMaintenanceRunId)); sb.append(", nextMaintenanceRunId=").append(String.valueOf(this.nextMaintenanceRunId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -1840,6 +1866,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.lastMaintenanceRunId, other.lastMaintenanceRunId) && java.util.Objects.equals(this.nextMaintenanceRunId, other.nextMaintenanceRunId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -1946,6 +1974,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.lastMaintenanceRunId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java index cea86cf481b..d00395fd7e7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java @@ -50,6 +50,8 @@ public final class CloudVmCluster extends com.oracle.bmc.http.internal.Explicitl "dbServers", "clusterName", "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", "isLocalBackupEnabled", "cloudExadataInfrastructureId", "isSparseDiskgroupEnabled", @@ -114,6 +116,8 @@ public CloudVmCluster( java.util.List dbServers, String clusterName, Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, Boolean isLocalBackupEnabled, String cloudExadataInfrastructureId, Boolean isSparseDiskgroupEnabled, @@ -177,6 +181,8 @@ public CloudVmCluster( this.dbServers = dbServers; this.clusterName = clusterName; this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; this.isLocalBackupEnabled = isLocalBackupEnabled; this.cloudExadataInfrastructureId = cloudExadataInfrastructureId; this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; @@ -692,16 +698,14 @@ public Builder clusterName(String clusterName) { return this; } /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") private Integer dataStoragePercentage; /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * * @param dataStoragePercentage the value to set * @return this builder @@ -711,6 +715,42 @@ public Builder dataStoragePercentage(Integer dataStoragePercentage) { this.__explicitlySet__.add("dataStoragePercentage"); return this; } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } /** * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. * @@ -1346,6 +1386,8 @@ public CloudVmCluster build() { this.dbServers, this.clusterName, this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, this.isLocalBackupEnabled, this.cloudExadataInfrastructureId, this.isSparseDiskgroupEnabled, @@ -1474,6 +1516,12 @@ public Builder copy(CloudVmCluster model) { if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { this.dataStoragePercentage(model.getDataStoragePercentage()); } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } if (model.wasPropertyExplicitlySet("isLocalBackupEnabled")) { this.isLocalBackupEnabled(model.getIsLocalBackupEnabled()); } @@ -2064,16 +2112,14 @@ public String getClusterName() { } /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") private final Integer dataStoragePercentage; /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * * @return the value **/ @@ -2081,6 +2127,38 @@ public Integer getDataStoragePercentage() { return dataStoragePercentage; } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + /** * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. * @@ -3043,6 +3121,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbServers=").append(String.valueOf(this.dbServers)); sb.append(", clusterName=").append(String.valueOf(this.clusterName)); sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); sb.append(", isLocalBackupEnabled=").append(String.valueOf(this.isLocalBackupEnabled)); sb.append(", cloudExadataInfrastructureId=") .append(String.valueOf(this.cloudExadataInfrastructureId)); @@ -3128,6 +3209,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dbServers, other.dbServers) && java.util.Objects.equals(this.clusterName, other.clusterName) && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) && java.util.Objects.equals(this.isLocalBackupEnabled, other.isLocalBackupEnabled) && java.util.Objects.equals( this.cloudExadataInfrastructureId, other.cloudExadataInfrastructureId) @@ -3246,6 +3330,16 @@ public int hashCode() { + (this.dataStoragePercentage == null ? 43 : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); result = (result * PRIME) + (this.isLocalBackupEnabled == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java index cc7aaa288db..02bcca0cd3d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java @@ -52,6 +52,8 @@ public final class CloudVmClusterSummary "dbServers", "clusterName", "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", "isLocalBackupEnabled", "cloudExadataInfrastructureId", "isSparseDiskgroupEnabled", @@ -115,6 +117,8 @@ public CloudVmClusterSummary( java.util.List dbServers, String clusterName, Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, Boolean isLocalBackupEnabled, String cloudExadataInfrastructureId, Boolean isSparseDiskgroupEnabled, @@ -177,6 +181,8 @@ public CloudVmClusterSummary( this.dbServers = dbServers; this.clusterName = clusterName; this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; this.isLocalBackupEnabled = isLocalBackupEnabled; this.cloudExadataInfrastructureId = cloudExadataInfrastructureId; this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; @@ -683,16 +689,14 @@ public Builder clusterName(String clusterName) { return this; } /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") private Integer dataStoragePercentage; /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * * @param dataStoragePercentage the value to set * @return this builder @@ -702,6 +706,42 @@ public Builder dataStoragePercentage(Integer dataStoragePercentage) { this.__explicitlySet__.add("dataStoragePercentage"); return this; } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } /** * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. * @@ -1336,6 +1376,8 @@ public CloudVmClusterSummary build() { this.dbServers, this.clusterName, this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, this.isLocalBackupEnabled, this.cloudExadataInfrastructureId, this.isSparseDiskgroupEnabled, @@ -1461,6 +1503,12 @@ public Builder copy(CloudVmClusterSummary model) { if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { this.dataStoragePercentage(model.getDataStoragePercentage()); } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } if (model.wasPropertyExplicitlySet("isLocalBackupEnabled")) { this.isLocalBackupEnabled(model.getIsLocalBackupEnabled()); } @@ -2044,16 +2092,14 @@ public String getClusterName() { } /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") private final Integer dataStoragePercentage; /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * * @return the value **/ @@ -2061,6 +2107,38 @@ public Integer getDataStoragePercentage() { return dataStoragePercentage; } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + /** * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. * @@ -3022,6 +3100,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbServers=").append(String.valueOf(this.dbServers)); sb.append(", clusterName=").append(String.valueOf(this.clusterName)); sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); sb.append(", isLocalBackupEnabled=").append(String.valueOf(this.isLocalBackupEnabled)); sb.append(", cloudExadataInfrastructureId=") .append(String.valueOf(this.cloudExadataInfrastructureId)); @@ -3106,6 +3187,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dbServers, other.dbServers) && java.util.Objects.equals(this.clusterName, other.clusterName) && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) && java.util.Objects.equals(this.isLocalBackupEnabled, other.isLocalBackupEnabled) && java.util.Objects.equals( this.cloudExadataInfrastructureId, other.cloudExadataInfrastructureId) @@ -3221,6 +3305,16 @@ public int hashCode() { + (this.dataStoragePercentage == null ? 43 : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); result = (result * PRIME) + (this.isLocalBackupEnabled == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java index 2a1eac96e2d..84cdd168e8e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java @@ -23,13 +23,26 @@ public final class ConvertStandbyDatabaseTypeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public ConvertStandbyDatabaseTypeDetails( + String databaseAdminPassword, + StandbyConversionType standbyConversionType, + Integer snapshotDurationInDays) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.standbyConversionType = standbyConversionType; + this.snapshotDurationInDays = snapshotDurationInDays; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "databaseAdminPassword", "standbyConversionType", "snapshotDurationInDays" }) public ConvertStandbyDatabaseTypeDetails( - String databaseAdminPassword, + char[] databaseAdminPassword, StandbyConversionType standbyConversionType, Integer snapshotDurationInDays) { super(); @@ -47,7 +60,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -57,11 +70,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + /** * Defines the conversion type of the standby database. Specify this to convert a physical standby to a snapshot standby and vice versa. *

@@ -161,7 +182,21 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -170,10 +205,10 @@ public Builder toBuilder() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } - /** * Defines the conversion type of the standby database. Specify this to convert a physical standby to a snapshot standby and vice versa. *

diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java index ee2f9136481..8c70b90ef6f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java @@ -23,6 +23,21 @@ public final class ConvertToRegularPluggableDatabaseDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public ConvertToRegularPluggableDatabaseDetails( + Boolean shouldCreatePdbBackup, + String containerDatabaseAdminPassword, + String tdeWalletPassword) { + super(); + this.shouldCreatePdbBackup = shouldCreatePdbBackup; + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "shouldCreatePdbBackup", "containerDatabaseAdminPassword", @@ -30,8 +45,8 @@ public final class ConvertToRegularPluggableDatabaseDetails }) public ConvertToRegularPluggableDatabaseDetails( Boolean shouldCreatePdbBackup, - String containerDatabaseAdminPassword, - String tdeWalletPassword) { + char[] containerDatabaseAdminPassword, + char[] tdeWalletPassword) { super(); this.shouldCreatePdbBackup = shouldCreatePdbBackup; this.containerDatabaseAdminPassword = containerDatabaseAdminPassword; @@ -60,35 +75,52 @@ public Builder shouldCreatePdbBackup(Boolean shouldCreatePdbBackup) { * The DB system administrator password of the Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private String containerDatabaseAdminPassword; + private char[] containerDatabaseAdminPassword; /** * The DB system administrator password of the Container Database. * @param containerDatabaseAdminPassword the value to set * @return this builder **/ - public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + public Builder containerDatabaseAdminPassword(char[] containerDatabaseAdminPassword) { this.containerDatabaseAdminPassword = containerDatabaseAdminPassword; this.__explicitlySet__.add("containerDatabaseAdminPassword"); return this; } + + public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("containerDatabaseAdminPassword"); + return this; + } + /** * The existing TDE wallet password of the Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * The existing TDE wallet password of the Container Database. * @param tdeWalletPassword the value to set * @return this builder **/ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -148,13 +180,27 @@ public Boolean getShouldCreatePdbBackup() { * The DB system administrator password of the Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private final String containerDatabaseAdminPassword; + private final char[] containerDatabaseAdminPassword; + + /** + * The DB system administrator password of the Container Database. + * return the value + * @Deprecated - Use getContainerDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getContainerDatabaseAdminPassword() { + return containerDatabaseAdminPassword != null + ? new String(containerDatabaseAdminPassword) + : null; + } /** * The DB system administrator password of the Container Database. * @return the value **/ - public String getContainerDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") + public char[] getContainerDatabaseAdminPassword__AsCharArray() { return containerDatabaseAdminPassword; } @@ -162,13 +208,25 @@ public String getContainerDatabaseAdminPassword() { * The existing TDE wallet password of the Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; + + /** + * The existing TDE wallet password of the Container Database. + * return the value + * @Deprecated - Use getTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } /** * The existing TDE wallet password of the Container Database. * @return the value **/ - public String getTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java index bfc56751e60..84ad3277aee 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java @@ -23,8 +23,16 @@ public final class ConvertToStandaloneDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword"}) public ConvertToStandaloneDetails(String databaseAdminPassword) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword"}) + public ConvertToStandaloneDetails(char[] databaseAdminPassword) { super(); this.databaseAdminPassword = databaseAdminPassword; } @@ -38,7 +46,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -48,12 +56,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -93,7 +108,21 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -102,7 +131,8 @@ public Builder toBuilder() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java index 99cabb7e802..0033f8fd4ff 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java @@ -831,13 +831,13 @@ public Integer getDbSplitThreshold() { } /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. **/ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private final Integer vmFailoverReservation; /** - * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. * @return the value **/ public Integer getVmFailoverReservation() { @@ -899,6 +899,7 @@ public DistributionAffinity getDistributionAffinity() { public enum NetServicesArchitecture { Dedicated("DEDICATED"), Shared("SHARED"), + Drcp("DRCP"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index 32514cd4d0e..b4bab225088 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 @@ -472,6 +472,7 @@ public Float getOcpuCount() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -521,6 +522,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -538,6 +540,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousVmClusterDetails.java index b84e101c563..103620791c0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousVmClusterDetails.java @@ -42,7 +42,9 @@ public final class CreateAutonomousVmClusterDetails "definedTags", "scanListenerPortTls", "scanListenerPortNonTls", - "isMtlsEnabled" + "isMtlsEnabled", + "distributionAlgorithm", + "sgaPercentage" }) public CreateAutonomousVmClusterDetails( String compartmentId, @@ -63,7 +65,9 @@ public CreateAutonomousVmClusterDetails( java.util.Map> definedTags, Integer scanListenerPortTls, Integer scanListenerPortNonTls, - Boolean isMtlsEnabled) { + Boolean isMtlsEnabled, + DistributionAlgorithm distributionAlgorithm, + Float sgaPercentage) { super(); this.compartmentId = compartmentId; this.displayName = displayName; @@ -84,6 +88,8 @@ public CreateAutonomousVmClusterDetails( this.scanListenerPortTls = scanListenerPortTls; this.scanListenerPortNonTls = scanListenerPortNonTls; this.isMtlsEnabled = isMtlsEnabled; + this.distributionAlgorithm = distributionAlgorithm; + this.sgaPercentage = sgaPercentage; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -406,6 +412,38 @@ public Builder isMtlsEnabled(Boolean isMtlsEnabled) { this.__explicitlySet__.add("isMtlsEnabled"); return this; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @param sgaPercentage the value to set + * @return this builder + **/ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -431,7 +469,9 @@ public CreateAutonomousVmClusterDetails build() { this.definedTags, this.scanListenerPortTls, this.scanListenerPortNonTls, - this.isMtlsEnabled); + this.isMtlsEnabled, + this.distributionAlgorithm, + this.sgaPercentage); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -497,6 +537,12 @@ public Builder copy(CreateAutonomousVmClusterDetails model) { if (model.wasPropertyExplicitlySet("isMtlsEnabled")) { this.isMtlsEnabled(model.getIsMtlsEnabled()); } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } return this; } } @@ -863,6 +909,69 @@ public Boolean getIsMtlsEnabled() { return isMtlsEnabled; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + map.put(v.getValue(), v); + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DistributionAlgorithm: " + key); + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @return the value + **/ + public Float getSgaPercentage() { + return sgaPercentage; + } + @Override public String toString() { return this.toString(true); @@ -901,6 +1010,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", scanListenerPortTls=").append(String.valueOf(this.scanListenerPortTls)); sb.append(", scanListenerPortNonTls=").append(String.valueOf(this.scanListenerPortNonTls)); sb.append(", isMtlsEnabled=").append(String.valueOf(this.isMtlsEnabled)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(")"); return sb.toString(); } @@ -940,6 +1051,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.scanListenerPortNonTls, other.scanListenerPortNonTls) && java.util.Objects.equals(this.isMtlsEnabled, other.isMtlsEnabled) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && super.equals(other); } @@ -1010,6 +1123,14 @@ public int hashCode() { result = (result * PRIME) + (this.isMtlsEnabled == null ? 43 : this.isMtlsEnabled.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudAutonomousVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudAutonomousVmClusterDetails.java index 5c40a804f14..8360a0f35b0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudAutonomousVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudAutonomousVmClusterDetails.java @@ -36,6 +36,8 @@ public final class CreateCloudAutonomousVmClusterDetails "clusterTimeZone", "computeModel", "isMtlsEnabledVmCluster", + "distributionAlgorithm", + "sgaPercentage", "dbServers", "maintenanceWindowDetails", "scanListenerPortTls", @@ -60,6 +62,8 @@ public CreateCloudAutonomousVmClusterDetails( String clusterTimeZone, ComputeModel computeModel, Boolean isMtlsEnabledVmCluster, + DistributionAlgorithm distributionAlgorithm, + Float sgaPercentage, java.util.List dbServers, MaintenanceWindow maintenanceWindowDetails, Integer scanListenerPortTls, @@ -83,6 +87,8 @@ public CreateCloudAutonomousVmClusterDetails( this.clusterTimeZone = clusterTimeZone; this.computeModel = computeModel; this.isMtlsEnabledVmCluster = isMtlsEnabledVmCluster; + this.distributionAlgorithm = distributionAlgorithm; + this.sgaPercentage = sgaPercentage; this.dbServers = dbServers; this.maintenanceWindowDetails = maintenanceWindowDetails; this.scanListenerPortTls = scanListenerPortTls; @@ -295,6 +301,38 @@ public Builder isMtlsEnabledVmCluster(Boolean isMtlsEnabledVmCluster) { this.__explicitlySet__.add("isMtlsEnabledVmCluster"); return this; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @param sgaPercentage the value to set + * @return this builder + **/ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } /** * The list of database servers. **/ @@ -505,6 +543,8 @@ public CreateCloudAutonomousVmClusterDetails build() { this.clusterTimeZone, this.computeModel, this.isMtlsEnabledVmCluster, + this.distributionAlgorithm, + this.sgaPercentage, this.dbServers, this.maintenanceWindowDetails, this.scanListenerPortTls, @@ -559,6 +599,12 @@ public Builder copy(CreateCloudAutonomousVmClusterDetails model) { if (model.wasPropertyExplicitlySet("isMtlsEnabledVmCluster")) { this.isMtlsEnabledVmCluster(model.getIsMtlsEnabledVmCluster()); } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } if (model.wasPropertyExplicitlySet("dbServers")) { this.dbServers(model.getDbServers()); } @@ -814,6 +860,69 @@ public Boolean getIsMtlsEnabledVmCluster() { return isMtlsEnabledVmCluster; } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + map.put(v.getValue(), v); + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DistributionAlgorithm: " + key); + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * Percentage of ECPU memory allocated for SGA(System Global Area). + * @return the value + **/ + public Float getSgaPercentage() { + return sgaPercentage; + } + /** * The list of database servers. **/ @@ -1054,6 +1163,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterTimeZone=").append(String.valueOf(this.clusterTimeZone)); sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(", isMtlsEnabledVmCluster=").append(String.valueOf(this.isMtlsEnabledVmCluster)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(", dbServers=").append(String.valueOf(this.dbServers)); sb.append(", maintenanceWindowDetails=") .append(String.valueOf(this.maintenanceWindowDetails)); @@ -1096,6 +1207,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.computeModel, other.computeModel) && java.util.Objects.equals( this.isMtlsEnabledVmCluster, other.isMtlsEnabledVmCluster) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && java.util.Objects.equals(this.dbServers, other.dbServers) && java.util.Objects.equals( this.maintenanceWindowDetails, other.maintenanceWindowDetails) @@ -1155,6 +1268,14 @@ public int hashCode() { + (this.isMtlsEnabledVmCluster == null ? 43 : this.isMtlsEnabledVmCluster.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + (this.dbServers == null ? 43 : this.dbServers.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java index 2d40a714d0a..8eddf1ed826 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java @@ -31,6 +31,7 @@ public final class CreateCloudExadataInfrastructureDetails "computeCount", "storageCount", "maintenanceWindow", + "maintenanceVersionPreferences", "freeformTags", "definedTags", "clusterPlacementGroupId", @@ -47,6 +48,7 @@ public CreateCloudExadataInfrastructureDetails( Integer computeCount, Integer storageCount, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, java.util.Map freeformTags, java.util.Map> definedTags, String clusterPlacementGroupId, @@ -62,6 +64,7 @@ public CreateCloudExadataInfrastructureDetails( this.computeCount = computeCount; this.storageCount = storageCount; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.freeformTags = freeformTags; this.definedTags = definedTags; this.clusterPlacementGroupId = clusterPlacementGroupId; @@ -182,6 +185,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -321,6 +334,7 @@ public CreateCloudExadataInfrastructureDetails build() { this.computeCount, this.storageCount, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.freeformTags, this.definedTags, this.clusterPlacementGroupId, @@ -357,6 +371,9 @@ public Builder copy(CreateCloudExadataInfrastructureDetails model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -488,6 +505,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -619,6 +643,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", computeCount=").append(String.valueOf(this.computeCount)); sb.append(", storageCount=").append(String.valueOf(this.storageCount)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", clusterPlacementGroupId=") @@ -648,6 +674,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.computeCount, other.computeCount) && java.util.Objects.equals(this.storageCount, other.storageCount) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals( @@ -678,6 +706,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudVmClusterDetails.java index fcbfeb39354..cdbf92229eb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudVmClusterDetails.java @@ -36,6 +36,8 @@ public final class CreateCloudVmClusterDetails "dbServers", "clusterName", "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", "displayName", "cloudExadataInfrastructureId", "hostname", @@ -76,6 +78,8 @@ public CreateCloudVmClusterDetails( java.util.List dbServers, String clusterName, Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, String displayName, String cloudExadataInfrastructureId, String hostname, @@ -115,6 +119,8 @@ public CreateCloudVmClusterDetails( this.dbServers = dbServers; this.clusterName = clusterName; this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; this.displayName = displayName; this.cloudExadataInfrastructureId = cloudExadataInfrastructureId; this.hostname = hostname; @@ -368,16 +374,14 @@ public Builder clusterName(String clusterName) { return this; } /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") private Integer dataStoragePercentage; /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * * @param dataStoragePercentage the value to set * @return this builder @@ -387,6 +391,42 @@ public Builder dataStoragePercentage(Integer dataStoragePercentage) { this.__explicitlySet__.add("dataStoragePercentage"); return this; } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } /** * The user-friendly name for the cloud VM cluster. The name does not need to be unique. **/ @@ -868,6 +908,8 @@ public CreateCloudVmClusterDetails build() { this.dbServers, this.clusterName, this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, this.displayName, this.cloudExadataInfrastructureId, this.hostname, @@ -938,6 +980,12 @@ public Builder copy(CreateCloudVmClusterDetails model) { if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { this.dataStoragePercentage(model.getDataStoragePercentage()); } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -1232,16 +1280,14 @@ public String getClusterName() { } /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") private final Integer dataStoragePercentage; /** - * The percentage assigned to DATA storage (user data and database files). - * The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. * * @return the value **/ @@ -1249,6 +1295,38 @@ public Integer getDataStoragePercentage() { return dataStoragePercentage; } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + /** * The user-friendly name for the cloud VM cluster. The name does not need to be unique. **/ @@ -1822,6 +1900,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbServers=").append(String.valueOf(this.dbServers)); sb.append(", clusterName=").append(String.valueOf(this.clusterName)); sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", cloudExadataInfrastructureId=") .append(String.valueOf(this.cloudExadataInfrastructureId)); @@ -1881,6 +1962,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dbServers, other.dbServers) && java.util.Objects.equals(this.clusterName, other.clusterName) && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.cloudExadataInfrastructureId, other.cloudExadataInfrastructureId) @@ -1953,6 +2037,16 @@ public int hashCode() { + (this.dataStoragePercentage == null ? 43 : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java index a8bad923eec..d3d08261b4b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java @@ -25,6 +25,50 @@ public final class CreateDatabaseDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseDetails( + String dbName, + String dbUniqueName, + String databaseSoftwareImageId, + String pdbName, + String adminPassword, + String tdeWalletPassword, + String characterSet, + String ncharacterSet, + DbWorkload dbWorkload, + DbBackupConfig dbBackupConfig, + java.util.Map freeformTags, + java.util.Map> definedTags, + String kmsKeyId, + String kmsKeyVersionId, + String vaultId, + String sidPrefix, + String keyStoreId, + EncryptionKeyLocationDetails encryptionKeyLocationDetails, + DatabaseStorageSizeDetails storageSizeDetails) { + super(); + this.dbName = dbName; + this.dbUniqueName = dbUniqueName; + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.pdbName = pdbName; + this.adminPassword = adminPassword; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.dbWorkload = dbWorkload; + this.dbBackupConfig = dbBackupConfig; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.vaultId = vaultId; + this.sidPrefix = sidPrefix; + this.keyStoreId = keyStoreId; + this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; + this.storageSizeDetails = storageSizeDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "dbName", "dbUniqueName", @@ -52,7 +96,7 @@ public CreateDatabaseDetails( String databaseSoftwareImageId, String pdbName, String adminPassword, - String tdeWalletPassword, + char[] tdeWalletPassword, String characterSet, String ncharacterSet, DbWorkload dbWorkload, @@ -174,18 +218,26 @@ public Builder adminPassword(String adminPassword) { * The optional password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * The optional password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @param tdeWalletPassword the value to set * @return this builder **/ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + /** * The character set for the database. The default is AL32UTF8. Allowed values are: *

@@ -589,13 +641,25 @@ public String getAdminPassword() { * The optional password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; + + /** + * The optional password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. + * return the value + * @Deprecated - Use getTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } /** * The optional password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @return the value **/ - public String getTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java index ce702ef9178..9aa27cadae5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java @@ -25,6 +25,38 @@ public final class CreateDatabaseForStandbyDbSystemDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseForStandbyDbSystemDetails( + String adminPassword, + String tdeWalletPassword, + String databaseSoftwareImageId, + Boolean isActiveDataGuardEnabled, + String dbDomain, + String sidPrefix, + String dbUniqueName, + ProtectionMode protectionMode, + EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, + TransportType transportType, + DbBackupConfig dbBackupConfig, + java.util.Map databaseFreeformTags, + java.util.Map> databaseDefinedTags) { + super(); + this.adminPassword = adminPassword; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.dbDomain = dbDomain; + this.sidPrefix = sidPrefix; + this.dbUniqueName = dbUniqueName; + this.protectionMode = protectionMode; + this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; + this.transportType = transportType; + this.dbBackupConfig = dbBackupConfig; + this.databaseFreeformTags = databaseFreeformTags; + this.databaseDefinedTags = databaseDefinedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "adminPassword", "tdeWalletPassword", @@ -42,7 +74,7 @@ public final class CreateDatabaseForStandbyDbSystemDetails }) public CreateDatabaseForStandbyDbSystemDetails( String adminPassword, - String tdeWalletPassword, + char[] tdeWalletPassword, String databaseSoftwareImageId, Boolean isActiveDataGuardEnabled, String dbDomain, @@ -92,18 +124,26 @@ public Builder adminPassword(String adminPassword) { * For TDE Wallet, enter the same password as the primary wallet password. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * For TDE Wallet, enter the same password as the primary wallet password. * @param tdeWalletPassword the value to set * @return this builder **/ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + /** * The database software image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **/ @@ -411,13 +451,25 @@ public String getAdminPassword() { * For TDE Wallet, enter the same password as the primary wallet password. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; + + /** + * For TDE Wallet, enter the same password as the primary wallet password. + * return the value + * @Deprecated - Use getTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } /** * For TDE Wallet, enter the same password as the primary wallet password. * @return the value **/ - public String getTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java index b18af721f0d..0ecb6937cb9 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java @@ -38,6 +38,7 @@ public final class CreateExadataInfrastructureDetails "corporateProxy", "contacts", "maintenanceWindow", + "maintenanceVersionPreferences", "storageCount", "computeCount", "isMultiRackDeployment", @@ -65,6 +66,7 @@ public CreateExadataInfrastructureDetails( String corporateProxy, java.util.List contacts, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, Integer storageCount, Integer computeCount, Boolean isMultiRackDeployment, @@ -91,6 +93,7 @@ public CreateExadataInfrastructureDetails( this.corporateProxy = corporateProxy; this.contacts = contacts; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.storageCount = storageCount; this.computeCount = computeCount; this.isMultiRackDeployment = isMultiRackDeployment; @@ -320,6 +323,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The number of storage servers for the Exadata infrastructure. **/ @@ -545,6 +558,7 @@ public CreateExadataInfrastructureDetails build() { this.corporateProxy, this.contacts, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.storageCount, this.computeCount, this.isMultiRackDeployment, @@ -604,6 +618,9 @@ public Builder copy(CreateExadataInfrastructureDetails model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("storageCount")) { this.storageCount(model.getStorageCount()); } @@ -842,6 +859,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The number of storage servers for the Exadata infrastructure. **/ @@ -1050,6 +1074,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); sb.append(", contacts=").append(String.valueOf(this.contacts)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", storageCount=").append(String.valueOf(this.storageCount)); sb.append(", computeCount=").append(String.valueOf(this.computeCount)); sb.append(", isMultiRackDeployment=").append(String.valueOf(this.isMultiRackDeployment)); @@ -1102,6 +1128,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) && java.util.Objects.equals(this.contacts, other.contacts) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.storageCount, other.storageCount) && java.util.Objects.equals(this.computeCount, other.computeCount) && java.util.Objects.equals(this.isMultiRackDeployment, other.isMultiRackDeployment) @@ -1157,6 +1185,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.storageCount == null ? 43 : this.storageCount.hashCode()); result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); result = diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java index b955230caea..5cccff72928 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java @@ -274,6 +274,7 @@ public enum ActionType { DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java index 2d58dbd92c3..7f59fcbfcf7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java @@ -25,6 +25,35 @@ public final class CreatePluggableDatabaseDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreatePluggableDatabaseDetails( + String pdbName, + String containerDatabaseId, + String pdbAdminPassword, + String tdeWalletPassword, + Boolean shouldPdbAdminAccountBeLocked, + String containerDatabaseAdminPassword, + Boolean shouldCreatePdbBackup, + CreatePluggableDatabaseCreationTypeDetails pdbCreationTypeDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.pdbName = pdbName; + this.containerDatabaseId = containerDatabaseId; + this.pdbAdminPassword = pdbAdminPassword; + this.tdeWalletPassword = tdeWalletPassword; + this.shouldPdbAdminAccountBeLocked = shouldPdbAdminAccountBeLocked; + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.shouldCreatePdbBackup = shouldCreatePdbBackup; + this.pdbCreationTypeDetails = pdbCreationTypeDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "pdbName", "containerDatabaseId", @@ -43,7 +72,7 @@ public CreatePluggableDatabaseDetails( String pdbAdminPassword, String tdeWalletPassword, Boolean shouldPdbAdminAccountBeLocked, - String containerDatabaseAdminPassword, + char[] containerDatabaseAdminPassword, Boolean shouldCreatePdbBackup, CreatePluggableDatabaseCreationTypeDetails pdbCreationTypeDetails, java.util.Map freeformTags, @@ -151,18 +180,28 @@ public Builder shouldPdbAdminAccountBeLocked(Boolean shouldPdbAdminAccountBeLock * The DB system administrator password of the Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private String containerDatabaseAdminPassword; + private char[] containerDatabaseAdminPassword; /** * The DB system administrator password of the Container Database. * @param containerDatabaseAdminPassword the value to set * @return this builder **/ - public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + public Builder containerDatabaseAdminPassword(char[] containerDatabaseAdminPassword) { this.containerDatabaseAdminPassword = containerDatabaseAdminPassword; this.__explicitlySet__.add("containerDatabaseAdminPassword"); return this; } + + public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("containerDatabaseAdminPassword"); + return this; + } + /** * Indicates whether to take Pluggable Database Backup after the operation. **/ @@ -382,13 +421,27 @@ public Boolean getShouldPdbAdminAccountBeLocked() { * The DB system administrator password of the Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private final String containerDatabaseAdminPassword; + private final char[] containerDatabaseAdminPassword; + + /** + * The DB system administrator password of the Container Database. + * return the value + * @Deprecated - Use getContainerDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getContainerDatabaseAdminPassword() { + return containerDatabaseAdminPassword != null + ? new String(containerDatabaseAdminPassword) + : null; + } /** * The DB system administrator password of the Container Database. * @return the value **/ - public String getContainerDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") + public char[] getContainerDatabaseAdminPassword__AsCharArray() { return containerDatabaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java index 969ae1f1cdd..478a0e078e4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java @@ -51,18 +51,26 @@ public Builder dblinkUsername(String dblinkUsername) { * The DB link user password. **/ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private String dblinkUserPassword; + private char[] dblinkUserPassword; /** * The DB link user password. * @param dblinkUserPassword the value to set * @return this builder **/ - public Builder dblinkUserPassword(String dblinkUserPassword) { + public Builder dblinkUserPassword(char[] dblinkUserPassword) { this.dblinkUserPassword = dblinkUserPassword; this.__explicitlySet__.add("dblinkUserPassword"); return this; } + + public Builder dblinkUserPassword(String dblinkUserPassword) { + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.__explicitlySet__.add("dblinkUserPassword"); + return this; + } + /** * The OCID of the Source Pluggable Database. **/ @@ -83,7 +91,7 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { * The DB system administrator password of the source Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private String sourceContainerDatabaseAdminPassword; + private char[] sourceContainerDatabaseAdminPassword; /** * The DB system administrator password of the source Container Database. @@ -91,12 +99,22 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { * @return this builder **/ public Builder sourceContainerDatabaseAdminPassword( - String sourceContainerDatabaseAdminPassword) { + char[] sourceContainerDatabaseAdminPassword) { this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); return this; } + public Builder sourceContainerDatabaseAdminPassword( + String sourceContainerDatabaseAdminPassword) { + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -151,6 +169,24 @@ public CreatePluggableDatabaseFromRelocateDetails( String sourceContainerDatabaseAdminPassword) { super(); this.dblinkUsername = dblinkUsername; + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePluggableDatabaseFromRelocateDetails( + String dblinkUsername, + char[] dblinkUserPassword, + String sourcePluggableDatabaseId, + char[] sourceContainerDatabaseAdminPassword) { + super(); + this.dblinkUsername = dblinkUsername; this.dblinkUserPassword = dblinkUserPassword; this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; @@ -174,13 +210,25 @@ public String getDblinkUsername() { * The DB link user password. **/ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private final String dblinkUserPassword; + private final char[] dblinkUserPassword; + + /** + * The DB link user password. + * return the value + * @Deprecated - Use getDblinkUserPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDblinkUserPassword() { + return dblinkUserPassword != null ? new String(dblinkUserPassword) : null; + } /** * The DB link user password. * @return the value **/ - public String getDblinkUserPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") + public char[] getDblinkUserPassword__AsCharArray() { return dblinkUserPassword; } @@ -202,13 +250,27 @@ public String getSourcePluggableDatabaseId() { * The DB system administrator password of the source Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private final String sourceContainerDatabaseAdminPassword; + private final char[] sourceContainerDatabaseAdminPassword; + + /** + * The DB system administrator password of the source Container Database. + * return the value + * @Deprecated - Use getSourceContainerDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourceContainerDatabaseAdminPassword() { + return sourceContainerDatabaseAdminPassword != null + ? new String(sourceContainerDatabaseAdminPassword) + : null; + } /** * The DB system administrator password of the source Container Database. * @return the value **/ - public String getSourceContainerDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") + public char[] getSourceContainerDatabaseAdminPassword__AsCharArray() { return sourceContainerDatabaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java index 3e8f461be00..12ed6325ff0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java @@ -51,18 +51,26 @@ public Builder dblinkUsername(String dblinkUsername) { * The DB link user password. **/ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private String dblinkUserPassword; + private char[] dblinkUserPassword; /** * The DB link user password. * @param dblinkUserPassword the value to set * @return this builder **/ - public Builder dblinkUserPassword(String dblinkUserPassword) { + public Builder dblinkUserPassword(char[] dblinkUserPassword) { this.dblinkUserPassword = dblinkUserPassword; this.__explicitlySet__.add("dblinkUserPassword"); return this; } + + public Builder dblinkUserPassword(String dblinkUserPassword) { + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.__explicitlySet__.add("dblinkUserPassword"); + return this; + } + /** * The OCID of the Source Pluggable Database. **/ @@ -83,7 +91,7 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { * The DB system administrator password of the source Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private String sourceContainerDatabaseAdminPassword; + private char[] sourceContainerDatabaseAdminPassword; /** * The DB system administrator password of the source Container Database. @@ -91,12 +99,22 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { * @return this builder **/ public Builder sourceContainerDatabaseAdminPassword( - String sourceContainerDatabaseAdminPassword) { + char[] sourceContainerDatabaseAdminPassword) { this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); return this; } + public Builder sourceContainerDatabaseAdminPassword( + String sourceContainerDatabaseAdminPassword) { + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshableCloneDetails") private CreatePluggableDatabaseRefreshableCloneDetails refreshableCloneDetails; @@ -209,6 +227,30 @@ public CreatePluggableDatabaseFromRemoteCloneDetails( String sourcePluggableDatabaseSnapshotId) { super(); this.dblinkUsername = dblinkUsername; + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + this.refreshableCloneDetails = refreshableCloneDetails; + this.isThinClone = isThinClone; + this.sourcePluggableDatabaseSnapshotId = sourcePluggableDatabaseSnapshotId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePluggableDatabaseFromRemoteCloneDetails( + String dblinkUsername, + char[] dblinkUserPassword, + String sourcePluggableDatabaseId, + char[] sourceContainerDatabaseAdminPassword, + CreatePluggableDatabaseRefreshableCloneDetails refreshableCloneDetails, + Boolean isThinClone, + String sourcePluggableDatabaseSnapshotId) { + super(); + this.dblinkUsername = dblinkUsername; this.dblinkUserPassword = dblinkUserPassword; this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; @@ -235,13 +277,25 @@ public String getDblinkUsername() { * The DB link user password. **/ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private final String dblinkUserPassword; + private final char[] dblinkUserPassword; + + /** + * The DB link user password. + * return the value + * @Deprecated - Use getDblinkUserPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDblinkUserPassword() { + return dblinkUserPassword != null ? new String(dblinkUserPassword) : null; + } /** * The DB link user password. * @return the value **/ - public String getDblinkUserPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") + public char[] getDblinkUserPassword__AsCharArray() { return dblinkUserPassword; } @@ -263,13 +317,27 @@ public String getSourcePluggableDatabaseId() { * The DB system administrator password of the source Container Database. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private final String sourceContainerDatabaseAdminPassword; + private final char[] sourceContainerDatabaseAdminPassword; + + /** + * The DB system administrator password of the source Container Database. + * return the value + * @Deprecated - Use getSourceContainerDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourceContainerDatabaseAdminPassword() { + return sourceContainerDatabaseAdminPassword != null + ? new String(sourceContainerDatabaseAdminPassword) + : null; + } /** * The DB system administrator password of the source Container Database. * @return the value **/ - public String getSourceContainerDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") + public char[] getSourceContainerDatabaseAdminPassword__AsCharArray() { return sourceContainerDatabaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java index 256453f3ea8..9cd56c4d1e4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java @@ -272,6 +272,7 @@ public enum ActionType { FsuVmClusterOsSoftwareUpdate("FSU_VM_CLUSTER_OS_SOFTWARE_UPDATE"), FsuVmClusterGiSoftwareUpdate("FSU_VM_CLUSTER_GI_SOFTWARE_UPDATE"), FsuVmClusterGiOsSoftwareUpdate("FSU_VM_CLUSTER_GI_OS_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java index 4fe9c60c1ad..4b665b5705e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java @@ -30,7 +30,8 @@ public final class CreateSchedulingPlanDetails "serviceType", "isUsingRecommendedScheduledActions", "freeformTags", - "definedTags" + "definedTags", + "planIntent" }) public CreateSchedulingPlanDetails( String compartmentId, @@ -39,7 +40,8 @@ public CreateSchedulingPlanDetails( ServiceType serviceType, Boolean isUsingRecommendedScheduledActions, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + PlanIntent planIntent) { super(); this.compartmentId = compartmentId; this.schedulingPolicyId = schedulingPolicyId; @@ -48,6 +50,7 @@ public CreateSchedulingPlanDetails( this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.planIntent = planIntent; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -178,6 +181,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("planIntent") + private PlanIntent planIntent; + + /** + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. + * @param planIntent the value to set + * @return this builder + **/ + public Builder planIntent(PlanIntent planIntent) { + this.planIntent = planIntent; + this.__explicitlySet__.add("planIntent"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -191,7 +210,8 @@ public CreateSchedulingPlanDetails build() { this.serviceType, this.isUsingRecommendedScheduledActions, this.freeformTags, - this.definedTags); + this.definedTags, + this.planIntent); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -222,6 +242,9 @@ public Builder copy(CreateSchedulingPlanDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("planIntent")) { + this.planIntent(model.getPlanIntent()); + } return this; } } @@ -383,6 +406,55 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. + **/ + public enum PlanIntent { + ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ExadataInfrastructureSecurityUpdate("EXADATA_INFRASTRUCTURE_SECURITY_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanIntent v : PlanIntent.values()) { + map.put(v.getValue(), v); + } + } + + PlanIntent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanIntent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PlanIntent: " + key); + } + }; + /** + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("planIntent") + private final PlanIntent planIntent; + + /** + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. + * @return the value + **/ + public PlanIntent getPlanIntent() { + return planIntent; + } + @Override public String toString() { return this.toString(true); @@ -405,6 +477,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isUsingRecommendedScheduledActions)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", planIntent=").append(String.valueOf(this.planIntent)); sb.append(")"); return sb.toString(); } @@ -428,6 +501,7 @@ public boolean equals(Object o) { other.isUsingRecommendedScheduledActions) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.planIntent, other.planIntent) && super.equals(other); } @@ -452,6 +526,7 @@ public int hashCode() { : this.isUsingRecommendedScheduledActions.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.planIntent == null ? 43 : this.planIntent.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java index af2ea78e046..ef26f8704ea 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java @@ -20,6 +20,38 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class CreateStandbyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public CreateStandbyDetails( + String sourceDatabaseId, + String databaseAdminPassword, + String sourceTdeWalletPassword, + EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, + Boolean isActiveDataGuardEnabled, + String dbUniqueName, + String sidPrefix, + ProtectionMode protectionMode, + TransportType transportType, + DatabaseStorageSizeDetails storageSizeDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.sourceDatabaseId = sourceDatabaseId; + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.sourceTdeWalletPassword = + sourceTdeWalletPassword != null ? sourceTdeWalletPassword.toCharArray() : null; + this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.dbUniqueName = dbUniqueName; + this.sidPrefix = sidPrefix; + this.protectionMode = protectionMode; + this.transportType = transportType; + this.storageSizeDetails = storageSizeDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "sourceDatabaseId", @@ -37,8 +69,8 @@ public final class CreateStandbyDetails extends com.oracle.bmc.http.internal.Exp }) public CreateStandbyDetails( String sourceDatabaseId, - String databaseAdminPassword, - String sourceTdeWalletPassword, + char[] databaseAdminPassword, + char[] sourceTdeWalletPassword, EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, Boolean isActiveDataGuardEnabled, String dbUniqueName, @@ -88,7 +120,7 @@ public Builder sourceDatabaseId(String sourceDatabaseId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -98,28 +130,43 @@ public Builder sourceDatabaseId(String sourceDatabaseId) { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + /** * The TDE wallet password of the source database specified by 'sourceDatabaseId'. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceTdeWalletPassword") - private String sourceTdeWalletPassword; + private char[] sourceTdeWalletPassword; /** * The TDE wallet password of the source database specified by 'sourceDatabaseId'. * @param sourceTdeWalletPassword the value to set * @return this builder **/ - public Builder sourceTdeWalletPassword(String sourceTdeWalletPassword) { + public Builder sourceTdeWalletPassword(char[] sourceTdeWalletPassword) { this.sourceTdeWalletPassword = sourceTdeWalletPassword; this.__explicitlySet__.add("sourceTdeWalletPassword"); return this; } + public Builder sourceTdeWalletPassword(String sourceTdeWalletPassword) { + this.sourceTdeWalletPassword = + sourceTdeWalletPassword != null ? sourceTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("sourceTdeWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("sourceEncryptionKeyLocationDetails") private EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails; @@ -395,7 +442,21 @@ public String getSourceDatabaseId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -404,7 +465,8 @@ public String getSourceDatabaseId() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } @@ -412,13 +474,25 @@ public String getDatabaseAdminPassword() { * The TDE wallet password of the source database specified by 'sourceDatabaseId'. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceTdeWalletPassword") - private final String sourceTdeWalletPassword; + private final char[] sourceTdeWalletPassword; + + /** + * The TDE wallet password of the source database specified by 'sourceDatabaseId'. + * return the value + * @Deprecated - Use getSourceTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourceTdeWalletPassword() { + return sourceTdeWalletPassword != null ? new String(sourceTdeWalletPassword) : null; + } /** * The TDE wallet password of the source database specified by 'sourceDatabaseId'. * @return the value **/ - public String getSourceTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sourceTdeWalletPassword") + public char[] getSourceTdeWalletPassword__AsCharArray() { return sourceTdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java index 56c0eed6d38..aaf3f5f72bc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java @@ -37,6 +37,9 @@ public final class CreateVmClusterDetails "sshPublicKeys", "vmClusterNetworkId", "licenseModel", + "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", "isSparseDiskgroupEnabled", "isLocalBackupEnabled", "timeZone", @@ -66,6 +69,9 @@ public CreateVmClusterDetails( java.util.List sshPublicKeys, String vmClusterNetworkId, LicenseModel licenseModel, + Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, Boolean isSparseDiskgroupEnabled, Boolean isLocalBackupEnabled, String timeZone, @@ -94,6 +100,9 @@ public CreateVmClusterDetails( this.sshPublicKeys = sshPublicKeys; this.vmClusterNetworkId = vmClusterNetworkId; this.licenseModel = licenseModel; + this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; this.isLocalBackupEnabled = isLocalBackupEnabled; this.timeZone = timeZone; @@ -307,6 +316,60 @@ public Builder licenseModel(LicenseModel licenseModel) { this.__explicitlySet__.add("licenseModel"); return this; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param dataStoragePercentage the value to set + * @return this builder + **/ + public Builder dataStoragePercentage(Integer dataStoragePercentage) { + this.dataStoragePercentage = dataStoragePercentage; + this.__explicitlySet__.add("dataStoragePercentage"); + return this; + } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } /** * If true, the sparse disk group is configured for the VM cluster. If false, the sparse disk group is not created. * @@ -571,6 +634,9 @@ public CreateVmClusterDetails build() { this.sshPublicKeys, this.vmClusterNetworkId, this.licenseModel, + this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, this.isSparseDiskgroupEnabled, this.isLocalBackupEnabled, this.timeZone, @@ -630,6 +696,15 @@ public Builder copy(CreateVmClusterDetails model) { if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } + if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { + this.dataStoragePercentage(model.getDataStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } if (model.wasPropertyExplicitlySet("isSparseDiskgroupEnabled")) { this.isSparseDiskgroupEnabled(model.getIsSparseDiskgroupEnabled()); } @@ -896,6 +971,54 @@ public LicenseModel getLicenseModel() { return licenseModel; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private final Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getDataStoragePercentage() { + return dataStoragePercentage; + } + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + /** * If true, the sparse disk group is configured for the VM cluster. If false, the sparse disk group is not created. * @@ -1240,6 +1363,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); sb.append(", isSparseDiskgroupEnabled=") .append(String.valueOf(this.isSparseDiskgroupEnabled)); sb.append(", isLocalBackupEnabled=").append(String.valueOf(this.isLocalBackupEnabled)); @@ -1288,6 +1415,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) && java.util.Objects.equals( this.isSparseDiskgroupEnabled, other.isSparseDiskgroupEnabled) && java.util.Objects.equals(this.isLocalBackupEnabled, other.isLocalBackupEnabled) @@ -1353,6 +1484,21 @@ public int hashCode() { ? 43 : this.vmClusterNetworkId.hashCode()); result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = + (result * PRIME) + + (this.dataStoragePercentage == null + ? 43 + : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); result = (result * PRIME) + (this.isSparseDiskgroupEnabled == null 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 0f8266ec92b..9bef7f0c75f 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 @@ -83,18 +83,25 @@ public Builder username(String username) { * The password that will be used to connect to the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password that will be used to connect to the database. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The role of the user that will be connecting to the database. **/ @@ -160,6 +167,17 @@ public DatabaseConnectionCredentialsByDetails( super(); this.credentialName = credentialName; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.role = role; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public DatabaseConnectionCredentialsByDetails( + String credentialName, String username, char[] password, Role role) { + super(); + this.credentialName = credentialName; + this.username = username; this.password = password; this.role = role; } @@ -214,16 +232,27 @@ public String getUsername() { * The password that will be used to connect to the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password that will be used to connect to the database. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password that will be used to connect to the database. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } - /** * The role of the user that will be connecting to the database. **/ 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 78bea8d4902..5e7421bb7bd 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 @@ -82,18 +82,25 @@ public Builder username(String username) { * The password that will be used to connect to the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password that will be used to connect to the database. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The role of the user that will be connecting to the database. **/ @@ -186,6 +193,22 @@ public DatabaseSslConnectionCredentials( super(); this.credentialName = credentialName; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.role = role; + this.sslSecretId = sslSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public DatabaseSslConnectionCredentials( + String credentialName, + String username, + char[] password, + Role role, + String sslSecretId) { + super(); + this.credentialName = credentialName; + this.username = username; this.password = password; this.role = role; this.sslSecretId = sslSecretId; @@ -241,16 +264,27 @@ public String getUsername() { * The password that will be used to connect to the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password that will be used to connect to the database. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password that will be used to connect to the database. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } - /** * The role of the user that will be connecting to the database. **/ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java index e246ff4602e..4ce082e1606 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java @@ -152,6 +152,7 @@ public enum Name { DataTransforms("DATA_TRANSFORMS"), Ords("ORDS"), MongodbApi("MONGODB_API"), + SpatialStudio("SPATIAL_STUDIO"), /** * 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/DefinedFileSystemConfiguration.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DefinedFileSystemConfiguration.java index 1c913f0576a..066b1e7d4ed 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DefinedFileSystemConfiguration.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DefinedFileSystemConfiguration.java @@ -25,14 +25,20 @@ public final class DefinedFileSystemConfiguration @java.beans.ConstructorProperties({ "mountPoint", "minSizeGb", + "maxSizeGb", "isResizable", "isBackupPartition" }) public DefinedFileSystemConfiguration( - String mountPoint, Integer minSizeGb, Boolean isResizable, Boolean isBackupPartition) { + String mountPoint, + Integer minSizeGb, + Integer maxSizeGb, + Boolean isResizable, + Boolean isBackupPartition) { super(); this.mountPoint = mountPoint; this.minSizeGb = minSizeGb; + this.maxSizeGb = maxSizeGb; this.isResizable = isResizable; this.isBackupPartition = isBackupPartition; } @@ -71,6 +77,22 @@ public Builder minSizeGb(Integer minSizeGb) { this.__explicitlySet__.add("minSizeGb"); return this; } + /** + * The maximum size of file system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxSizeGb") + private Integer maxSizeGb; + + /** + * The maximum size of file system. + * @param maxSizeGb the value to set + * @return this builder + **/ + public Builder maxSizeGb(Integer maxSizeGb) { + this.maxSizeGb = maxSizeGb; + this.__explicitlySet__.add("maxSizeGb"); + return this; + } /** * If true, the file system resize is allowed for the Exadata Infrastructure cluster. If false, the file system resize is not allowed. **/ @@ -112,6 +134,7 @@ public DefinedFileSystemConfiguration build() { new DefinedFileSystemConfiguration( this.mountPoint, this.minSizeGb, + this.maxSizeGb, this.isResizable, this.isBackupPartition); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -128,6 +151,9 @@ public Builder copy(DefinedFileSystemConfiguration model) { if (model.wasPropertyExplicitlySet("minSizeGb")) { this.minSizeGb(model.getMinSizeGb()); } + if (model.wasPropertyExplicitlySet("maxSizeGb")) { + this.maxSizeGb(model.getMaxSizeGb()); + } if (model.wasPropertyExplicitlySet("isResizable")) { this.isResizable(model.getIsResizable()); } @@ -177,6 +203,20 @@ public Integer getMinSizeGb() { return minSizeGb; } + /** + * The maximum size of file system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxSizeGb") + private final Integer maxSizeGb; + + /** + * The maximum size of file system. + * @return the value + **/ + public Integer getMaxSizeGb() { + return maxSizeGb; + } + /** * If true, the file system resize is allowed for the Exadata Infrastructure cluster. If false, the file system resize is not allowed. **/ @@ -221,6 +261,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("mountPoint=").append(String.valueOf(this.mountPoint)); sb.append(", minSizeGb=").append(String.valueOf(this.minSizeGb)); + sb.append(", maxSizeGb=").append(String.valueOf(this.maxSizeGb)); sb.append(", isResizable=").append(String.valueOf(this.isResizable)); sb.append(", isBackupPartition=").append(String.valueOf(this.isBackupPartition)); sb.append(")"); @@ -239,6 +280,7 @@ public boolean equals(Object o) { DefinedFileSystemConfiguration other = (DefinedFileSystemConfiguration) o; return java.util.Objects.equals(this.mountPoint, other.mountPoint) && java.util.Objects.equals(this.minSizeGb, other.minSizeGb) + && java.util.Objects.equals(this.maxSizeGb, other.maxSizeGb) && java.util.Objects.equals(this.isResizable, other.isResizable) && java.util.Objects.equals(this.isBackupPartition, other.isBackupPartition) && super.equals(other); @@ -250,6 +292,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.mountPoint == null ? 43 : this.mountPoint.hashCode()); result = (result * PRIME) + (this.minSizeGb == null ? 43 : this.minSizeGb.hashCode()); + result = (result * PRIME) + (this.maxSizeGb == null ? 43 : this.maxSizeGb.hashCode()); result = (result * PRIME) + (this.isResizable == null ? 43 : this.isResizable.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java index 50f215face4..73c624778d4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java @@ -61,6 +61,7 @@ public final class ExadataInfrastructure "contacts", "maintenanceSLOStatus", "maintenanceWindow", + "maintenanceVersionPreferences", "storageServerVersion", "dbServerVersion", "monthlyDbServerVersion", @@ -118,6 +119,7 @@ public ExadataInfrastructure( java.util.List contacts, MaintenanceSLOStatus maintenanceSLOStatus, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, String storageServerVersion, String dbServerVersion, String monthlyDbServerVersion, @@ -174,6 +176,7 @@ public ExadataInfrastructure( this.contacts = contacts; this.maintenanceSLOStatus = maintenanceSLOStatus; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.storageServerVersion = storageServerVersion; this.dbServerVersion = dbServerVersion; this.monthlyDbServerVersion = monthlyDbServerVersion; @@ -807,6 +810,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The software version of the storage servers (cells) in the Exadata infrastructure. **/ @@ -1135,6 +1148,7 @@ public ExadataInfrastructure build() { this.contacts, this.maintenanceSLOStatus, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.storageServerVersion, this.dbServerVersion, this.monthlyDbServerVersion, @@ -1274,6 +1288,9 @@ public Builder copy(ExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("storageServerVersion")) { this.storageServerVersion(model.getStorageServerVersion()); } @@ -2036,6 +2053,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The software version of the storage servers (cells) in the Exadata infrastructure. **/ @@ -2394,6 +2418,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", contacts=").append(String.valueOf(this.contacts)); sb.append(", maintenanceSLOStatus=").append(String.valueOf(this.maintenanceSLOStatus)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", storageServerVersion=").append(String.valueOf(this.storageServerVersion)); sb.append(", dbServerVersion=").append(String.valueOf(this.dbServerVersion)); sb.append(", monthlyDbServerVersion=").append(String.valueOf(this.monthlyDbServerVersion)); @@ -2474,6 +2500,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.contacts, other.contacts) && java.util.Objects.equals(this.maintenanceSLOStatus, other.maintenanceSLOStatus) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.storageServerVersion, other.storageServerVersion) && java.util.Objects.equals(this.dbServerVersion, other.dbServerVersion) && java.util.Objects.equals( @@ -2611,6 +2639,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.storageServerVersion == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java index 20f2d640af6..4f41f535780 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java @@ -63,6 +63,7 @@ public final class ExadataInfrastructureSummary "contacts", "maintenanceSLOStatus", "maintenanceWindow", + "maintenanceVersionPreferences", "storageServerVersion", "dbServerVersion", "monthlyDbServerVersion", @@ -120,6 +121,7 @@ public ExadataInfrastructureSummary( java.util.List contacts, MaintenanceSLOStatus maintenanceSLOStatus, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, String storageServerVersion, String dbServerVersion, String monthlyDbServerVersion, @@ -176,6 +178,7 @@ public ExadataInfrastructureSummary( this.contacts = contacts; this.maintenanceSLOStatus = maintenanceSLOStatus; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.storageServerVersion = storageServerVersion; this.dbServerVersion = dbServerVersion; this.monthlyDbServerVersion = monthlyDbServerVersion; @@ -809,6 +812,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The software version of the storage servers (cells) in the Exadata infrastructure. **/ @@ -1137,6 +1150,7 @@ public ExadataInfrastructureSummary build() { this.contacts, this.maintenanceSLOStatus, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.storageServerVersion, this.dbServerVersion, this.monthlyDbServerVersion, @@ -1276,6 +1290,9 @@ public Builder copy(ExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("storageServerVersion")) { this.storageServerVersion(model.getStorageServerVersion()); } @@ -2038,6 +2055,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The software version of the storage servers (cells) in the Exadata infrastructure. **/ @@ -2396,6 +2420,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", contacts=").append(String.valueOf(this.contacts)); sb.append(", maintenanceSLOStatus=").append(String.valueOf(this.maintenanceSLOStatus)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", storageServerVersion=").append(String.valueOf(this.storageServerVersion)); sb.append(", dbServerVersion=").append(String.valueOf(this.dbServerVersion)); sb.append(", monthlyDbServerVersion=").append(String.valueOf(this.monthlyDbServerVersion)); @@ -2476,6 +2502,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.contacts, other.contacts) && java.util.Objects.equals(this.maintenanceSLOStatus, other.maintenanceSLOStatus) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.storageServerVersion, other.storageServerVersion) && java.util.Objects.equals(this.dbServerVersion, other.dbServerVersion) && java.util.Objects.equals( @@ -2613,6 +2641,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.storageServerVersion == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureUnAllocatedResources.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureUnAllocatedResources.java index f800ae9c0c5..63990483ea7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureUnAllocatedResources.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureUnAllocatedResources.java @@ -5,7 +5,8 @@ package com.oracle.bmc.database.model; /** - * Un allocated resources details of the Exadata Cloud@Customer infrastructure. Applies to Exadata Cloud@Customer instances only. + * Displays details of unallocated resources for the Exadata Cloud@Customer infrastructure. + * Applies to Exadata Cloud@Customer instances only. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java index e41092306a8..628238fef3f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java @@ -825,6 +825,7 @@ public enum ActionType { DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), /** * 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/ExecutionActionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java index 854b2639aa6..463e8c8d917 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java @@ -828,6 +828,7 @@ public enum ActionType { DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), /** * 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/ExecutionWindow.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java index 3fb973f1d65..e5ac266b1bc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java @@ -42,7 +42,8 @@ public final class ExecutionWindow extends com.oracle.bmc.http.internal.Explicit "windowType", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "windowDetails" }) public ExecutionWindow( String id, @@ -66,7 +67,8 @@ public ExecutionWindow( WindowType windowType, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + String windowDetails) { super(); this.id = id; this.executionResourceId = executionResourceId; @@ -90,6 +92,7 @@ public ExecutionWindow( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.windowDetails = windowDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -471,6 +474,30 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowDetails") + private String windowDetails; + + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + * @param windowDetails the value to set + * @return this builder + **/ + public Builder windowDetails(String windowDetails) { + this.windowDetails = windowDetails; + this.__explicitlySet__.add("windowDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -499,7 +526,8 @@ public ExecutionWindow build() { this.windowType, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.windowDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -574,6 +602,9 @@ public Builder copy(ExecutionWindow model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("windowDetails")) { + this.windowDetails(model.getWindowDetails()); + } return this; } } @@ -1080,6 +1111,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowDetails") + private final String windowDetails; + + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + * @return the value + **/ + public String getWindowDetails() { + return windowDetails; + } + @Override public String toString() { return this.toString(true); @@ -1117,6 +1170,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(", windowDetails=").append(String.valueOf(this.windowDetails)); sb.append(")"); return sb.toString(); } @@ -1154,6 +1208,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.windowDetails, other.windowDetails) && super.equals(other); } @@ -1217,6 +1272,9 @@ 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.windowDetails == null ? 43 : this.windowDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java index 9723a43a060..f5720c47980 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java @@ -45,7 +45,8 @@ public final class ExecutionWindowSummary "windowType", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "windowDetails" }) public ExecutionWindowSummary( String id, @@ -69,7 +70,8 @@ public ExecutionWindowSummary( WindowType windowType, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + String windowDetails) { super(); this.id = id; this.executionResourceId = executionResourceId; @@ -93,6 +95,7 @@ public ExecutionWindowSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.windowDetails = windowDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -474,6 +477,30 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowDetails") + private String windowDetails; + + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + * @param windowDetails the value to set + * @return this builder + **/ + public Builder windowDetails(String windowDetails) { + this.windowDetails = windowDetails; + this.__explicitlySet__.add("windowDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -502,7 +529,8 @@ public ExecutionWindowSummary build() { this.windowType, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.windowDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -577,6 +605,9 @@ public Builder copy(ExecutionWindowSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("windowDetails")) { + this.windowDetails(model.getWindowDetails()); + } return this; } } @@ -1083,6 +1114,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowDetails") + private final String windowDetails; + + /** + * A message that gives a description of its creation. For example, if the window type is unplanned, + * the message must specify the window display name. If the window has been deferred from another window, + * the message should additionally reference the deferred window\u2019s display name and provide the justification + * for creating the unplanned window. + * + * @return the value + **/ + public String getWindowDetails() { + return windowDetails; + } + @Override public String toString() { return this.toString(true); @@ -1120,6 +1173,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(", windowDetails=").append(String.valueOf(this.windowDetails)); sb.append(")"); return sb.toString(); } @@ -1157,6 +1211,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.windowDetails, other.windowDetails) && super.equals(other); } @@ -1220,6 +1275,9 @@ 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.windowDetails == null ? 43 : this.windowDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java index 7a08b98193b..b20b157a50e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java @@ -31,19 +31,25 @@ public static class Builder { * Provide the HSM password as you would in RDBMS for External HSM. **/ @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") - private String hsmPassword; + private char[] hsmPassword; /** * Provide the HSM password as you would in RDBMS for External HSM. * @param hsmPassword the value to set * @return this builder **/ - public Builder hsmPassword(String hsmPassword) { + public Builder hsmPassword(char[] hsmPassword) { this.hsmPassword = hsmPassword; this.__explicitlySet__.add("hsmPassword"); return this; } + public Builder hsmPassword(String hsmPassword) { + this.hsmPassword = hsmPassword != null ? hsmPassword.toCharArray() : null; + this.__explicitlySet__.add("hsmPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -77,6 +83,13 @@ public Builder toBuilder() { @Deprecated public ExternalHsmEncryptionDetails(String hsmPassword) { + super(); + this.hsmPassword = hsmPassword != null ? hsmPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ExternalHsmEncryptionDetails(char[] hsmPassword) { super(); this.hsmPassword = hsmPassword; } @@ -85,13 +98,25 @@ public ExternalHsmEncryptionDetails(String hsmPassword) { * Provide the HSM password as you would in RDBMS for External HSM. **/ @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") - private final String hsmPassword; + private final char[] hsmPassword; + + /** + * Provide the HSM password as you would in RDBMS for External HSM. + * return the value + * @Deprecated - Use getHsmPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getHsmPassword() { + return hsmPassword != null ? new String(hsmPassword) : null; + } /** * Provide the HSM password as you would in RDBMS for External HSM. * @return the value **/ - public String getHsmPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") + public char[] getHsmPassword__AsCharArray() { return hsmPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java index e7aa568ef0d..e678aa60f71 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java @@ -23,8 +23,16 @@ public final class FailoverDataGuardDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword"}) public FailoverDataGuardDetails(String databaseAdminPassword) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword"}) + public FailoverDataGuardDetails(char[] databaseAdminPassword) { super(); this.databaseAdminPassword = databaseAdminPassword; } @@ -38,7 +46,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -48,12 +56,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -93,7 +108,21 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -102,7 +131,8 @@ public Builder toBuilder() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java index 522333cff72..6ebbcc50187 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java @@ -54,7 +54,9 @@ public final class MaintenanceRun extends com.oracle.bmc.http.internal.Explicitl "systemTags", "isMaintenanceRunGranular", "totalTimeTakenInMins", - "databaseSoftwareImageId" + "referenceResourceIdForImageUpdates", + "databaseSoftwareImageId", + "windowTypeDescriptions" }) public MaintenanceRun( String id, @@ -90,7 +92,9 @@ public MaintenanceRun( java.util.Map> systemTags, Boolean isMaintenanceRunGranular, Integer totalTimeTakenInMins, - String databaseSoftwareImageId) { + String referenceResourceIdForImageUpdates, + String databaseSoftwareImageId, + java.util.List windowTypeDescriptions) { super(); this.id = id; this.compartmentId = compartmentId; @@ -125,7 +129,9 @@ public MaintenanceRun( this.systemTags = systemTags; this.isMaintenanceRunGranular = isMaintenanceRunGranular; this.totalTimeTakenInMins = totalTimeTakenInMins; + this.referenceResourceIdForImageUpdates = referenceResourceIdForImageUpdates; this.databaseSoftwareImageId = databaseSoftwareImageId; + this.windowTypeDescriptions = windowTypeDescriptions; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -668,6 +674,29 @@ public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { this.__explicitlySet__.add("totalTimeTakenInMins"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("referenceResourceIdForImageUpdates") + private String referenceResourceIdForImageUpdates; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + * @param referenceResourceIdForImageUpdates the value to set + * @return this builder + **/ + public Builder referenceResourceIdForImageUpdates( + String referenceResourceIdForImageUpdates) { + this.referenceResourceIdForImageUpdates = referenceResourceIdForImageUpdates; + this.__explicitlySet__.add("referenceResourceIdForImageUpdates"); + return this; + } /** * The Autonomous AI Database Software Image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **/ @@ -684,6 +713,25 @@ public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { this.__explicitlySet__.add("databaseSoftwareImageId"); return this; } + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowTypeDescriptions") + private java.util.List windowTypeDescriptions; + + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + * @param windowTypeDescriptions the value to set + * @return this builder + **/ + public Builder windowTypeDescriptions( + java.util.List windowTypeDescriptions) { + this.windowTypeDescriptions = windowTypeDescriptions; + this.__explicitlySet__.add("windowTypeDescriptions"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -724,7 +772,9 @@ public MaintenanceRun build() { this.systemTags, this.isMaintenanceRunGranular, this.totalTimeTakenInMins, - this.databaseSoftwareImageId); + this.referenceResourceIdForImageUpdates, + this.databaseSoftwareImageId, + this.windowTypeDescriptions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -833,9 +883,16 @@ public Builder copy(MaintenanceRun model) { if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); } + if (model.wasPropertyExplicitlySet("referenceResourceIdForImageUpdates")) { + this.referenceResourceIdForImageUpdates( + model.getReferenceResourceIdForImageUpdates()); + } if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("windowTypeDescriptions")) { + this.windowTypeDescriptions(model.getWindowTypeDescriptions()); + } return this; } } @@ -1638,6 +1695,26 @@ public Integer getTotalTimeTakenInMins() { return totalTimeTakenInMins; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("referenceResourceIdForImageUpdates") + private final String referenceResourceIdForImageUpdates; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + * @return the value + **/ + public String getReferenceResourceIdForImageUpdates() { + return referenceResourceIdForImageUpdates; + } + /** * The Autonomous AI Database Software Image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **/ @@ -1652,6 +1729,22 @@ public String getDatabaseSoftwareImageId() { return databaseSoftwareImageId; } + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowTypeDescriptions") + private final java.util.List windowTypeDescriptions; + + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + * @return the value + **/ + public java.util.List getWindowTypeDescriptions() { + return windowTypeDescriptions; + } + @Override public String toString() { return this.toString(true); @@ -1706,8 +1799,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isMaintenanceRunGranular=") .append(String.valueOf(this.isMaintenanceRunGranular)); sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(", referenceResourceIdForImageUpdates=") + .append(String.valueOf(this.referenceResourceIdForImageUpdates)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); + sb.append(", windowTypeDescriptions=").append(String.valueOf(this.windowTypeDescriptions)); sb.append(")"); return sb.toString(); } @@ -1765,8 +1861,13 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isMaintenanceRunGranular, other.isMaintenanceRunGranular) && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && java.util.Objects.equals( + this.referenceResourceIdForImageUpdates, + other.referenceResourceIdForImageUpdates) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) + && java.util.Objects.equals( + this.windowTypeDescriptions, other.windowTypeDescriptions) && super.equals(other); } @@ -1887,11 +1988,21 @@ public int hashCode() { + (this.totalTimeTakenInMins == null ? 43 : this.totalTimeTakenInMins.hashCode()); + result = + (result * PRIME) + + (this.referenceResourceIdForImageUpdates == null + ? 43 + : this.referenceResourceIdForImageUpdates.hashCode()); result = (result * PRIME) + (this.databaseSoftwareImageId == null ? 43 : this.databaseSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.windowTypeDescriptions == null + ? 43 + : this.windowTypeDescriptions.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java index 4418df2fede..d24c8b22973 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java @@ -57,7 +57,9 @@ public final class MaintenanceRunSummary "systemTags", "isMaintenanceRunGranular", "totalTimeTakenInMins", - "databaseSoftwareImageId" + "referenceResourceIdForImageUpdates", + "databaseSoftwareImageId", + "windowTypeDescriptions" }) public MaintenanceRunSummary( String id, @@ -93,7 +95,9 @@ public MaintenanceRunSummary( java.util.Map> systemTags, Boolean isMaintenanceRunGranular, Integer totalTimeTakenInMins, - String databaseSoftwareImageId) { + String referenceResourceIdForImageUpdates, + String databaseSoftwareImageId, + java.util.List windowTypeDescriptions) { super(); this.id = id; this.compartmentId = compartmentId; @@ -128,7 +132,9 @@ public MaintenanceRunSummary( this.systemTags = systemTags; this.isMaintenanceRunGranular = isMaintenanceRunGranular; this.totalTimeTakenInMins = totalTimeTakenInMins; + this.referenceResourceIdForImageUpdates = referenceResourceIdForImageUpdates; this.databaseSoftwareImageId = databaseSoftwareImageId; + this.windowTypeDescriptions = windowTypeDescriptions; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -671,6 +677,29 @@ public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { this.__explicitlySet__.add("totalTimeTakenInMins"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("referenceResourceIdForImageUpdates") + private String referenceResourceIdForImageUpdates; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + * @param referenceResourceIdForImageUpdates the value to set + * @return this builder + **/ + public Builder referenceResourceIdForImageUpdates( + String referenceResourceIdForImageUpdates) { + this.referenceResourceIdForImageUpdates = referenceResourceIdForImageUpdates; + this.__explicitlySet__.add("referenceResourceIdForImageUpdates"); + return this; + } /** * The Autonomous AI Database Software Image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **/ @@ -687,6 +716,25 @@ public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { this.__explicitlySet__.add("databaseSoftwareImageId"); return this; } + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowTypeDescriptions") + private java.util.List windowTypeDescriptions; + + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + * @param windowTypeDescriptions the value to set + * @return this builder + **/ + public Builder windowTypeDescriptions( + java.util.List windowTypeDescriptions) { + this.windowTypeDescriptions = windowTypeDescriptions; + this.__explicitlySet__.add("windowTypeDescriptions"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -727,7 +775,9 @@ public MaintenanceRunSummary build() { this.systemTags, this.isMaintenanceRunGranular, this.totalTimeTakenInMins, - this.databaseSoftwareImageId); + this.referenceResourceIdForImageUpdates, + this.databaseSoftwareImageId, + this.windowTypeDescriptions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -836,9 +886,16 @@ public Builder copy(MaintenanceRunSummary model) { if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); } + if (model.wasPropertyExplicitlySet("referenceResourceIdForImageUpdates")) { + this.referenceResourceIdForImageUpdates( + model.getReferenceResourceIdForImageUpdates()); + } if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("windowTypeDescriptions")) { + this.windowTypeDescriptions(model.getWindowTypeDescriptions()); + } return this; } } @@ -1641,6 +1698,26 @@ public Integer getTotalTimeTakenInMins() { return totalTimeTakenInMins; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("referenceResourceIdForImageUpdates") + private final String referenceResourceIdForImageUpdates; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. + * Currently this is only be supported for monthly maintenance runs created via scheduling plans. + * + * @return the value + **/ + public String getReferenceResourceIdForImageUpdates() { + return referenceResourceIdForImageUpdates; + } + /** * The Autonomous AI Database Software Image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **/ @@ -1655,6 +1732,22 @@ public String getDatabaseSoftwareImageId() { return databaseSoftwareImageId; } + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowTypeDescriptions") + private final java.util.List windowTypeDescriptions; + + /** + * A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type. + * + * @return the value + **/ + public java.util.List getWindowTypeDescriptions() { + return windowTypeDescriptions; + } + @Override public String toString() { return this.toString(true); @@ -1709,8 +1802,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isMaintenanceRunGranular=") .append(String.valueOf(this.isMaintenanceRunGranular)); sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(", referenceResourceIdForImageUpdates=") + .append(String.valueOf(this.referenceResourceIdForImageUpdates)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); + sb.append(", windowTypeDescriptions=").append(String.valueOf(this.windowTypeDescriptions)); sb.append(")"); return sb.toString(); } @@ -1768,8 +1864,13 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isMaintenanceRunGranular, other.isMaintenanceRunGranular) && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && java.util.Objects.equals( + this.referenceResourceIdForImageUpdates, + other.referenceResourceIdForImageUpdates) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) + && java.util.Objects.equals( + this.windowTypeDescriptions, other.windowTypeDescriptions) && super.equals(other); } @@ -1890,11 +1991,21 @@ public int hashCode() { + (this.totalTimeTakenInMins == null ? 43 : this.totalTimeTakenInMins.hashCode()); + result = + (result * PRIME) + + (this.referenceResourceIdForImageUpdates == null + ? 43 + : this.referenceResourceIdForImageUpdates.hashCode()); result = (result * PRIME) + (this.databaseSoftwareImageId == null ? 43 : this.databaseSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.windowTypeDescriptions == null + ? 43 + : this.windowTypeDescriptions.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceVersionPreferenceDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceVersionPreferenceDetails.java new file mode 100644 index 00000000000..41910c47c3d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceVersionPreferenceDetails.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The preferences for target versions of future maintenance runs. + *

+ * Currently these preferences are only supported for Monthly maintenance runs created via scheduling plans + * If no preferences are specified then the version will be set by default to "Latest". Changing preferences + * will not change versions for an already existing maintenance run. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceVersionPreferenceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceVersionPreferenceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"referenceResourceIdForImageUpdates"}) + public MaintenanceVersionPreferenceDetails(String referenceResourceIdForImageUpdates) { + super(); + this.referenceResourceIdForImageUpdates = referenceResourceIdForImageUpdates; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("referenceResourceIdForImageUpdates") + private String referenceResourceIdForImageUpdates; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * @param referenceResourceIdForImageUpdates the value to set + * @return this builder + **/ + public Builder referenceResourceIdForImageUpdates( + String referenceResourceIdForImageUpdates) { + this.referenceResourceIdForImageUpdates = referenceResourceIdForImageUpdates; + this.__explicitlySet__.add("referenceResourceIdForImageUpdates"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceVersionPreferenceDetails build() { + MaintenanceVersionPreferenceDetails model = + new MaintenanceVersionPreferenceDetails( + this.referenceResourceIdForImageUpdates); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceVersionPreferenceDetails model) { + if (model.wasPropertyExplicitlySet("referenceResourceIdForImageUpdates")) { + this.referenceResourceIdForImageUpdates( + model.getReferenceResourceIdForImageUpdates()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("referenceResourceIdForImageUpdates") + private final String referenceResourceIdForImageUpdates; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource the maintenance run will refer to when trying to fetch target versions. + * @return the value + **/ + public String getReferenceResourceIdForImageUpdates() { + return referenceResourceIdForImageUpdates; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceVersionPreferenceDetails("); + sb.append("super=").append(super.toString()); + sb.append("referenceResourceIdForImageUpdates=") + .append(String.valueOf(this.referenceResourceIdForImageUpdates)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceVersionPreferenceDetails)) { + return false; + } + + MaintenanceVersionPreferenceDetails other = (MaintenanceVersionPreferenceDetails) o; + return java.util.Objects.equals( + this.referenceResourceIdForImageUpdates, + other.referenceResourceIdForImageUpdates) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.referenceResourceIdForImageUpdates == null + ? 43 + : this.referenceResourceIdForImageUpdates.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java index e803264a07f..0e0a9644e56 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java @@ -23,6 +23,22 @@ public final class MigrateVaultKeyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public MigrateVaultKeyDetails( + String kmsKeyId, + String kmsKeyVersionId, + String vaultId, + String tdeWalletPassword, + String adminPassword) { + super(); + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.vaultId = vaultId; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "kmsKeyId", "kmsKeyVersionId", @@ -34,8 +50,8 @@ public MigrateVaultKeyDetails( String kmsKeyId, String kmsKeyVersionId, String vaultId, - String tdeWalletPassword, - String adminPassword) { + char[] tdeWalletPassword, + char[] adminPassword) { super(); this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -100,35 +116,49 @@ public Builder vaultId(String vaultId) { * The existing TDE wallet password of the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * The existing TDE wallet password of the database. * @param tdeWalletPassword the value to set * @return this builder **/ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + /** * The existing admin password of the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The existing admin password of the database. * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -226,13 +256,25 @@ public String getVaultId() { * The existing TDE wallet password of the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; + + /** + * The existing TDE wallet password of the database. + * return the value + * @Deprecated - Use getTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } /** * The existing TDE wallet password of the database. * @return the value **/ - public String getTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } @@ -240,13 +282,25 @@ public String getTdeWalletPassword() { * The existing admin password of the database. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The existing admin password of the database. + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The existing admin password of the database. * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java index f0c9e54184f..663d7b3a97b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java @@ -48,66 +48,98 @@ public Builder cdbName(String cdbName) { * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") - private String cdbAdminPassword; + private char[] cdbAdminPassword; /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @param cdbAdminPassword the value to set * @return this builder **/ - public Builder cdbAdminPassword(String cdbAdminPassword) { + public Builder cdbAdminPassword(char[] cdbAdminPassword) { this.cdbAdminPassword = cdbAdminPassword; this.__explicitlySet__.add("cdbAdminPassword"); return this; } + + public Builder cdbAdminPassword(String cdbAdminPassword) { + this.cdbAdminPassword = + cdbAdminPassword != null ? cdbAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("cdbAdminPassword"); + return this; + } + /** * A strong password for plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") - private String pdbAdminPassword; + private char[] pdbAdminPassword; /** * A strong password for plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @param pdbAdminPassword the value to set * @return this builder **/ - public Builder pdbAdminPassword(String pdbAdminPassword) { + public Builder pdbAdminPassword(char[] pdbAdminPassword) { this.pdbAdminPassword = pdbAdminPassword; this.__explicitlySet__.add("pdbAdminPassword"); return this; } + + public Builder pdbAdminPassword(String pdbAdminPassword) { + this.pdbAdminPassword = + pdbAdminPassword != null ? pdbAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("pdbAdminPassword"); + return this; + } + /** * The password to open the TDE wallet of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") - private String cdbTdeWalletPassword; + private char[] cdbTdeWalletPassword; /** * The password to open the TDE wallet of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @param cdbTdeWalletPassword the value to set * @return this builder **/ - public Builder cdbTdeWalletPassword(String cdbTdeWalletPassword) { + public Builder cdbTdeWalletPassword(char[] cdbTdeWalletPassword) { this.cdbTdeWalletPassword = cdbTdeWalletPassword; this.__explicitlySet__.add("cdbTdeWalletPassword"); return this; } + + public Builder cdbTdeWalletPassword(String cdbTdeWalletPassword) { + this.cdbTdeWalletPassword = + cdbTdeWalletPassword != null ? cdbTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("cdbTdeWalletPassword"); + return this; + } + /** * The existing TDE wallet password of the non-container database. **/ @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") - private String nonCdbTdeWalletPassword; + private char[] nonCdbTdeWalletPassword; /** * The existing TDE wallet password of the non-container database. * @param nonCdbTdeWalletPassword the value to set * @return this builder **/ - public Builder nonCdbTdeWalletPassword(String nonCdbTdeWalletPassword) { + public Builder nonCdbTdeWalletPassword(char[] nonCdbTdeWalletPassword) { this.nonCdbTdeWalletPassword = nonCdbTdeWalletPassword; this.__explicitlySet__.add("nonCdbTdeWalletPassword"); return this; } + + public Builder nonCdbTdeWalletPassword(String nonCdbTdeWalletPassword) { + this.nonCdbTdeWalletPassword = + nonCdbTdeWalletPassword != null ? nonCdbTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("nonCdbTdeWalletPassword"); + return this; + } + /** * Additional container database parameters. * Example: "_pdb_name_case_sensitive=true" @@ -192,6 +224,26 @@ public PdbConversionToNewDatabaseDetails( String additionalCdbParams) { super(); this.cdbName = cdbName; + this.cdbAdminPassword = cdbAdminPassword != null ? cdbAdminPassword.toCharArray() : null; + this.pdbAdminPassword = pdbAdminPassword != null ? pdbAdminPassword.toCharArray() : null; + this.cdbTdeWalletPassword = + cdbTdeWalletPassword != null ? cdbTdeWalletPassword.toCharArray() : null; + this.nonCdbTdeWalletPassword = + nonCdbTdeWalletPassword != null ? nonCdbTdeWalletPassword.toCharArray() : null; + this.additionalCdbParams = additionalCdbParams; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public PdbConversionToNewDatabaseDetails( + String cdbName, + char[] cdbAdminPassword, + char[] pdbAdminPassword, + char[] cdbTdeWalletPassword, + char[] nonCdbTdeWalletPassword, + String additionalCdbParams) { + super(); + this.cdbName = cdbName; this.cdbAdminPassword = cdbAdminPassword; this.pdbAdminPassword = pdbAdminPassword; this.cdbTdeWalletPassword = cdbTdeWalletPassword; @@ -217,13 +269,25 @@ public String getCdbName() { * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") - private final String cdbAdminPassword; + private final char[] cdbAdminPassword; + + /** + * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. + * return the value + * @Deprecated - Use getCdbAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getCdbAdminPassword() { + return cdbAdminPassword != null ? new String(cdbAdminPassword) : null; + } /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @return the value **/ - public String getCdbAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") + public char[] getCdbAdminPassword__AsCharArray() { return cdbAdminPassword; } @@ -231,13 +295,25 @@ public String getCdbAdminPassword() { * A strong password for plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") - private final String pdbAdminPassword; + private final char[] pdbAdminPassword; + + /** + * A strong password for plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. + * return the value + * @Deprecated - Use getPdbAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPdbAdminPassword() { + return pdbAdminPassword != null ? new String(pdbAdminPassword) : null; + } /** * A strong password for plugbable database ADMIN user of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @return the value **/ - public String getPdbAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") + public char[] getPdbAdminPassword__AsCharArray() { return pdbAdminPassword; } @@ -245,13 +321,25 @@ public String getPdbAdminPassword() { * The password to open the TDE wallet of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") - private final String cdbTdeWalletPassword; + private final char[] cdbTdeWalletPassword; + + /** + * The password to open the TDE wallet of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. + * return the value + * @Deprecated - Use getCdbTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getCdbTdeWalletPassword() { + return cdbTdeWalletPassword != null ? new String(cdbTdeWalletPassword) : null; + } /** * The password to open the TDE wallet of the container database after conversion. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @return the value **/ - public String getCdbTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") + public char[] getCdbTdeWalletPassword__AsCharArray() { return cdbTdeWalletPassword; } @@ -259,13 +347,25 @@ public String getCdbTdeWalletPassword() { * The existing TDE wallet password of the non-container database. **/ @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") - private final String nonCdbTdeWalletPassword; + private final char[] nonCdbTdeWalletPassword; + + /** + * The existing TDE wallet password of the non-container database. + * return the value + * @Deprecated - Use getNonCdbTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getNonCdbTdeWalletPassword() { + return nonCdbTdeWalletPassword != null ? new String(nonCdbTdeWalletPassword) : null; + } /** * The existing TDE wallet password of the non-container database. * @return the value **/ - public String getNonCdbTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") + public char[] getNonCdbTdeWalletPassword__AsCharArray() { return nonCdbTdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java index bbc73010a89..d11c0b24a82 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java @@ -250,6 +250,7 @@ public enum ActionType { FsuVmClusterOsSoftwareUpdate("FSU_VM_CLUSTER_OS_SOFTWARE_UPDATE"), FsuVmClusterGiSoftwareUpdate("FSU_VM_CLUSTER_GI_SOFTWARE_UPDATE"), FsuVmClusterGiOsSoftwareUpdate("FSU_VM_CLUSTER_GI_OS_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), /** * 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/ReinstateDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java index a2c4fd4a3be..78adfd57884 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java @@ -23,8 +23,17 @@ public final class ReinstateDataGuardDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword", "sourceDatabaseId"}) public ReinstateDataGuardDetails(String databaseAdminPassword, String sourceDatabaseId) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.sourceDatabaseId = sourceDatabaseId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword", "sourceDatabaseId"}) + public ReinstateDataGuardDetails(char[] databaseAdminPassword, String sourceDatabaseId) { super(); this.databaseAdminPassword = databaseAdminPassword; this.sourceDatabaseId = sourceDatabaseId; @@ -39,7 +48,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -49,11 +58,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source (primary) database in the Data Guard group. **/ @@ -114,7 +131,21 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -123,7 +154,8 @@ public Builder toBuilder() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java index 35a0852592a..e3febe2a055 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java @@ -543,6 +543,7 @@ public enum ActionType { FsuVmClusterOsSoftwareUpdate("FSU_VM_CLUSTER_OS_SOFTWARE_UPDATE"), FsuVmClusterGiSoftwareUpdate("FSU_VM_CLUSTER_GI_SOFTWARE_UPDATE"), FsuVmClusterGiOsSoftwareUpdate("FSU_VM_CLUSTER_GI_OS_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), /** * 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/ScheduledActionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java index b82e5822718..318d6eff63c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java @@ -545,6 +545,7 @@ public enum ActionType { FsuVmClusterOsSoftwareUpdate("FSU_VM_CLUSTER_OS_SOFTWARE_UPDATE"), FsuVmClusterGiSoftwareUpdate("FSU_VM_CLUSTER_GI_SOFTWARE_UPDATE"), FsuVmClusterGiOsSoftwareUpdate("FSU_VM_CLUSTER_GI_OS_SOFTWARE_UPDATE"), + DbServerOnlineSoftwareUpdate("DB_SERVER_ONLINE_SOFTWARE_UPDATE"), /** * 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/SchedulingPlan.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java index 904d846e5b2..9235a83c464 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java @@ -208,15 +208,13 @@ public Builder isUsingRecommendedScheduledActions( return this; } /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. **/ @com.fasterxml.jackson.annotation.JsonProperty("planIntent") private PlanIntent planIntent; /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. * @param planIntent the value to set * @return this builder **/ @@ -618,11 +616,11 @@ public Boolean getIsUsingRecommendedScheduledActions() { } /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. **/ public enum PlanIntent { ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ExadataInfrastructureSecurityUpdate("EXADATA_INFRASTRUCTURE_SECURITY_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -666,15 +664,13 @@ public static PlanIntent create(String key) { } }; /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. **/ @com.fasterxml.jackson.annotation.JsonProperty("planIntent") private final PlanIntent planIntent; /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. * @return the value **/ public PlanIntent getPlanIntent() { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java index 3d158ed3e9b..86ec66e0c4b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java @@ -210,15 +210,13 @@ public Builder isUsingRecommendedScheduledActions( return this; } /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. **/ @com.fasterxml.jackson.annotation.JsonProperty("planIntent") private PlanIntent planIntent; /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. * @param planIntent the value to set * @return this builder **/ @@ -620,11 +618,11 @@ public Boolean getIsUsingRecommendedScheduledActions() { } /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. **/ public enum PlanIntent { ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ExadataInfrastructureSecurityUpdate("EXADATA_INFRASTRUCTURE_SECURITY_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -668,15 +666,13 @@ public static PlanIntent create(String key) { } }; /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. **/ @com.fasterxml.jackson.annotation.JsonProperty("planIntent") private final PlanIntent planIntent; /** - * The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. - * + * The current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. * @return the value **/ public PlanIntent getPlanIntent() { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SourceDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SourceDatabaseDetails.java index 144276f906b..4263f0e73fe 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/SourceDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SourceDatabaseDetails.java @@ -185,6 +185,7 @@ public Builder autonomousDatabaseCustomerContacts( * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -202,6 +203,7 @@ public Builder autonomousDatabaseCustomerContacts( * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -389,6 +391,7 @@ public java.util.List getAutonomousDatabaseCustomerContacts() { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -451,6 +454,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -468,6 +472,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java index 9b4dc022520..42479f35f95 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java @@ -23,8 +23,16 @@ public final class SwitchOverDataGuardDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword"}) public SwitchOverDataGuardDetails(String databaseAdminPassword) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword"}) + public SwitchOverDataGuardDetails(char[] databaseAdminPassword) { super(); this.databaseAdminPassword = databaseAdminPassword; } @@ -38,7 +46,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -48,12 +56,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -93,7 +108,21 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -102,7 +131,8 @@ public Builder toBuilder() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousContainerDatabaseDetails.java index 9ab8d952f9e..b32ed8ace45 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousContainerDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousContainerDatabaseDetails.java @@ -34,7 +34,11 @@ public final class UpdateAutonomousContainerDatabaseDetails "isDstFileUpdateEnabled", "freeformTags", "definedTags", - "backupConfig" + "backupConfig", + "dbSplitThreshold", + "vmFailoverReservation", + "distributionAffinity", + "netServicesArchitecture" }) public UpdateAutonomousContainerDatabaseDetails( String displayName, @@ -47,7 +51,11 @@ public UpdateAutonomousContainerDatabaseDetails( Boolean isDstFileUpdateEnabled, java.util.Map freeformTags, java.util.Map> definedTags, - AutonomousContainerDatabaseBackupConfig backupConfig) { + AutonomousContainerDatabaseBackupConfig backupConfig, + Integer dbSplitThreshold, + Integer vmFailoverReservation, + DistributionAffinity distributionAffinity, + NetServicesArchitecture netServicesArchitecture) { super(); this.displayName = displayName; this.customerContacts = customerContacts; @@ -60,6 +68,10 @@ public UpdateAutonomousContainerDatabaseDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.backupConfig = backupConfig; + this.dbSplitThreshold = dbSplitThreshold; + this.vmFailoverReservation = vmFailoverReservation; + this.distributionAffinity = distributionAffinity; + this.netServicesArchitecture = netServicesArchitecture; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -249,6 +261,70 @@ public Builder backupConfig(AutonomousContainerDatabaseBackupConfig backupConfig this.__explicitlySet__.add("backupConfig"); return this; } + /** + * The CPU value beyond which an Autonomous AI Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") + private Integer dbSplitThreshold; + + /** + * The CPU value beyond which an Autonomous AI Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. + * @param dbSplitThreshold the value to set + * @return this builder + **/ + public Builder dbSplitThreshold(Integer dbSplitThreshold) { + this.dbSplitThreshold = dbSplitThreshold; + this.__explicitlySet__.add("dbSplitThreshold"); + return this; + } + /** + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") + private Integer vmFailoverReservation; + + /** + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. + * @param vmFailoverReservation the value to set + * @return this builder + **/ + public Builder vmFailoverReservation(Integer vmFailoverReservation) { + this.vmFailoverReservation = vmFailoverReservation; + this.__explicitlySet__.add("vmFailoverReservation"); + return this; + } + /** + * Determines whether an Autonomous AI Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") + private DistributionAffinity distributionAffinity; + + /** + * Determines whether an Autonomous AI Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. + * @param distributionAffinity the value to set + * @return this builder + **/ + public Builder distributionAffinity(DistributionAffinity distributionAffinity) { + this.distributionAffinity = distributionAffinity; + this.__explicitlySet__.add("distributionAffinity"); + return this; + } + /** + * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netServicesArchitecture") + private NetServicesArchitecture netServicesArchitecture; + + /** + * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. + * @param netServicesArchitecture the value to set + * @return this builder + **/ + public Builder netServicesArchitecture(NetServicesArchitecture netServicesArchitecture) { + this.netServicesArchitecture = netServicesArchitecture; + this.__explicitlySet__.add("netServicesArchitecture"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -266,7 +342,11 @@ public UpdateAutonomousContainerDatabaseDetails build() { this.isDstFileUpdateEnabled, this.freeformTags, this.definedTags, - this.backupConfig); + this.backupConfig, + this.dbSplitThreshold, + this.vmFailoverReservation, + this.distributionAffinity, + this.netServicesArchitecture); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -308,6 +388,18 @@ public Builder copy(UpdateAutonomousContainerDatabaseDetails model) { if (model.wasPropertyExplicitlySet("backupConfig")) { this.backupConfig(model.getBackupConfig()); } + if (model.wasPropertyExplicitlySet("dbSplitThreshold")) { + this.dbSplitThreshold(model.getDbSplitThreshold()); + } + if (model.wasPropertyExplicitlySet("vmFailoverReservation")) { + this.vmFailoverReservation(model.getVmFailoverReservation()); + } + if (model.wasPropertyExplicitlySet("distributionAffinity")) { + this.distributionAffinity(model.getDistributionAffinity()); + } + if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { + this.netServicesArchitecture(model.getNetServicesArchitecture()); + } return this; } } @@ -556,6 +648,133 @@ public AutonomousContainerDatabaseBackupConfig getBackupConfig() { return backupConfig; } + /** + * The CPU value beyond which an Autonomous AI Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") + private final Integer dbSplitThreshold; + + /** + * The CPU value beyond which an Autonomous AI Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. + * @return the value + **/ + public Integer getDbSplitThreshold() { + return dbSplitThreshold; + } + + /** + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") + private final Integer vmFailoverReservation; + + /** + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, 50%, 75%, and 100%, with 50% being the default option. + * @return the value + **/ + public Integer getVmFailoverReservation() { + return vmFailoverReservation; + } + + /** + * Determines whether an Autonomous AI Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. + **/ + public enum DistributionAffinity { + MinimumDistribution("MINIMUM_DISTRIBUTION"), + MaximumDistribution("MAXIMUM_DISTRIBUTION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAffinity v : DistributionAffinity.values()) { + map.put(v.getValue(), v); + } + } + + DistributionAffinity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAffinity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DistributionAffinity: " + key); + } + }; + /** + * Determines whether an Autonomous AI Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") + private final DistributionAffinity distributionAffinity; + + /** + * Determines whether an Autonomous AI Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. + * @return the value + **/ + public DistributionAffinity getDistributionAffinity() { + return distributionAffinity; + } + + /** + * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. + **/ + public enum NetServicesArchitecture { + Dedicated("DEDICATED"), + Shared("SHARED"), + Drcp("DRCP"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NetServicesArchitecture v : NetServicesArchitecture.values()) { + map.put(v.getValue(), v); + } + } + + NetServicesArchitecture(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NetServicesArchitecture create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid NetServicesArchitecture: " + key); + } + }; + /** + * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netServicesArchitecture") + private final NetServicesArchitecture netServicesArchitecture; + + /** + * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. + * @return the value + **/ + public NetServicesArchitecture getNetServicesArchitecture() { + return netServicesArchitecture; + } + @Override public String toString() { return this.toString(true); @@ -583,6 +802,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", backupConfig=").append(String.valueOf(this.backupConfig)); + sb.append(", dbSplitThreshold=").append(String.valueOf(this.dbSplitThreshold)); + sb.append(", vmFailoverReservation=").append(String.valueOf(this.vmFailoverReservation)); + sb.append(", distributionAffinity=").append(String.valueOf(this.distributionAffinity)); + sb.append(", netServicesArchitecture=") + .append(String.valueOf(this.netServicesArchitecture)); sb.append(")"); return sb.toString(); } @@ -612,6 +836,11 @@ 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.backupConfig, other.backupConfig) + && java.util.Objects.equals(this.dbSplitThreshold, other.dbSplitThreshold) + && java.util.Objects.equals(this.vmFailoverReservation, other.vmFailoverReservation) + && java.util.Objects.equals(this.distributionAffinity, other.distributionAffinity) + && java.util.Objects.equals( + this.netServicesArchitecture, other.netServicesArchitecture) && super.equals(other); } @@ -650,6 +879,24 @@ 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.backupConfig == null ? 43 : this.backupConfig.hashCode()); + result = + (result * PRIME) + + (this.dbSplitThreshold == null ? 43 : this.dbSplitThreshold.hashCode()); + result = + (result * PRIME) + + (this.vmFailoverReservation == null + ? 43 + : this.vmFailoverReservation.hashCode()); + result = + (result * PRIME) + + (this.distributionAffinity == null + ? 43 + : this.distributionAffinity.hashCode()); + result = + (result * PRIME) + + (this.netServicesArchitecture == null + ? 43 + : this.netServicesArchitecture.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index 3746a891844..aebec0e1118 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -627,6 +627,7 @@ public Builder securityAttributes( * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -644,6 +645,7 @@ public Builder securityAttributes( * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -960,6 +962,8 @@ public Builder isDataGuardEnabled(Boolean isDataGuardEnabled) { * The database OCID(/Content/General/Concepts/identifiers.htm) of the Disaster Recovery peer (source Primary) database, which is located in a different (remote) region from the current peer database. *

* To create or delete a local (in-region) standby, see the {@code isDataGuardEnabled} parameter. + *

+ * When disconnecting a cross-region standby, specify the standby database OCID in this parameter together with {@code isDisconnectPeer=true}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("peerDbId") @@ -969,6 +973,8 @@ public Builder isDataGuardEnabled(Boolean isDataGuardEnabled) { * The database OCID(/Content/General/Concepts/identifiers.htm) of the Disaster Recovery peer (source Primary) database, which is located in a different (remote) region from the current peer database. *

* To create or delete a local (in-region) standby, see the {@code isDataGuardEnabled} parameter. + *

+ * When disconnecting a cross-region standby, specify the standby database OCID in this parameter together with {@code isDisconnectPeer=true}. * * @param peerDbId the value to set * @return this builder @@ -1536,18 +1542,22 @@ public Builder encryptionKey(AutonomousDatabaseEncryptionKeyDetails encryptionKe return this; } /** - * If true, this will disconnect the Autonomous AI Database from its peer and the Autonomous AI Database can work permanently as a standalone database. + * If true, this disconnects the Autonomous AI Database from its peer. After the disconnect completes, the Autonomous AI Database works permanently as a standalone database. *

- * To disconnect a cross region standby, please also provide the OCID of the standby database in the {@code peerDbId} parameter. + **Warning:** A disconnected standby is no longer part of the disaster recovery configuration. Operations and restrictions that apply to a connected standby do not apply in the same way after the database has been disconnected. + *

+ * To disconnect a cross region standby, also provide the OCID of the standby database in the {@code peerDbId} parameter. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isDisconnectPeer") private Boolean isDisconnectPeer; /** - * If true, this will disconnect the Autonomous AI Database from its peer and the Autonomous AI Database can work permanently as a standalone database. + * If true, this disconnects the Autonomous AI Database from its peer. After the disconnect completes, the Autonomous AI Database works permanently as a standalone database. + *

+ **Warning:** A disconnected standby is no longer part of the disaster recovery configuration. Operations and restrictions that apply to a connected standby do not apply in the same way after the database has been disconnected. *

- * To disconnect a cross region standby, please also provide the OCID of the standby database in the {@code peerDbId} parameter. + * To disconnect a cross region standby, also provide the OCID of the standby database in the {@code peerDbId} parameter. * * @param isDisconnectPeer the value to set * @return this builder @@ -2261,6 +2271,7 @@ public java.util.Map> getSecurityAttribute * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -2310,6 +2321,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -2327,6 +2339,7 @@ public static DbWorkload create(String key) { * - LH - indicates an Oracle Autonomous AI Lakehouse database *

**Note** Starting December 2026, DW will not be supported as a valid value for this parameter. + * When creating an Autonomous AI Database, if this parameter is not specified, the default value is {@code OLTP}. *

* * This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -2695,6 +2708,8 @@ public Boolean getIsDataGuardEnabled() { * The database OCID(/Content/General/Concepts/identifiers.htm) of the Disaster Recovery peer (source Primary) database, which is located in a different (remote) region from the current peer database. *

* To create or delete a local (in-region) standby, see the {@code isDataGuardEnabled} parameter. + *

+ * When disconnecting a cross-region standby, specify the standby database OCID in this parameter together with {@code isDisconnectPeer=true}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("peerDbId") @@ -2704,6 +2719,8 @@ public Boolean getIsDataGuardEnabled() { * The database OCID(/Content/General/Concepts/identifiers.htm) of the Disaster Recovery peer (source Primary) database, which is located in a different (remote) region from the current peer database. *

* To create or delete a local (in-region) standby, see the {@code isDataGuardEnabled} parameter. + *

+ * When disconnecting a cross-region standby, specify the standby database OCID in this parameter together with {@code isDisconnectPeer=true}. * * @return the value **/ @@ -3319,18 +3336,22 @@ public AutonomousDatabaseEncryptionKeyDetails getEncryptionKey() { } /** - * If true, this will disconnect the Autonomous AI Database from its peer and the Autonomous AI Database can work permanently as a standalone database. + * If true, this disconnects the Autonomous AI Database from its peer. After the disconnect completes, the Autonomous AI Database works permanently as a standalone database. *

- * To disconnect a cross region standby, please also provide the OCID of the standby database in the {@code peerDbId} parameter. + **Warning:** A disconnected standby is no longer part of the disaster recovery configuration. Operations and restrictions that apply to a connected standby do not apply in the same way after the database has been disconnected. + *

+ * To disconnect a cross region standby, also provide the OCID of the standby database in the {@code peerDbId} parameter. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isDisconnectPeer") private final Boolean isDisconnectPeer; /** - * If true, this will disconnect the Autonomous AI Database from its peer and the Autonomous AI Database can work permanently as a standalone database. + * If true, this disconnects the Autonomous AI Database from its peer. After the disconnect completes, the Autonomous AI Database works permanently as a standalone database. + *

+ **Warning:** A disconnected standby is no longer part of the disaster recovery configuration. Operations and restrictions that apply to a connected standby do not apply in the same way after the database has been disconnected. *

- * To disconnect a cross region standby, please also provide the OCID of the standby database in the {@code peerDbId} parameter. + * To disconnect a cross region standby, also provide the OCID of the standby database in the {@code peerDbId} parameter. * * @return the value **/ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java index b83b4d81d60..cd59f9a37dc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java @@ -29,7 +29,12 @@ public final class UpdateAutonomousVmClusterDetails "definedTags", "autonomousDataStorageSizeInTBs", "cpuCoreCountPerNode", - "totalContainerDatabases" + "totalContainerDatabases", + "timeZone", + "scanListenerPortTls", + "scanListenerPortNonTls", + "isMtlsEnabled", + "distributionAlgorithm" }) public UpdateAutonomousVmClusterDetails( MaintenanceWindow maintenanceWindowDetails, @@ -38,7 +43,12 @@ public UpdateAutonomousVmClusterDetails( java.util.Map> definedTags, Double autonomousDataStorageSizeInTBs, Integer cpuCoreCountPerNode, - Integer totalContainerDatabases) { + Integer totalContainerDatabases, + String timeZone, + Integer scanListenerPortTls, + Integer scanListenerPortNonTls, + Boolean isMtlsEnabled, + DistributionAlgorithm distributionAlgorithm) { super(); this.maintenanceWindowDetails = maintenanceWindowDetails; this.licenseModel = licenseModel; @@ -47,6 +57,11 @@ public UpdateAutonomousVmClusterDetails( this.autonomousDataStorageSizeInTBs = autonomousDataStorageSizeInTBs; this.cpuCoreCountPerNode = cpuCoreCountPerNode; this.totalContainerDatabases = totalContainerDatabases; + this.timeZone = timeZone; + this.scanListenerPortTls = scanListenerPortTls; + this.scanListenerPortNonTls = scanListenerPortNonTls; + this.isMtlsEnabled = isMtlsEnabled; + this.distributionAlgorithm = distributionAlgorithm; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -171,6 +186,86 @@ public Builder totalContainerDatabases(Integer totalContainerDatabases) { this.__explicitlySet__.add("totalContainerDatabases"); return this; } + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The SCAN Listener TLS port number. Default value is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortTls") + private Integer scanListenerPortTls; + + /** + * The SCAN Listener TLS port number. Default value is 2484. + * @param scanListenerPortTls the value to set + * @return this builder + **/ + public Builder scanListenerPortTls(Integer scanListenerPortTls) { + this.scanListenerPortTls = scanListenerPortTls; + this.__explicitlySet__.add("scanListenerPortTls"); + return this; + } + /** + * The SCAN Listener Non TLS port number. Default value is 1521. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortNonTls") + private Integer scanListenerPortNonTls; + + /** + * The SCAN Listener Non TLS port number. Default value is 1521. + * @param scanListenerPortNonTls the value to set + * @return this builder + **/ + public Builder scanListenerPortNonTls(Integer scanListenerPortNonTls) { + this.scanListenerPortNonTls = scanListenerPortNonTls; + this.__explicitlySet__.add("scanListenerPortNonTls"); + return this; + } + /** + * Enable mutual TLS(mTLS) authentication for database. Default is TLS. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsEnabled") + private Boolean isMtlsEnabled; + + /** + * Enable mutual TLS(mTLS) authentication for database. Default is TLS. + * @param isMtlsEnabled the value to set + * @return this builder + **/ + public Builder isMtlsEnabled(Boolean isMtlsEnabled) { + this.isMtlsEnabled = isMtlsEnabled; + this.__explicitlySet__.add("isMtlsEnabled"); + return this; + } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -184,7 +279,12 @@ public UpdateAutonomousVmClusterDetails build() { this.definedTags, this.autonomousDataStorageSizeInTBs, this.cpuCoreCountPerNode, - this.totalContainerDatabases); + this.totalContainerDatabases, + this.timeZone, + this.scanListenerPortTls, + this.scanListenerPortNonTls, + this.isMtlsEnabled, + this.distributionAlgorithm); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -214,6 +314,21 @@ public Builder copy(UpdateAutonomousVmClusterDetails model) { if (model.wasPropertyExplicitlySet("totalContainerDatabases")) { this.totalContainerDatabases(model.getTotalContainerDatabases()); } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("scanListenerPortTls")) { + this.scanListenerPortTls(model.getScanListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("scanListenerPortNonTls")) { + this.scanListenerPortNonTls(model.getScanListenerPortNonTls()); + } + if (model.wasPropertyExplicitlySet("isMtlsEnabled")) { + this.isMtlsEnabled(model.getIsMtlsEnabled()); + } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } return this; } } @@ -370,6 +485,111 @@ public Integer getTotalContainerDatabases() { return totalContainerDatabases; } + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * The SCAN Listener TLS port number. Default value is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortTls") + private final Integer scanListenerPortTls; + + /** + * The SCAN Listener TLS port number. Default value is 2484. + * @return the value + **/ + public Integer getScanListenerPortTls() { + return scanListenerPortTls; + } + + /** + * The SCAN Listener Non TLS port number. Default value is 1521. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortNonTls") + private final Integer scanListenerPortNonTls; + + /** + * The SCAN Listener Non TLS port number. Default value is 1521. + * @return the value + **/ + public Integer getScanListenerPortNonTls() { + return scanListenerPortNonTls; + } + + /** + * Enable mutual TLS(mTLS) authentication for database. Default is TLS. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsEnabled") + private final Boolean isMtlsEnabled; + + /** + * Enable mutual TLS(mTLS) authentication for database. Default is TLS. + * @return the value + **/ + public Boolean getIsMtlsEnabled() { + return isMtlsEnabled; + } + + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + map.put(v.getValue(), v); + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DistributionAlgorithm: " + key); + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + @Override public String toString() { return this.toString(true); @@ -394,6 +614,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", cpuCoreCountPerNode=").append(String.valueOf(this.cpuCoreCountPerNode)); sb.append(", totalContainerDatabases=") .append(String.valueOf(this.totalContainerDatabases)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", scanListenerPortTls=").append(String.valueOf(this.scanListenerPortTls)); + sb.append(", scanListenerPortNonTls=").append(String.valueOf(this.scanListenerPortNonTls)); + sb.append(", isMtlsEnabled=").append(String.valueOf(this.isMtlsEnabled)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); sb.append(")"); return sb.toString(); } @@ -418,6 +643,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.cpuCoreCountPerNode, other.cpuCoreCountPerNode) && java.util.Objects.equals( this.totalContainerDatabases, other.totalContainerDatabases) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.scanListenerPortTls, other.scanListenerPortTls) + && java.util.Objects.equals( + this.scanListenerPortNonTls, other.scanListenerPortNonTls) + && java.util.Objects.equals(this.isMtlsEnabled, other.isMtlsEnabled) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) && super.equals(other); } @@ -448,6 +679,25 @@ public int hashCode() { + (this.totalContainerDatabases == null ? 43 : this.totalContainerDatabases.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = + (result * PRIME) + + (this.scanListenerPortTls == null + ? 43 + : this.scanListenerPortTls.hashCode()); + result = + (result * PRIME) + + (this.scanListenerPortNonTls == null + ? 43 + : this.scanListenerPortNonTls.hashCode()); + result = + (result * PRIME) + + (this.isMtlsEnabled == null ? 43 : this.isMtlsEnabled.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java index ff5fbdf6d26..13667621012 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java @@ -33,6 +33,11 @@ public final class UpdateCloudAutonomousVmClusterDetails "nsgIds", "freeformTags", "definedTags", + "clusterTimeZone", + "scanListenerPortTls", + "scanListenerPortNonTls", + "isMtlsEnabledVmCluster", + "distributionAlgorithm", "securityAttributes" }) public UpdateCloudAutonomousVmClusterDetails( @@ -46,6 +51,11 @@ public UpdateCloudAutonomousVmClusterDetails( java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, + String clusterTimeZone, + Integer scanListenerPortTls, + Integer scanListenerPortNonTls, + Boolean isMtlsEnabledVmCluster, + DistributionAlgorithm distributionAlgorithm, java.util.Map> securityAttributes) { super(); this.description = description; @@ -58,6 +68,11 @@ public UpdateCloudAutonomousVmClusterDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.clusterTimeZone = clusterTimeZone; + this.scanListenerPortTls = scanListenerPortTls; + this.scanListenerPortNonTls = scanListenerPortNonTls; + this.isMtlsEnabledVmCluster = isMtlsEnabledVmCluster; + this.distributionAlgorithm = distributionAlgorithm; this.securityAttributes = securityAttributes; } @@ -249,6 +264,86 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterTimeZone") + private String clusterTimeZone; + + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * @param clusterTimeZone the value to set + * @return this builder + **/ + public Builder clusterTimeZone(String clusterTimeZone) { + this.clusterTimeZone = clusterTimeZone; + this.__explicitlySet__.add("clusterTimeZone"); + return this; + } + /** + * The SCAN Listener TLS port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortTls") + private Integer scanListenerPortTls; + + /** + * The SCAN Listener TLS port. Default is 2484. + * @param scanListenerPortTls the value to set + * @return this builder + **/ + public Builder scanListenerPortTls(Integer scanListenerPortTls) { + this.scanListenerPortTls = scanListenerPortTls; + this.__explicitlySet__.add("scanListenerPortTls"); + return this; + } + /** + * The SCAN Listener Non TLS port. Default is 1521. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortNonTls") + private Integer scanListenerPortNonTls; + + /** + * The SCAN Listener Non TLS port. Default is 1521. + * @param scanListenerPortNonTls the value to set + * @return this builder + **/ + public Builder scanListenerPortNonTls(Integer scanListenerPortNonTls) { + this.scanListenerPortNonTls = scanListenerPortNonTls; + this.__explicitlySet__.add("scanListenerPortNonTls"); + return this; + } + /** + * Enable mutual TLS(mTLS) authentication for database at time of provisioning a VMCluster. This is applicable to database TLS Certificates only. Default is TLS + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsEnabledVmCluster") + private Boolean isMtlsEnabledVmCluster; + + /** + * Enable mutual TLS(mTLS) authentication for database at time of provisioning a VMCluster. This is applicable to database TLS Certificates only. Default is TLS + * @param isMtlsEnabledVmCluster the value to set + * @return this builder + **/ + public Builder isMtlsEnabledVmCluster(Boolean isMtlsEnabledVmCluster) { + this.isMtlsEnabledVmCluster = isMtlsEnabledVmCluster; + this.__explicitlySet__.add("isMtlsEnabledVmCluster"); + return this; + } + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @param distributionAlgorithm the value to set + * @return this builder + **/ + public Builder distributionAlgorithm(DistributionAlgorithm distributionAlgorithm) { + this.distributionAlgorithm = distributionAlgorithm; + this.__explicitlySet__.add("distributionAlgorithm"); + return this; + } /** * Security Attributes for this resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -289,6 +384,11 @@ public UpdateCloudAutonomousVmClusterDetails build() { this.nsgIds, this.freeformTags, this.definedTags, + this.clusterTimeZone, + this.scanListenerPortTls, + this.scanListenerPortNonTls, + this.isMtlsEnabledVmCluster, + this.distributionAlgorithm, this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -328,6 +428,21 @@ public Builder copy(UpdateCloudAutonomousVmClusterDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("clusterTimeZone")) { + this.clusterTimeZone(model.getClusterTimeZone()); + } + if (model.wasPropertyExplicitlySet("scanListenerPortTls")) { + this.scanListenerPortTls(model.getScanListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("scanListenerPortNonTls")) { + this.scanListenerPortNonTls(model.getScanListenerPortNonTls()); + } + if (model.wasPropertyExplicitlySet("isMtlsEnabledVmCluster")) { + this.isMtlsEnabledVmCluster(model.getIsMtlsEnabledVmCluster()); + } + if (model.wasPropertyExplicitlySet("distributionAlgorithm")) { + this.distributionAlgorithm(model.getDistributionAlgorithm()); + } if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } @@ -552,6 +667,111 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterTimeZone") + private final String clusterTimeZone; + + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * @return the value + **/ + public String getClusterTimeZone() { + return clusterTimeZone; + } + + /** + * The SCAN Listener TLS port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortTls") + private final Integer scanListenerPortTls; + + /** + * The SCAN Listener TLS port. Default is 2484. + * @return the value + **/ + public Integer getScanListenerPortTls() { + return scanListenerPortTls; + } + + /** + * The SCAN Listener Non TLS port. Default is 1521. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPortNonTls") + private final Integer scanListenerPortNonTls; + + /** + * The SCAN Listener Non TLS port. Default is 1521. + * @return the value + **/ + public Integer getScanListenerPortNonTls() { + return scanListenerPortNonTls; + } + + /** + * Enable mutual TLS(mTLS) authentication for database at time of provisioning a VMCluster. This is applicable to database TLS Certificates only. Default is TLS + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsEnabledVmCluster") + private final Boolean isMtlsEnabledVmCluster; + + /** + * Enable mutual TLS(mTLS) authentication for database at time of provisioning a VMCluster. This is applicable to database TLS Certificates only. Default is TLS + * @return the value + **/ + public Boolean getIsMtlsEnabledVmCluster() { + return isMtlsEnabledVmCluster; + } + + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + public enum DistributionAlgorithm { + ResourceOptimized("RESOURCE_OPTIMIZED"), + DistributionOptimized("DISTRIBUTION_OPTIMIZED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributionAlgorithm v : DistributionAlgorithm.values()) { + map.put(v.getValue(), v); + } + } + + DistributionAlgorithm(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributionAlgorithm create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DistributionAlgorithm: " + key); + } + }; + /** + * The distribution algorithm used for the Autonomous VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("distributionAlgorithm") + private final DistributionAlgorithm distributionAlgorithm; + + /** + * The distribution algorithm used for the Autonomous VM cluster. + * @return the value + **/ + public DistributionAlgorithm getDistributionAlgorithm() { + return distributionAlgorithm; + } + /** * Security Attributes for this resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -599,6 +819,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", clusterTimeZone=").append(String.valueOf(this.clusterTimeZone)); + sb.append(", scanListenerPortTls=").append(String.valueOf(this.scanListenerPortTls)); + sb.append(", scanListenerPortNonTls=").append(String.valueOf(this.scanListenerPortNonTls)); + sb.append(", isMtlsEnabledVmCluster=").append(String.valueOf(this.isMtlsEnabledVmCluster)); + sb.append(", distributionAlgorithm=").append(String.valueOf(this.distributionAlgorithm)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); @@ -627,6 +852,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.clusterTimeZone, other.clusterTimeZone) + && java.util.Objects.equals(this.scanListenerPortTls, other.scanListenerPortTls) + && java.util.Objects.equals( + this.scanListenerPortNonTls, other.scanListenerPortNonTls) + && java.util.Objects.equals( + this.isMtlsEnabledVmCluster, other.isMtlsEnabledVmCluster) + && java.util.Objects.equals(this.distributionAlgorithm, other.distributionAlgorithm) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -661,6 +893,29 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.clusterTimeZone == null ? 43 : this.clusterTimeZone.hashCode()); + result = + (result * PRIME) + + (this.scanListenerPortTls == null + ? 43 + : this.scanListenerPortTls.hashCode()); + result = + (result * PRIME) + + (this.scanListenerPortNonTls == null + ? 43 + : this.scanListenerPortNonTls.hashCode()); + result = + (result * PRIME) + + (this.isMtlsEnabledVmCluster == null + ? 43 + : this.isMtlsEnabledVmCluster.hashCode()); + result = + (result * PRIME) + + (this.distributionAlgorithm == null + ? 43 + : this.distributionAlgorithm.hashCode()); result = (result * PRIME) + (this.securityAttributes == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudExadataInfrastructureDetails.java index c7368cbcaff..90704a7734c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudExadataInfrastructureDetails.java @@ -26,6 +26,7 @@ public final class UpdateCloudExadataInfrastructureDetails @java.beans.ConstructorProperties({ "displayName", "maintenanceWindow", + "maintenanceVersionPreferences", "computeCount", "storageCount", "freeformTags", @@ -35,6 +36,7 @@ public final class UpdateCloudExadataInfrastructureDetails public UpdateCloudExadataInfrastructureDetails( String displayName, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, Integer computeCount, Integer storageCount, java.util.Map freeformTags, @@ -43,6 +45,7 @@ public UpdateCloudExadataInfrastructureDetails( super(); this.displayName = displayName; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.computeCount = computeCount; this.storageCount = storageCount; this.freeformTags = freeformTags; @@ -79,6 +82,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The number of compute servers for the cloud Exadata infrastructure. **/ @@ -181,6 +194,7 @@ public UpdateCloudExadataInfrastructureDetails build() { new UpdateCloudExadataInfrastructureDetails( this.displayName, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.computeCount, this.storageCount, this.freeformTags, @@ -200,6 +214,9 @@ public Builder copy(UpdateCloudExadataInfrastructureDetails model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("computeCount")) { this.computeCount(model.getComputeCount()); } @@ -253,6 +270,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The number of compute servers for the cloud Exadata infrastructure. **/ @@ -351,6 +375,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", computeCount=").append(String.valueOf(this.computeCount)); sb.append(", storageCount=").append(String.valueOf(this.storageCount)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -372,6 +398,8 @@ public boolean equals(Object o) { UpdateCloudExadataInfrastructureDetails other = (UpdateCloudExadataInfrastructureDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals(this.computeCount, other.computeCount) && java.util.Objects.equals(this.storageCount, other.storageCount) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -388,6 +416,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); result = (result * PRIME) + (this.storageCount == null ? 43 : this.storageCount.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudVmClusterDetails.java index 11cb93c25ae..b560bbdcccf 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudVmClusterDetails.java @@ -43,7 +43,12 @@ public final class UpdateCloudVmClusterDetails "dataCollectionOptions", "fileSystemConfigurationDetails", "cloudAutomationUpdateDetails", - "vmBackupStorageType" + "vmBackupStorageType", + "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", + "isLocalBackupEnabled", + "isSparseDiskgroupEnabled" }) public UpdateCloudVmClusterDetails( String displayName, @@ -65,7 +70,12 @@ public UpdateCloudVmClusterDetails( DataCollectionOptions dataCollectionOptions, java.util.List fileSystemConfigurationDetails, CloudAutomationUpdateDetails cloudAutomationUpdateDetails, - VmBackupStorageType vmBackupStorageType) { + VmBackupStorageType vmBackupStorageType, + Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, + Boolean isLocalBackupEnabled, + Boolean isSparseDiskgroupEnabled) { super(); this.displayName = displayName; this.cpuCoreCount = cpuCoreCount; @@ -87,6 +97,11 @@ public UpdateCloudVmClusterDetails( this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; this.vmBackupStorageType = vmBackupStorageType; + this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; + this.isLocalBackupEnabled = isLocalBackupEnabled; + this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -476,6 +491,96 @@ public Builder vmBackupStorageType(VmBackupStorageType vmBackupStorageType) { this.__explicitlySet__.add("vmBackupStorageType"); return this; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param dataStoragePercentage the value to set + * @return this builder + **/ + public Builder dataStoragePercentage(Integer dataStoragePercentage) { + this.dataStoragePercentage = dataStoragePercentage; + this.__explicitlySet__.add("dataStoragePercentage"); + return this; + } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } + /** + * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocalBackupEnabled") + private Boolean isLocalBackupEnabled; + + /** + * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. + * + * @param isLocalBackupEnabled the value to set + * @return this builder + **/ + public Builder isLocalBackupEnabled(Boolean isLocalBackupEnabled) { + this.isLocalBackupEnabled = isLocalBackupEnabled; + this.__explicitlySet__.add("isLocalBackupEnabled"); + return this; + } + /** + * If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSparseDiskgroupEnabled") + private Boolean isSparseDiskgroupEnabled; + + /** + * If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. + * + * @param isSparseDiskgroupEnabled the value to set + * @return this builder + **/ + public Builder isSparseDiskgroupEnabled(Boolean isSparseDiskgroupEnabled) { + this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; + this.__explicitlySet__.add("isSparseDiskgroupEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -502,7 +607,12 @@ public UpdateCloudVmClusterDetails build() { this.dataCollectionOptions, this.fileSystemConfigurationDetails, this.cloudAutomationUpdateDetails, - this.vmBackupStorageType); + this.vmBackupStorageType, + this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, + this.isLocalBackupEnabled, + this.isSparseDiskgroupEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -571,6 +681,21 @@ public Builder copy(UpdateCloudVmClusterDetails model) { if (model.wasPropertyExplicitlySet("vmBackupStorageType")) { this.vmBackupStorageType(model.getVmBackupStorageType()); } + if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { + this.dataStoragePercentage(model.getDataStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("isLocalBackupEnabled")) { + this.isLocalBackupEnabled(model.getIsLocalBackupEnabled()); + } + if (model.wasPropertyExplicitlySet("isSparseDiskgroupEnabled")) { + this.isSparseDiskgroupEnabled(model.getIsSparseDiskgroupEnabled()); + } return this; } } @@ -998,6 +1123,86 @@ public VmBackupStorageType getVmBackupStorageType() { return vmBackupStorageType; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private final Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getDataStoragePercentage() { + return dataStoragePercentage; + } + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + + /** + * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocalBackupEnabled") + private final Boolean isLocalBackupEnabled; + + /** + * If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. + * + * @return the value + **/ + public Boolean getIsLocalBackupEnabled() { + return isLocalBackupEnabled; + } + + /** + * If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSparseDiskgroupEnabled") + private final Boolean isSparseDiskgroupEnabled; + + /** + * If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. + * + * @return the value + **/ + public Boolean getIsSparseDiskgroupEnabled() { + return isSparseDiskgroupEnabled; + } + @Override public String toString() { return this.toString(true); @@ -1034,6 +1239,13 @@ public String toString(boolean includeByteArrayContents) { sb.append(", cloudAutomationUpdateDetails=") .append(String.valueOf(this.cloudAutomationUpdateDetails)); sb.append(", vmBackupStorageType=").append(String.valueOf(this.vmBackupStorageType)); + sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); + sb.append(", isLocalBackupEnabled=").append(String.valueOf(this.isLocalBackupEnabled)); + sb.append(", isSparseDiskgroupEnabled=") + .append(String.valueOf(this.isSparseDiskgroupEnabled)); sb.append(")"); return sb.toString(); } @@ -1071,6 +1283,13 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) && java.util.Objects.equals(this.vmBackupStorageType, other.vmBackupStorageType) + && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) + && java.util.Objects.equals(this.isLocalBackupEnabled, other.isLocalBackupEnabled) + && java.util.Objects.equals( + this.isSparseDiskgroupEnabled, other.isSparseDiskgroupEnabled) && super.equals(other); } @@ -1138,6 +1357,31 @@ public int hashCode() { + (this.vmBackupStorageType == null ? 43 : this.vmBackupStorageType.hashCode()); + result = + (result * PRIME) + + (this.dataStoragePercentage == null + ? 43 + : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.isLocalBackupEnabled == null + ? 43 + : this.isLocalBackupEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSparseDiskgroupEnabled == null + ? 43 + : this.isSparseDiskgroupEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java index d2584887cef..b865e2b43f0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java @@ -22,6 +22,21 @@ public final class UpdateDataGuardDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDataGuardDetails( + String databaseAdminPassword, + ProtectionMode protectionMode, + TransportType transportType, + Boolean isActiveDataGuardEnabled) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.protectionMode = protectionMode; + this.transportType = transportType; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "databaseAdminPassword", "protectionMode", @@ -29,7 +44,7 @@ public final class UpdateDataGuardDetails "isActiveDataGuardEnabled" }) public UpdateDataGuardDetails( - String databaseAdminPassword, + char[] databaseAdminPassword, ProtectionMode protectionMode, TransportType transportType, Boolean isActiveDataGuardEnabled) { @@ -49,7 +64,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -59,11 +74,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder **/ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + /** * The protection mode of this Data Guard. For more information, see * [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) @@ -193,7 +216,21 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * <p> + **The password MUST be the same as the primary admin password.** + * + * return the value + * @Deprecated - Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -202,10 +239,10 @@ public Builder toBuilder() { * * @return the value **/ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } - /** * The protection mode of this Data Guard. For more information, see * [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java index 4074d6fd3fd..1c317c50218 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java @@ -25,6 +25,32 @@ public final class UpdateDatabaseDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDatabaseDetails( + DbBackupConfig dbBackupConfig, + String dbHomeId, + String newAdminPassword, + String oldTdeWalletPassword, + String newTdeWalletPassword, + DatabaseStorageSizeDetails storageSizeDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + PatchOptions patchOptions) { + super(); + this.dbBackupConfig = dbBackupConfig; + this.dbHomeId = dbHomeId; + this.newAdminPassword = newAdminPassword != null ? newAdminPassword.toCharArray() : null; + this.oldTdeWalletPassword = + oldTdeWalletPassword != null ? oldTdeWalletPassword.toCharArray() : null; + this.newTdeWalletPassword = + newTdeWalletPassword != null ? newTdeWalletPassword.toCharArray() : null; + this.storageSizeDetails = storageSizeDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.patchOptions = patchOptions; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "dbBackupConfig", "dbHomeId", @@ -39,9 +65,9 @@ public final class UpdateDatabaseDetails public UpdateDatabaseDetails( DbBackupConfig dbBackupConfig, String dbHomeId, - String newAdminPassword, - String oldTdeWalletPassword, - String newTdeWalletPassword, + char[] newAdminPassword, + char[] oldTdeWalletPassword, + char[] newTdeWalletPassword, DatabaseStorageSizeDetails storageSizeDetails, java.util.Map freeformTags, java.util.Map> definedTags, @@ -89,51 +115,74 @@ public Builder dbHomeId(String dbHomeId) { * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("newAdminPassword") - private String newAdminPassword; + private char[] newAdminPassword; /** * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @param newAdminPassword the value to set * @return this builder **/ - public Builder newAdminPassword(String newAdminPassword) { + public Builder newAdminPassword(char[] newAdminPassword) { this.newAdminPassword = newAdminPassword; this.__explicitlySet__.add("newAdminPassword"); return this; } + + public Builder newAdminPassword(String newAdminPassword) { + this.newAdminPassword = + newAdminPassword != null ? newAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("newAdminPassword"); + return this; + } + /** * The existing TDE wallet password. You must provide the existing password in order to set a new TDE wallet password. **/ @com.fasterxml.jackson.annotation.JsonProperty("oldTdeWalletPassword") - private String oldTdeWalletPassword; + private char[] oldTdeWalletPassword; /** * The existing TDE wallet password. You must provide the existing password in order to set a new TDE wallet password. * @param oldTdeWalletPassword the value to set * @return this builder **/ - public Builder oldTdeWalletPassword(String oldTdeWalletPassword) { + public Builder oldTdeWalletPassword(char[] oldTdeWalletPassword) { this.oldTdeWalletPassword = oldTdeWalletPassword; this.__explicitlySet__.add("oldTdeWalletPassword"); return this; } + + public Builder oldTdeWalletPassword(String oldTdeWalletPassword) { + this.oldTdeWalletPassword = + oldTdeWalletPassword != null ? oldTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("oldTdeWalletPassword"); + return this; + } + /** * The new password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("newTdeWalletPassword") - private String newTdeWalletPassword; + private char[] newTdeWalletPassword; /** * The new password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @param newTdeWalletPassword the value to set * @return this builder **/ - public Builder newTdeWalletPassword(String newTdeWalletPassword) { + public Builder newTdeWalletPassword(char[] newTdeWalletPassword) { this.newTdeWalletPassword = newTdeWalletPassword; this.__explicitlySet__.add("newTdeWalletPassword"); return this; } + public Builder newTdeWalletPassword(String newTdeWalletPassword) { + this.newTdeWalletPassword = + newTdeWalletPassword != null ? newTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("newTdeWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("storageSizeDetails") private DatabaseStorageSizeDetails storageSizeDetails; @@ -287,13 +336,25 @@ public String getDbHomeId() { * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("newAdminPassword") - private final String newAdminPassword; + private final char[] newAdminPassword; + + /** + * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. + * return the value + * @Deprecated - Use getNewAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getNewAdminPassword() { + return newAdminPassword != null ? new String(newAdminPassword) : null; + } /** * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @return the value **/ - public String getNewAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("newAdminPassword") + public char[] getNewAdminPassword__AsCharArray() { return newAdminPassword; } @@ -301,13 +362,25 @@ public String getNewAdminPassword() { * The existing TDE wallet password. You must provide the existing password in order to set a new TDE wallet password. **/ @com.fasterxml.jackson.annotation.JsonProperty("oldTdeWalletPassword") - private final String oldTdeWalletPassword; + private final char[] oldTdeWalletPassword; + + /** + * The existing TDE wallet password. You must provide the existing password in order to set a new TDE wallet password. + * return the value + * @Deprecated - Use getOldTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getOldTdeWalletPassword() { + return oldTdeWalletPassword != null ? new String(oldTdeWalletPassword) : null; + } /** * The existing TDE wallet password. You must provide the existing password in order to set a new TDE wallet password. * @return the value **/ - public String getOldTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("oldTdeWalletPassword") + public char[] getOldTdeWalletPassword__AsCharArray() { return oldTdeWalletPassword; } @@ -315,13 +388,25 @@ public String getOldTdeWalletPassword() { * The new password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. **/ @com.fasterxml.jackson.annotation.JsonProperty("newTdeWalletPassword") - private final String newTdeWalletPassword; + private final char[] newTdeWalletPassword; + + /** + * The new password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. + * return the value + * @Deprecated - Use getNewTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getNewTdeWalletPassword() { + return newTdeWalletPassword != null ? new String(newTdeWalletPassword) : null; + } /** * The new password to open the TDE wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, \\#, or -. * @return the value **/ - public String getNewTdeWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("newTdeWalletPassword") + public char[] getNewTdeWalletPassword__AsCharArray() { return newTdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java index e47439c6fb4..39a18f7f10d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java @@ -34,6 +34,7 @@ public final class UpdateExadataInfrastructureDetails "corporateProxy", "contacts", "maintenanceWindow", + "maintenanceVersionPreferences", "additionalStorageCount", "isMultiRackDeployment", "multiRackConfigurationFile", @@ -57,6 +58,7 @@ public UpdateExadataInfrastructureDetails( String corporateProxy, java.util.List contacts, MaintenanceWindow maintenanceWindow, + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences, Integer additionalStorageCount, Boolean isMultiRackDeployment, byte[] multiRackConfigurationFile, @@ -79,6 +81,7 @@ public UpdateExadataInfrastructureDetails( this.corporateProxy = corporateProxy; this.contacts = contacts; this.maintenanceWindow = maintenanceWindow; + this.maintenanceVersionPreferences = maintenanceVersionPreferences; this.additionalStorageCount = additionalStorageCount; this.isMultiRackDeployment = isMultiRackDeployment; this.multiRackConfigurationFile = multiRackConfigurationFile; @@ -232,6 +235,16 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { this.__explicitlySet__.add("maintenanceWindow"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public Builder maintenanceVersionPreferences( + MaintenanceVersionPreferenceDetails maintenanceVersionPreferences) { + this.maintenanceVersionPreferences = maintenanceVersionPreferences; + this.__explicitlySet__.add("maintenanceVersionPreferences"); + return this; + } /** * The requested number of additional storage servers for the Exadata infrastructure. **/ @@ -462,6 +475,7 @@ public UpdateExadataInfrastructureDetails build() { this.corporateProxy, this.contacts, this.maintenanceWindow, + this.maintenanceVersionPreferences, this.additionalStorageCount, this.isMultiRackDeployment, this.multiRackConfigurationFile, @@ -509,6 +523,9 @@ public Builder copy(UpdateExadataInfrastructureDetails model) { if (model.wasPropertyExplicitlySet("maintenanceWindow")) { this.maintenanceWindow(model.getMaintenanceWindow()); } + if (model.wasPropertyExplicitlySet("maintenanceVersionPreferences")) { + this.maintenanceVersionPreferences(model.getMaintenanceVersionPreferences()); + } if (model.wasPropertyExplicitlySet("additionalStorageCount")) { this.additionalStorageCount(model.getAdditionalStorageCount()); } @@ -679,6 +696,13 @@ public MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceVersionPreferences") + private final MaintenanceVersionPreferenceDetails maintenanceVersionPreferences; + + public MaintenanceVersionPreferenceDetails getMaintenanceVersionPreferences() { + return maintenanceVersionPreferences; + } + /** * The requested number of additional storage servers for the Exadata infrastructure. **/ @@ -933,6 +957,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); sb.append(", contacts=").append(String.valueOf(this.contacts)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", maintenanceVersionPreferences=") + .append(String.valueOf(this.maintenanceVersionPreferences)); sb.append(", additionalStorageCount=").append(String.valueOf(this.additionalStorageCount)); sb.append(", isMultiRackDeployment=").append(String.valueOf(this.isMultiRackDeployment)); sb.append(", multiRackConfigurationFile=") @@ -982,6 +1008,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) && java.util.Objects.equals(this.contacts, other.contacts) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals( + this.maintenanceVersionPreferences, other.maintenanceVersionPreferences) && java.util.Objects.equals( this.additionalStorageCount, other.additionalStorageCount) && java.util.Objects.equals(this.isMultiRackDeployment, other.isMultiRackDeployment) @@ -1034,6 +1062,11 @@ public int hashCode() { result = (result * PRIME) + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.maintenanceVersionPreferences == null + ? 43 + : this.maintenanceVersionPreferences.hashCode()); result = (result * PRIME) + (this.additionalStorageCount == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java index 2cf8339657e..24d2c914758 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java @@ -31,6 +31,11 @@ public final class UpdateVmClusterDetails "dbNodeStorageSizeInGBs", "dataStorageSizeInTBs", "dataStorageSizeInGBs", + "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", + "isLocalBackupEnabled", + "isSparseDiskgroupEnabled", "licenseModel", "sshPublicKeys", "version", @@ -49,6 +54,11 @@ public UpdateVmClusterDetails( Integer dbNodeStorageSizeInGBs, Double dataStorageSizeInTBs, Double dataStorageSizeInGBs, + Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, + Boolean isLocalBackupEnabled, + Boolean isSparseDiskgroupEnabled, LicenseModel licenseModel, java.util.List sshPublicKeys, PatchDetails version, @@ -66,6 +76,11 @@ public UpdateVmClusterDetails( this.dbNodeStorageSizeInGBs = dbNodeStorageSizeInGBs; this.dataStorageSizeInTBs = dataStorageSizeInTBs; this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; + this.isLocalBackupEnabled = isLocalBackupEnabled; + this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; this.licenseModel = licenseModel; this.sshPublicKeys = sshPublicKeys; this.version = version; @@ -176,6 +191,96 @@ public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { this.__explicitlySet__.add("dataStorageSizeInGBs"); return this; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param dataStoragePercentage the value to set + * @return this builder + **/ + public Builder dataStoragePercentage(Integer dataStoragePercentage) { + this.dataStoragePercentage = dataStoragePercentage; + this.__explicitlySet__.add("dataStoragePercentage"); + return this; + } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } + /** + * If true, database backup on local Exadata storage is configured for the VM cluster. If false, database backup on local Exadata storage is not available in the VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocalBackupEnabled") + private Boolean isLocalBackupEnabled; + + /** + * If true, database backup on local Exadata storage is configured for the VM cluster. If false, database backup on local Exadata storage is not available in the VM cluster. + * + * @param isLocalBackupEnabled the value to set + * @return this builder + **/ + public Builder isLocalBackupEnabled(Boolean isLocalBackupEnabled) { + this.isLocalBackupEnabled = isLocalBackupEnabled; + this.__explicitlySet__.add("isLocalBackupEnabled"); + return this; + } + /** + * If true, sparse disk group is configured for the VM cluster. If false, sparse disk group is not created. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSparseDiskgroupEnabled") + private Boolean isSparseDiskgroupEnabled; + + /** + * If true, sparse disk group is configured for the VM cluster. If false, sparse disk group is not created. + * + * @param isSparseDiskgroupEnabled the value to set + * @return this builder + **/ + public Builder isSparseDiskgroupEnabled(Boolean isSparseDiskgroupEnabled) { + this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; + this.__explicitlySet__.add("isSparseDiskgroupEnabled"); + return this; + } /** * The Oracle license model that applies to the VM cluster. The default is BRING_YOUR_OWN_LICENSE. * @@ -338,6 +443,11 @@ public UpdateVmClusterDetails build() { this.dbNodeStorageSizeInGBs, this.dataStorageSizeInTBs, this.dataStorageSizeInGBs, + this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, + this.isLocalBackupEnabled, + this.isSparseDiskgroupEnabled, this.licenseModel, this.sshPublicKeys, this.version, @@ -374,6 +484,21 @@ public Builder copy(UpdateVmClusterDetails model) { if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { + this.dataStoragePercentage(model.getDataStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("isLocalBackupEnabled")) { + this.isLocalBackupEnabled(model.getIsLocalBackupEnabled()); + } + if (model.wasPropertyExplicitlySet("isSparseDiskgroupEnabled")) { + this.isSparseDiskgroupEnabled(model.getIsSparseDiskgroupEnabled()); + } if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } @@ -503,6 +628,86 @@ public Double getDataStorageSizeInGBs() { return dataStorageSizeInGBs; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private final Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getDataStoragePercentage() { + return dataStoragePercentage; + } + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + + /** + * If true, database backup on local Exadata storage is configured for the VM cluster. If false, database backup on local Exadata storage is not available in the VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLocalBackupEnabled") + private final Boolean isLocalBackupEnabled; + + /** + * If true, database backup on local Exadata storage is configured for the VM cluster. If false, database backup on local Exadata storage is not available in the VM cluster. + * + * @return the value + **/ + public Boolean getIsLocalBackupEnabled() { + return isLocalBackupEnabled; + } + + /** + * If true, sparse disk group is configured for the VM cluster. If false, sparse disk group is not created. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSparseDiskgroupEnabled") + private final Boolean isSparseDiskgroupEnabled; + + /** + * If true, sparse disk group is configured for the VM cluster. If false, sparse disk group is not created. + * + * @return the value + **/ + public Boolean getIsSparseDiskgroupEnabled() { + return isSparseDiskgroupEnabled; + } + /** * The Oracle license model that applies to the VM cluster. The default is BRING_YOUR_OWN_LICENSE. * @@ -720,6 +925,13 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbNodeStorageSizeInGBs=").append(String.valueOf(this.dbNodeStorageSizeInGBs)); sb.append(", dataStorageSizeInTBs=").append(String.valueOf(this.dataStorageSizeInTBs)); sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); + sb.append(", isLocalBackupEnabled=").append(String.valueOf(this.isLocalBackupEnabled)); + sb.append(", isSparseDiskgroupEnabled=") + .append(String.valueOf(this.isSparseDiskgroupEnabled)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); sb.append(", version=").append(String.valueOf(this.version)); @@ -753,6 +965,13 @@ public boolean equals(Object o) { this.dbNodeStorageSizeInGBs, other.dbNodeStorageSizeInGBs) && java.util.Objects.equals(this.dataStorageSizeInTBs, other.dataStorageSizeInTBs) && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) + && java.util.Objects.equals(this.isLocalBackupEnabled, other.isLocalBackupEnabled) + && java.util.Objects.equals( + this.isSparseDiskgroupEnabled, other.isSparseDiskgroupEnabled) && java.util.Objects.equals(this.licenseModel, other.licenseModel) && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) && java.util.Objects.equals(this.version, other.version) @@ -792,6 +1011,31 @@ public int hashCode() { + (this.dataStorageSizeInGBs == null ? 43 : this.dataStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStoragePercentage == null + ? 43 + : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.isLocalBackupEnabled == null + ? 43 + : this.isLocalBackupEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSparseDiskgroupEnabled == null + ? 43 + : this.isSparseDiskgroupEnabled.hashCode()); result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java index 86a4c572029..1fd37d4b4b7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java @@ -32,6 +32,9 @@ public final class VmCluster extends com.oracle.bmc.http.internal.ExplicitlySetB "isLocalBackupEnabled", "exadataInfrastructureId", "isSparseDiskgroupEnabled", + "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", "vmClusterNetworkId", "cpusEnabled", "ocpusEnabled", @@ -72,6 +75,9 @@ public VmCluster( Boolean isLocalBackupEnabled, String exadataInfrastructureId, Boolean isSparseDiskgroupEnabled, + Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, String vmClusterNetworkId, Integer cpusEnabled, Float ocpusEnabled, @@ -111,6 +117,9 @@ public VmCluster( this.isLocalBackupEnabled = isLocalBackupEnabled; this.exadataInfrastructureId = exadataInfrastructureId; this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; + this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; this.vmClusterNetworkId = vmClusterNetworkId; this.cpusEnabled = cpusEnabled; this.ocpusEnabled = ocpusEnabled; @@ -322,6 +331,60 @@ public Builder isSparseDiskgroupEnabled(Boolean isSparseDiskgroupEnabled) { this.__explicitlySet__.add("isSparseDiskgroupEnabled"); return this; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param dataStoragePercentage the value to set + * @return this builder + **/ + public Builder dataStoragePercentage(Integer dataStoragePercentage) { + this.dataStoragePercentage = dataStoragePercentage; + this.__explicitlySet__.add("dataStoragePercentage"); + return this; + } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -781,6 +844,9 @@ public VmCluster build() { this.isLocalBackupEnabled, this.exadataInfrastructureId, this.isSparseDiskgroupEnabled, + this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, this.vmClusterNetworkId, this.cpusEnabled, this.ocpusEnabled, @@ -849,6 +915,15 @@ public Builder copy(VmCluster model) { if (model.wasPropertyExplicitlySet("isSparseDiskgroupEnabled")) { this.isSparseDiskgroupEnabled(model.getIsSparseDiskgroupEnabled()); } + if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { + this.dataStoragePercentage(model.getDataStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } if (model.wasPropertyExplicitlySet("vmClusterNetworkId")) { this.vmClusterNetworkId(model.getVmClusterNetworkId()); } @@ -1156,6 +1231,54 @@ public Boolean getIsSparseDiskgroupEnabled() { return isSparseDiskgroupEnabled; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private final Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getDataStoragePercentage() { + return dataStoragePercentage; + } + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -1857,6 +1980,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.exadataInfrastructureId)); sb.append(", isSparseDiskgroupEnabled=") .append(String.valueOf(this.isSparseDiskgroupEnabled)); + sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); sb.append(", ocpusEnabled=").append(String.valueOf(this.ocpusEnabled)); @@ -1916,6 +2043,10 @@ public boolean equals(Object o) { this.exadataInfrastructureId, other.exadataInfrastructureId) && java.util.Objects.equals( this.isSparseDiskgroupEnabled, other.isSparseDiskgroupEnabled) + && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) && java.util.Objects.equals(this.ocpusEnabled, other.ocpusEnabled) @@ -1988,6 +2119,21 @@ public int hashCode() { + (this.isSparseDiskgroupEnabled == null ? 43 : this.isSparseDiskgroupEnabled.hashCode()); + result = + (result * PRIME) + + (this.dataStoragePercentage == null + ? 43 + : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); result = (result * PRIME) + (this.vmClusterNetworkId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java index 35cb46e915d..e8f49ab036a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java @@ -32,6 +32,9 @@ public final class VmClusterSummary extends com.oracle.bmc.http.internal.Explici "isLocalBackupEnabled", "exadataInfrastructureId", "isSparseDiskgroupEnabled", + "dataStoragePercentage", + "recoStoragePercentage", + "sparseStoragePercentage", "vmClusterNetworkId", "cpusEnabled", "ocpusEnabled", @@ -72,6 +75,9 @@ public VmClusterSummary( Boolean isLocalBackupEnabled, String exadataInfrastructureId, Boolean isSparseDiskgroupEnabled, + Integer dataStoragePercentage, + Integer recoStoragePercentage, + Integer sparseStoragePercentage, String vmClusterNetworkId, Integer cpusEnabled, Float ocpusEnabled, @@ -111,6 +117,9 @@ public VmClusterSummary( this.isLocalBackupEnabled = isLocalBackupEnabled; this.exadataInfrastructureId = exadataInfrastructureId; this.isSparseDiskgroupEnabled = isSparseDiskgroupEnabled; + this.dataStoragePercentage = dataStoragePercentage; + this.recoStoragePercentage = recoStoragePercentage; + this.sparseStoragePercentage = sparseStoragePercentage; this.vmClusterNetworkId = vmClusterNetworkId; this.cpusEnabled = cpusEnabled; this.ocpusEnabled = ocpusEnabled; @@ -322,6 +331,60 @@ public Builder isSparseDiskgroupEnabled(Boolean isSparseDiskgroupEnabled) { this.__explicitlySet__.add("isSparseDiskgroupEnabled"); return this; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param dataStoragePercentage the value to set + * @return this builder + **/ + public Builder dataStoragePercentage(Integer dataStoragePercentage) { + this.dataStoragePercentage = dataStoragePercentage; + this.__explicitlySet__.add("dataStoragePercentage"); + return this; + } + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param recoStoragePercentage the value to set + * @return this builder + **/ + public Builder recoStoragePercentage(Integer recoStoragePercentage) { + this.recoStoragePercentage = recoStoragePercentage; + this.__explicitlySet__.add("recoStoragePercentage"); + return this; + } + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @param sparseStoragePercentage the value to set + * @return this builder + **/ + public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { + this.sparseStoragePercentage = sparseStoragePercentage; + this.__explicitlySet__.add("sparseStoragePercentage"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -781,6 +844,9 @@ public VmClusterSummary build() { this.isLocalBackupEnabled, this.exadataInfrastructureId, this.isSparseDiskgroupEnabled, + this.dataStoragePercentage, + this.recoStoragePercentage, + this.sparseStoragePercentage, this.vmClusterNetworkId, this.cpusEnabled, this.ocpusEnabled, @@ -849,6 +915,15 @@ public Builder copy(VmClusterSummary model) { if (model.wasPropertyExplicitlySet("isSparseDiskgroupEnabled")) { this.isSparseDiskgroupEnabled(model.getIsSparseDiskgroupEnabled()); } + if (model.wasPropertyExplicitlySet("dataStoragePercentage")) { + this.dataStoragePercentage(model.getDataStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("recoStoragePercentage")) { + this.recoStoragePercentage(model.getRecoStoragePercentage()); + } + if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { + this.sparseStoragePercentage(model.getSparseStoragePercentage()); + } if (model.wasPropertyExplicitlySet("vmClusterNetworkId")) { this.vmClusterNetworkId(model.getVmClusterNetworkId()); } @@ -1156,6 +1231,54 @@ public Boolean getIsSparseDiskgroupEnabled() { return isSparseDiskgroupEnabled; } + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStoragePercentage") + private final Integer dataStoragePercentage; + + /** + * The percentage assigned to DATA storage (user data and database files). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getDataStoragePercentage() { + return dataStoragePercentage; + } + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStoragePercentage") + private final Integer recoStoragePercentage; + + /** + * The percentage assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getRecoStoragePercentage() { + return recoStoragePercentage; + } + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparseStoragePercentage") + private final Integer sparseStoragePercentage; + + /** + * The percentage assigned to SPARSE storage (Exadata snapshots). See [Storage Configuration](https://docs.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. + * + * @return the value + **/ + public Integer getSparseStoragePercentage() { + return sparseStoragePercentage; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -1857,6 +1980,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.exadataInfrastructureId)); sb.append(", isSparseDiskgroupEnabled=") .append(String.valueOf(this.isSparseDiskgroupEnabled)); + sb.append(", dataStoragePercentage=").append(String.valueOf(this.dataStoragePercentage)); + sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); + sb.append(", sparseStoragePercentage=") + .append(String.valueOf(this.sparseStoragePercentage)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); sb.append(", ocpusEnabled=").append(String.valueOf(this.ocpusEnabled)); @@ -1916,6 +2043,10 @@ public boolean equals(Object o) { this.exadataInfrastructureId, other.exadataInfrastructureId) && java.util.Objects.equals( this.isSparseDiskgroupEnabled, other.isSparseDiskgroupEnabled) + && java.util.Objects.equals(this.dataStoragePercentage, other.dataStoragePercentage) + && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) + && java.util.Objects.equals( + this.sparseStoragePercentage, other.sparseStoragePercentage) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) && java.util.Objects.equals(this.ocpusEnabled, other.ocpusEnabled) @@ -1988,6 +2119,21 @@ public int hashCode() { + (this.isSparseDiskgroupEnabled == null ? 43 : this.isSparseDiskgroupEnabled.hashCode()); + result = + (result * PRIME) + + (this.dataStoragePercentage == null + ? 43 + : this.dataStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.recoStoragePercentage == null + ? 43 + : this.recoStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.sparseStoragePercentage == null + ? 43 + : this.sparseStoragePercentage.hashCode()); result = (result * PRIME) + (this.vmClusterNetworkId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/WindowTypeDescription.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/WindowTypeDescription.java new file mode 100644 index 00000000000..80ab2a6cf89 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/WindowTypeDescription.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * A key-value pair where the key will hold the window type and value will be a list of window details from all the active execution windows of that window type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = WindowTypeDescription.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WindowTypeDescription + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"windowType", "messages"}) + public WindowTypeDescription(WindowType windowType, java.util.List messages) { + super(); + this.windowType = windowType; + this.messages = messages; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The execution window is of PLANNED or UNPLANNED type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowType") + private WindowType windowType; + + /** + * The execution window is of PLANNED or UNPLANNED type. + * @param windowType the value to set + * @return this builder + **/ + public Builder windowType(WindowType windowType) { + this.windowType = windowType; + this.__explicitlySet__.add("windowType"); + return this; + } + /** + * A list of window detail messages from all the active execution windows based on the window type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("messages") + private java.util.List messages; + + /** + * A list of window detail messages from all the active execution windows based on the window type. + * @param messages the value to set + * @return this builder + **/ + public Builder messages(java.util.List messages) { + this.messages = messages; + this.__explicitlySet__.add("messages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WindowTypeDescription build() { + WindowTypeDescription model = new WindowTypeDescription(this.windowType, this.messages); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WindowTypeDescription model) { + if (model.wasPropertyExplicitlySet("windowType")) { + this.windowType(model.getWindowType()); + } + if (model.wasPropertyExplicitlySet("messages")) { + this.messages(model.getMessages()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The execution window is of PLANNED or UNPLANNED type. + **/ + public enum WindowType { + Planned("PLANNED"), + Unplanned("UNPLANNED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WindowType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WindowType v : WindowType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WindowType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WindowType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WindowType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The execution window is of PLANNED or UNPLANNED type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowType") + private final WindowType windowType; + + /** + * The execution window is of PLANNED or UNPLANNED type. + * @return the value + **/ + public WindowType getWindowType() { + return windowType; + } + + /** + * A list of window detail messages from all the active execution windows based on the window type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("messages") + private final java.util.List messages; + + /** + * A list of window detail messages from all the active execution windows based on the window type. + * @return the value + **/ + public java.util.List getMessages() { + return messages; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WindowTypeDescription("); + sb.append("super=").append(super.toString()); + sb.append("windowType=").append(String.valueOf(this.windowType)); + sb.append(", messages=").append(String.valueOf(this.messages)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WindowTypeDescription)) { + return false; + } + + WindowTypeDescription other = (WindowTypeDescription) o; + return java.util.Objects.equals(this.windowType, other.windowType) + && java.util.Objects.equals(this.messages, other.messages) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.windowType == null ? 43 : this.windowType.hashCode()); + result = (result * PRIME) + (this.messages == null ? 43 : this.messages.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDbSystemComputePerformancesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDbSystemComputePerformancesRequest.java index 4c2950ae047..ec1abe40f7a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDbSystemComputePerformancesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDbSystemComputePerformancesRequest.java @@ -36,6 +36,17 @@ public String getDbSystemShape() { public String getOpcRequestId() { return opcRequestId; } + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -76,6 +87,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -106,6 +132,7 @@ public Builder retryConfiguration( public Builder copy(ListDbSystemComputePerformancesRequest o) { dbSystemShape(o.getDbSystemShape()); opcRequestId(o.getOpcRequestId()); + compartmentId(o.getCompartmentId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -141,8 +168,9 @@ public ListDbSystemComputePerformancesRequest buildWithoutInvocationCallback() { new ListDbSystemComputePerformancesRequest(); request.dbSystemShape = dbSystemShape; request.opcRequestId = opcRequestId; + request.compartmentId = compartmentId; return request; - // new ListDbSystemComputePerformancesRequest(dbSystemShape, opcRequestId); + // new ListDbSystemComputePerformancesRequest(dbSystemShape, opcRequestId, compartmentId); } } @@ -151,7 +179,10 @@ public ListDbSystemComputePerformancesRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().dbSystemShape(dbSystemShape).opcRequestId(opcRequestId); + return new Builder() + .dbSystemShape(dbSystemShape) + .opcRequestId(opcRequestId) + .compartmentId(compartmentId); } /** @@ -169,6 +200,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",dbSystemShape=").append(String.valueOf(this.dbSystemShape)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); return sb.toString(); } @@ -185,7 +217,8 @@ public boolean equals(Object o) { ListDbSystemComputePerformancesRequest other = (ListDbSystemComputePerformancesRequest) o; return super.equals(o) && java.util.Objects.equals(this.dbSystemShape, other.dbSystemShape) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId); } @Override @@ -196,6 +229,9 @@ public int hashCode() { (result * PRIME) + (this.dbSystemShape == null ? 43 : this.dbSystemShape.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); return result; } } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java index d124e1d37c8..eb7bff1cbfc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java @@ -23,6 +23,53 @@ public class ListParamsForActionTypeRequest public com.oracle.bmc.database.model.RecommendedScheduledActionSummary.ActionType getType() { return type; } + /** + * The plan intent the action will be used for. Relevant to action type that can be used in multiple plans + */ + private PlanIntent planIntent; + + /** + * The plan intent the action will be used for. Relevant to action type that can be used in multiple plans + **/ + public enum PlanIntent { + ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ExadataInfrastructureSecurityUpdate("EXADATA_INFRASTRUCTURE_SECURITY_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanIntent v : PlanIntent.values()) { + map.put(v.getValue(), v); + } + } + + PlanIntent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanIntent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PlanIntent: " + key); + } + }; + + /** + * The plan intent the action will be used for. Relevant to action type that can be used in multiple plans + */ + public PlanIntent getPlanIntent() { + return planIntent; + } /** * The maximum number of items to return per page. */ @@ -83,6 +130,21 @@ public Builder type( return this; } + /** + * The plan intent the action will be used for. Relevant to action type that can be used in multiple plans + */ + private PlanIntent planIntent = null; + + /** + * The plan intent the action will be used for. Relevant to action type that can be used in multiple plans + * @param planIntent the value to set + * @return this builder instance + */ + public Builder planIntent(PlanIntent planIntent) { + this.planIntent = planIntent; + return this; + } + /** * The maximum number of items to return per page. */ @@ -159,6 +221,7 @@ public Builder retryConfiguration( */ public Builder copy(ListParamsForActionTypeRequest o) { type(o.getType()); + planIntent(o.getPlanIntent()); limit(o.getLimit()); page(o.getPage()); opcRequestId(o.getOpcRequestId()); @@ -195,11 +258,12 @@ public ListParamsForActionTypeRequest build() { public ListParamsForActionTypeRequest buildWithoutInvocationCallback() { ListParamsForActionTypeRequest request = new ListParamsForActionTypeRequest(); request.type = type; + request.planIntent = planIntent; request.limit = limit; request.page = page; request.opcRequestId = opcRequestId; return request; - // new ListParamsForActionTypeRequest(type, limit, page, opcRequestId); + // new ListParamsForActionTypeRequest(type, planIntent, limit, page, opcRequestId); } } @@ -208,7 +272,12 @@ public ListParamsForActionTypeRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().type(type).limit(limit).page(page).opcRequestId(opcRequestId); + return new Builder() + .type(type) + .planIntent(planIntent) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); } /** @@ -225,6 +294,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",planIntent=").append(String.valueOf(this.planIntent)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -244,6 +314,7 @@ public boolean equals(Object o) { ListParamsForActionTypeRequest other = (ListParamsForActionTypeRequest) o; return super.equals(o) && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.planIntent, other.planIntent) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -254,6 +325,7 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.planIntent == null ? 43 : this.planIntent.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()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java index 3fd15e163a4..b011af814c7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java @@ -44,6 +44,7 @@ public String getSchedulingPolicyTargetResourceId() { **/ public enum PlanIntent { ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ExadataInfrastructureSecurityUpdate("EXADATA_INFRASTRUCTURE_SECURITY_UPDATE"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java index 166e19ce19f..f4d3e0bc4d9 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java @@ -209,6 +209,53 @@ public String getResourceId() { public String getId() { return id; } + /** + * A filter to return only resources that match the given plan intent exactly. + */ + private PlanIntent planIntent; + + /** + * A filter to return only resources that match the given plan intent exactly. + **/ + public enum PlanIntent { + ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ExadataInfrastructureSecurityUpdate("EXADATA_INFRASTRUCTURE_SECURITY_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanIntent v : PlanIntent.values()) { + map.put(v.getValue(), v); + } + } + + PlanIntent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanIntent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PlanIntent: " + key); + } + }; + + /** + * A filter to return only resources that match the given plan intent exactly. + */ + public PlanIntent getPlanIntent() { + return planIntent; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -388,6 +435,21 @@ public Builder id(String id) { return this; } + /** + * A filter to return only resources that match the given plan intent exactly. + */ + private PlanIntent planIntent = null; + + /** + * A filter to return only resources that match the given plan intent exactly. + * @param planIntent the value to set + * @return this builder instance + */ + public Builder planIntent(PlanIntent planIntent) { + this.planIntent = planIntent; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -427,6 +489,7 @@ public Builder copy(ListSchedulingPlansRequest o) { displayName(o.getDisplayName()); resourceId(o.getResourceId()); id(o.getId()); + planIntent(o.getPlanIntent()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -470,8 +533,9 @@ public ListSchedulingPlansRequest buildWithoutInvocationCallback() { request.displayName = displayName; request.resourceId = resourceId; request.id = id; + request.planIntent = planIntent; return request; - // new ListSchedulingPlansRequest(compartmentId, limit, page, opcRequestId, sortBy, sortOrder, lifecycleState, schedulingPolicyId, displayName, resourceId, id); + // new ListSchedulingPlansRequest(compartmentId, limit, page, opcRequestId, sortBy, sortOrder, lifecycleState, schedulingPolicyId, displayName, resourceId, id, planIntent); } } @@ -491,7 +555,8 @@ public Builder toBuilder() { .schedulingPolicyId(schedulingPolicyId) .displayName(displayName) .resourceId(resourceId) - .id(id); + .id(id) + .planIntent(planIntent); } /** @@ -518,6 +583,7 @@ public String toString() { sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",resourceId=").append(String.valueOf(this.resourceId)); sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",planIntent=").append(String.valueOf(this.planIntent)); sb.append(")"); return sb.toString(); } @@ -543,7 +609,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.resourceId, other.resourceId) - && java.util.Objects.equals(this.id, other.id); + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.planIntent, other.planIntent); } @Override @@ -569,6 +636,7 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.planIntent == null ? 43 : this.planIntent.hashCode()); return result; } } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java index 4ceabdc0bfa..c87aa8008dd 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java @@ -178,6 +178,17 @@ public SortOrder getSortOrder() { public String getDisplayName() { return displayName; } + /** + * A filter to return only resources that match the given cadence period exactly. + */ + private com.oracle.bmc.database.model.SchedulingPolicySummary.Cadence cadence; + + /** + * A filter to return only resources that match the given cadence period exactly. + */ + public com.oracle.bmc.database.model.SchedulingPolicySummary.Cadence getCadence() { + return cadence; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -313,6 +324,22 @@ public Builder displayName(String displayName) { return this; } + /** + * A filter to return only resources that match the given cadence period exactly. + */ + private com.oracle.bmc.database.model.SchedulingPolicySummary.Cadence cadence = null; + + /** + * A filter to return only resources that match the given cadence period exactly. + * @param cadence the value to set + * @return this builder instance + */ + public Builder cadence( + com.oracle.bmc.database.model.SchedulingPolicySummary.Cadence cadence) { + this.cadence = cadence; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -349,6 +376,7 @@ public Builder copy(ListSchedulingPoliciesRequest o) { sortOrder(o.getSortOrder()); lifecycleState(o.getLifecycleState()); displayName(o.getDisplayName()); + cadence(o.getCadence()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -389,8 +417,9 @@ public ListSchedulingPoliciesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.lifecycleState = lifecycleState; request.displayName = displayName; + request.cadence = cadence; return request; - // new ListSchedulingPoliciesRequest(compartmentId, limit, page, opcRequestId, sortBy, sortOrder, lifecycleState, displayName); + // new ListSchedulingPoliciesRequest(compartmentId, limit, page, opcRequestId, sortBy, sortOrder, lifecycleState, displayName, cadence); } } @@ -407,7 +436,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .lifecycleState(lifecycleState) - .displayName(displayName); + .displayName(displayName) + .cadence(cadence); } /** @@ -431,6 +461,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",cadence=").append(String.valueOf(this.cadence)); sb.append(")"); return sb.toString(); } @@ -453,7 +484,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.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.displayName, other.displayName); + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.cadence, other.cadence); } @Override @@ -472,6 +504,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.cadence == null ? 43 : this.cadence.hashCode()); return result; } } diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 949840c3b3c..c789458123f 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-databasemanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 288138acace..31dc132e567 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 @@ -340,6 +340,7 @@ CheckExternalExadataStorageConnectorResponse checkExternalExadataStorageConnecto /** * Check the status of the external database connection specified in this connector. * This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -546,6 +547,7 @@ CreateExternalExadataStorageConnectorResponse createExternalExadataStorageConnec /** * Creates an external MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -560,6 +562,7 @@ CreateExternalMySqlDatabaseResponse createExternalMySqlDatabase( /** * Creates an external MySQL connector resource. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -781,6 +784,7 @@ DeleteExternalExadataStorageConnectorResponse deleteExternalExadataStorageConnec /** * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -795,6 +799,7 @@ DeleteExternalMySqlDatabaseResponse deleteExternalMySqlDatabase( /** * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database connector. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -1040,6 +1045,7 @@ DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemStackMonit /** * Disables Database Management for an external MySQL Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -1408,6 +1414,7 @@ EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStackMonitor /** * Enables Database Management for an external MySQL Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -2125,6 +2132,7 @@ GetExternalExadataStorageServerResponse getExternalExadataStorageServer( /** * Retrieves the external MySQL database information. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -2139,6 +2147,7 @@ GetExternalMySqlDatabaseResponse getExternalMySqlDatabase( /** * Retrieves the MySQL database connector. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -2992,6 +3001,7 @@ ListExternalListenerServicesResponse listExternalListenerServices( /** * Gets the list of External MySQL Databases. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -3089,6 +3099,7 @@ ListManagedDatabaseGroupsResponse listManagedDatabaseGroups( /** * Gets the list of External MySQL Database connectors. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -4289,6 +4300,7 @@ UpdateExternalExadataStorageServerResponse updateExternalExadataStorageServer( /** * Updates the External Mysql Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -4303,6 +4315,7 @@ UpdateExternalMysqlDatabaseResponse updateExternalMysqlDatabase( /** * Updates the External Mysql Database Connector. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation 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 429677079c5..c925fb88419 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 @@ -416,6 +416,7 @@ java.util.concurrent.Future changeSpaceBudget( /** * Check the status of the external database connection specified in this connector. * This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -687,6 +688,7 @@ java.util.concurrent.Future createExternalDbSyst /** * Creates an external MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -704,6 +706,7 @@ java.util.concurrent.Future createExternalM /** * Creates an external MySQL connector resource. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -993,6 +996,7 @@ java.util.concurrent.Future deleteExternalDbSyst /** * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -1010,6 +1014,7 @@ java.util.concurrent.Future deleteExternalM /** * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database connector. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -1325,6 +1330,7 @@ java.util.concurrent.Future deletePreferredCr /** * Disables Database Management for an external MySQL Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -1789,6 +1795,7 @@ java.util.concurrent.Future dropTablespace( /** * Enables Database Management for an external MySQL Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -2706,6 +2713,7 @@ java.util.concurrent.Future getExternalListener( /** * Retrieves the external MySQL database information. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -2723,6 +2731,7 @@ java.util.concurrent.Future getExternalMySqlDa /** * Retrieves the MySQL database connector. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -3823,6 +3832,7 @@ java.util.concurrent.Future listExternalListeners /** * Gets the list of External MySQL Databases. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -3938,6 +3948,7 @@ java.util.concurrent.Future listManagedDatabases( /** * Gets the list of External MySQL Database connectors. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -5487,6 +5498,7 @@ java.util.concurrent.Future updateExternalListen /** * Updates the External Mysql Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -5504,6 +5516,7 @@ java.util.concurrent.Future updateExternalM /** * Updates the External Mysql Database Connector. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java index cefcb9f4aa0..5fc09485568 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java @@ -64,7 +64,8 @@ public interface ManagedMySqlDatabases extends AutoCloseable { /** * Changes the management type for a HeatWave MySQL instance, from BASIC to FULL and vice versa. - * It can also be used to enable or disable database management. + * It can also be used to enable or disable Database Management. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -79,6 +80,7 @@ ChangeMysqlDatabaseManagementTypeResponse changeMysqlDatabaseManagementType( /** * Retrieves information pertaining to the binary log of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -92,6 +94,7 @@ ChangeMysqlDatabaseManagementTypeResponse changeMysqlDatabaseManagementType( /** * Retrieves general information regarding the replication of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -106,6 +109,7 @@ GetGeneralReplicationInformationResponse getGeneralReplicationInformation( /** * Gets the health metrics for a fleet of HeatWave clusters in a compartment. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -119,6 +123,7 @@ GetGeneralReplicationInformationResponse getGeneralReplicationInformation( /** * Retrieves the general information for a specific MySQL Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -132,6 +137,7 @@ GetGeneralReplicationInformationResponse getGeneralReplicationInformation( /** * Gets the health metrics for a fleet of MySQL Databases in a compartment. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -144,7 +150,8 @@ GetGeneralReplicationInformationResponse getGeneralReplicationInformation( GetMySqlFleetMetricResponse getMySqlFleetMetric(GetMySqlFleetMetricRequest request); /** - * Retrieves query sample details, explain plan and potential warnings for a given digest. + * Retrieves query sample details, explain plan, and potential warnings for a given digest. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -158,6 +165,7 @@ GetGeneralReplicationInformationResponse getGeneralReplicationInformation( /** * Retrieves information about the high availability members of a specific MySQL server's replication group. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -172,6 +180,7 @@ ListHighAvailabilityMembersResponse listHighAvailabilityMembers( /** * Retrieves information about the inbound replications of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -185,6 +194,7 @@ ListHighAvailabilityMembersResponse listHighAvailabilityMembers( /** * Retrieves configuration data for a specific MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -199,6 +209,7 @@ ListManagedMySqlDatabaseConfigurationDataResponse listManagedMySqlDatabaseConfig /** * Retrieves the SQL performance data for a specific MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -213,6 +224,7 @@ ListManagedMySqlDatabaseSqlDataResponse listManagedMySqlDatabaseSqlData( /** * Gets the list of Managed MySQL Databases in a specific compartment. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -227,6 +239,7 @@ ListManagedMySqlDatabasesResponse listManagedMySqlDatabases( /** * Retrieves any potential errors for a given digest. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -240,6 +253,7 @@ ListManagedMySqlDatabasesResponse listManagedMySqlDatabases( /** * Retrieves information pertaining to the outbound replications of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -254,6 +268,7 @@ ListOutboundReplicationsResponse listOutboundReplications( /** * Gets the availability metrics for the MySQL Database specified by managedMySqlDatabaseId. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java index 0ff5e390fdf..041856640a2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java @@ -63,7 +63,8 @@ public interface ManagedMySqlDatabasesAsync extends AutoCloseable { /** * Changes the management type for a HeatWave MySQL instance, from BASIC to FULL and vice versa. - * It can also be used to enable or disable database management. + * It can also be used to enable or disable Database Management. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -83,6 +84,7 @@ public interface ManagedMySqlDatabasesAsync extends AutoCloseable { /** * Retrieves information pertaining to the binary log of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -100,6 +102,7 @@ java.util.concurrent.Future getBinaryLogInforma /** * Retrieves general information regarding the replication of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -119,6 +122,7 @@ java.util.concurrent.Future getBinaryLogInforma /** * Gets the health metrics for a fleet of HeatWave clusters in a compartment. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -136,6 +140,7 @@ java.util.concurrent.Future getHeatWaveFleetMetr /** * Retrieves the general information for a specific MySQL Database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -153,6 +158,7 @@ java.util.concurrent.Future getManagedMySqlData /** * Gets the health metrics for a fleet of MySQL Databases in a compartment. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -169,7 +175,8 @@ java.util.concurrent.Future getMySqlFleetMetric( handler); /** - * Retrieves query sample details, explain plan and potential warnings for a given digest. + * Retrieves query sample details, explain plan, and potential warnings for a given digest. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -187,6 +194,7 @@ java.util.concurrent.Future getMySqlQueryDetails( /** * Retrieves information about the high availability members of a specific MySQL server's replication group. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -204,6 +212,7 @@ java.util.concurrent.Future listHighAvailab /** * Retrieves information about the inbound replications of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -221,6 +230,7 @@ java.util.concurrent.Future listInboundReplicat /** * Retrieves configuration data for a specific MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -240,6 +250,7 @@ java.util.concurrent.Future listInboundReplicat /** * Retrieves the SQL performance data for a specific MySQL database. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -259,6 +270,7 @@ java.util.concurrent.Future listInboundReplicat /** * Gets the list of Managed MySQL Databases in a specific compartment. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -276,6 +288,7 @@ java.util.concurrent.Future listManagedMySqlD /** * Retrieves any potential errors for a given digest. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -293,6 +306,7 @@ java.util.concurrent.Future listMySqlDigestErrors /** * Retrieves information pertaining to the outbound replications of a specific MySQL server. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send @@ -310,6 +324,7 @@ java.util.concurrent.Future listOutboundReplic /** * Gets the availability metrics for the MySQL Database specified by managedMySqlDatabaseId. + * MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. * * * @param request The request object containing the details to send diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeMysqlDatabaseManagementTypeDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeMysqlDatabaseManagementTypeDetails.java index 47f8d40753a..13f96aa99f6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeMysqlDatabaseManagementTypeDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeMysqlDatabaseManagementTypeDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details to change managed MySQL database management type. + * Details required to change the management type for a HeatWave MySQL instance, from BASIC to FULL and vice versa. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -49,14 +49,14 @@ public Builder managementType(ManagedMySqlDatabase.HeatWaveManagementType manage return this; } /** - * The type of operation to perform: update managementType, enable or disable database management. + * The type of operation to perform: Update managementType, enable, or disable Database Management. * **/ @com.fasterxml.jackson.annotation.JsonProperty("operation") private Operation operation; /** - * The type of operation to perform: update managementType, enable or disable database management. + * The type of operation to perform: Update managementType, enable, or disable Database Management. * * @param operation the value to set * @return this builder @@ -118,7 +118,7 @@ public ManagedMySqlDatabase.HeatWaveManagementType getManagementType() { } /** - * The type of operation to perform: update managementType, enable or disable database management. + * The type of operation to perform: Update managementType, enable, or disable Database Management. * **/ public enum Operation { @@ -155,14 +155,14 @@ public static Operation create(String key) { } }; /** - * The type of operation to perform: update managementType, enable or disable database management. + * The type of operation to perform: Update managementType, enable, or disable Database Management. * **/ @com.fasterxml.jackson.annotation.JsonProperty("operation") private final Operation operation; /** - * The type of operation to perform: update managementType, enable or disable database management. + * The type of operation to perform: Update managementType, enable, or disable Database Management. * * @return the value **/ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudAsmServicedDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudAsmServicedDatabase.java index 205d792be79..b4492d5fd38 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudAsmServicedDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudAsmServicedDatabase.java @@ -90,13 +90,13 @@ public Builder id(String id) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @param dbaasId the value to set * @return this builder **/ @@ -300,13 +300,13 @@ public String getId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private final String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @return the value **/ public String getDbaasId() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDatabaseSummary.java index 912fa3abac6..7e51e24737a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDatabaseSummary.java @@ -87,13 +87,13 @@ public CloudDatabaseSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB system. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB system. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB system. * @param id the value to set * @return this builder **/ @@ -135,13 +135,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The {@code DB_UNIQUE_NAME} of the external database. + * The {@code DB_UNIQUE_NAME} of the cloud database. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") private String dbUniqueName; /** - * The {@code DB_UNIQUE_NAME} of the external database. + * The {@code DB_UNIQUE_NAME} of the cloud database. * @param dbUniqueName the value to set * @return this builder **/ @@ -207,13 +207,13 @@ public Builder parentContainerDatabaseId(String parentContainerDatabaseId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB home. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB home. **/ @com.fasterxml.jackson.annotation.JsonProperty("cloudDbHomeId") private String cloudDbHomeId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB home. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB home. * @param cloudDbHomeId the value to set * @return this builder **/ @@ -258,13 +258,13 @@ public Builder instanceDetails(java.util.List instanceDet return this; } /** - * The current lifecycle state of the external database resource. + * The current lifecycle state of the cloud database resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current lifecycle state of the external database resource. + * The current lifecycle state of the cloud database resource. * @param lifecycleState the value to set * @return this builder **/ @@ -274,13 +274,13 @@ public Builder lifecycleState(LifecycleState lifecycleState) { return this; } /** - * The date and time the external DB system was created. + * The date and time the cloud DB system was created. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The date and time the external DB system was created. + * The date and time the cloud DB system was created. * @param timeCreated the value to set * @return this builder **/ @@ -516,13 +516,13 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB system. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB system. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB system. * @return the value **/ public String getId() { @@ -558,13 +558,13 @@ public String getCompartmentId() { } /** - * The {@code DB_UNIQUE_NAME} of the external database. + * The {@code DB_UNIQUE_NAME} of the cloud database. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") private final String dbUniqueName; /** - * The {@code DB_UNIQUE_NAME} of the external database. + * The {@code DB_UNIQUE_NAME} of the cloud database. * @return the value **/ public String getDbUniqueName() { @@ -622,13 +622,13 @@ public String getParentContainerDatabaseId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB home. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB home. **/ @com.fasterxml.jackson.annotation.JsonProperty("cloudDbHomeId") private final String cloudDbHomeId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the external DB home. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud DB home. * @return the value **/ public String getCloudDbHomeId() { @@ -664,7 +664,7 @@ public java.util.List getInstanceDetails() { } /** - * The current lifecycle state of the external database resource. + * The current lifecycle state of the cloud database resource. **/ public enum LifecycleState { Creating("CREATING"), @@ -717,13 +717,13 @@ public static LifecycleState create(String key) { } }; /** - * The current lifecycle state of the external database resource. + * The current lifecycle state of the cloud database resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current lifecycle state of the external database resource. + * The current lifecycle state of the cloud database resource. * @return the value **/ public LifecycleState getLifecycleState() { @@ -731,13 +731,13 @@ public LifecycleState getLifecycleState() { } /** - * The date and time the external DB system was created. + * The date and time the cloud DB system was created. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The date and time the external DB system was created. + * The date and time the cloud DB system was created. * @return the value **/ public java.util.Date getTimeCreated() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNode.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNode.java index ac53e2cf073..130acc56ec8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNode.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNode.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of a cloud database node. + * The details of a cloud DB node. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -297,13 +297,13 @@ public Builder lifecycleDetails(String lifecycleDetails) { return this; } /** - * Name of the domain. + * The name of the domain. **/ @com.fasterxml.jackson.annotation.JsonProperty("domainName") private String domainName; /** - * Name of the domain. + * The name of the domain. * @param domainName the value to set * @return this builder **/ @@ -762,13 +762,13 @@ public String getLifecycleDetails() { } /** - * Name of the domain. + * The name of the domain. **/ @com.fasterxml.jackson.annotation.JsonProperty("domainName") private final String domainName; /** - * Name of the domain. + * The name of the domain. * @return the value **/ public String getDomainName() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeCollection.java index 20589077516..977dbe34732 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * A collection of cloud database nodes. + * A collection of cloud DB nodes. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeSummary.java index 9eb5fd96432..1e8e32020c2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbNodeSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The summary of a cloud database node. + * The summary of a cloud DB node. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystem.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystem.java index 5c404757dce..f0f3b7c0ce3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystem.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystem.java @@ -98,16 +98,16 @@ public Builder id(String id) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @param dbaasParentInfrastructureId the value to set * @return this builder @@ -118,13 +118,13 @@ public Builder dbaasParentInfrastructureId(String dbaasParentInfrastructureId) { return this; } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @param deploymentType the value to set * @return this builder **/ @@ -505,16 +505,16 @@ public String getId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private final String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @return the value **/ @@ -523,13 +523,13 @@ public String getDbaasParentInfrastructureId() { } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private final CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @return the value **/ public CloudDbSystemDeploymentType getDeploymentType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscovery.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscovery.java index fbc84292c4f..004563754e6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscovery.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscovery.java @@ -147,16 +147,16 @@ public Builder agentId(String agentId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @param dbaasParentInfrastructureId the value to set * @return this builder @@ -167,13 +167,13 @@ public Builder dbaasParentInfrastructureId(String dbaasParentInfrastructureId) { return this; } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @param deploymentType the value to set * @return this builder **/ @@ -521,16 +521,16 @@ public String getAgentId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private final String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @return the value **/ @@ -539,13 +539,13 @@ public String getDbaasParentInfrastructureId() { } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private final CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @return the value **/ public CloudDbSystemDeploymentType getDeploymentType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscoverySummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscoverySummary.java index 0643a39b1e5..c56450de356 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscoverySummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemDiscoverySummary.java @@ -138,16 +138,16 @@ public Builder agentId(String agentId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @param dbaasParentInfrastructureId the value to set * @return this builder @@ -158,13 +158,13 @@ public Builder dbaasParentInfrastructureId(String dbaasParentInfrastructureId) { return this; } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @param deploymentType the value to set * @return this builder **/ @@ -451,16 +451,16 @@ public String getAgentId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private final String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @return the value **/ @@ -469,13 +469,13 @@ public String getDbaasParentInfrastructureId() { } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private final CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @return the value **/ public CloudDbSystemDeploymentType getDeploymentType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemSummary.java index 9ff282c435d..1d54dbbaead 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudDbSystemSummary.java @@ -88,16 +88,16 @@ public Builder id(String id) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @param dbaasParentInfrastructureId the value to set * @return this builder @@ -108,13 +108,13 @@ public Builder dbaasParentInfrastructureId(String dbaasParentInfrastructureId) { return this; } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @param deploymentType the value to set * @return this builder **/ @@ -421,16 +421,16 @@ public String getId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private final String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems , + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @return the value **/ @@ -439,13 +439,13 @@ public String getDbaasParentInfrastructureId() { } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private final CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @return the value **/ public CloudDbSystemDeploymentType getDeploymentType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudListenerServicedDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudListenerServicedDatabase.java index 4636e0c4907..fe7a508b875 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudListenerServicedDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudListenerServicedDatabase.java @@ -71,13 +71,13 @@ public Builder id(String id) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @param dbaasId the value to set * @return this builder **/ @@ -263,13 +263,13 @@ public String getId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private final String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @return the value **/ public String getDbaasId() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudServicedDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudServicedDatabase.java index cfab0d1d5b9..517176048a4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudServicedDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloudServicedDatabase.java @@ -71,13 +71,13 @@ public Builder id(String id) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @param dbaasId the value to set * @return this builder **/ @@ -263,13 +263,13 @@ public String getId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private final String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @return the value **/ public String getDbaasId() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateCloudDbSystemDiscoveryDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateCloudDbSystemDiscoveryDetails.java index 7935e607b6b..47ff0b40ef5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateCloudDbSystemDiscoveryDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateCloudDbSystemDiscoveryDetails.java @@ -104,16 +104,16 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems, + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems, + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @param dbaasParentInfrastructureId the value to set * @return this builder @@ -124,13 +124,13 @@ public Builder dbaasParentInfrastructureId(String dbaasParentInfrastructureId) { return this; } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @param deploymentType the value to set * @return this builder **/ @@ -289,16 +289,16 @@ public String getCompartmentId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems, + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasParentInfrastructureId") private final String dbaasParentInfrastructureId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM Dbsystems , - * it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent cloud DB Infrastructure. For VM DB systems, + * it will be the DBSystem ID. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively. * * @return the value **/ @@ -307,13 +307,13 @@ public String getDbaasParentInfrastructureId() { } /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") private final CloudDbSystemDeploymentType deploymentType; /** - * The deployment type of cloud dbsystem. + * The deployment type of cloud DB system. * @return the value **/ public CloudDbSystemDeploymentType getDeploymentType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java index 34d9cc32482..03c9e93a46c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java @@ -31,7 +31,8 @@ public final class CreateDbManagementPrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateDbManagementPrivateEndpointDetails( String name, @@ -42,7 +43,8 @@ public CreateDbManagementPrivateEndpointDetails( String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.name = name; this.compartmentId = compartmentId; @@ -53,6 +55,7 @@ public CreateDbManagementPrivateEndpointDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -216,6 +219,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -231,7 +259,8 @@ public CreateDbManagementPrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -267,6 +296,9 @@ public Builder copy(CreateDbManagementPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -422,6 +454,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -445,6 +499,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -470,6 +525,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -492,6 +548,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java index 4e1f3aa400e..1c9cbe995ab 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details for creating an external database connector. + * Details for creating an external database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java index f295c86ccb9..1f354480bcb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details for creating an external database. + * Details for creating an external database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java index daf3554a342..a19c47024e9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Create Details of external database connector. + * Create Details of external database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java index 922430a48c0..28ed422581b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java @@ -24,8 +24,18 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class DatabaseCredentials extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"userName", "password", "secretId", "role"}) public DatabaseCredentials(String userName, String password, String secretId, Role role) { + super(); + this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.secretId = secretId; + this.role = role; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"userName", "password", "secretId", "role"}) + public DatabaseCredentials(String userName, char[] password, String secretId, Role role) { super(); this.userName = userName; this.password = password; @@ -58,7 +68,7 @@ public Builder userName(String userName) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the database user name. @@ -66,11 +76,18 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the secret containing the user password. **/ @@ -166,14 +183,27 @@ public String getUserName() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the database user name. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the database user name. * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 cdf45e3b091..b2ffdcfd367 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 @@ -31,18 +31,25 @@ public static class Builder { * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The user to connect to the database. **/ @@ -116,6 +123,15 @@ public Builder toBuilder() { @Deprecated public DatabasePasswordCredentialDetails(String password, String username, Role role) { + super(); + this.password = password != null ? password.toCharArray() : null; + this.username = username; + this.role = role; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public DatabasePasswordCredentialDetails(char[] password, String username, Role role) { super(); this.password = password; this.username = username; @@ -126,13 +142,25 @@ public DatabasePasswordCredentialDetails(String password, String username, Role * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The database user's password encoded using BASE64 scheme. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The database user's password encoded using BASE64 scheme. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java index 21499e406ff..7caca2ef2ab 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java @@ -37,7 +37,8 @@ public final class DbManagementPrivateEndpoint "nsgIds", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public DbManagementPrivateEndpoint( String id, @@ -54,7 +55,8 @@ public DbManagementPrivateEndpoint( java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.name = name; @@ -71,6 +73,7 @@ public DbManagementPrivateEndpoint( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -342,6 +345,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -363,7 +391,8 @@ public DbManagementPrivateEndpoint build() { this.nsgIds, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -417,6 +446,9 @@ public Builder copy(DbManagementPrivateEndpoint model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -668,6 +700,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -697,6 +751,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -727,6 +782,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -757,6 +813,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java index 37cedd49488..d6c7c360c55 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java @@ -33,7 +33,8 @@ public final class DbManagementPrivateEndpointSummary "lifecycleState", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public DbManagementPrivateEndpointSummary( String id, @@ -46,7 +47,8 @@ public DbManagementPrivateEndpointSummary( LifecycleStates lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.name = name; @@ -59,6 +61,7 @@ public DbManagementPrivateEndpointSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -262,6 +265,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -279,7 +307,8 @@ public DbManagementPrivateEndpointSummary build() { this.lifecycleState, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -321,6 +350,9 @@ public Builder copy(DbManagementPrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -512,6 +544,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -537,6 +591,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -562,6 +617,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -584,6 +640,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudAsm.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudAsm.java index 831e1cd830b..9eed09fca1c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudAsm.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudAsm.java @@ -148,13 +148,13 @@ public Builder version(String version) { return this; } /** - * The list of asm instances for the cloud Asm. + * The list of ASM instances for the cloud Asm. **/ @com.fasterxml.jackson.annotation.JsonProperty("asmInstances") private java.util.List asmInstances; /** - * The list of asm instances for the cloud Asm. + * The list of ASM instances for the cloud Asm. * @param asmInstances the value to set * @return this builder **/ @@ -328,13 +328,13 @@ public String getVersion() { } /** - * The list of asm instances for the cloud Asm. + * The list of ASM instances for the cloud Asm. **/ @com.fasterxml.jackson.annotation.JsonProperty("asmInstances") private final java.util.List asmInstances; /** - * The list of asm instances for the cloud Asm. + * The list of ASM instances for the cloud Asm. * @return the value **/ public java.util.List getAsmInstances() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudDbSystemComponent.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudDbSystemComponent.java index 981180897c7..e845767a23a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudDbSystemComponent.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DiscoveredCloudDbSystemComponent.java @@ -154,13 +154,13 @@ public String getResourceId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbaasId") private final String dbaasId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing Dbaas OCI resource matching the discovered DB system component. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the existing DBaas OCI resource matching the discovered DB system component. * @return the value **/ public String getDbaasId() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java index 31c542ba902..e8783766b19 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Detail to enable or disable database management. + * Detail to enable or disable database management. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java index d38df79632e..3d1841db9f3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * External database. + * External database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java index a8da14d087c..25a41554542 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of external MySQL Databases. + * The collection of external MySQL Databases. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java index abcf1e49d0c..aed4ed46383 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details of external database connector. + * Details of external database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java index 5e18f407d9c..a5f0df68653 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * External database summary record. + * External database summary record. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterStatus.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterStatus.java index 9766547fd8e..c70641d3680 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterStatus.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The status of the HeatWave cluster. Indicates whether the status of the HeatWave cluster is UP, DOWN, or UNKNOWN at the current time. + * The status of the HeatWave cluster. Indicates whether the status of the HeatWave cluster is UP, DOWN, or UNKNOWN at the current time. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum HeatWaveClusterStatus { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java index aa30bdbadea..1abf2c4b4c5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The list of aggregated metrics for a HeatWave cluster in the fleet. + * The list of aggregated metrics for a HeatWave cluster in the fleet. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetByCategory.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetByCategory.java index bcdd48542b2..c81f977df6c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetByCategory.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetByCategory.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The number of HeatWave clusters in the fleet, grouped by shape and Lakehouse-enabled status. + * The number of HeatWave clusters in the fleet, grouped by shape and Lakehouse-enabled status. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricDefinition.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricDefinition.java index c54d29bd345..0470ed44c6b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricDefinition.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricDefinition.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * An aggregated metric for a HeatWave cluster. + * An aggregated metric for a HeatWave cluster. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricSummaryDefinition.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricSummaryDefinition.java index 19ae4e16ad5..440fc844b7f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricSummaryDefinition.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetricSummaryDefinition.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * A summary of the fleet metrics, which provides the metric aggregated value of the HeatWave clusters in the fleet. + * A summary of the fleet metrics, which provides the metric aggregated value of the HeatWave clusters in the fleet. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java index b1f13530d9c..aa029d0542c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of the HeatWave cluster fleet health metrics. + * The details of the HeatWave cluster fleet health metrics. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java index 81699893d1e..e200ccbdb31 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The inventory count of HeatWave clusters in the fleet and a summary of the metrics that provide the aggregated usage of CPU, storage, and so on of all the clusters. + * The inventory count of HeatWave clusters in the fleet and a summary of the metrics that provide the aggregated usage of CPU, storage, and so on of all the clusters. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java index e1597f2f1d6..a8b08d7ccf1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The information about an individual HeatWave node. + * The information about an individual HeatWave node. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNodeStatus.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNodeStatus.java index f16c4d2b92b..0cfd663b8db 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNodeStatus.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNodeStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The status of the HeatWave node. Indicates whether the status of the HeatWave node is UP, DOWN, or UNKNOWN at the current time. + * The status of the HeatWave node. Indicates whether the status of the HeatWave node is UP, DOWN, or UNKNOWN at the current time. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum HeatWaveNodeStatus { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java index 65c6bdbbb90..7a68d110f55 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java @@ -48,19 +48,25 @@ public Builder role(Role role) { * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -101,6 +107,13 @@ public Builder toBuilder() { @Deprecated public ManagedDatabasePasswordCredential(String username, Role role, String password) { + super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ManagedDatabasePasswordCredential(String username, Role role, char[] password) { super(username, role); this.password = password; } @@ -109,13 +122,25 @@ public ManagedDatabasePasswordCredential(String username, Role role, String pass * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The database user's password encoded using BASE64 scheme. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The database user's password encoded using BASE64 scheme. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java index 25b6bff04c6..402b424e058 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of the Managed MySQL Database. + * The details of the Managed MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -183,13 +183,13 @@ public Builder name(String name) { return this; } /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveManagementType") private HeatWaveManagementType heatWaveManagementType; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. * @param heatWaveManagementType the value to set * @return this builder **/ @@ -585,7 +585,7 @@ public String getName() { } /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ public enum HeatWaveManagementType { Basic("BASIC"), @@ -633,13 +633,13 @@ public static HeatWaveManagementType create(String key) { } }; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveManagementType") private final HeatWaveManagementType heatWaveManagementType; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. * @return the value **/ public HeatWaveManagementType getHeatWaveManagementType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseBinaryLogInformation.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseBinaryLogInformation.java index 53b4eb41865..51d50b1853f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseBinaryLogInformation.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseBinaryLogInformation.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Information pertaining to the binary logs of a MySQL server. + * Information pertaining to the binary logs of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseCollection.java index 4521ffa2b46..dd3204d2b99 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * A collection of Managed MySQL Database objects. + * A collection of Managed MySQL Database objects. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseGeneralReplicationInformation.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseGeneralReplicationInformation.java index 9e10306fd45..512b8a4664d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseGeneralReplicationInformation.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseGeneralReplicationInformation.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * General information about the replication of a MySQL server. + * General information about the replication of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberCollection.java index 9e492940f92..40e4ee5b933 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Information pertaining to high availability of a MySQL server. + * Information pertaining to high availability of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberSummary.java index cda77f8afe2..43c81f63ce9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseHighAvailabilityMemberSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Information about a member of a MySQL server group replication for high availability. + * Information about a member of a MySQL server group replication for high availability. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationCollection.java index 8f38dadedef..06585c82e56 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of inbound replication records for a specific MySQL server. + * The collection of inbound replication records for a specific MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationSummary.java index 847fc5961b8..b41471ad95b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseInboundReplicationSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Inbound replication information of a MySQL replica. + * Inbound replication information of a MySQL replica. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationCollection.java index b050272bbfb..0a49f7ae343 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of outbound replication records of a MySQL server. + * The collection of outbound replication records of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationSummary.java index 50d8877c83f..323276024bd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseOutboundReplicationSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * An outbound replication record of a MySQL server. + * An outbound replication record of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java index 8e7b896c477..8183c4e8ff2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of the Managed MySQL Database. + * The details of the Managed MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -209,13 +209,13 @@ public Builder lifecycleState(LifecycleStates lifecycleState) { return this; } /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveManagementType") private ManagedMySqlDatabase.HeatWaveManagementType heatWaveManagementType; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. * @param heatWaveManagementType the value to set * @return this builder **/ @@ -426,13 +426,13 @@ public LifecycleStates getLifecycleState() { } /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveManagementType") private final ManagedMySqlDatabase.HeatWaveManagementType heatWaveManagementType; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. * @return the value **/ public ManagedMySqlDatabase.HeatWaveManagementType getHeatWaveManagementType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java index f02e94fbcf8..cdbd21f118c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Indicates whether Database Management is enabled or disabled. + * Indicates whether Database Management is enabled or disabled. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum ManagementState { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MdsType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MdsType.java index ae7f1914717..a8b7d11e249 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MdsType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MdsType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The type of MySQL Database System. + * The type of MySQL Database System. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MdsType { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyError.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyError.java index 8f4a76d508c..e996d0ae48f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyError.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyError.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Error from the apply operation of a MySQL server replication channel. + * Error from the apply operation of a MySQL server replication channel. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyErrorWorker.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyErrorWorker.java index 83604db0e14..7fe9caf406a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyErrorWorker.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlApplyErrorWorker.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * If the replica is multi-threaded, error from worker threads. Otherwise, error from the applier thread. + * If the replica is multi-threaded, error from worker threads. Otherwise, error from the applier thread. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelApplyError.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelApplyError.java index 66d322e6e4e..39aaca32960 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelApplyError.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelApplyError.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * MySQL server replication channel name and error from its apply operation. + * MySQL server replication channel name and error from its apply operation. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelFetchError.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelFetchError.java index 1da5853b249..7d7e095c434 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelFetchError.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlChannelFetchError.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * MySQL server replication channel name and error from its fetch operation. + * MySQL server replication channel name and error from its fetch operation. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataCollection.java index 7461ae08606..8fed0bcdfec 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of configuration records for a specific MySQL Database. + * The collection of configuration records for a specific MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataSummary.java index 7e211f669d2..2d04b8ea3ca 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConfigurationDataSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The configuration variables for a MySQL Database. + * The configuration variables for a MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java index 97ea222ea18..57c58476922 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of external MySQL Database connectors. + * The collection of external MySQL Database connectors. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java index 7c499c38d9a..05bad2062fc 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The connector type of MySQL Database. + * The connector type of MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlConnectorType { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java index d4baa348a2f..269608ec4fd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The credential type for MySQL Database. + * The credential type for MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlCredType { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataCollection.java index daba1182c15..f91a55f82c5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of SQL performance data records for a specific Managed MySQL Database. + * The collection of SQL performance data records for a specific Managed MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java index b83780a1bd2..efd4b58d78e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The SQL performance data record for a specific SQL query. + * The SQL performance data record for a specific SQL query. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java index bab9adf68fa..1aa04ea5801 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details of external database connector. + * Details of external database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseStatus.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseStatus.java index 2a5a8392279..eb73251db35 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseStatus.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The status of the MySQL Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time. + * The status of the MySQL Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlDatabaseStatus { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java index b0faf27a4a4..ac4c3dfcc5b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The list of aggregated metrics for Managed MySQL Databases in the fleet. + * The list of aggregated metrics for Managed MySQL Databases in the fleet. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -202,13 +202,13 @@ public Builder databaseStatus(MySqlDatabaseStatus databaseStatus) { return this; } /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveManagementType") private ManagedMySqlDatabase.HeatWaveManagementType heatWaveManagementType; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. * @param heatWaveManagementType the value to set * @return this builder **/ @@ -481,13 +481,13 @@ public MySqlDatabaseStatus getDatabaseStatus() { } /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. **/ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveManagementType") private final ManagedMySqlDatabase.HeatWaveManagementType heatWaveManagementType; /** - * The customer's selected type for HeatWave management. + * The selected management type for a HeatWave MySQL DB system. * @return the value **/ public ManagedMySqlDatabase.HeatWaveManagementType getHeatWaveManagementType() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java index 2b9cb6a6a3c..ea9ffd53cd4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The type of MySQL Database installation. + * The type of MySQL Database installation. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlDeploymentType { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorSummary.java index 91ddd8ae0d4..2ca73414a3d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Consists of the error and the number of times it is encountered. + * The MySQL digest error and the number of times it is encountered. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorsCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorsCollection.java index dcbf11d9d2d..61bd0afe1c0 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorsCollection.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDigestErrorsCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The collection of errors for a given digest. + * The collection of errors for a given digest. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFetchError.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFetchError.java index 3e3ec131fb6..99680885e2d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFetchError.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFetchError.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Error from the fetch operation of a MySQL server replication channel. + * Error from the fetch operation of a MySQL server replication channel. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetByCategory.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetByCategory.java index 479b2834e2b..d956f891fa8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetByCategory.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetByCategory.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The number of MySQL Databases in the fleet, grouped by database type and sub type. + * The number of MySQL Databases in the fleet, grouped by database type and sub type. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java index 003d53dfd9b..6ce1ef17f1c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The list of aggregated metrics for the Managed MySQL Databases in the fleet. + * The list of aggregated metrics for the Managed MySQL Databases in the fleet. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricSummaryDefinition.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricSummaryDefinition.java index f13e83d4f6b..86697f89953 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricSummaryDefinition.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricSummaryDefinition.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * A summary of the fleet metrics, which provides the metric aggregated value of the MySQL Databases in the fleet. + * A summary of the fleet metrics, which provides the metric aggregated value of the MySQL Databases in the fleet. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetrics.java index 04efc94e601..2c709849bc1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetrics.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of the MySQL Database fleet health metrics. + * The details of the MySQL Database fleet health metrics. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetSummary.java index 16f55fe4ed5..a19869ab1a8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the MySQL Databases in the fleet. + * A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the MySQL Databases in the fleet. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlHighAvailabilityStatusSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlHighAvailabilityStatusSummary.java index 4d6526e888a..37f8217bfb8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlHighAvailabilityStatusSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlHighAvailabilityStatusSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * High availability status summary of a MySQL server. + * High availability status summary of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlJsonExplainVersion.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlJsonExplainVersion.java index fa00442e7fc..b684a9a1cac 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlJsonExplainVersion.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlJsonExplainVersion.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The version of the Json format of MySQL Explain. + * The version of the JSON format of the MySQL explain plan. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlJsonExplainVersion { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlMessageSeverity.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlMessageSeverity.java index 33b27ca1045..18a0d798fcf 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlMessageSeverity.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlMessageSeverity.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The level of severity of the MySQL message. Indicates whether it is an ERROR, a WARNING, or a NOTE. + * The level of severity of the MySQL message. Indicates whether it is an ERROR, a WARNING, or a NOTE. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlMessageSeverity { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java index 0f449adbaca..c3c027a9344 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The network protocol for MySQL Database. + * The network protocol for MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlNetworkProtocolType { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryDetails.java index beed6750fd5..190365f3935 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of a given MySQL query, it consists of the query sample details, the explain plan and potential warnings. + * The details of a given MySQL query, which consists of the query sample details, the explain plan, and potential warnings. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -53,13 +53,13 @@ public Builder queryExplainPlan(MySqlQueryExplainPlan queryExplainPlan) { return this; } /** - * The errors, warnings and notes that could be raised by the execution of the query. + * The errors, warnings, and notes that could be raised by the execution of the query. **/ @com.fasterxml.jackson.annotation.JsonProperty("queryMessages") private java.util.List queryMessages; /** - * The errors, warnings and notes that could be raised by the execution of the query. + * The errors, warnings, and notes that could be raised by the execution of the query. * @param queryMessages the value to set * @return this builder **/ @@ -123,13 +123,13 @@ public MySqlQueryExplainPlan getQueryExplainPlan() { } /** - * The errors, warnings and notes that could be raised by the execution of the query. + * The errors, warnings, and notes that could be raised by the execution of the query. **/ @com.fasterxml.jackson.annotation.JsonProperty("queryMessages") private final java.util.List queryMessages; /** - * The errors, warnings and notes that could be raised by the execution of the query. + * The errors, warnings, and notes that could be raised by the execution of the query. * @return the value **/ public java.util.List getQueryMessages() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryExplainPlan.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryExplainPlan.java index dac5799543d..6dda372f8ab 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryExplainPlan.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryExplainPlan.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The explain plan for a given MySQL query. + * The explain plan for a given MySQL query. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -32,13 +32,13 @@ public MySqlQueryExplainPlan(String jsonExplain, MySqlJsonExplainVersion jsonExp @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The json format of the explain plan. + * The JSON format of the explain plan. **/ @com.fasterxml.jackson.annotation.JsonProperty("jsonExplain") private String jsonExplain; /** - * The json format of the explain plan. + * The JSON format of the explain plan. * @param jsonExplain the value to set * @return this builder **/ @@ -48,13 +48,13 @@ public Builder jsonExplain(String jsonExplain) { return this; } /** - * The version of the Json format of MySQL Explain. + * The version of the JSON format of the MySQL explain plan. **/ @com.fasterxml.jackson.annotation.JsonProperty("jsonExplainVersion") private MySqlJsonExplainVersion jsonExplainVersion; /** - * The version of the Json format of MySQL Explain. + * The version of the JSON format of the MySQL explain plan. * @param jsonExplainVersion the value to set * @return this builder **/ @@ -100,13 +100,13 @@ public Builder toBuilder() { } /** - * The json format of the explain plan. + * The JSON format of the explain plan. **/ @com.fasterxml.jackson.annotation.JsonProperty("jsonExplain") private final String jsonExplain; /** - * The json format of the explain plan. + * The JSON format of the explain plan. * @return the value **/ public String getJsonExplain() { @@ -114,13 +114,13 @@ public String getJsonExplain() { } /** - * The version of the Json format of MySQL Explain. + * The version of the JSON format of the MySQL explain plan. **/ @com.fasterxml.jackson.annotation.JsonProperty("jsonExplainVersion") private final MySqlJsonExplainVersion jsonExplainVersion; /** - * The version of the Json format of MySQL Explain. + * The version of the JSON format of the MySQL explain plan. * @return the value **/ public MySqlJsonExplainVersion getJsonExplainVersion() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryMessage.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryMessage.java index 7b06aa656e2..38af5dea664 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryMessage.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQueryMessage.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The MySQL error, warning or note raised when a query is run, if any. + * The MySQL error, warning, or note raised when a query is run, if any. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -48,13 +48,13 @@ public Builder level(MySqlMessageSeverity level) { return this; } /** - * The MySQL code of the raised error, warning or note. + * The MySQL code of the raised error, warning, or note. **/ @com.fasterxml.jackson.annotation.JsonProperty("code") private Integer code; /** - * The MySQL code of the raised error, warning or note. + * The MySQL code of the raised error, warning, or note. * @param code the value to set * @return this builder **/ @@ -64,13 +64,13 @@ public Builder code(Integer code) { return this; } /** - * The MySQL message text of the raised error, warning or note. + * The MySQL message text of the raised error, warning, or note. **/ @com.fasterxml.jackson.annotation.JsonProperty("messageText") private String messageText; /** - * The MySQL message text of the raised error, warning or note. + * The MySQL message text of the raised error, warning, or note. * @param messageText the value to set * @return this builder **/ @@ -133,13 +133,13 @@ public MySqlMessageSeverity getLevel() { } /** - * The MySQL code of the raised error, warning or note. + * The MySQL code of the raised error, warning, or note. **/ @com.fasterxml.jackson.annotation.JsonProperty("code") private final Integer code; /** - * The MySQL code of the raised error, warning or note. + * The MySQL code of the raised error, warning, or note. * @return the value **/ public Integer getCode() { @@ -147,13 +147,13 @@ public Integer getCode() { } /** - * The MySQL message text of the raised error, warning or note. + * The MySQL message text of the raised error, warning, or note. **/ @com.fasterxml.jackson.annotation.JsonProperty("messageText") private final String messageText; /** - * The MySQL message text of the raised error, warning or note. + * The MySQL message text of the raised error, warning, or note. * @return the value **/ public String getMessageText() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQuerySampleDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQuerySampleDetails.java index c0d2dcb12f4..c292e2f6b7a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQuerySampleDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlQuerySampleDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details of a query sample including the query text, execution time and other details. + * The details of a query sample including the query text, execution time, and other details. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -100,13 +100,13 @@ public Builder executionTime(Long executionTime) { return this; } /** - * The thread id of the connection. + * The thread ID of the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("threadId") private Integer threadId; /** - * The thread id of the connection. + * The thread ID of the connection. * @param threadId the value to set * @return this builder **/ @@ -264,13 +264,13 @@ public Long getExecutionTime() { } /** - * The thread id of the connection. + * The thread ID of the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("threadId") private final Integer threadId; /** - * The thread id of the connection. + * The thread ID of the connection. * @return the value **/ public Integer getThreadId() { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReadOnly.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReadOnly.java index 6e160437d0f..c26fd1e3ed9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReadOnly.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReadOnly.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only. + * If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlReadOnly { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReplicationApplierFilter.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReplicationApplierFilter.java index 5084f311633..85209d47c83 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReplicationApplierFilter.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlReplicationApplierFilter.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Filter configured for a replication channel. + * Filter configured for a replication channel. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java index 98c91ec884e..051f52768e0 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * The type of MySQL Database. + * The type of MySQL Database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum MySqlType { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java index 3ec9553f55a..c9e2f5676c8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java @@ -18,6 +18,23 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RestCredential.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class RestCredential extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public RestCredential( + String username, + String password, + SslTrustStoreType sslTrustStoreType, + String sslTrustStoreLocation, + String sslTrustStorePassword) { + super(); + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.sslTrustStoreType = sslTrustStoreType; + this.sslTrustStoreLocation = sslTrustStoreLocation; + this.sslTrustStorePassword = + sslTrustStorePassword != null ? sslTrustStorePassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "username", @@ -28,10 +45,10 @@ public final class RestCredential extends com.oracle.bmc.http.internal.Explicitl }) public RestCredential( String username, - String password, + char[] password, SslTrustStoreType sslTrustStoreType, String sslTrustStoreLocation, - String sslTrustStorePassword) { + char[] sslTrustStorePassword) { super(); this.username = username; this.password = password; @@ -62,18 +79,25 @@ public Builder username(String username) { * The password of the user. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password of the user. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The SSL truststore type. **/ @@ -110,19 +134,26 @@ public Builder sslTrustStoreLocation(String sslTrustStoreLocation) { * The password of the SSL truststore location in the agent. **/ @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStorePassword") - private String sslTrustStorePassword; + private char[] sslTrustStorePassword; /** * The password of the SSL truststore location in the agent. * @param sslTrustStorePassword the value to set * @return this builder **/ - public Builder sslTrustStorePassword(String sslTrustStorePassword) { + public Builder sslTrustStorePassword(char[] sslTrustStorePassword) { this.sslTrustStorePassword = sslTrustStorePassword; this.__explicitlySet__.add("sslTrustStorePassword"); return this; } + public Builder sslTrustStorePassword(String sslTrustStorePassword) { + this.sslTrustStorePassword = + sslTrustStorePassword != null ? sslTrustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("sslTrustStorePassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -190,16 +221,27 @@ public String getUsername() { * The password of the user. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password of the user. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password of the user. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } - /** * The SSL truststore type. **/ @@ -267,13 +309,25 @@ public String getSslTrustStoreLocation() { * The password of the SSL truststore location in the agent. **/ @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStorePassword") - private final String sslTrustStorePassword; + private final char[] sslTrustStorePassword; + + /** + * The password of the SSL truststore location in the agent. + * return the value + * @Deprecated - Use getSslTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslTrustStorePassword() { + return sslTrustStorePassword != null ? new String(sslTrustStorePassword) : null; + } /** * The password of the SSL truststore location in the agent. * @return the value **/ - public String getSslTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStorePassword") + public char[] getSslTrustStorePassword__AsCharArray() { return sslTrustStorePassword; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java index 49bc5167688..e10b58acc21 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java @@ -49,19 +49,25 @@ public Builder role(Role role) { * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -103,6 +109,13 @@ public Builder toBuilder() { @Deprecated public SqlTuningSetAdminPasswordCredentialDetails(String username, Role role, String password) { + super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public SqlTuningSetAdminPasswordCredentialDetails(String username, Role role, char[] password) { super(username, role); this.password = password; } @@ -111,13 +124,25 @@ public SqlTuningSetAdminPasswordCredentialDetails(String username, Role role, St * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The database user's password encoded using BASE64 scheme. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The database user's password encoded using BASE64 scheme. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java index f430cb4565e..e217041c552 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java @@ -48,19 +48,25 @@ public Builder role(Role role) { * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -102,6 +108,13 @@ public Builder toBuilder() { @Deprecated public SqlTuningTaskPasswordCredentialDetails(String username, Role role, String password) { + super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public SqlTuningTaskPasswordCredentialDetails(String username, Role role, char[] password) { super(username, role); this.password = password; } @@ -110,13 +123,25 @@ public SqlTuningTaskPasswordCredentialDetails(String username, Role role, String * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The database user's password encoded using BASE64 scheme. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The database user's password encoded using BASE64 scheme. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java index ad509a3981a..b9167d7f015 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java @@ -49,19 +49,25 @@ public Builder role(Role role) { * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -103,6 +109,13 @@ public Builder toBuilder() { @Deprecated public TablespaceAdminPasswordCredentialDetails(String username, Role role, String password) { + super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public TablespaceAdminPasswordCredentialDetails(String username, Role role, char[] password) { super(username, role); this.password = password; } @@ -111,13 +124,25 @@ public TablespaceAdminPasswordCredentialDetails(String username, Role role, Stri * The database user's password encoded using BASE64 scheme. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The database user's password encoded using BASE64 scheme. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The database user's password encoded using BASE64 scheme. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateDbManagementPrivateEndpointDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateDbManagementPrivateEndpointDetails.java index 26c7f05d0f8..0ed29e1a338 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateDbManagementPrivateEndpointDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateDbManagementPrivateEndpointDetails.java @@ -27,20 +27,23 @@ public final class UpdateDbManagementPrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateDbManagementPrivateEndpointDetails( String name, String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.name = name; this.description = description; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -140,6 +143,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -151,7 +179,8 @@ public UpdateDbManagementPrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -175,6 +204,9 @@ public Builder copy(UpdateDbManagementPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -274,6 +306,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -293,6 +347,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -313,6 +368,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -325,6 +381,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java index 77bfdb1453c..6d44e847318 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details required for updating an external MySQL database connector. + * Details required for updating an external MySQL database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java index 4a8f2c94ba0..c5490479682 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Details for updating an external MySQL database. + * Details for updating an external MySQL database. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java index 45fa9f84318..0492d56fa95 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemanagement.model; /** - * Update Details of external database connector. + * Update Details of external database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java index 54443766232..858ecf33aa5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java @@ -19,6 +19,8 @@ public enum WorkRequestOperationType { DeleteDbSystem("DELETE_DB_SYSTEM"), UpdateExternalDbSystemConnector("UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR"), ChangeExternalDbSystemCompartment("CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT"), + UpdateCloudDbSystemConnector("UPDATE_CLOUD_DB_SYSTEM_CONNECTOR"), + ChangeCloudDbSystemCompartment("CHANGE_CLOUD_DB_SYSTEM_COMPARTMENT"), DisableExadataInfrasturcture("DISABLE_EXADATA_INFRASTURCTURE"), EnableExadataInfrastructure("ENABLE_EXADATA_INFRASTRUCTURE"), DeleteExadataInfrastructure("DELETE_EXADATA_INFRASTRUCTURE"), diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemConnectorRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemConnectorRequest.java index 29a630d69ec..d8c4ec6c4a9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemConnectorRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemConnectorRequest.java @@ -14,13 +14,13 @@ public class CreateCloudDbSystemConnectorRequest com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemConnectorDetails> { /** - * The details required to create an cloud connector. + * The details required to create a cloud connector. */ private com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemConnectorDetails createCloudDbSystemConnectorDetails; /** - * The details required to create an cloud connector. + * The details required to create a cloud connector. */ public com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemConnectorDetails getCreateCloudDbSystemConnectorDetails() { @@ -78,13 +78,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The details required to create an cloud connector. + * The details required to create a cloud connector. */ private com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemConnectorDetails createCloudDbSystemConnectorDetails = null; /** - * The details required to create an cloud connector. + * The details required to create a cloud connector. * @param createCloudDbSystemConnectorDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemDiscoveryRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemDiscoveryRequest.java index fc324ae20ac..99a568e1b1b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemDiscoveryRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemDiscoveryRequest.java @@ -14,13 +14,13 @@ public class CreateCloudDbSystemDiscoveryRequest com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDiscoveryDetails> { /** - * The details required to create an cloud DB system discovery. + * The details required to create a cloud DB system discovery. */ private com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDiscoveryDetails createCloudDbSystemDiscoveryDetails; /** - * The details required to create an cloud DB system discovery. + * The details required to create a cloud DB system discovery. */ public com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDiscoveryDetails getCreateCloudDbSystemDiscoveryDetails() { @@ -78,13 +78,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The details required to create an cloud DB system discovery. + * The details required to create a cloud DB system discovery. */ private com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDiscoveryDetails createCloudDbSystemDiscoveryDetails = null; /** - * The details required to create an cloud DB system discovery. + * The details required to create a cloud DB system discovery. * @param createCloudDbSystemDiscoveryDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemRequest.java index 3f87ee3e4e2..a48a2ae3f2c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateCloudDbSystemRequest.java @@ -14,13 +14,13 @@ public class CreateCloudDbSystemRequest com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDetails> { /** - * The details required to create an cloud DB system. + * The details required to create a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDetails createCloudDbSystemDetails; /** - * The details required to create an cloud DB system. + * The details required to create a cloud DB system. */ public com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDetails getCreateCloudDbSystemDetails() { @@ -78,13 +78,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The details required to create an cloud DB system. + * The details required to create a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.CreateCloudDbSystemDetails createCloudDbSystemDetails = null; /** - * The details required to create an cloud DB system. + * The details required to create a cloud DB system. * @param createCloudDbSystemDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeletePreferredCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeletePreferredCredentialRequest.java index 35a245eae24..a3fdfe9eae4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeletePreferredCredentialRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeletePreferredCredentialRequest.java @@ -24,12 +24,20 @@ public String getManagedDatabaseId() { return managedDatabaseId; } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ public String getCredentialName() { return credentialName; @@ -69,12 +77,20 @@ public Builder managedDatabaseId(String managedDatabaseId) { } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName = null; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * * @param credentialName the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemDatabaseManagementRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemDatabaseManagementRequest.java index 1e322d29621..75ff9b995ad 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemDatabaseManagementRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemDatabaseManagementRequest.java @@ -26,13 +26,13 @@ public String getCloudDbSystemId() { return cloudDbSystemId; } /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.EnableCloudDbSystemDatabaseManagementDetails enableCloudDbSystemDatabaseManagementDetails; /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. */ public com.oracle.bmc.databasemanagement.model.EnableCloudDbSystemDatabaseManagementDetails getEnableCloudDbSystemDatabaseManagementDetails() { @@ -128,13 +128,13 @@ public Builder cloudDbSystemId(String cloudDbSystemId) { } /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.EnableCloudDbSystemDatabaseManagementDetails enableCloudDbSystemDatabaseManagementDetails = null; /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. * @param enableCloudDbSystemDatabaseManagementDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemStackMonitoringRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemStackMonitoringRequest.java index ef77497e064..a09de11f602 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemStackMonitoringRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableCloudDbSystemStackMonitoringRequest.java @@ -25,13 +25,13 @@ public String getCloudDbSystemId() { return cloudDbSystemId; } /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.EnableCloudDbSystemStackMonitoringDetails enableCloudDbSystemStackMonitoringDetails; /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. */ public com.oracle.bmc.databasemanagement.model.EnableCloudDbSystemStackMonitoringDetails getEnableCloudDbSystemStackMonitoringDetails() { @@ -127,13 +127,13 @@ public Builder cloudDbSystemId(String cloudDbSystemId) { } /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.EnableCloudDbSystemStackMonitoringDetails enableCloudDbSystemStackMonitoringDetails = null; /** - * The details required to enable Stack Monitoring for an cloud DB system. + * The details required to enable Stack Monitoring for a cloud DB system. * @param enableCloudDbSystemStackMonitoringDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPreferredCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPreferredCredentialRequest.java index deacfea70e1..b693af6be5b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPreferredCredentialRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPreferredCredentialRequest.java @@ -24,12 +24,20 @@ public String getManagedDatabaseId() { return managedDatabaseId; } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ public String getCredentialName() { return credentialName; @@ -69,12 +77,20 @@ public Builder managedDatabaseId(String managedDatabaseId) { } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName = null; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * * @param credentialName the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/PatchCloudDbSystemDiscoveryRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/PatchCloudDbSystemDiscoveryRequest.java index d050c2b3801..32f19adfb44 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/PatchCloudDbSystemDiscoveryRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/PatchCloudDbSystemDiscoveryRequest.java @@ -25,13 +25,13 @@ public String getCloudDbSystemDiscoveryId() { return cloudDbSystemDiscoveryId; } /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. */ private com.oracle.bmc.databasemanagement.model.PatchCloudDbSystemDiscoveryDetails patchCloudDbSystemDiscoveryDetails; /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. */ public com.oracle.bmc.databasemanagement.model.PatchCloudDbSystemDiscoveryDetails getPatchCloudDbSystemDiscoveryDetails() { @@ -104,13 +104,13 @@ public Builder cloudDbSystemDiscoveryId(String cloudDbSystemDiscoveryId) { } /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. */ private com.oracle.bmc.databasemanagement.model.PatchCloudDbSystemDiscoveryDetails patchCloudDbSystemDiscoveryDetails = null; /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. * @param patchCloudDbSystemDiscoveryDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestPreferredCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestPreferredCredentialRequest.java index 36943e176da..4db171c921f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestPreferredCredentialRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestPreferredCredentialRequest.java @@ -25,12 +25,20 @@ public String getManagedDatabaseId() { return managedDatabaseId; } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ public String getCredentialName() { return credentialName; @@ -94,12 +102,20 @@ public Builder managedDatabaseId(String managedDatabaseId) { } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName = null; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * * @param credentialName the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmInstanceRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmInstanceRequest.java index 51c95b36740..450069dbbeb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmInstanceRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmInstanceRequest.java @@ -25,13 +25,13 @@ public String getCloudAsmInstanceId() { return cloudAsmInstanceId; } /** - * The details required to update an cloud ASM instance. + * The details required to update a cloud ASM instance. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudAsmInstanceDetails updateCloudAsmInstanceDetails; /** - * The details required to update an cloud ASM instance. + * The details required to update a cloud ASM instance. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudAsmInstanceDetails getUpdateCloudAsmInstanceDetails() { @@ -104,13 +104,13 @@ public Builder cloudAsmInstanceId(String cloudAsmInstanceId) { } /** - * The details required to update an cloud ASM instance. + * The details required to update a cloud ASM instance. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudAsmInstanceDetails updateCloudAsmInstanceDetails = null; /** - * The details required to update an cloud ASM instance. + * The details required to update a cloud ASM instance. * @param updateCloudAsmInstanceDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmRequest.java index cadc88c093d..314c0f4b6b2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudAsmRequest.java @@ -25,12 +25,12 @@ public String getCloudAsmId() { return cloudAsmId; } /** - * The details required to update an cloud ASM. + * The details required to update a cloud ASM. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudAsmDetails updateCloudAsmDetails; /** - * The details required to update an cloud ASM. + * The details required to update a cloud ASM. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudAsmDetails getUpdateCloudAsmDetails() { @@ -103,13 +103,13 @@ public Builder cloudAsmId(String cloudAsmId) { } /** - * The details required to update an cloud ASM. + * The details required to update a cloud ASM. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudAsmDetails updateCloudAsmDetails = null; /** - * The details required to update an cloud ASM. + * The details required to update a cloud ASM. * @param updateCloudAsmDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterInstanceRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterInstanceRequest.java index 3d79e3e426a..dc105bb82bd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterInstanceRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterInstanceRequest.java @@ -25,13 +25,13 @@ public String getCloudClusterInstanceId() { return cloudClusterInstanceId; } /** - * The details required to update an cloud cluster instance. + * The details required to update a cloud cluster instance. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudClusterInstanceDetails updateCloudClusterInstanceDetails; /** - * The details required to update an cloud cluster instance. + * The details required to update a cloud cluster instance. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudClusterInstanceDetails getUpdateCloudClusterInstanceDetails() { @@ -104,13 +104,13 @@ public Builder cloudClusterInstanceId(String cloudClusterInstanceId) { } /** - * The details required to update an cloud cluster instance. + * The details required to update a cloud cluster instance. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudClusterInstanceDetails updateCloudClusterInstanceDetails = null; /** - * The details required to update an cloud cluster instance. + * The details required to update a cloud cluster instance. * @param updateCloudClusterInstanceDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterRequest.java index 3fd9f0f8c15..66aecb0fed1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudClusterRequest.java @@ -25,13 +25,13 @@ public String getCloudClusterId() { return cloudClusterId; } /** - * The details required to update an cloud cluster. + * The details required to update a cloud cluster. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudClusterDetails updateCloudClusterDetails; /** - * The details required to update an cloud cluster. + * The details required to update a cloud cluster. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudClusterDetails getUpdateCloudClusterDetails() { @@ -104,13 +104,13 @@ public Builder cloudClusterId(String cloudClusterId) { } /** - * The details required to update an cloud cluster. + * The details required to update a cloud cluster. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudClusterDetails updateCloudClusterDetails = null; /** - * The details required to update an cloud cluster. + * The details required to update a cloud cluster. * @param updateCloudClusterDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbHomeRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbHomeRequest.java index 9876a7d7c16..6529a1ce8d0 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbHomeRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbHomeRequest.java @@ -25,13 +25,13 @@ public String getCloudDbHomeId() { return cloudDbHomeId; } /** - * The details required to update an cloud DB home. + * The details required to update a cloud DB home. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbHomeDetails updateCloudDbHomeDetails; /** - * The details required to update an cloud DB home. + * The details required to update a cloud DB home. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudDbHomeDetails getUpdateCloudDbHomeDetails() { @@ -104,13 +104,13 @@ public Builder cloudDbHomeId(String cloudDbHomeId) { } /** - * The details required to update an cloud DB home. + * The details required to update a cloud DB home. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbHomeDetails updateCloudDbHomeDetails = null; /** - * The details required to update an cloud DB home. + * The details required to update a cloud DB home. * @param updateCloudDbHomeDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbNodeRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbNodeRequest.java index b0141703f6b..3b7a6fe3279 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbNodeRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbNodeRequest.java @@ -25,13 +25,13 @@ public String getCloudDbNodeId() { return cloudDbNodeId; } /** - * The details required to update an cloud DB node. + * The details required to update a cloud DB node. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbNodeDetails updateCloudDbNodeDetails; /** - * The details required to update an cloud DB node. + * The details required to update a cloud DB node. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudDbNodeDetails getUpdateCloudDbNodeDetails() { @@ -104,13 +104,13 @@ public Builder cloudDbNodeId(String cloudDbNodeId) { } /** - * The details required to update an cloud DB node. + * The details required to update a cloud DB node. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbNodeDetails updateCloudDbNodeDetails = null; /** - * The details required to update an cloud DB node. + * The details required to update a cloud DB node. * @param updateCloudDbNodeDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemConnectorRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemConnectorRequest.java index d034bcea617..c326511aff2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemConnectorRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemConnectorRequest.java @@ -25,13 +25,13 @@ public String getCloudDbSystemConnectorId() { return cloudDbSystemConnectorId; } /** - * The details required to update an cloud connector. + * The details required to update a cloud connector. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemConnectorDetails updateCloudDbSystemConnectorDetails; /** - * The details required to update an cloud connector. + * The details required to update a cloud connector. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemConnectorDetails getUpdateCloudDbSystemConnectorDetails() { @@ -104,13 +104,13 @@ public Builder cloudDbSystemConnectorId(String cloudDbSystemConnectorId) { } /** - * The details required to update an cloud connector. + * The details required to update a cloud connector. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemConnectorDetails updateCloudDbSystemConnectorDetails = null; /** - * The details required to update an cloud connector. + * The details required to update a cloud connector. * @param updateCloudDbSystemConnectorDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemDiscoveryRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemDiscoveryRequest.java index 5d2469629dc..932204e2368 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemDiscoveryRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemDiscoveryRequest.java @@ -25,13 +25,13 @@ public String getCloudDbSystemDiscoveryId() { return cloudDbSystemDiscoveryId; } /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemDiscoveryDetails updateCloudDbSystemDiscoveryDetails; /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemDiscoveryDetails getUpdateCloudDbSystemDiscoveryDetails() { @@ -104,13 +104,13 @@ public Builder cloudDbSystemDiscoveryId(String cloudDbSystemDiscoveryId) { } /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemDiscoveryDetails updateCloudDbSystemDiscoveryDetails = null; /** - * The details required to update an cloud DB system discovery. + * The details required to update a cloud DB system discovery. * @param updateCloudDbSystemDiscoveryDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemRequest.java index 85183819379..f6b5d2c716f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudDbSystemRequest.java @@ -25,13 +25,13 @@ public String getCloudDbSystemId() { return cloudDbSystemId; } /** - * The details required to update an cloud DB system. + * The details required to update a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemDetails updateCloudDbSystemDetails; /** - * The details required to update an cloud DB system. + * The details required to update a cloud DB system. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemDetails getUpdateCloudDbSystemDetails() { @@ -104,13 +104,13 @@ public Builder cloudDbSystemId(String cloudDbSystemId) { } /** - * The details required to update an cloud DB system. + * The details required to update a cloud DB system. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudDbSystemDetails updateCloudDbSystemDetails = null; /** - * The details required to update an cloud DB system. + * The details required to update a cloud DB system. * @param updateCloudDbSystemDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudListenerRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudListenerRequest.java index 1e9ebf74a78..1c9e2a1b763 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudListenerRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateCloudListenerRequest.java @@ -25,13 +25,13 @@ public String getCloudListenerId() { return cloudListenerId; } /** - * The details required to update an cloud listener. + * The details required to update a cloud listener. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudListenerDetails updateCloudListenerDetails; /** - * The details required to update an cloud listener. + * The details required to update a cloud listener. */ public com.oracle.bmc.databasemanagement.model.UpdateCloudListenerDetails getUpdateCloudListenerDetails() { @@ -104,13 +104,13 @@ public Builder cloudListenerId(String cloudListenerId) { } /** - * The details required to update an cloud listener. + * The details required to update a cloud listener. */ private com.oracle.bmc.databasemanagement.model.UpdateCloudListenerDetails updateCloudListenerDetails = null; /** - * The details required to update an cloud listener. + * The details required to update a cloud listener. * @param updateCloudListenerDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdatePreferredCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdatePreferredCredentialRequest.java index 22e55804001..83ebc4ed077 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdatePreferredCredentialRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdatePreferredCredentialRequest.java @@ -25,12 +25,20 @@ public String getManagedDatabaseId() { return managedDatabaseId; } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ public String getCredentialName() { return credentialName; @@ -115,12 +123,20 @@ public Builder managedDatabaseId(String managedDatabaseId) { } /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * */ private String credentialName = null; /** - * The name of the preferred credential. + * The name of the preferred credential. There are 3 built-in preferred credentials with display names and names as below: + * Basic Monitoring(MONITORING) + * Advanced diagnostics(PC_READ) + * Administrator(PC_WRITE) + * * @param credentialName the value to set * @return this builder instance */ diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 898174c37b5..3ac5748a49b 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-databasemigration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AssessorCheckStates.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AssessorCheckStates.java index 47957502bdd..ce50c0a9cb0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AssessorCheckStates.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AssessorCheckStates.java @@ -21,6 +21,7 @@ public enum AssessorCheckStates { Started("STARTED"), Completed("COMPLETED"), Failed("FAILED"), + Skipped("SKIPPED"), /** * This value is used if a service returns a value for this enum that is not recognized by this 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 c890276fb6c..fe174101947 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 @@ -33,6 +33,57 @@ }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class Connection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + protected Connection( + 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) { + super(); + this.id = id; + this.displayName = displayName; + 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; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.replicationUsername = replicationUsername; + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.secretId = secretId; + this.privateEndpointId = privateEndpointId; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "id", @@ -76,9 +127,9 @@ protected Connection( java.util.List ingressIps, java.util.List nsgIds, String username, - String password, + char[] password, String replicationUsername, - String replicationPassword, + char[] replicationPassword, String secretId, String privateEndpointId) { super(); @@ -438,14 +489,27 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password (credential) used when creating or updating this resource. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password (credential) used when creating or updating this resource. * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -470,14 +534,27 @@ public String getReplicationUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private final String replicationPassword; + private final char[] replicationPassword; + + /** + * The password (credential) used when creating or updating this resource. + * + * return the value + * @Deprecated - Use getReplicationPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getReplicationPassword() { + return replicationPassword != null ? new String(replicationPassword) : null; + } /** * The password (credential) used when creating or updating this resource. * * @return the value **/ - public String getReplicationPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + public char[] getReplicationPassword__AsCharArray() { return replicationPassword; } 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 54727528f7f..0999c21e5ec 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 @@ -23,8 +23,16 @@ public final class CreateAdminCredentials extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"username", "password"}) public CreateAdminCredentials(String username, String password) { + super(); + this.username = username; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"username", "password"}) + public CreateAdminCredentials(String username, char[] password) { super(); this.username = username; this.password = password; @@ -55,7 +63,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Administrator password @@ -63,12 +71,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -124,14 +138,27 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Administrator password + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Administrator password * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 10c09d94f06..cb372550601 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 @@ -33,6 +33,39 @@ }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class CreateConnectionDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + protected CreateConnectionDetails( + 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) { + super(); + this.displayName = displayName; + 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 != null ? password.toCharArray() : null; + this.replicationUsername = replicationUsername; + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "displayName", @@ -60,9 +93,9 @@ protected CreateConnectionDetails( String subnetId, java.util.List nsgIds, String username, - String password, + char[] password, String replicationUsername, - String replicationPassword) { + char[] replicationPassword) { super(); this.displayName = displayName; this.description = description; @@ -244,14 +277,27 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password (credential) used when creating or updating this resource. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password (credential) used when creating or updating this resource. * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -276,14 +322,27 @@ public String getReplicationUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private final String replicationPassword; + private final char[] replicationPassword; + + /** + * The password (credential) used when creating or updating this resource. + * + * return the value + * @Deprecated - Use getReplicationPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getReplicationPassword() { + return replicationPassword != null ? new String(replicationPassword) : null; + } /** * The password (credential) used when creating or updating this resource. * * @return the value **/ - public String getReplicationPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + public char[] getReplicationPassword__AsCharArray() { return replicationPassword; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAssessmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAssessmentDetails.java index 3a7be872d80..9b467c8ebcc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAssessmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAssessmentDetails.java @@ -138,6 +138,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeMySql migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } /** * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' **/ @@ -211,6 +227,7 @@ public CreateMySqlAssessmentDetails build() { this.targetDatabaseConnection, this.freeformTags, this.definedTags, + this.migrationScope, this.excludeObjects, this.includeObjects, this.bulkIncludeExcludeData); @@ -258,6 +275,9 @@ public Builder copy(CreateMySqlAssessmentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } if (model.wasPropertyExplicitlySet("excludeObjects")) { this.excludeObjects(model.getExcludeObjects()); } @@ -296,6 +316,7 @@ public CreateMySqlAssessmentDetails( TargetAssessmentConnection targetDatabaseConnection, java.util.Map freeformTags, java.util.Map> definedTags, + MigrationScopeMySql migrationScope, java.util.List excludeObjects, java.util.List includeObjects, String bulkIncludeExcludeData) { @@ -312,11 +333,26 @@ public CreateMySqlAssessmentDetails( targetDatabaseConnection, freeformTags, definedTags); + this.migrationScope = migrationScope; this.excludeObjects = excludeObjects; this.includeObjects = includeObjects; this.bulkIncludeExcludeData = bulkIncludeExcludeData; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeMySql getMigrationScope() { + return migrationScope; + } + /** * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' **/ @@ -379,6 +415,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateMySqlAssessmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); @@ -396,7 +433,8 @@ public boolean equals(Object o) { } CreateMySqlAssessmentDetails other = (CreateMySqlAssessmentDetails) o; - return java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) && java.util.Objects.equals(this.includeObjects, other.includeObjects) && java.util.Objects.equals( this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) @@ -407,6 +445,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); result = (result * PRIME) + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); 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 index 9889e44875f..799f4cf88f9 100644 --- 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 @@ -119,14 +119,20 @@ public Builder username(String username) { } @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") private String replicationUsername; @@ -137,13 +143,21 @@ public Builder replicationUsername(String replicationUsername) { } @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private String replicationPassword; + private char[] replicationPassword; - public Builder replicationPassword(String replicationPassword) { + public Builder replicationPassword(char[] replicationPassword) { this.replicationPassword = replicationPassword; this.__explicitlySet__.add("replicationPassword"); return this; } + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** * The type of MySQL source or target connection. * Example: OCI_MYSQL represents OCI MySQL HeatWave Database Service @@ -541,6 +555,62 @@ public CreateMysqlConnectionDetails( this.dbSystemId = dbSystemId; } + @com.fasterxml.jackson.annotation.JsonCreator + @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, + char[] password, + String replicationUsername, + char[] 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 diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAssessmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAssessmentDetails.java index 0880d03f07b..5030bbb0f8b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAssessmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAssessmentDetails.java @@ -138,6 +138,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeOracle migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } /** * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' * @@ -213,6 +229,7 @@ public CreateOracleAssessmentDetails build() { this.targetDatabaseConnection, this.freeformTags, this.definedTags, + this.migrationScope, this.excludeObjects, this.includeObjects, this.bulkIncludeExcludeData); @@ -260,6 +277,9 @@ public Builder copy(CreateOracleAssessmentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } if (model.wasPropertyExplicitlySet("excludeObjects")) { this.excludeObjects(model.getExcludeObjects()); } @@ -298,6 +318,7 @@ public CreateOracleAssessmentDetails( TargetAssessmentConnection targetDatabaseConnection, java.util.Map freeformTags, java.util.Map> definedTags, + MigrationScopeOracle migrationScope, java.util.List excludeObjects, java.util.List includeObjects, String bulkIncludeExcludeData) { @@ -314,11 +335,26 @@ public CreateOracleAssessmentDetails( targetDatabaseConnection, freeformTags, definedTags); + this.migrationScope = migrationScope; this.excludeObjects = excludeObjects; this.includeObjects = includeObjects; this.bulkIncludeExcludeData = bulkIncludeExcludeData; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeOracle getMigrationScope() { + return migrationScope; + } + /** * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' * @@ -383,6 +419,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateOracleAssessmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); @@ -400,7 +437,8 @@ public boolean equals(Object o) { } CreateOracleAssessmentDetails other = (CreateOracleAssessmentDetails) o; - return java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) && java.util.Objects.equals(this.includeObjects, other.includeObjects) && java.util.Objects.equals( this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) @@ -411,6 +449,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); result = (result * PRIME) + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java index 0fb8b8ca1d6..accfb819d3c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java @@ -74,7 +74,7 @@ public Builder region(String region) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private String accessKeyId; + private char[] accessKeyId; /** * AWS access key credentials identifier @@ -83,18 +83,25 @@ public Builder region(String region) { * @param accessKeyId the value to set * @return this builder **/ - public Builder accessKeyId(String accessKeyId) { + public Builder accessKeyId(char[] accessKeyId) { this.accessKeyId = accessKeyId; this.__explicitlySet__.add("accessKeyId"); return this; } + + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** * AWS secret access key credentials * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * AWS secret access key credentials @@ -103,12 +110,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") private ObjectStoreBucket objectStorageBucket; @@ -177,6 +190,22 @@ public CreateOracleAwsS3DataTransferMediumDetails( super(); this.name = name; this.region = region; + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleAwsS3DataTransferMediumDetails( + String name, + String region, + char[] accessKeyId, + char[] secretAccessKey, + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.objectStorageBucket = objectStorageBucket; @@ -222,7 +251,20 @@ public String getRegion() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private final String accessKeyId; + private final char[] accessKeyId; + + /** + * AWS access key credentials identifier + * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * return the value + * @Deprecated - Use getAccessKeyId__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccessKeyId() { + return accessKeyId != null ? new String(accessKeyId) : null; + } /** * AWS access key credentials identifier @@ -230,7 +272,8 @@ public String getRegion() { * * @return the value **/ - public String getAccessKeyId() { + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + public char[] getAccessKeyId__AsCharArray() { return accessKeyId; } @@ -240,7 +283,20 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * AWS secret access key credentials + * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * AWS secret access key credentials @@ -248,7 +304,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } 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 index 022557d603e..228a720ee27 100644 --- 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 @@ -119,14 +119,20 @@ public Builder username(String username) { } @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") private String replicationUsername; @@ -137,13 +143,21 @@ public Builder replicationUsername(String replicationUsername) { } @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private String replicationPassword; + private char[] replicationPassword; - public Builder replicationPassword(String replicationPassword) { + public Builder replicationPassword(char[] replicationPassword) { this.replicationPassword = replicationPassword; this.__explicitlySet__.add("replicationPassword"); return this; } + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** * The Oracle technology type. **/ @@ -449,6 +463,54 @@ public CreateOracleConnectionDetails( this.sshSudoLocation = sshSudoLocation; } + @com.fasterxml.jackson.annotation.JsonCreator + @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, + char[] password, + String replicationUsername, + char[] 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. **/ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationScopeMySql.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationScopeMySql.java new file mode 100644 index 00000000000..7e0924b4084 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationScopeMySql.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Assessment migration scope. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum MigrationScopeMySql { + Schema("SCHEMA"), + Full("FULL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MigrationScopeMySql.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MigrationScopeMySql v : MigrationScopeMySql.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MigrationScopeMySql(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MigrationScopeMySql create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MigrationScopeMySql', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationScopeOracle.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationScopeOracle.java new file mode 100644 index 00000000000..549774fd9a4 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationScopeOracle.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Assessment migration scope. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum MigrationScopeOracle { + Schema("SCHEMA"), + Full("FULL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MigrationScopeOracle.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MigrationScopeOracle v : MigrationScopeOracle.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MigrationScopeOracle(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MigrationScopeOracle create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MigrationScopeOracle', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessment.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessment.java index 87b0743ef64..f948d486f7d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessment.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessment.java @@ -199,6 +199,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeMySql migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -224,7 +240,8 @@ public MySqlAssessment build() { this.timeUpdated, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.migrationScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -290,6 +307,9 @@ public Builder copy(MySqlAssessment model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } return this; } } @@ -325,7 +345,8 @@ public MySqlAssessment( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + MigrationScopeMySql migrationScope) { super( id, description, @@ -346,6 +367,21 @@ public MySqlAssessment( freeformTags, definedTags, systemTags); + this.migrationScope = migrationScope; + } + + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeMySql getMigrationScope() { + return migrationScope; } @Override @@ -362,6 +398,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("MySqlAssessment("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(")"); return sb.toString(); } @@ -376,13 +413,17 @@ public boolean equals(Object o) { } MySqlAssessment other = (MySqlAssessment) o; - return super.equals(other); + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessmentSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessmentSummary.java index 9c446aa42b9..b9dbbaf0466 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessmentSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAssessmentSummary.java @@ -117,6 +117,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeMySql migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -133,7 +149,8 @@ public MySqlAssessmentSummary build() { this.lifecycleState, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.migrationScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -172,6 +189,9 @@ public Builder copy(MySqlAssessmentSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } return this; } } @@ -198,7 +218,8 @@ public MySqlAssessmentSummary( AssessmentLifecycleStates lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + MigrationScopeMySql migrationScope) { super( id, displayName, @@ -210,6 +231,21 @@ public MySqlAssessmentSummary( freeformTags, definedTags, systemTags); + this.migrationScope = migrationScope; + } + + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeMySql getMigrationScope() { + return migrationScope; } @Override @@ -226,6 +262,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("MySqlAssessmentSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(")"); return sb.toString(); } @@ -240,13 +277,17 @@ public boolean equals(Object o) { } MySqlAssessmentSummary other = (MySqlAssessmentSummary) o; - return super.equals(other); + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); return result; } } 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 index dbd495f85f9..623031953c3 100644 --- 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 @@ -180,14 +180,20 @@ public Builder username(String username) { } @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") private String replicationUsername; @@ -198,14 +204,21 @@ public Builder replicationUsername(String replicationUsername) { } @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private String replicationPassword; + private char[] replicationPassword; - public Builder replicationPassword(String replicationPassword) { + public Builder replicationPassword(char[] replicationPassword) { this.replicationPassword = replicationPassword; this.__explicitlySet__.add("replicationPassword"); return this; } + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -572,6 +585,71 @@ public MysqlConnection( this.dbSystemId = dbSystemId; } + @com.fasterxml.jackson.annotation.JsonCreator + @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, + char[] password, + String replicationUsername, + char[] 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 diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessment.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessment.java index bb50afe04a3..9299b6f1676 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessment.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessment.java @@ -199,6 +199,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeOracle migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } /** * True if CDB should be defined, false otherwise. **/ @@ -241,6 +257,7 @@ public OracleAssessment build() { this.freeformTags, this.definedTags, this.systemTags, + this.migrationScope, this.isCdbSupported); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -307,6 +324,9 @@ public Builder copy(OracleAssessment model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } if (model.wasPropertyExplicitlySet("isCdbSupported")) { this.isCdbSupported(model.getIsCdbSupported()); } @@ -346,6 +366,7 @@ public OracleAssessment( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + MigrationScopeOracle migrationScope, Boolean isCdbSupported) { super( id, @@ -367,9 +388,24 @@ public OracleAssessment( freeformTags, definedTags, systemTags); + this.migrationScope = migrationScope; this.isCdbSupported = isCdbSupported; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeOracle getMigrationScope() { + return migrationScope; + } + /** * True if CDB should be defined, false otherwise. **/ @@ -398,6 +434,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleAssessment("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(", isCdbSupported=").append(String.valueOf(this.isCdbSupported)); sb.append(")"); return sb.toString(); @@ -413,7 +450,8 @@ public boolean equals(Object o) { } OracleAssessment other = (OracleAssessment) o; - return java.util.Objects.equals(this.isCdbSupported, other.isCdbSupported) + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && java.util.Objects.equals(this.isCdbSupported, other.isCdbSupported) && super.equals(other); } @@ -421,6 +459,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); result = (result * PRIME) + (this.isCdbSupported == null ? 43 : this.isCdbSupported.hashCode()); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessmentSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessmentSummary.java index 398293ef93d..f0de489403c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessmentSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAssessmentSummary.java @@ -117,6 +117,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeOracle migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } /** * True if CDB should be defined, false otherwise. **/ @@ -150,6 +166,7 @@ public OracleAssessmentSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.migrationScope, this.isCdbSupported); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -189,6 +206,9 @@ public Builder copy(OracleAssessmentSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } if (model.wasPropertyExplicitlySet("isCdbSupported")) { this.isCdbSupported(model.getIsCdbSupported()); } @@ -219,6 +239,7 @@ public OracleAssessmentSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + MigrationScopeOracle migrationScope, Boolean isCdbSupported) { super( id, @@ -231,9 +252,24 @@ public OracleAssessmentSummary( freeformTags, definedTags, systemTags); + this.migrationScope = migrationScope; this.isCdbSupported = isCdbSupported; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeOracle getMigrationScope() { + return migrationScope; + } + /** * True if CDB should be defined, false otherwise. **/ @@ -262,6 +298,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleAssessmentSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(", isCdbSupported=").append(String.valueOf(this.isCdbSupported)); sb.append(")"); return sb.toString(); @@ -277,7 +314,8 @@ public boolean equals(Object o) { } OracleAssessmentSummary other = (OracleAssessmentSummary) o; - return java.util.Objects.equals(this.isCdbSupported, other.isCdbSupported) + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && java.util.Objects.equals(this.isCdbSupported, other.isCdbSupported) && super.equals(other); } @@ -285,6 +323,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); result = (result * PRIME) + (this.isCdbSupported == null ? 43 : this.isCdbSupported.hashCode()); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java index 5e8f882f082..a624a51126b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java @@ -73,7 +73,7 @@ public Builder region(String region) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private String accessKeyId; + private char[] accessKeyId; /** * AWS access key credentials identifier @@ -82,18 +82,25 @@ public Builder region(String region) { * @param accessKeyId the value to set * @return this builder **/ - public Builder accessKeyId(String accessKeyId) { + public Builder accessKeyId(char[] accessKeyId) { this.accessKeyId = accessKeyId; this.__explicitlySet__.add("accessKeyId"); return this; } + + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** * AWS secret access key credentials * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * AWS secret access key credentials @@ -102,12 +109,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") private ObjectStoreBucket objectStorageBucket; @@ -176,6 +189,22 @@ public OracleAwsS3DataTransferMediumDetails( super(); this.name = name; this.region = region; + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public OracleAwsS3DataTransferMediumDetails( + String name, + String region, + char[] accessKeyId, + char[] secretAccessKey, + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.objectStorageBucket = objectStorageBucket; @@ -221,7 +250,20 @@ public String getRegion() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private final String accessKeyId; + private final char[] accessKeyId; + + /** + * AWS access key credentials identifier + * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * return the value + * @Deprecated - Use getAccessKeyId__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccessKeyId() { + return accessKeyId != null ? new String(accessKeyId) : null; + } /** * AWS access key credentials identifier @@ -229,7 +271,8 @@ public String getRegion() { * * @return the value **/ - public String getAccessKeyId() { + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + public char[] getAccessKeyId__AsCharArray() { return accessKeyId; } @@ -239,7 +282,20 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * AWS secret access key credentials + * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * AWS secret access key credentials @@ -247,7 +303,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } 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 index 126bed2b07e..6fae96dde06 100644 --- 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 @@ -180,14 +180,20 @@ public Builder username(String username) { } @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") private String replicationUsername; @@ -198,14 +204,21 @@ public Builder replicationUsername(String replicationUsername) { } @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private String replicationPassword; + private char[] replicationPassword; - public Builder replicationPassword(String replicationPassword) { + public Builder replicationPassword(char[] replicationPassword) { this.replicationPassword = replicationPassword; this.__explicitlySet__.add("replicationPassword"); return this; } + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -556,6 +569,69 @@ public OracleConnection( this.sshSudoLocation = sshSudoLocation; } + @com.fasterxml.jackson.annotation.JsonCreator + @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, + char[] password, + String replicationUsername, + char[] 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. **/ 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 6b60dce26d3..5d9a90eb116 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 @@ -23,8 +23,16 @@ public final class UpdateAdminCredentials extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"username", "password"}) public UpdateAdminCredentials(String username, String password) { + super(); + this.username = username; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"username", "password"}) + public UpdateAdminCredentials(String username, char[] password) { super(); this.username = username; this.password = password; @@ -55,7 +63,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Administrator password @@ -63,12 +71,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -124,14 +138,27 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Administrator password + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Administrator password * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 d43adec8847..e4aded04c3f 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 @@ -33,6 +33,37 @@ }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class UpdateConnectionDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + protected UpdateConnectionDetails( + 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) { + super(); + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.replicationUsername = replicationUsername; + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "displayName", @@ -58,9 +89,9 @@ protected UpdateConnectionDetails( String subnetId, java.util.List nsgIds, String username, - String password, + char[] password, String replicationUsername, - String replicationPassword) { + char[] replicationPassword) { super(); this.displayName = displayName; this.description = description; @@ -227,14 +258,27 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password (credential) used when creating or updating this resource. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password (credential) used when creating or updating this resource. * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -259,14 +303,27 @@ public String getReplicationUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private final String replicationPassword; + private final char[] replicationPassword; + + /** + * The password (credential) used when creating or updating this resource. + * + * return the value + * @Deprecated - Use getReplicationPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getReplicationPassword() { + return replicationPassword != null ? new String(replicationPassword) : null; + } /** * The password (credential) used when creating or updating this resource. * * @return the value **/ - public String getReplicationPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + public char[] getReplicationPassword__AsCharArray() { return replicationPassword; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAssessmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAssessmentDetails.java index 040b5b067f8..2debca4df3b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAssessmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAssessmentDetails.java @@ -129,6 +129,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeMySql migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -146,7 +162,8 @@ public UpdateMySqlAssessmentDetails build() { this.sourceDatabaseConnection, this.targetDatabaseConnection, this.freeformTags, - this.definedTags); + this.definedTags, + this.migrationScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -188,6 +205,9 @@ public Builder copy(UpdateMySqlAssessmentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } return this; } } @@ -215,7 +235,8 @@ public UpdateMySqlAssessmentDetails( SourceAssessmentConnection sourceDatabaseConnection, TargetAssessmentConnection targetDatabaseConnection, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + MigrationScopeMySql migrationScope) { super( description, displayName, @@ -228,6 +249,21 @@ public UpdateMySqlAssessmentDetails( targetDatabaseConnection, freeformTags, definedTags); + this.migrationScope = migrationScope; + } + + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeMySql migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeMySql getMigrationScope() { + return migrationScope; } @Override @@ -244,6 +280,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateMySqlAssessmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(")"); return sb.toString(); } @@ -258,13 +295,17 @@ public boolean equals(Object o) { } UpdateMySqlAssessmentDetails other = (UpdateMySqlAssessmentDetails) o; - return super.equals(other); + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.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 index b04faceda45..93f4a3a1d94 100644 --- 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 @@ -110,14 +110,20 @@ public Builder username(String username) { } @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") private String replicationUsername; @@ -128,13 +134,21 @@ public Builder replicationUsername(String replicationUsername) { } @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private String replicationPassword; + private char[] replicationPassword; - public Builder replicationPassword(String replicationPassword) { + public Builder replicationPassword(char[] replicationPassword) { this.replicationPassword = replicationPassword; this.__explicitlySet__.add("replicationPassword"); return this; } + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** * The IP Address of the host. **/ @@ -500,6 +514,58 @@ public UpdateMysqlConnectionDetails( this.dbSystemId = dbSystemId; } + @com.fasterxml.jackson.annotation.JsonCreator + @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, + char[] password, + String replicationUsername, + char[] 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. **/ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAssessmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAssessmentDetails.java index a697ef63d87..635af6db8fd 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAssessmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAssessmentDetails.java @@ -129,6 +129,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @param migrationScope the value to set + * @return this builder + **/ + public Builder migrationScope(MigrationScopeOracle migrationScope) { + this.migrationScope = migrationScope; + this.__explicitlySet__.add("migrationScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -146,7 +162,8 @@ public UpdateOracleAssessmentDetails build() { this.sourceDatabaseConnection, this.targetDatabaseConnection, this.freeformTags, - this.definedTags); + this.definedTags, + this.migrationScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -188,6 +205,9 @@ public Builder copy(UpdateOracleAssessmentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationScope")) { + this.migrationScope(model.getMigrationScope()); + } return this; } } @@ -215,7 +235,8 @@ public UpdateOracleAssessmentDetails( SourceAssessmentConnection sourceDatabaseConnection, TargetAssessmentConnection targetDatabaseConnection, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + MigrationScopeOracle migrationScope) { super( description, displayName, @@ -228,6 +249,21 @@ public UpdateOracleAssessmentDetails( targetDatabaseConnection, freeformTags, definedTags); + this.migrationScope = migrationScope; + } + + /** + * Assessment migration scope. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationScope") + private final MigrationScopeOracle migrationScope; + + /** + * Assessment migration scope. + * @return the value + **/ + public MigrationScopeOracle getMigrationScope() { + return migrationScope; } @Override @@ -244,6 +280,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateOracleAssessmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationScope=").append(String.valueOf(this.migrationScope)); sb.append(")"); return sb.toString(); } @@ -258,13 +295,17 @@ public boolean equals(Object o) { } UpdateOracleAssessmentDetails other = (UpdateOracleAssessmentDetails) o; - return super.equals(other); + return java.util.Objects.equals(this.migrationScope, other.migrationScope) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationScope == null ? 43 : this.migrationScope.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java index 802459540dd..ef97e4e3ca8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java @@ -74,7 +74,7 @@ public Builder region(String region) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private String accessKeyId; + private char[] accessKeyId; /** * AWS access key credentials identifier @@ -83,18 +83,25 @@ public Builder region(String region) { * @param accessKeyId the value to set * @return this builder **/ - public Builder accessKeyId(String accessKeyId) { + public Builder accessKeyId(char[] accessKeyId) { this.accessKeyId = accessKeyId; this.__explicitlySet__.add("accessKeyId"); return this; } + + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** * AWS secret access key credentials * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * AWS secret access key credentials @@ -103,12 +110,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") private ObjectStoreBucket objectStorageBucket; @@ -177,6 +190,22 @@ public UpdateOracleAwsS3DataTransferMediumDetails( super(); this.name = name; this.region = region; + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleAwsS3DataTransferMediumDetails( + String name, + String region, + char[] accessKeyId, + char[] secretAccessKey, + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.objectStorageBucket = objectStorageBucket; @@ -222,7 +251,20 @@ public String getRegion() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private final String accessKeyId; + private final char[] accessKeyId; + + /** + * AWS access key credentials identifier + * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * return the value + * @Deprecated - Use getAccessKeyId__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccessKeyId() { + return accessKeyId != null ? new String(accessKeyId) : null; + } /** * AWS access key credentials identifier @@ -230,7 +272,8 @@ public String getRegion() { * * @return the value **/ - public String getAccessKeyId() { + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + public char[] getAccessKeyId__AsCharArray() { return accessKeyId; } @@ -240,7 +283,20 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * AWS secret access key credentials + * Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * AWS secret access key credentials @@ -248,7 +304,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } 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 index 5093c04d871..e168c644e2f 100644 --- 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 @@ -110,14 +110,20 @@ public Builder username(String username) { } @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") private String replicationUsername; @@ -128,13 +134,21 @@ public Builder replicationUsername(String replicationUsername) { } @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private String replicationPassword; + private char[] replicationPassword; - public Builder replicationPassword(String replicationPassword) { + public Builder replicationPassword(char[] replicationPassword) { this.replicationPassword = replicationPassword; this.__explicitlySet__.add("replicationPassword"); return this; } + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** * Connect descriptor or Easy Connect Naming method used to connect to a database. * @@ -412,6 +426,50 @@ public UpdateOracleConnectionDetails( this.sshSudoLocation = sshSudoLocation; } + @com.fasterxml.jackson.annotation.JsonCreator + @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, + char[] password, + String replicationUsername, + char[] 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. * diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 33f940a44e7..002bcc0da6c 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-databasetools @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseTools.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseTools.java index 62b750d11c8..a07cbfcfe41 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseTools.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseTools.java @@ -72,6 +72,20 @@ public interface DatabaseTools extends AutoCloseable { AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( AddDatabaseToolsConnectionLockRequest request); + /** + * Adds a lock to a DatabaseToolsDatabaseApiGatewayConfig resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddDatabaseToolsDatabaseApiGatewayConfigLock API. + */ + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + addDatabaseToolsDatabaseApiGatewayConfigLock( + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request); + /** * Adds a lock to a DatabaseToolsIdentity resource. * @param request The request object containing the details to send @@ -85,6 +99,32 @@ AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( AddDatabaseToolsIdentityLockRequest request); + /** + * Adds a lock to a DatabaseToolsMcpServer resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddDatabaseToolsMcpServerLock API. + */ + AddDatabaseToolsMcpServerLockResponse addDatabaseToolsMcpServerLock( + AddDatabaseToolsMcpServerLockRequest request); + + /** + * Adds a lock to a DatabaseToolsMcpToolset resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddDatabaseToolsMcpToolsetLock API. + */ + AddDatabaseToolsMcpToolsetLockResponse addDatabaseToolsMcpToolsetLock( + AddDatabaseToolsMcpToolsetLockRequest request); + /** * Adds a lock to a DatabaseToolsPrivateEndpoint resource. * @param request The request object containing the details to send @@ -98,6 +138,33 @@ AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpointLock( AddDatabaseToolsPrivateEndpointLockRequest request); + /** + * Adds a lock to a DatabaseToolsSqlReport resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddDatabaseToolsSqlReportLock API. + */ + AddDatabaseToolsSqlReportLockResponse addDatabaseToolsSqlReportLock( + AddDatabaseToolsSqlReportLockRequest request); + + /** + * Deletes Database Tools McpServer resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CascadingDeleteDatabaseToolsMcpServer API. + */ + CascadingDeleteDatabaseToolsMcpServerResponse cascadingDeleteDatabaseToolsMcpServer( + CascadingDeleteDatabaseToolsMcpServerRequest request); + /** * Moves the specified Database Tools connection to a different compartment in the same tenancy. * For information about moving resources between compartments, see @@ -114,6 +181,23 @@ AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpointLock( ChangeDatabaseToolsConnectionCompartmentResponse changeDatabaseToolsConnectionCompartment( ChangeDatabaseToolsConnectionCompartmentRequest request); + /** + * Moves the specified Database Tools database API gateway config to a different compartment in the same tenancy. + * For information about moving resources between compartments, see + * [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/DbApiGatewayConfig/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 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 ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment API. + */ + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + changeDatabaseToolsDatabaseApiGatewayConfigCompartment( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request); + /** * Moves the specified Database Tools identity to a different compartment in the same tenancy. * For information about moving resources between compartments, see @@ -130,6 +214,34 @@ ChangeDatabaseToolsConnectionCompartmentResponse changeDatabaseToolsConnectionCo ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentityCompartment( ChangeDatabaseToolsIdentityCompartmentRequest request); + /** + * Moves the specified Database Tools mcpserver to a different compartment in the same tenancy. + * + * @param request The request 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 ChangeDatabaseToolsMcpServerCompartment API. + */ + ChangeDatabaseToolsMcpServerCompartmentResponse changeDatabaseToolsMcpServerCompartment( + ChangeDatabaseToolsMcpServerCompartmentRequest request); + + /** + * Moves the specified Database Tools MCP Toolset to a different compartment in the same tenancy. + * + * @param request The request 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 ChangeDatabaseToolsMcpToolsetCompartment API. + */ + ChangeDatabaseToolsMcpToolsetCompartmentResponse changeDatabaseToolsMcpToolsetCompartment( + ChangeDatabaseToolsMcpToolsetCompartmentRequest request); + /** * Moves a Database Tools private endpoint into a different compartment in the same tenancy. * For information about moving resources between compartments, see @@ -147,6 +259,20 @@ ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentityCompar changeDatabaseToolsPrivateEndpointCompartment( ChangeDatabaseToolsPrivateEndpointCompartmentRequest request); + /** + * Moves the specified Database Tools SQL Report to a different compartment in the same tenancy. + * + * @param request The request 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 ChangeDatabaseToolsSqlReportCompartment API. + */ + ChangeDatabaseToolsSqlReportCompartmentResponse changeDatabaseToolsSqlReportCompartment( + ChangeDatabaseToolsSqlReportCompartmentRequest request); + /** * Creates a new Database Tools connection. * @@ -161,6 +287,20 @@ ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentityCompar CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( CreateDatabaseToolsConnectionRequest request); + /** + * Creates a new Database Tools database API gateway config. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateDatabaseToolsDatabaseApiGatewayConfig API. + */ + CreateDatabaseToolsDatabaseApiGatewayConfigResponse createDatabaseToolsDatabaseApiGatewayConfig( + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request); + /** * Creates a new Database Tools identity. * @@ -175,6 +315,34 @@ CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( CreateDatabaseToolsIdentityRequest request); + /** + * Creates a new Database Tools MCP 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 CreateDatabaseToolsMcpServer API. + */ + CreateDatabaseToolsMcpServerResponse createDatabaseToolsMcpServer( + CreateDatabaseToolsMcpServerRequest request); + + /** + * Creates a new Database Tools MCP Toolset. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateDatabaseToolsMcpToolset API. + */ + CreateDatabaseToolsMcpToolsetResponse createDatabaseToolsMcpToolset( + CreateDatabaseToolsMcpToolsetRequest request); + /** * Creates a new Database Tools private endpoint. * @@ -189,6 +357,20 @@ CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndpoint( CreateDatabaseToolsPrivateEndpointRequest request); + /** + * Creates a new Database Tools Sql Report. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateDatabaseToolsSqlReport API. + */ + CreateDatabaseToolsSqlReportResponse createDatabaseToolsSqlReport( + CreateDatabaseToolsSqlReportRequest request); + /** * Deletes the specified Database Tools connection resource. * @param request The request object containing the details to send @@ -202,6 +384,19 @@ CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndpoint( DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( DeleteDatabaseToolsConnectionRequest request); + /** + * Deletes the specified Database Tools database API gateway config resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteDatabaseToolsDatabaseApiGatewayConfig API. + */ + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse deleteDatabaseToolsDatabaseApiGatewayConfig( + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request); + /** * Deletes the specified Database Tools identity resource. * @param request The request object containing the details to send @@ -215,6 +410,32 @@ DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( DeleteDatabaseToolsIdentityRequest request); + /** + * Deletes the specified Database Tools MCP server resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteDatabaseToolsMcpServer API. + */ + DeleteDatabaseToolsMcpServerResponse deleteDatabaseToolsMcpServer( + DeleteDatabaseToolsMcpServerRequest request); + + /** + * Deletes the specified Database Tools MCP Toolset resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteDatabaseToolsMcpToolset API. + */ + DeleteDatabaseToolsMcpToolsetResponse deleteDatabaseToolsMcpToolset( + DeleteDatabaseToolsMcpToolsetRequest request); + /** * Deletes the specified Database Tools private endpoint. * @param request The request object containing the details to send @@ -228,6 +449,19 @@ DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndpoint( DeleteDatabaseToolsPrivateEndpointRequest request); + /** + * Deletes the specified Database Tools SQL Report resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteDatabaseToolsSqlReport API. + */ + DeleteDatabaseToolsSqlReportResponse deleteDatabaseToolsSqlReport( + DeleteDatabaseToolsSqlReportRequest request); + /** * Gets details of the specified Database Tools connection. * @param request The request object containing the details to send @@ -241,6 +475,19 @@ DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndpoint( GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( GetDatabaseToolsConnectionRequest request); + /** + * Gets details of the specified Database Tools database API gateway config. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfig API. + */ + GetDatabaseToolsDatabaseApiGatewayConfigResponse getDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request); + /** * Gets details for the specified Database Tools endpoint service. * @param request The request object containing the details to send @@ -267,6 +514,32 @@ GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( GetDatabaseToolsIdentityRequest request); + /** + * Gets details of the specified Database Tools MCP 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 GetDatabaseToolsMcpServer API. + */ + GetDatabaseToolsMcpServerResponse getDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request); + + /** + * Gets details of the specified Database Tools MCP Toolset. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDatabaseToolsMcpToolset API. + */ + GetDatabaseToolsMcpToolsetResponse getDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request); + /** * Gets details of a specified Database Tools private endpoint. * @param request The request object containing the details to send @@ -280,6 +553,19 @@ GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( GetDatabaseToolsPrivateEndpointRequest request); + /** + * Gets details of the specified Database Tools SQL report. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDatabaseToolsSqlReport API. + */ + GetDatabaseToolsSqlReportResponse getDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request); + /** * Gets the status of the specified work request. * @param request The request object containing the details to send @@ -306,6 +592,19 @@ GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( ListDatabaseToolsConnectionsRequest request); + /** + * Returns a list of Database Tools database API gateway configs. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigs API. + */ + ListDatabaseToolsDatabaseApiGatewayConfigsResponse listDatabaseToolsDatabaseApiGatewayConfigs( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request); + /** * Returns a list of Database Tools endpoint services. * @@ -333,6 +632,45 @@ ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServices( ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( ListDatabaseToolsIdentitiesRequest request); + /** + * Returns a list of Database Tools MCP servers. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsMcpServers API. + */ + ListDatabaseToolsMcpServersResponse listDatabaseToolsMcpServers( + ListDatabaseToolsMcpServersRequest request); + + /** + * Returns a list of Database Tools Toolset versions + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsMcpToolsetVersions API. + */ + ListDatabaseToolsMcpToolsetVersionsResponse listDatabaseToolsMcpToolsetVersions( + ListDatabaseToolsMcpToolsetVersionsRequest request); + + /** + * Returns a list of Database Tools Toolsets. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsMcpToolsets API. + */ + ListDatabaseToolsMcpToolsetsResponse listDatabaseToolsMcpToolsets( + ListDatabaseToolsMcpToolsetsRequest request); + /** * Returns a list of Database Tools private endpoints. * @@ -347,6 +685,19 @@ ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoints( ListDatabaseToolsPrivateEndpointsRequest request); + /** + * Returns a list of Database Tools SQL reports. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsSqlReports API. + */ + ListDatabaseToolsSqlReportsResponse listDatabaseToolsSqlReports( + ListDatabaseToolsSqlReportsRequest request); + /** * Returns a paginated list of errors for the specified work request. * @@ -413,6 +764,20 @@ RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdentityCrede RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLock( RemoveDatabaseToolsConnectionLockRequest request); + /** + * Removes a lock from a DatabaseToolsDatabaseApiGatewayConfig resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveDatabaseToolsDatabaseApiGatewayConfigLock API. + */ + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + removeDatabaseToolsDatabaseApiGatewayConfigLock( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request); + /** * Removes a lock from a DatabaseToolsIdentity resource. * @param request The request object containing the details to send @@ -426,6 +791,32 @@ RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLock( RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( RemoveDatabaseToolsIdentityLockRequest request); + /** + * Removes a lock from a DatabaseToolsMcpServer resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveDatabaseToolsMcpServerLock API. + */ + RemoveDatabaseToolsMcpServerLockResponse removeDatabaseToolsMcpServerLock( + RemoveDatabaseToolsMcpServerLockRequest request); + + /** + * Removes a lock from a DatabaseToolsMcpToolset resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveDatabaseToolsMcpToolsetLock API. + */ + RemoveDatabaseToolsMcpToolsetLockResponse removeDatabaseToolsMcpToolsetLock( + RemoveDatabaseToolsMcpToolsetLockRequest request); + /** * Removes a lock from a DatabaseToolsPrivateEndpoint resource. * @param request The request object containing the details to send @@ -439,6 +830,19 @@ RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivateEndpointLock( RemoveDatabaseToolsPrivateEndpointLockRequest request); + /** + * Removes a lock from a DatabaseToolsSqlReport resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveDatabaseToolsSqlReportLock API. + */ + RemoveDatabaseToolsSqlReportLockResponse removeDatabaseToolsSqlReportLock( + RemoveDatabaseToolsSqlReportLockRequest request); + /** * Updates the specified Database Tools connection. * @param request The request object containing the details to send @@ -452,6 +856,19 @@ RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivateEndpoin UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( UpdateDatabaseToolsConnectionRequest request); + /** + * Updates the specified Database Tools database API gateway config. + * @param request The request 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 UpdateDatabaseToolsDatabaseApiGatewayConfig API. + */ + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse updateDatabaseToolsDatabaseApiGatewayConfig( + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request); + /** * Updates the specified Database Tools identity. * @param request The request object containing the details to send @@ -465,6 +882,32 @@ UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( UpdateDatabaseToolsIdentityRequest request); + /** + * Updates the specified Database Tools MCP 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 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 UpdateDatabaseToolsMcpServer API. + */ + UpdateDatabaseToolsMcpServerResponse updateDatabaseToolsMcpServer( + UpdateDatabaseToolsMcpServerRequest request); + + /** + * Updates the specified Database Tools MCP Toolset. + * @param request The request 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 UpdateDatabaseToolsMcpToolset API. + */ + UpdateDatabaseToolsMcpToolsetResponse updateDatabaseToolsMcpToolset( + UpdateDatabaseToolsMcpToolsetRequest request); + /** * Updates the specified Database Tools private endpoint. * @param request The request object containing the details to send @@ -478,6 +921,19 @@ UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndpoint( UpdateDatabaseToolsPrivateEndpointRequest request); + /** + * Updates the specified Database Tools SQL Report. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation 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 UpdateDatabaseToolsSqlReport API. + */ + UpdateDatabaseToolsSqlReportResponse updateDatabaseToolsSqlReport( + UpdateDatabaseToolsSqlReportRequest request); + /** * Validates the Database Tools connection details by establishing a connection to the database. * diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsync.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsync.java index dbd8b3f4b39..0808d4ce172 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsync.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsync.java @@ -76,6 +76,24 @@ public interface DatabaseToolsAsync extends AutoCloseable { AddDatabaseToolsConnectionLockResponse> handler); + /** + * Adds a lock to a DatabaseToolsDatabaseApiGatewayConfig 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 + addDatabaseToolsDatabaseApiGatewayConfigLock( + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handler); + /** * Adds a lock to a DatabaseToolsIdentity resource. * @@ -93,6 +111,42 @@ java.util.concurrent.Future addDatabaseToo AddDatabaseToolsIdentityLockResponse> handler); + /** + * Adds a lock to a DatabaseToolsMcpServer 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 + addDatabaseToolsMcpServerLock( + AddDatabaseToolsMcpServerLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsMcpServerLockRequest, + AddDatabaseToolsMcpServerLockResponse> + handler); + + /** + * Adds a lock to a DatabaseToolsMcpToolset 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 + addDatabaseToolsMcpToolsetLock( + AddDatabaseToolsMcpToolsetLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsMcpToolsetLockRequest, + AddDatabaseToolsMcpToolsetLockResponse> + handler); + /** * Adds a lock to a DatabaseToolsPrivateEndpoint resource. * @@ -111,6 +165,43 @@ java.util.concurrent.Future addDatabaseToo AddDatabaseToolsPrivateEndpointLockResponse> handler); + /** + * Adds a lock to a DatabaseToolsSqlReport 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 + addDatabaseToolsSqlReportLock( + AddDatabaseToolsSqlReportLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsSqlReportLockRequest, + AddDatabaseToolsSqlReportLockResponse> + handler); + + /** + * Deletes Database Tools McpServer 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 + cascadingDeleteDatabaseToolsMcpServer( + CascadingDeleteDatabaseToolsMcpServerRequest request, + com.oracle.bmc.responses.AsyncHandler< + CascadingDeleteDatabaseToolsMcpServerRequest, + CascadingDeleteDatabaseToolsMcpServerResponse> + handler); + /** * Moves the specified Database Tools connection to a different compartment in the same tenancy. * For information about moving resources between compartments, see @@ -132,6 +223,27 @@ java.util.concurrent.Future addDatabaseToo ChangeDatabaseToolsConnectionCompartmentResponse> handler); + /** + * Moves the specified Database Tools database API gateway config to a different compartment in the same tenancy. + * For information about moving resources between compartments, see + * [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/DbApiGatewayConfig/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 + changeDatabaseToolsDatabaseApiGatewayConfigCompartment( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + handler); + /** * Moves the specified Database Tools identity to a different compartment in the same tenancy. * For information about moving resources between compartments, see @@ -153,6 +265,44 @@ java.util.concurrent.Future addDatabaseToo ChangeDatabaseToolsIdentityCompartmentResponse> handler); + /** + * Moves the specified Database Tools mcpserver to a different compartment in the same tenancy. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + changeDatabaseToolsMcpServerCompartment( + ChangeDatabaseToolsMcpServerCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpServerCompartmentRequest, + ChangeDatabaseToolsMcpServerCompartmentResponse> + handler); + + /** + * Moves the specified Database Tools MCP Toolset to a different compartment in the same tenancy. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + changeDatabaseToolsMcpToolsetCompartment( + ChangeDatabaseToolsMcpToolsetCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + ChangeDatabaseToolsMcpToolsetCompartmentResponse> + handler); + /** * Moves a Database Tools private endpoint into a different compartment in the same tenancy. * For information about moving resources between compartments, see @@ -174,6 +324,25 @@ java.util.concurrent.Future addDatabaseToo ChangeDatabaseToolsPrivateEndpointCompartmentResponse> handler); + /** + * Moves the specified Database Tools SQL Report to a different compartment in the same tenancy. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + changeDatabaseToolsSqlReportCompartment( + ChangeDatabaseToolsSqlReportCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsSqlReportCompartmentRequest, + ChangeDatabaseToolsSqlReportCompartmentResponse> + handler); + /** * Creates a new Database Tools connection. * @@ -193,6 +362,25 @@ java.util.concurrent.Future addDatabaseToo CreateDatabaseToolsConnectionResponse> handler); + /** + * Creates a new Database Tools database API gateway config. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + createDatabaseToolsDatabaseApiGatewayConfig( + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + handler); + /** * Creates a new Database Tools identity. * @@ -210,6 +398,43 @@ java.util.concurrent.Future createDatabaseT CreateDatabaseToolsIdentityRequest, CreateDatabaseToolsIdentityResponse> handler); + /** + * Creates a new Database Tools MCP 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 createDatabaseToolsMcpServer( + CreateDatabaseToolsMcpServerRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpServerRequest, + CreateDatabaseToolsMcpServerResponse> + handler); + + /** + * Creates a new Database Tools MCP Toolset. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + createDatabaseToolsMcpToolset( + CreateDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpToolsetRequest, + CreateDatabaseToolsMcpToolsetResponse> + handler); + /** * Creates a new Database Tools private endpoint. * @@ -229,6 +454,24 @@ java.util.concurrent.Future createDatabaseT CreateDatabaseToolsPrivateEndpointResponse> handler); + /** + * Creates a new Database Tools Sql Report. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createDatabaseToolsSqlReport( + CreateDatabaseToolsSqlReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsSqlReportRequest, + CreateDatabaseToolsSqlReportResponse> + handler); + /** * Deletes the specified Database Tools connection resource. * @@ -247,6 +490,24 @@ java.util.concurrent.Future createDatabaseT DeleteDatabaseToolsConnectionResponse> handler); + /** + * Deletes the specified Database Tools database API gateway config 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 + deleteDatabaseToolsDatabaseApiGatewayConfig( + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + handler); + /** * Deletes the specified Database Tools identity resource. * @@ -263,6 +524,41 @@ java.util.concurrent.Future deleteDatabaseT DeleteDatabaseToolsIdentityRequest, DeleteDatabaseToolsIdentityResponse> handler); + /** + * Deletes the specified Database Tools MCP server 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 deleteDatabaseToolsMcpServer( + DeleteDatabaseToolsMcpServerRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpServerRequest, + DeleteDatabaseToolsMcpServerResponse> + handler); + + /** + * Deletes the specified Database Tools MCP Toolset 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 + deleteDatabaseToolsMcpToolset( + DeleteDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpToolsetRequest, + DeleteDatabaseToolsMcpToolsetResponse> + handler); + /** * Deletes the specified Database Tools private endpoint. * @@ -281,6 +577,23 @@ java.util.concurrent.Future deleteDatabaseT DeleteDatabaseToolsPrivateEndpointResponse> handler); + /** + * Deletes the specified Database Tools SQL Report 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 deleteDatabaseToolsSqlReport( + DeleteDatabaseToolsSqlReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsSqlReportRequest, + DeleteDatabaseToolsSqlReportResponse> + handler); + /** * Gets details of the specified Database Tools connection. * @@ -297,6 +610,24 @@ java.util.concurrent.Future getDatabaseTools GetDatabaseToolsConnectionRequest, GetDatabaseToolsConnectionResponse> handler); + /** + * Gets details of the specified Database Tools database API gateway config. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + handler); + /** * Gets details for the specified Database Tools endpoint service. * @@ -331,6 +662,38 @@ java.util.concurrent.Future getDatabaseToolsId GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse> handler); + /** + * Gets details of the specified Database Tools MCP 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 getDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + handler); + + /** + * Gets details of the specified Database Tools MCP Toolset. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse> + handler); + /** * Gets details of a specified Database Tools private endpoint. * @@ -349,6 +712,22 @@ java.util.concurrent.Future getDatabaseToolsId GetDatabaseToolsPrivateEndpointResponse> handler); + /** + * Gets details of the specified Database Tools SQL report. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + handler); + /** * Gets the status of the specified work request. * @@ -382,6 +761,24 @@ java.util.concurrent.Future listDatabaseTo ListDatabaseToolsConnectionsResponse> handler); + /** + * Returns a list of Database Tools database API gateway configs. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigs( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + handler); + /** * Returns a list of Database Tools endpoint services. * @@ -417,6 +814,57 @@ java.util.concurrent.Future listDatabaseToo ListDatabaseToolsIdentitiesRequest, ListDatabaseToolsIdentitiesResponse> handler); + /** + * Returns a list of Database Tools MCP servers. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listDatabaseToolsMcpServers( + ListDatabaseToolsMcpServersRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsMcpServersRequest, ListDatabaseToolsMcpServersResponse> + handler); + + /** + * Returns a list of Database Tools Toolset versions + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDatabaseToolsMcpToolsetVersions( + ListDatabaseToolsMcpToolsetVersionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsMcpToolsetVersionsRequest, + ListDatabaseToolsMcpToolsetVersionsResponse> + handler); + + /** + * Returns a list of Database Tools Toolsets. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listDatabaseToolsMcpToolsets( + ListDatabaseToolsMcpToolsetsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse> + handler); + /** * Returns a list of Database Tools private endpoints. * @@ -436,6 +884,22 @@ java.util.concurrent.Future listDatabaseToo ListDatabaseToolsPrivateEndpointsResponse> handler); + /** + * Returns a list of Database Tools SQL reports. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listDatabaseToolsSqlReports( + ListDatabaseToolsSqlReportsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsSqlReportsRequest, ListDatabaseToolsSqlReportsResponse> + handler); + /** * Returns a paginated list of errors for the specified work request. * @@ -523,6 +987,24 @@ java.util.concurrent.Future listWorkRequests( RemoveDatabaseToolsConnectionLockResponse> handler); + /** + * Removes a lock from a DatabaseToolsDatabaseApiGatewayConfig 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 + removeDatabaseToolsDatabaseApiGatewayConfigLock( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handler); + /** * Removes a lock from a DatabaseToolsIdentity resource. * @@ -541,6 +1023,42 @@ java.util.concurrent.Future listWorkRequests( RemoveDatabaseToolsIdentityLockResponse> handler); + /** + * Removes a lock from a DatabaseToolsMcpServer 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 + removeDatabaseToolsMcpServerLock( + RemoveDatabaseToolsMcpServerLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsMcpServerLockRequest, + RemoveDatabaseToolsMcpServerLockResponse> + handler); + + /** + * Removes a lock from a DatabaseToolsMcpToolset 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 + removeDatabaseToolsMcpToolsetLock( + RemoveDatabaseToolsMcpToolsetLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsMcpToolsetLockRequest, + RemoveDatabaseToolsMcpToolsetLockResponse> + handler); + /** * Removes a lock from a DatabaseToolsPrivateEndpoint resource. * @@ -559,6 +1077,24 @@ java.util.concurrent.Future listWorkRequests( RemoveDatabaseToolsPrivateEndpointLockResponse> handler); + /** + * Removes a lock from a DatabaseToolsSqlReport 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 + removeDatabaseToolsSqlReportLock( + RemoveDatabaseToolsSqlReportLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsSqlReportLockRequest, + RemoveDatabaseToolsSqlReportLockResponse> + handler); + /** * Updates the specified Database Tools connection. * @@ -577,6 +1113,24 @@ java.util.concurrent.Future listWorkRequests( UpdateDatabaseToolsConnectionResponse> handler); + /** + * Updates the specified Database Tools database API gateway config. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfig( + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + handler); + /** * Updates the specified Database Tools identity. * @@ -593,6 +1147,41 @@ java.util.concurrent.Future updateDatabaseT UpdateDatabaseToolsIdentityRequest, UpdateDatabaseToolsIdentityResponse> handler); + /** + * Updates the specified Database Tools MCP 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 updateDatabaseToolsMcpServer( + UpdateDatabaseToolsMcpServerRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpServerRequest, + UpdateDatabaseToolsMcpServerResponse> + handler); + + /** + * Updates the specified Database Tools MCP Toolset. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + updateDatabaseToolsMcpToolset( + UpdateDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpToolsetRequest, + UpdateDatabaseToolsMcpToolsetResponse> + handler); + /** * Updates the specified Database Tools private endpoint. * @@ -611,6 +1200,23 @@ java.util.concurrent.Future updateDatabaseT UpdateDatabaseToolsPrivateEndpointResponse> handler); + /** + * Updates the specified Database Tools SQL Report. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateDatabaseToolsSqlReport( + UpdateDatabaseToolsSqlReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsSqlReportRequest, + UpdateDatabaseToolsSqlReportResponse> + handler); + /** * Validates the Database Tools connection details by establishing a connection to the database. * diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java index da1558965ca..28e90a1c85b 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java @@ -487,7 +487,7 @@ public void close() { "DatabaseTools", "AddDatabaseToolsConnectionLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/AddDatabaseToolsConnectionLock"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsConnectionLockResponse> transformer = @@ -526,6 +526,67 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + addDatabaseToolsDatabaseApiGatewayConfigLock( + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handler) { + LOG.trace("Called async addDatabaseToolsDatabaseApiGatewayConfigLock"); + final AddDatabaseToolsDatabaseApiGatewayConfigLockRequest interceptedRequest = + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "AddDatabaseToolsDatabaseApiGatewayConfigLock", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + transformer = + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse>, + java.util.concurrent.Future< + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse>> + 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< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future addDatabaseToolsIdentityLock( @@ -544,7 +605,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsIdentityLockResponse> transformer = @@ -583,40 +644,38 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - addDatabaseToolsPrivateEndpointLock( - AddDatabaseToolsPrivateEndpointLockRequest request, + public java.util.concurrent.Future + addDatabaseToolsMcpServerLock( + AddDatabaseToolsMcpServerLockRequest request, final com.oracle.bmc.responses.AsyncHandler< - AddDatabaseToolsPrivateEndpointLockRequest, - AddDatabaseToolsPrivateEndpointLockResponse> + AddDatabaseToolsMcpServerLockRequest, + AddDatabaseToolsMcpServerLockResponse> handler) { - LOG.trace("Called async addDatabaseToolsPrivateEndpointLock"); - final AddDatabaseToolsPrivateEndpointLockRequest interceptedRequest = - AddDatabaseToolsPrivateEndpointLockConverter.interceptRequest(request); + LOG.trace("Called async addDatabaseToolsMcpServerLock"); + final AddDatabaseToolsMcpServerLockRequest interceptedRequest = + AddDatabaseToolsMcpServerLockConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDatabaseToolsPrivateEndpointLockConverter.fromRequest( - client, interceptedRequest); + AddDatabaseToolsMcpServerLockConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "AddDatabaseToolsPrivateEndpointLock", + "AddDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/AddDatabaseToolsPrivateEndpointLock"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, AddDatabaseToolsPrivateEndpointLockResponse> + javax.ws.rs.core.Response, AddDatabaseToolsMcpServerLockResponse> transformer = - AddDatabaseToolsPrivateEndpointLockConverter.fromResponse( + AddDatabaseToolsMcpServerLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - AddDatabaseToolsPrivateEndpointLockRequest, - AddDatabaseToolsPrivateEndpointLockResponse> + AddDatabaseToolsMcpServerLockRequest, AddDatabaseToolsMcpServerLockResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - AddDatabaseToolsPrivateEndpointLockRequest, - AddDatabaseToolsPrivateEndpointLockResponse>, - java.util.concurrent.Future> + AddDatabaseToolsMcpServerLockRequest, + AddDatabaseToolsMcpServerLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, @@ -627,8 +686,7 @@ protected void beforeRetryAction() {} if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - AddDatabaseToolsPrivateEndpointLockRequest, - AddDatabaseToolsPrivateEndpointLockResponse>( + AddDatabaseToolsMcpServerLockRequest, AddDatabaseToolsMcpServerLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -642,54 +700,50 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - changeDatabaseToolsConnectionCompartment( - ChangeDatabaseToolsConnectionCompartmentRequest request, + public java.util.concurrent.Future + addDatabaseToolsMcpToolsetLock( + AddDatabaseToolsMcpToolsetLockRequest request, final com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsConnectionCompartmentRequest, - ChangeDatabaseToolsConnectionCompartmentResponse> + AddDatabaseToolsMcpToolsetLockRequest, + AddDatabaseToolsMcpToolsetLockResponse> handler) { - LOG.trace("Called async changeDatabaseToolsConnectionCompartment"); - final ChangeDatabaseToolsConnectionCompartmentRequest interceptedRequest = - ChangeDatabaseToolsConnectionCompartmentConverter.interceptRequest(request); + LOG.trace("Called async addDatabaseToolsMcpToolsetLock"); + final AddDatabaseToolsMcpToolsetLockRequest interceptedRequest = + AddDatabaseToolsMcpToolsetLockConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDatabaseToolsConnectionCompartmentConverter.fromRequest( - client, interceptedRequest); + AddDatabaseToolsMcpToolsetLockConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ChangeDatabaseToolsConnectionCompartment", + "AddDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, ChangeDatabaseToolsConnectionCompartmentResponse> + javax.ws.rs.core.Response, AddDatabaseToolsMcpToolsetLockResponse> transformer = - ChangeDatabaseToolsConnectionCompartmentConverter.fromResponse( + AddDatabaseToolsMcpToolsetLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsConnectionCompartmentRequest, - ChangeDatabaseToolsConnectionCompartmentResponse> + AddDatabaseToolsMcpToolsetLockRequest, + AddDatabaseToolsMcpToolsetLockResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsConnectionCompartmentRequest, - ChangeDatabaseToolsConnectionCompartmentResponse>, - java.util.concurrent.Future< - ChangeDatabaseToolsConnectionCompartmentResponse>> + AddDatabaseToolsMcpToolsetLockRequest, + AddDatabaseToolsMcpToolsetLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getChangeDatabaseToolsConnectionCompartmentDetails(), + interceptedRequest.getAddResourceLockDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDatabaseToolsConnectionCompartmentRequest, - ChangeDatabaseToolsConnectionCompartmentResponse>( + AddDatabaseToolsMcpToolsetLockRequest, AddDatabaseToolsMcpToolsetLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -703,53 +757,52 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - changeDatabaseToolsIdentityCompartment( - ChangeDatabaseToolsIdentityCompartmentRequest request, + public java.util.concurrent.Future + addDatabaseToolsPrivateEndpointLock( + AddDatabaseToolsPrivateEndpointLockRequest request, final com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsIdentityCompartmentRequest, - ChangeDatabaseToolsIdentityCompartmentResponse> + AddDatabaseToolsPrivateEndpointLockRequest, + AddDatabaseToolsPrivateEndpointLockResponse> handler) { - LOG.trace("Called async changeDatabaseToolsIdentityCompartment"); - final ChangeDatabaseToolsIdentityCompartmentRequest interceptedRequest = - ChangeDatabaseToolsIdentityCompartmentConverter.interceptRequest(request); + LOG.trace("Called async addDatabaseToolsPrivateEndpointLock"); + final AddDatabaseToolsPrivateEndpointLockRequest interceptedRequest = + AddDatabaseToolsPrivateEndpointLockConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDatabaseToolsIdentityCompartmentConverter.fromRequest( + AddDatabaseToolsPrivateEndpointLockConverter.fromRequest( client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ChangeDatabaseToolsIdentityCompartment", + "AddDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, ChangeDatabaseToolsIdentityCompartmentResponse> + javax.ws.rs.core.Response, AddDatabaseToolsPrivateEndpointLockResponse> transformer = - ChangeDatabaseToolsIdentityCompartmentConverter.fromResponse( + AddDatabaseToolsPrivateEndpointLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsIdentityCompartmentRequest, - ChangeDatabaseToolsIdentityCompartmentResponse> + AddDatabaseToolsPrivateEndpointLockRequest, + AddDatabaseToolsPrivateEndpointLockResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsIdentityCompartmentRequest, - ChangeDatabaseToolsIdentityCompartmentResponse>, - java.util.concurrent.Future> + AddDatabaseToolsPrivateEndpointLockRequest, + AddDatabaseToolsPrivateEndpointLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getChangeDatabaseToolsIdentityCompartmentDetails(), + interceptedRequest.getAddResourceLockDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDatabaseToolsIdentityCompartmentRequest, - ChangeDatabaseToolsIdentityCompartmentResponse>( + AddDatabaseToolsPrivateEndpointLockRequest, + AddDatabaseToolsPrivateEndpointLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -763,55 +816,49 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - changeDatabaseToolsPrivateEndpointCompartment( - ChangeDatabaseToolsPrivateEndpointCompartmentRequest request, + public java.util.concurrent.Future + addDatabaseToolsSqlReportLock( + AddDatabaseToolsSqlReportLockRequest request, final com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsPrivateEndpointCompartmentRequest, - ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + AddDatabaseToolsSqlReportLockRequest, + AddDatabaseToolsSqlReportLockResponse> handler) { - LOG.trace("Called async changeDatabaseToolsPrivateEndpointCompartment"); - final ChangeDatabaseToolsPrivateEndpointCompartmentRequest interceptedRequest = - ChangeDatabaseToolsPrivateEndpointCompartmentConverter.interceptRequest(request); + LOG.trace("Called async addDatabaseToolsSqlReportLock"); + final AddDatabaseToolsSqlReportLockRequest interceptedRequest = + AddDatabaseToolsSqlReportLockConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromRequest( - client, interceptedRequest); + AddDatabaseToolsSqlReportLockConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ChangeDatabaseToolsPrivateEndpointCompartment", + "AddDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartment"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + javax.ws.rs.core.Response, AddDatabaseToolsSqlReportLockResponse> transformer = - ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromResponse( + AddDatabaseToolsSqlReportLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsPrivateEndpointCompartmentRequest, - ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + AddDatabaseToolsSqlReportLockRequest, AddDatabaseToolsSqlReportLockResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ChangeDatabaseToolsPrivateEndpointCompartmentRequest, - ChangeDatabaseToolsPrivateEndpointCompartmentResponse>, - java.util.concurrent.Future< - ChangeDatabaseToolsPrivateEndpointCompartmentResponse>> + AddDatabaseToolsSqlReportLockRequest, + AddDatabaseToolsSqlReportLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getChangeDatabaseToolsPrivateEndpointCompartmentDetails(), + interceptedRequest.getAddResourceLockDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDatabaseToolsPrivateEndpointCompartmentRequest, - ChangeDatabaseToolsPrivateEndpointCompartmentResponse>( + AddDatabaseToolsSqlReportLockRequest, AddDatabaseToolsSqlReportLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -825,50 +872,47 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - createDatabaseToolsConnection( - CreateDatabaseToolsConnectionRequest request, + public java.util.concurrent.Future + cascadingDeleteDatabaseToolsMcpServer( + CascadingDeleteDatabaseToolsMcpServerRequest request, final com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsConnectionRequest, - CreateDatabaseToolsConnectionResponse> + CascadingDeleteDatabaseToolsMcpServerRequest, + CascadingDeleteDatabaseToolsMcpServerResponse> handler) { - LOG.trace("Called async createDatabaseToolsConnection"); - final CreateDatabaseToolsConnectionRequest interceptedRequest = - CreateDatabaseToolsConnectionConverter.interceptRequest(request); + LOG.trace("Called async cascadingDeleteDatabaseToolsMcpServer"); + final CascadingDeleteDatabaseToolsMcpServerRequest interceptedRequest = + CascadingDeleteDatabaseToolsMcpServerConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + CascadingDeleteDatabaseToolsMcpServerConverter.fromRequest( + client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "CreateDatabaseToolsConnection", + "CascadingDeleteDatabaseToolsMcpServer", ib.getRequestUri().toString(), ""); final java.util.function.Function< - javax.ws.rs.core.Response, CreateDatabaseToolsConnectionResponse> + javax.ws.rs.core.Response, CascadingDeleteDatabaseToolsMcpServerResponse> transformer = - CreateDatabaseToolsConnectionConverter.fromResponse( + CascadingDeleteDatabaseToolsMcpServerConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsConnectionRequest, CreateDatabaseToolsConnectionResponse> + CascadingDeleteDatabaseToolsMcpServerRequest, + CascadingDeleteDatabaseToolsMcpServerResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsConnectionRequest, - CreateDatabaseToolsConnectionResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getCreateDatabaseToolsConnectionDetails(), - ib, - transformer); + CascadingDeleteDatabaseToolsMcpServerRequest, + CascadingDeleteDatabaseToolsMcpServerResponse>, + 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< - CreateDatabaseToolsConnectionRequest, CreateDatabaseToolsConnectionResponse>( + CascadingDeleteDatabaseToolsMcpServerRequest, + CascadingDeleteDatabaseToolsMcpServerResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -882,50 +926,54 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - createDatabaseToolsIdentity( - CreateDatabaseToolsIdentityRequest request, + public java.util.concurrent.Future + changeDatabaseToolsConnectionCompartment( + ChangeDatabaseToolsConnectionCompartmentRequest request, final com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsIdentityRequest, - CreateDatabaseToolsIdentityResponse> + ChangeDatabaseToolsConnectionCompartmentRequest, + ChangeDatabaseToolsConnectionCompartmentResponse> handler) { - LOG.trace("Called async createDatabaseToolsIdentity"); - final CreateDatabaseToolsIdentityRequest interceptedRequest = - CreateDatabaseToolsIdentityConverter.interceptRequest(request); + LOG.trace("Called async changeDatabaseToolsConnectionCompartment"); + final ChangeDatabaseToolsConnectionCompartmentRequest interceptedRequest = + ChangeDatabaseToolsConnectionCompartmentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + ChangeDatabaseToolsConnectionCompartmentConverter.fromRequest( + client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "CreateDatabaseToolsIdentity", + "ChangeDatabaseToolsConnectionCompartment", ib.getRequestUri().toString(), ""); final java.util.function.Function< - javax.ws.rs.core.Response, CreateDatabaseToolsIdentityResponse> + javax.ws.rs.core.Response, ChangeDatabaseToolsConnectionCompartmentResponse> transformer = - CreateDatabaseToolsIdentityConverter.fromResponse( + ChangeDatabaseToolsConnectionCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsIdentityRequest, CreateDatabaseToolsIdentityResponse> + ChangeDatabaseToolsConnectionCompartmentRequest, + ChangeDatabaseToolsConnectionCompartmentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsIdentityRequest, - CreateDatabaseToolsIdentityResponse>, - java.util.concurrent.Future> + ChangeDatabaseToolsConnectionCompartmentRequest, + ChangeDatabaseToolsConnectionCompartmentResponse>, + java.util.concurrent.Future< + ChangeDatabaseToolsConnectionCompartmentResponse>> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest.getCreateDatabaseToolsIdentityDetails(), + interceptedRequest + .getChangeDatabaseToolsConnectionCompartmentDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDatabaseToolsIdentityRequest, CreateDatabaseToolsIdentityResponse>( + ChangeDatabaseToolsConnectionCompartmentRequest, + ChangeDatabaseToolsConnectionCompartmentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -939,52 +987,57 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - createDatabaseToolsPrivateEndpoint( - CreateDatabaseToolsPrivateEndpointRequest request, + public java.util.concurrent.Future< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + changeDatabaseToolsDatabaseApiGatewayConfigCompartment( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request, final com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsPrivateEndpointRequest, - CreateDatabaseToolsPrivateEndpointResponse> + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> handler) { - LOG.trace("Called async createDatabaseToolsPrivateEndpoint"); - final CreateDatabaseToolsPrivateEndpointRequest interceptedRequest = - CreateDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + LOG.trace("Called async changeDatabaseToolsDatabaseApiGatewayConfigCompartment"); + final ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest interceptedRequest = + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.interceptRequest( + request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.fromRequest( + client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "CreateDatabaseToolsPrivateEndpoint", + "ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment", ib.getRequestUri().toString(), ""); final java.util.function.Function< - javax.ws.rs.core.Response, CreateDatabaseToolsPrivateEndpointResponse> + javax.ws.rs.core.Response, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> transformer = - CreateDatabaseToolsPrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter + .fromResponse(java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsPrivateEndpointRequest, - CreateDatabaseToolsPrivateEndpointResponse> + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsPrivateEndpointRequest, - CreateDatabaseToolsPrivateEndpointResponse>, - java.util.concurrent.Future> + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse>, + java.util.concurrent.Future< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse>> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest.getCreateDatabaseToolsPrivateEndpointDetails(), + interceptedRequest + .getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDatabaseToolsPrivateEndpointRequest, - CreateDatabaseToolsPrivateEndpointResponse>( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -998,44 +1051,1376 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - deleteDatabaseToolsConnection( - DeleteDatabaseToolsConnectionRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsConnectionRequest, + public java.util.concurrent.Future + changeDatabaseToolsIdentityCompartment( + ChangeDatabaseToolsIdentityCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsIdentityCompartmentRequest, + ChangeDatabaseToolsIdentityCompartmentResponse> + handler) { + LOG.trace("Called async changeDatabaseToolsIdentityCompartment"); + final ChangeDatabaseToolsIdentityCompartmentRequest interceptedRequest = + ChangeDatabaseToolsIdentityCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDatabaseToolsIdentityCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "ChangeDatabaseToolsIdentityCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsIdentityCompartmentResponse> + transformer = + ChangeDatabaseToolsIdentityCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsIdentityCompartmentRequest, + ChangeDatabaseToolsIdentityCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsIdentityCompartmentRequest, + ChangeDatabaseToolsIdentityCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getChangeDatabaseToolsIdentityCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDatabaseToolsIdentityCompartmentRequest, + ChangeDatabaseToolsIdentityCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeDatabaseToolsMcpServerCompartment( + ChangeDatabaseToolsMcpServerCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpServerCompartmentRequest, + ChangeDatabaseToolsMcpServerCompartmentResponse> + handler) { + LOG.trace("Called async changeDatabaseToolsMcpServerCompartment"); + final ChangeDatabaseToolsMcpServerCompartmentRequest interceptedRequest = + ChangeDatabaseToolsMcpServerCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDatabaseToolsMcpServerCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "ChangeDatabaseToolsMcpServerCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsMcpServerCompartmentResponse> + transformer = + ChangeDatabaseToolsMcpServerCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpServerCompartmentRequest, + ChangeDatabaseToolsMcpServerCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpServerCompartmentRequest, + ChangeDatabaseToolsMcpServerCompartmentResponse>, + java.util.concurrent.Future< + ChangeDatabaseToolsMcpServerCompartmentResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getChangeDatabaseToolsMcpServerCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDatabaseToolsMcpServerCompartmentRequest, + ChangeDatabaseToolsMcpServerCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeDatabaseToolsMcpToolsetCompartment( + ChangeDatabaseToolsMcpToolsetCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + ChangeDatabaseToolsMcpToolsetCompartmentResponse> + handler) { + LOG.trace("Called async changeDatabaseToolsMcpToolsetCompartment"); + final ChangeDatabaseToolsMcpToolsetCompartmentRequest interceptedRequest = + ChangeDatabaseToolsMcpToolsetCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDatabaseToolsMcpToolsetCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "ChangeDatabaseToolsMcpToolsetCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsMcpToolsetCompartmentResponse> + transformer = + ChangeDatabaseToolsMcpToolsetCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + ChangeDatabaseToolsMcpToolsetCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + ChangeDatabaseToolsMcpToolsetCompartmentResponse>, + java.util.concurrent.Future< + ChangeDatabaseToolsMcpToolsetCompartmentResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getChangeDatabaseToolsMcpToolsetCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + ChangeDatabaseToolsMcpToolsetCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeDatabaseToolsPrivateEndpointCompartment( + ChangeDatabaseToolsPrivateEndpointCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsPrivateEndpointCompartmentRequest, + ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + handler) { + LOG.trace("Called async changeDatabaseToolsPrivateEndpointCompartment"); + final ChangeDatabaseToolsPrivateEndpointCompartmentRequest interceptedRequest = + ChangeDatabaseToolsPrivateEndpointCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "ChangeDatabaseToolsPrivateEndpointCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + transformer = + ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsPrivateEndpointCompartmentRequest, + ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsPrivateEndpointCompartmentRequest, + ChangeDatabaseToolsPrivateEndpointCompartmentResponse>, + java.util.concurrent.Future< + ChangeDatabaseToolsPrivateEndpointCompartmentResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getChangeDatabaseToolsPrivateEndpointCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDatabaseToolsPrivateEndpointCompartmentRequest, + ChangeDatabaseToolsPrivateEndpointCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeDatabaseToolsSqlReportCompartment( + ChangeDatabaseToolsSqlReportCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsSqlReportCompartmentRequest, + ChangeDatabaseToolsSqlReportCompartmentResponse> + handler) { + LOG.trace("Called async changeDatabaseToolsSqlReportCompartment"); + final ChangeDatabaseToolsSqlReportCompartmentRequest interceptedRequest = + ChangeDatabaseToolsSqlReportCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDatabaseToolsSqlReportCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "ChangeDatabaseToolsSqlReportCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsSqlReportCompartmentResponse> + transformer = + ChangeDatabaseToolsSqlReportCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsSqlReportCompartmentRequest, + ChangeDatabaseToolsSqlReportCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsSqlReportCompartmentRequest, + ChangeDatabaseToolsSqlReportCompartmentResponse>, + java.util.concurrent.Future< + ChangeDatabaseToolsSqlReportCompartmentResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getChangeDatabaseToolsSqlReportCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDatabaseToolsSqlReportCompartmentRequest, + ChangeDatabaseToolsSqlReportCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsConnection( + CreateDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsConnectionRequest, + CreateDatabaseToolsConnectionResponse> + handler) { + LOG.trace("Called async createDatabaseToolsConnection"); + final CreateDatabaseToolsConnectionRequest interceptedRequest = + CreateDatabaseToolsConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsConnectionResponse> + transformer = + CreateDatabaseToolsConnectionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsConnectionRequest, CreateDatabaseToolsConnectionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsConnectionRequest, + CreateDatabaseToolsConnectionResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDatabaseToolsConnectionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsConnectionRequest, CreateDatabaseToolsConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsDatabaseApiGatewayConfig( + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + LOG.trace("Called async createDatabaseToolsDatabaseApiGatewayConfig"); + final CreateDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse>, + java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getCreateDatabaseToolsDatabaseApiGatewayConfigDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsIdentity( + CreateDatabaseToolsIdentityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsIdentityRequest, + CreateDatabaseToolsIdentityResponse> + handler) { + LOG.trace("Called async createDatabaseToolsIdentity"); + final CreateDatabaseToolsIdentityRequest interceptedRequest = + CreateDatabaseToolsIdentityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsIdentity", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsIdentityResponse> + transformer = + CreateDatabaseToolsIdentityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsIdentityRequest, CreateDatabaseToolsIdentityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsIdentityRequest, + CreateDatabaseToolsIdentityResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDatabaseToolsIdentityDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsIdentityRequest, CreateDatabaseToolsIdentityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsMcpServer( + CreateDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpServerRequest, + CreateDatabaseToolsMcpServerResponse> + handler) { + LOG.trace("Called async createDatabaseToolsMcpServer"); + final CreateDatabaseToolsMcpServerRequest interceptedRequest = + CreateDatabaseToolsMcpServerConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsMcpServerConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsMcpServerResponse> + transformer = + CreateDatabaseToolsMcpServerConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpServerRequest, CreateDatabaseToolsMcpServerResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpServerRequest, + CreateDatabaseToolsMcpServerResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDatabaseToolsMcpServerDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsMcpServerRequest, CreateDatabaseToolsMcpServerResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsMcpToolset( + CreateDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpToolsetRequest, + CreateDatabaseToolsMcpToolsetResponse> + handler) { + LOG.trace("Called async createDatabaseToolsMcpToolset"); + final CreateDatabaseToolsMcpToolsetRequest interceptedRequest = + CreateDatabaseToolsMcpToolsetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsMcpToolsetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsMcpToolset", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsMcpToolsetResponse> + transformer = + CreateDatabaseToolsMcpToolsetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpToolsetRequest, CreateDatabaseToolsMcpToolsetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsMcpToolsetRequest, + CreateDatabaseToolsMcpToolsetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDatabaseToolsMcpToolsetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsMcpToolsetRequest, CreateDatabaseToolsMcpToolsetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsPrivateEndpoint( + CreateDatabaseToolsPrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsPrivateEndpointRequest, + CreateDatabaseToolsPrivateEndpointResponse> + handler) { + LOG.trace("Called async createDatabaseToolsPrivateEndpoint"); + final CreateDatabaseToolsPrivateEndpointRequest interceptedRequest = + CreateDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsPrivateEndpoint", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsPrivateEndpointResponse> + transformer = + CreateDatabaseToolsPrivateEndpointConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsPrivateEndpointRequest, + CreateDatabaseToolsPrivateEndpointResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsPrivateEndpointRequest, + CreateDatabaseToolsPrivateEndpointResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDatabaseToolsPrivateEndpointDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsPrivateEndpointRequest, + CreateDatabaseToolsPrivateEndpointResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsSqlReport( + CreateDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsSqlReportRequest, + CreateDatabaseToolsSqlReportResponse> + handler) { + LOG.trace("Called async createDatabaseToolsSqlReport"); + final CreateDatabaseToolsSqlReportRequest interceptedRequest = + CreateDatabaseToolsSqlReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsSqlReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "CreateDatabaseToolsSqlReport", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsSqlReportResponse> + transformer = + CreateDatabaseToolsSqlReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsSqlReportRequest, CreateDatabaseToolsSqlReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsSqlReportRequest, + CreateDatabaseToolsSqlReportResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDatabaseToolsSqlReportDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsSqlReportRequest, CreateDatabaseToolsSqlReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsConnection( + DeleteDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsConnectionRequest, DeleteDatabaseToolsConnectionResponse> handler) { - LOG.trace("Called async deleteDatabaseToolsConnection"); - final DeleteDatabaseToolsConnectionRequest interceptedRequest = - DeleteDatabaseToolsConnectionConverter.interceptRequest(request); + LOG.trace("Called async deleteDatabaseToolsConnection"); + final DeleteDatabaseToolsConnectionRequest interceptedRequest = + DeleteDatabaseToolsConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsConnectionResponse> + transformer = + DeleteDatabaseToolsConnectionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsConnectionRequest, DeleteDatabaseToolsConnectionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsConnectionRequest, + DeleteDatabaseToolsConnectionResponse>, + 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< + DeleteDatabaseToolsConnectionRequest, DeleteDatabaseToolsConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsDatabaseApiGatewayConfig( + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsDatabaseApiGatewayConfig"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse>, + java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse>> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsIdentity( + DeleteDatabaseToolsIdentityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsIdentityRequest, + DeleteDatabaseToolsIdentityResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsIdentity"); + final DeleteDatabaseToolsIdentityRequest interceptedRequest = + DeleteDatabaseToolsIdentityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsIdentity", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsIdentityResponse> + transformer = + DeleteDatabaseToolsIdentityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsIdentityRequest, DeleteDatabaseToolsIdentityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsIdentityRequest, + DeleteDatabaseToolsIdentityResponse>, + 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< + DeleteDatabaseToolsIdentityRequest, DeleteDatabaseToolsIdentityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsMcpServer( + DeleteDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpServerRequest, + DeleteDatabaseToolsMcpServerResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsMcpServer"); + final DeleteDatabaseToolsMcpServerRequest interceptedRequest = + DeleteDatabaseToolsMcpServerConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsMcpServerConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsMcpServerResponse> + transformer = + DeleteDatabaseToolsMcpServerConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpServerRequest, DeleteDatabaseToolsMcpServerResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpServerRequest, + DeleteDatabaseToolsMcpServerResponse>, + 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< + DeleteDatabaseToolsMcpServerRequest, DeleteDatabaseToolsMcpServerResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsMcpToolset( + DeleteDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpToolsetRequest, + DeleteDatabaseToolsMcpToolsetResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsMcpToolset"); + final DeleteDatabaseToolsMcpToolsetRequest interceptedRequest = + DeleteDatabaseToolsMcpToolsetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsMcpToolsetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsMcpToolset", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsMcpToolsetResponse> + transformer = + DeleteDatabaseToolsMcpToolsetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpToolsetRequest, DeleteDatabaseToolsMcpToolsetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpToolsetRequest, + DeleteDatabaseToolsMcpToolsetResponse>, + 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< + DeleteDatabaseToolsMcpToolsetRequest, DeleteDatabaseToolsMcpToolsetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsPrivateEndpoint( + DeleteDatabaseToolsPrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsPrivateEndpointRequest, + DeleteDatabaseToolsPrivateEndpointResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsPrivateEndpoint"); + final DeleteDatabaseToolsPrivateEndpointRequest interceptedRequest = + DeleteDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsPrivateEndpoint", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsPrivateEndpointResponse> + transformer = + DeleteDatabaseToolsPrivateEndpointConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsPrivateEndpointRequest, + DeleteDatabaseToolsPrivateEndpointResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsPrivateEndpointRequest, + DeleteDatabaseToolsPrivateEndpointResponse>, + 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< + DeleteDatabaseToolsPrivateEndpointRequest, + DeleteDatabaseToolsPrivateEndpointResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsSqlReport( + DeleteDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsSqlReportRequest, + DeleteDatabaseToolsSqlReportResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsSqlReport"); + final DeleteDatabaseToolsSqlReportRequest interceptedRequest = + DeleteDatabaseToolsSqlReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsSqlReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "DeleteDatabaseToolsSqlReport", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsSqlReportResponse> + transformer = + DeleteDatabaseToolsSqlReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsSqlReportRequest, DeleteDatabaseToolsSqlReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsSqlReportRequest, + DeleteDatabaseToolsSqlReportResponse>, + 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< + DeleteDatabaseToolsSqlReportRequest, DeleteDatabaseToolsSqlReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsConnection( + GetDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsConnectionRequest, + GetDatabaseToolsConnectionResponse> + handler) { + LOG.trace("Called async getDatabaseToolsConnection"); + final GetDatabaseToolsConnectionRequest interceptedRequest = + GetDatabaseToolsConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "GetDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsConnectionResponse> + transformer = + GetDatabaseToolsConnectionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsConnectionRequest, GetDatabaseToolsConnectionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsConnectionRequest, + GetDatabaseToolsConnectionResponse>, + 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< + GetDatabaseToolsConnectionRequest, GetDatabaseToolsConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + LOG.trace("Called async getDatabaseToolsDatabaseApiGatewayConfig"); + final GetDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "GetDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse>, + java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsEndpointService( + GetDatabaseToolsEndpointServiceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsEndpointServiceRequest, + GetDatabaseToolsEndpointServiceResponse> + handler) { + LOG.trace("Called async getDatabaseToolsEndpointService"); + final GetDatabaseToolsEndpointServiceRequest interceptedRequest = + GetDatabaseToolsEndpointServiceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsEndpointServiceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "GetDatabaseToolsEndpointService", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsEndpointServiceResponse> + transformer = + GetDatabaseToolsEndpointServiceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsEndpointServiceRequest, + GetDatabaseToolsEndpointServiceResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsEndpointServiceRequest, + GetDatabaseToolsEndpointServiceResponse>, + 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< + GetDatabaseToolsEndpointServiceRequest, + GetDatabaseToolsEndpointServiceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getDatabaseToolsIdentity( + GetDatabaseToolsIdentityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse> + handler) { + LOG.trace("Called async getDatabaseToolsIdentity"); + final GetDatabaseToolsIdentityRequest interceptedRequest = + GetDatabaseToolsIdentityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "GetDatabaseToolsIdentity", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsIdentityResponse> + transformer = + GetDatabaseToolsIdentityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse>, + 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< + GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + handler) { + LOG.trace("Called async getDatabaseToolsMcpServer"); + final GetDatabaseToolsMcpServerRequest interceptedRequest = + GetDatabaseToolsMcpServerConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsMcpServerConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "GetDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsMcpServerResponse> + transformer = + GetDatabaseToolsMcpServerConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpServerRequest, + GetDatabaseToolsMcpServerResponse>, + 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< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpToolsetRequest, + GetDatabaseToolsMcpToolsetResponse> + handler) { + LOG.trace("Called async getDatabaseToolsMcpToolset"); + final GetDatabaseToolsMcpToolsetRequest interceptedRequest = + GetDatabaseToolsMcpToolsetConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + GetDatabaseToolsMcpToolsetConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "DeleteDatabaseToolsConnection", + "GetDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDatabaseToolsConnectionResponse> + javax.ws.rs.core.Response, GetDatabaseToolsMcpToolsetResponse> transformer = - DeleteDatabaseToolsConnectionConverter.fromResponse( + GetDatabaseToolsMcpToolsetConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsConnectionRequest, DeleteDatabaseToolsConnectionResponse> + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsConnectionRequest, - DeleteDatabaseToolsConnectionResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + GetDatabaseToolsMcpToolsetRequest, + GetDatabaseToolsMcpToolsetResponse>, + 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< - DeleteDatabaseToolsConnectionRequest, DeleteDatabaseToolsConnectionResponse>( + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1049,44 +2434,46 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - deleteDatabaseToolsIdentity( - DeleteDatabaseToolsIdentityRequest request, + public java.util.concurrent.Future + getDatabaseToolsPrivateEndpoint( + GetDatabaseToolsPrivateEndpointRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsIdentityRequest, - DeleteDatabaseToolsIdentityResponse> + GetDatabaseToolsPrivateEndpointRequest, + GetDatabaseToolsPrivateEndpointResponse> handler) { - LOG.trace("Called async deleteDatabaseToolsIdentity"); - final DeleteDatabaseToolsIdentityRequest interceptedRequest = - DeleteDatabaseToolsIdentityConverter.interceptRequest(request); + LOG.trace("Called async getDatabaseToolsPrivateEndpoint"); + final GetDatabaseToolsPrivateEndpointRequest interceptedRequest = + GetDatabaseToolsPrivateEndpointConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + GetDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "DeleteDatabaseToolsIdentity", + "GetDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDatabaseToolsIdentityResponse> + javax.ws.rs.core.Response, GetDatabaseToolsPrivateEndpointResponse> transformer = - DeleteDatabaseToolsIdentityConverter.fromResponse( + GetDatabaseToolsPrivateEndpointConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsIdentityRequest, DeleteDatabaseToolsIdentityResponse> + GetDatabaseToolsPrivateEndpointRequest, + GetDatabaseToolsPrivateEndpointResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsIdentityRequest, - DeleteDatabaseToolsIdentityResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + GetDatabaseToolsPrivateEndpointRequest, + GetDatabaseToolsPrivateEndpointResponse>, + 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< - DeleteDatabaseToolsIdentityRequest, DeleteDatabaseToolsIdentityResponse>( + GetDatabaseToolsPrivateEndpointRequest, + GetDatabaseToolsPrivateEndpointResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1100,46 +2487,42 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - deleteDatabaseToolsPrivateEndpoint( - DeleteDatabaseToolsPrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsPrivateEndpointRequest, - DeleteDatabaseToolsPrivateEndpointResponse> - handler) { - LOG.trace("Called async deleteDatabaseToolsPrivateEndpoint"); - final DeleteDatabaseToolsPrivateEndpointRequest interceptedRequest = - DeleteDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + public java.util.concurrent.Future getDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + handler) { + LOG.trace("Called async getDatabaseToolsSqlReport"); + final GetDatabaseToolsSqlReportRequest interceptedRequest = + GetDatabaseToolsSqlReportConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + GetDatabaseToolsSqlReportConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "DeleteDatabaseToolsPrivateEndpoint", + "GetDatabaseToolsSqlReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpoint"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDatabaseToolsPrivateEndpointResponse> + javax.ws.rs.core.Response, GetDatabaseToolsSqlReportResponse> transformer = - DeleteDatabaseToolsPrivateEndpointConverter.fromResponse( + GetDatabaseToolsSqlReportConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsPrivateEndpointRequest, - DeleteDatabaseToolsPrivateEndpointResponse> + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsPrivateEndpointRequest, - DeleteDatabaseToolsPrivateEndpointResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + GetDatabaseToolsSqlReportRequest, + GetDatabaseToolsSqlReportResponse>, + 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< - DeleteDatabaseToolsPrivateEndpointRequest, - DeleteDatabaseToolsPrivateEndpointResponse>( + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1153,44 +2536,35 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - getDatabaseToolsConnection( - GetDatabaseToolsConnectionRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsConnectionRequest, - GetDatabaseToolsConnectionResponse> - handler) { - LOG.trace("Called async getDatabaseToolsConnection"); - final GetDatabaseToolsConnectionRequest interceptedRequest = - GetDatabaseToolsConnectionConverter.interceptRequest(request); + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + LOG.trace("Called async getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", - "GetDatabaseToolsConnection", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDatabaseToolsConnectionResponse> + "DatabaseTools", "GetWorkRequest", ib.getRequestUri().toString(), ""); + final java.util.function.Function transformer = - GetDatabaseToolsConnectionConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsConnectionRequest, GetDatabaseToolsConnectionResponse> + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsConnectionRequest, - GetDatabaseToolsConnectionResponse>, - java.util.concurrent.Future> + GetWorkRequestRequest, GetWorkRequestResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDatabaseToolsConnectionRequest, GetDatabaseToolsConnectionResponse>( + GetWorkRequestRequest, GetWorkRequestResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1204,46 +2578,44 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - getDatabaseToolsEndpointService( - GetDatabaseToolsEndpointServiceRequest request, + public java.util.concurrent.Future + listDatabaseToolsConnections( + ListDatabaseToolsConnectionsRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsEndpointServiceRequest, - GetDatabaseToolsEndpointServiceResponse> + ListDatabaseToolsConnectionsRequest, + ListDatabaseToolsConnectionsResponse> handler) { - LOG.trace("Called async getDatabaseToolsEndpointService"); - final GetDatabaseToolsEndpointServiceRequest interceptedRequest = - GetDatabaseToolsEndpointServiceConverter.interceptRequest(request); + LOG.trace("Called async listDatabaseToolsConnections"); + final ListDatabaseToolsConnectionsRequest interceptedRequest = + ListDatabaseToolsConnectionsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsEndpointServiceConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsConnectionsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsEndpointService", + "ListDatabaseToolsConnections", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointService"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, GetDatabaseToolsEndpointServiceResponse> + javax.ws.rs.core.Response, ListDatabaseToolsConnectionsResponse> transformer = - GetDatabaseToolsEndpointServiceConverter.fromResponse( + ListDatabaseToolsConnectionsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsEndpointServiceRequest, - GetDatabaseToolsEndpointServiceResponse> + ListDatabaseToolsConnectionsRequest, ListDatabaseToolsConnectionsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsEndpointServiceRequest, - GetDatabaseToolsEndpointServiceResponse>, - java.util.concurrent.Future> + ListDatabaseToolsConnectionsRequest, + ListDatabaseToolsConnectionsResponse>, + 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< - GetDatabaseToolsEndpointServiceRequest, - GetDatabaseToolsEndpointServiceResponse>( + ListDatabaseToolsConnectionsRequest, ListDatabaseToolsConnectionsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1257,41 +2629,49 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getDatabaseToolsIdentity( - GetDatabaseToolsIdentityRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse> - handler) { - LOG.trace("Called async getDatabaseToolsIdentity"); - final GetDatabaseToolsIdentityRequest interceptedRequest = - GetDatabaseToolsIdentityConverter.interceptRequest(request); + public java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigs( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + handler) { + LOG.trace("Called async listDatabaseToolsDatabaseApiGatewayConfigs"); + final ListDatabaseToolsDatabaseApiGatewayConfigsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.fromRequest( + client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsIdentity", + "ListDatabaseToolsDatabaseApiGatewayConfigs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, GetDatabaseToolsIdentityResponse> + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> transformer = - GetDatabaseToolsIdentityConverter.fromResponse( + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse> + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse>, - java.util.concurrent.Future> + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse>, + java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigsResponse>> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDatabaseToolsIdentityRequest, GetDatabaseToolsIdentityResponse>( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1305,46 +2685,46 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - getDatabaseToolsPrivateEndpoint( - GetDatabaseToolsPrivateEndpointRequest request, + public java.util.concurrent.Future + listDatabaseToolsEndpointServices( + ListDatabaseToolsEndpointServicesRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsPrivateEndpointRequest, - GetDatabaseToolsPrivateEndpointResponse> + ListDatabaseToolsEndpointServicesRequest, + ListDatabaseToolsEndpointServicesResponse> handler) { - LOG.trace("Called async getDatabaseToolsPrivateEndpoint"); - final GetDatabaseToolsPrivateEndpointRequest interceptedRequest = - GetDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + LOG.trace("Called async listDatabaseToolsEndpointServices"); + final ListDatabaseToolsEndpointServicesRequest interceptedRequest = + ListDatabaseToolsEndpointServicesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsEndpointServicesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsPrivateEndpoint", + "ListDatabaseToolsEndpointServices", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpoint"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, GetDatabaseToolsPrivateEndpointResponse> + javax.ws.rs.core.Response, ListDatabaseToolsEndpointServicesResponse> transformer = - GetDatabaseToolsPrivateEndpointConverter.fromResponse( + ListDatabaseToolsEndpointServicesConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsPrivateEndpointRequest, - GetDatabaseToolsPrivateEndpointResponse> + ListDatabaseToolsEndpointServicesRequest, + ListDatabaseToolsEndpointServicesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetDatabaseToolsPrivateEndpointRequest, - GetDatabaseToolsPrivateEndpointResponse>, - java.util.concurrent.Future> + ListDatabaseToolsEndpointServicesRequest, + ListDatabaseToolsEndpointServicesResponse>, + 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< - GetDatabaseToolsPrivateEndpointRequest, - GetDatabaseToolsPrivateEndpointResponse>( + ListDatabaseToolsEndpointServicesRequest, + ListDatabaseToolsEndpointServicesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1358,38 +2738,44 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getWorkRequest( - GetWorkRequestRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetWorkRequestRequest, GetWorkRequestResponse> - handler) { - LOG.trace("Called async getWorkRequest"); - final GetWorkRequestRequest interceptedRequest = - GetWorkRequestConverter.interceptRequest(request); + public java.util.concurrent.Future + listDatabaseToolsIdentities( + ListDatabaseToolsIdentitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsIdentitiesRequest, + ListDatabaseToolsIdentitiesResponse> + handler) { + LOG.trace("Called async listDatabaseToolsIdentities"); + final ListDatabaseToolsIdentitiesRequest interceptedRequest = + ListDatabaseToolsIdentitiesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetWorkRequestConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsIdentitiesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetWorkRequest", + "ListDatabaseToolsIdentities", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequest"); - final java.util.function.Function + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseToolsIdentitiesResponse> transformer = - GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler + ListDatabaseToolsIdentitiesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsIdentitiesRequest, ListDatabaseToolsIdentitiesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetWorkRequestRequest, GetWorkRequestResponse>, - java.util.concurrent.Future> + ListDatabaseToolsIdentitiesRequest, + ListDatabaseToolsIdentitiesResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetWorkRequestRequest, GetWorkRequestResponse>( + ListDatabaseToolsIdentitiesRequest, ListDatabaseToolsIdentitiesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1403,44 +2789,44 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDatabaseToolsConnections( - ListDatabaseToolsConnectionsRequest request, + public java.util.concurrent.Future + listDatabaseToolsMcpServers( + ListDatabaseToolsMcpServersRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsConnectionsRequest, - ListDatabaseToolsConnectionsResponse> + ListDatabaseToolsMcpServersRequest, + ListDatabaseToolsMcpServersResponse> handler) { - LOG.trace("Called async listDatabaseToolsConnections"); - final ListDatabaseToolsConnectionsRequest interceptedRequest = - ListDatabaseToolsConnectionsConverter.interceptRequest(request); + LOG.trace("Called async listDatabaseToolsMcpServers"); + final ListDatabaseToolsMcpServersRequest interceptedRequest = + ListDatabaseToolsMcpServersConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsConnectionsConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsMcpServersConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsConnections", + "ListDatabaseToolsMcpServers", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseToolsConnectionsResponse> + javax.ws.rs.core.Response, ListDatabaseToolsMcpServersResponse> transformer = - ListDatabaseToolsConnectionsConverter.fromResponse( + ListDatabaseToolsMcpServersConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsConnectionsRequest, ListDatabaseToolsConnectionsResponse> + ListDatabaseToolsMcpServersRequest, ListDatabaseToolsMcpServersResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsConnectionsRequest, - ListDatabaseToolsConnectionsResponse>, - java.util.concurrent.Future> + ListDatabaseToolsMcpServersRequest, + ListDatabaseToolsMcpServersResponse>, + 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< - ListDatabaseToolsConnectionsRequest, ListDatabaseToolsConnectionsResponse>( + ListDatabaseToolsMcpServersRequest, ListDatabaseToolsMcpServersResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1454,46 +2840,47 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDatabaseToolsEndpointServices( - ListDatabaseToolsEndpointServicesRequest request, + public java.util.concurrent.Future + listDatabaseToolsMcpToolsetVersions( + ListDatabaseToolsMcpToolsetVersionsRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsEndpointServicesRequest, - ListDatabaseToolsEndpointServicesResponse> + ListDatabaseToolsMcpToolsetVersionsRequest, + ListDatabaseToolsMcpToolsetVersionsResponse> handler) { - LOG.trace("Called async listDatabaseToolsEndpointServices"); - final ListDatabaseToolsEndpointServicesRequest interceptedRequest = - ListDatabaseToolsEndpointServicesConverter.interceptRequest(request); + LOG.trace("Called async listDatabaseToolsMcpToolsetVersions"); + final ListDatabaseToolsMcpToolsetVersionsRequest interceptedRequest = + ListDatabaseToolsMcpToolsetVersionsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsEndpointServicesConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsMcpToolsetVersionsConverter.fromRequest( + client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsEndpointServices", + "ListDatabaseToolsMcpToolsetVersions", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseToolsEndpointServicesResponse> + javax.ws.rs.core.Response, ListDatabaseToolsMcpToolsetVersionsResponse> transformer = - ListDatabaseToolsEndpointServicesConverter.fromResponse( + ListDatabaseToolsMcpToolsetVersionsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsEndpointServicesRequest, - ListDatabaseToolsEndpointServicesResponse> + ListDatabaseToolsMcpToolsetVersionsRequest, + ListDatabaseToolsMcpToolsetVersionsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsEndpointServicesRequest, - ListDatabaseToolsEndpointServicesResponse>, - java.util.concurrent.Future> + ListDatabaseToolsMcpToolsetVersionsRequest, + ListDatabaseToolsMcpToolsetVersionsResponse>, + 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< - ListDatabaseToolsEndpointServicesRequest, - ListDatabaseToolsEndpointServicesResponse>( + ListDatabaseToolsMcpToolsetVersionsRequest, + ListDatabaseToolsMcpToolsetVersionsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1507,44 +2894,44 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDatabaseToolsIdentities( - ListDatabaseToolsIdentitiesRequest request, + public java.util.concurrent.Future + listDatabaseToolsMcpToolsets( + ListDatabaseToolsMcpToolsetsRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsIdentitiesRequest, - ListDatabaseToolsIdentitiesResponse> + ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse> handler) { - LOG.trace("Called async listDatabaseToolsIdentities"); - final ListDatabaseToolsIdentitiesRequest interceptedRequest = - ListDatabaseToolsIdentitiesConverter.interceptRequest(request); + LOG.trace("Called async listDatabaseToolsMcpToolsets"); + final ListDatabaseToolsMcpToolsetsRequest interceptedRequest = + ListDatabaseToolsMcpToolsetsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsIdentitiesConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsMcpToolsetsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsIdentities", + "ListDatabaseToolsMcpToolsets", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseToolsIdentitiesResponse> + javax.ws.rs.core.Response, ListDatabaseToolsMcpToolsetsResponse> transformer = - ListDatabaseToolsIdentitiesConverter.fromResponse( + ListDatabaseToolsMcpToolsetsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsIdentitiesRequest, ListDatabaseToolsIdentitiesResponse> + ListDatabaseToolsMcpToolsetsRequest, ListDatabaseToolsMcpToolsetsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDatabaseToolsIdentitiesRequest, - ListDatabaseToolsIdentitiesResponse>, - java.util.concurrent.Future> + ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse>, + 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< - ListDatabaseToolsIdentitiesRequest, ListDatabaseToolsIdentitiesResponse>( + ListDatabaseToolsMcpToolsetsRequest, ListDatabaseToolsMcpToolsetsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1575,7 +2962,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsPrivateEndpoints", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsPrivateEndpointsResponse> transformer = @@ -1610,6 +2997,57 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listDatabaseToolsSqlReports( + ListDatabaseToolsSqlReportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsSqlReportsRequest, + ListDatabaseToolsSqlReportsResponse> + handler) { + LOG.trace("Called async listDatabaseToolsSqlReports"); + final ListDatabaseToolsSqlReportsRequest interceptedRequest = + ListDatabaseToolsSqlReportsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsSqlReportsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "ListDatabaseToolsSqlReports", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseToolsSqlReportsResponse> + transformer = + ListDatabaseToolsSqlReportsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsSqlReportsRequest, ListDatabaseToolsSqlReportsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsSqlReportsRequest, + ListDatabaseToolsSqlReportsResponse>, + 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< + ListDatabaseToolsSqlReportsRequest, ListDatabaseToolsSqlReportsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, @@ -1626,7 +3064,7 @@ public java.util.concurrent.Future listWorkReques "DatabaseTools", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors"); + ""); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -1670,10 +3108,7 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogs"); + "DatabaseTools", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -1717,10 +3152,7 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/ListWorkRequests"); + "DatabaseTools", "ListWorkRequests", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -1769,7 +3201,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RefreshDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, RefreshDatabaseToolsIdentityCredentialResponse> transformer = @@ -1782,22 +3214,199 @@ protected void beforeRetryAction() {} java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - RefreshDatabaseToolsIdentityCredentialRequest, - RefreshDatabaseToolsIdentityCredentialResponse>, - java.util.concurrent.Future> + RefreshDatabaseToolsIdentityCredentialRequest, + RefreshDatabaseToolsIdentityCredentialResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getRefreshDatabaseToolsIdentityCredentialDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RefreshDatabaseToolsIdentityCredentialRequest, + RefreshDatabaseToolsIdentityCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + removeDatabaseToolsConnectionLock( + RemoveDatabaseToolsConnectionLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsConnectionLockRequest, + RemoveDatabaseToolsConnectionLockResponse> + handler) { + LOG.trace("Called async removeDatabaseToolsConnectionLock"); + final RemoveDatabaseToolsConnectionLockRequest interceptedRequest = + RemoveDatabaseToolsConnectionLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDatabaseToolsConnectionLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "RemoveDatabaseToolsConnectionLock", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsConnectionLockResponse> + transformer = + RemoveDatabaseToolsConnectionLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsConnectionLockRequest, + RemoveDatabaseToolsConnectionLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsConnectionLockRequest, + RemoveDatabaseToolsConnectionLockResponse>, + 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< + RemoveDatabaseToolsConnectionLockRequest, + RemoveDatabaseToolsConnectionLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + removeDatabaseToolsDatabaseApiGatewayConfigLock( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handler) { + LOG.trace("Called async removeDatabaseToolsDatabaseApiGatewayConfigLock"); + final RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest interceptedRequest = + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "RemoveDatabaseToolsDatabaseApiGatewayConfigLock", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + transformer = + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse>, + java.util.concurrent.Future< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse>> + 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< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + removeDatabaseToolsIdentityLock( + RemoveDatabaseToolsIdentityLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsIdentityLockRequest, + RemoveDatabaseToolsIdentityLockResponse> + handler) { + LOG.trace("Called async removeDatabaseToolsIdentityLock"); + final RemoveDatabaseToolsIdentityLockRequest interceptedRequest = + RemoveDatabaseToolsIdentityLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDatabaseToolsIdentityLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "RemoveDatabaseToolsIdentityLock", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsIdentityLockResponse> + transformer = + RemoveDatabaseToolsIdentityLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsIdentityLockRequest, + RemoveDatabaseToolsIdentityLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsIdentityLockRequest, + RemoveDatabaseToolsIdentityLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getRefreshDatabaseToolsIdentityCredentialDetails(), + interceptedRequest.getRemoveResourceLockDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RefreshDatabaseToolsIdentityCredentialRequest, - RefreshDatabaseToolsIdentityCredentialResponse>( + RemoveDatabaseToolsIdentityLockRequest, + RemoveDatabaseToolsIdentityLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1811,39 +3420,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - removeDatabaseToolsConnectionLock( - RemoveDatabaseToolsConnectionLockRequest request, + public java.util.concurrent.Future + removeDatabaseToolsMcpServerLock( + RemoveDatabaseToolsMcpServerLockRequest request, final com.oracle.bmc.responses.AsyncHandler< - RemoveDatabaseToolsConnectionLockRequest, - RemoveDatabaseToolsConnectionLockResponse> + RemoveDatabaseToolsMcpServerLockRequest, + RemoveDatabaseToolsMcpServerLockResponse> handler) { - LOG.trace("Called async removeDatabaseToolsConnectionLock"); - final RemoveDatabaseToolsConnectionLockRequest interceptedRequest = - RemoveDatabaseToolsConnectionLockConverter.interceptRequest(request); + LOG.trace("Called async removeDatabaseToolsMcpServerLock"); + final RemoveDatabaseToolsMcpServerLockRequest interceptedRequest = + RemoveDatabaseToolsMcpServerLockConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RemoveDatabaseToolsConnectionLockConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsMcpServerLockConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "RemoveDatabaseToolsConnectionLock", + "RemoveDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/RemoveDatabaseToolsConnectionLock"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, RemoveDatabaseToolsConnectionLockResponse> + javax.ws.rs.core.Response, RemoveDatabaseToolsMcpServerLockResponse> transformer = - RemoveDatabaseToolsConnectionLockConverter.fromResponse( + RemoveDatabaseToolsMcpServerLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - RemoveDatabaseToolsConnectionLockRequest, - RemoveDatabaseToolsConnectionLockResponse> + RemoveDatabaseToolsMcpServerLockRequest, + RemoveDatabaseToolsMcpServerLockResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - RemoveDatabaseToolsConnectionLockRequest, - RemoveDatabaseToolsConnectionLockResponse>, - java.util.concurrent.Future> + RemoveDatabaseToolsMcpServerLockRequest, + RemoveDatabaseToolsMcpServerLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, @@ -1854,8 +3463,8 @@ protected void beforeRetryAction() {} if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RemoveDatabaseToolsConnectionLockRequest, - RemoveDatabaseToolsConnectionLockResponse>( + RemoveDatabaseToolsMcpServerLockRequest, + RemoveDatabaseToolsMcpServerLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1869,39 +3478,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - removeDatabaseToolsIdentityLock( - RemoveDatabaseToolsIdentityLockRequest request, + public java.util.concurrent.Future + removeDatabaseToolsMcpToolsetLock( + RemoveDatabaseToolsMcpToolsetLockRequest request, final com.oracle.bmc.responses.AsyncHandler< - RemoveDatabaseToolsIdentityLockRequest, - RemoveDatabaseToolsIdentityLockResponse> + RemoveDatabaseToolsMcpToolsetLockRequest, + RemoveDatabaseToolsMcpToolsetLockResponse> handler) { - LOG.trace("Called async removeDatabaseToolsIdentityLock"); - final RemoveDatabaseToolsIdentityLockRequest interceptedRequest = - RemoveDatabaseToolsIdentityLockConverter.interceptRequest(request); + LOG.trace("Called async removeDatabaseToolsMcpToolsetLock"); + final RemoveDatabaseToolsMcpToolsetLockRequest interceptedRequest = + RemoveDatabaseToolsMcpToolsetLockConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RemoveDatabaseToolsIdentityLockConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsMcpToolsetLockConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "RemoveDatabaseToolsIdentityLock", + "RemoveDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock"); + ""); final java.util.function.Function< - javax.ws.rs.core.Response, RemoveDatabaseToolsIdentityLockResponse> + javax.ws.rs.core.Response, RemoveDatabaseToolsMcpToolsetLockResponse> transformer = - RemoveDatabaseToolsIdentityLockConverter.fromResponse( + RemoveDatabaseToolsMcpToolsetLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - RemoveDatabaseToolsIdentityLockRequest, - RemoveDatabaseToolsIdentityLockResponse> + RemoveDatabaseToolsMcpToolsetLockRequest, + RemoveDatabaseToolsMcpToolsetLockResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - RemoveDatabaseToolsIdentityLockRequest, - RemoveDatabaseToolsIdentityLockResponse>, - java.util.concurrent.Future> + RemoveDatabaseToolsMcpToolsetLockRequest, + RemoveDatabaseToolsMcpToolsetLockResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, @@ -1912,8 +3521,8 @@ protected void beforeRetryAction() {} if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RemoveDatabaseToolsIdentityLockRequest, - RemoveDatabaseToolsIdentityLockResponse>( + RemoveDatabaseToolsMcpToolsetLockRequest, + RemoveDatabaseToolsMcpToolsetLockResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1945,7 +3554,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/RemoveDatabaseToolsPrivateEndpointLock"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsPrivateEndpointLockResponse> transformer = @@ -1985,6 +3594,64 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + removeDatabaseToolsSqlReportLock( + RemoveDatabaseToolsSqlReportLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsSqlReportLockRequest, + RemoveDatabaseToolsSqlReportLockResponse> + handler) { + LOG.trace("Called async removeDatabaseToolsSqlReportLock"); + final RemoveDatabaseToolsSqlReportLockRequest interceptedRequest = + RemoveDatabaseToolsSqlReportLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDatabaseToolsSqlReportLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "RemoveDatabaseToolsSqlReportLock", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsSqlReportLockResponse> + transformer = + RemoveDatabaseToolsSqlReportLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsSqlReportLockRequest, + RemoveDatabaseToolsSqlReportLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsSqlReportLockRequest, + RemoveDatabaseToolsSqlReportLockResponse>, + 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< + RemoveDatabaseToolsSqlReportLockRequest, + RemoveDatabaseToolsSqlReportLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateDatabaseToolsConnection( @@ -2003,7 +3670,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnection"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsConnectionResponse> transformer = @@ -2041,6 +3708,68 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfig( + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsDatabaseApiGatewayConfig"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "UpdateDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse>, + java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse>> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest + .getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateDatabaseToolsIdentity( @@ -2059,7 +3788,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsIdentity", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsIdentityResponse> transformer = @@ -2097,6 +3826,118 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateDatabaseToolsMcpServer( + UpdateDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpServerRequest, + UpdateDatabaseToolsMcpServerResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsMcpServer"); + final UpdateDatabaseToolsMcpServerRequest interceptedRequest = + UpdateDatabaseToolsMcpServerConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsMcpServerConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "UpdateDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateDatabaseToolsMcpServerResponse> + transformer = + UpdateDatabaseToolsMcpServerConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpServerRequest, UpdateDatabaseToolsMcpServerResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpServerRequest, + UpdateDatabaseToolsMcpServerResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateDatabaseToolsMcpServerDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsMcpServerRequest, UpdateDatabaseToolsMcpServerResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateDatabaseToolsMcpToolset( + UpdateDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpToolsetRequest, + UpdateDatabaseToolsMcpToolsetResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsMcpToolset"); + final UpdateDatabaseToolsMcpToolsetRequest interceptedRequest = + UpdateDatabaseToolsMcpToolsetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsMcpToolsetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "UpdateDatabaseToolsMcpToolset", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateDatabaseToolsMcpToolsetResponse> + transformer = + UpdateDatabaseToolsMcpToolsetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpToolsetRequest, UpdateDatabaseToolsMcpToolsetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpToolsetRequest, + UpdateDatabaseToolsMcpToolsetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateDatabaseToolsMcpToolsetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsMcpToolsetRequest, UpdateDatabaseToolsMcpToolsetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateDatabaseToolsPrivateEndpoint( @@ -2115,7 +3956,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpoint"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsPrivateEndpointResponse> transformer = @@ -2155,6 +3996,62 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateDatabaseToolsSqlReport( + UpdateDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsSqlReportRequest, + UpdateDatabaseToolsSqlReportResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsSqlReport"); + final UpdateDatabaseToolsSqlReportRequest interceptedRequest = + UpdateDatabaseToolsSqlReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsSqlReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", + "UpdateDatabaseToolsSqlReport", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateDatabaseToolsSqlReportResponse> + transformer = + UpdateDatabaseToolsSqlReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsSqlReportRequest, UpdateDatabaseToolsSqlReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsSqlReportRequest, + UpdateDatabaseToolsSqlReportResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateDatabaseToolsSqlReportDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsSqlReportRequest, UpdateDatabaseToolsSqlReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future validateDatabaseToolsConnection( @@ -2173,7 +4070,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ValidateDatabaseToolsConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnection"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> transformer = @@ -2232,7 +4129,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ValidateDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> transformer = diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java index 069441e413f..6272a5481cd 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java @@ -576,7 +576,7 @@ public AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( "DatabaseTools", "AddDatabaseToolsConnectionLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/AddDatabaseToolsConnectionLock"); + ""); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsConnectionLockResponse> transformer = @@ -602,13 +602,15 @@ public AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( } @Override - public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( - AddDatabaseToolsIdentityLockRequest request) { - LOG.trace("Called addDatabaseToolsIdentityLock"); - final AddDatabaseToolsIdentityLockRequest interceptedRequest = - AddDatabaseToolsIdentityLockConverter.interceptRequest(request); + public AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + addDatabaseToolsDatabaseApiGatewayConfigLock( + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request) { + LOG.trace("Called addDatabaseToolsDatabaseApiGatewayConfigLock"); + final AddDatabaseToolsDatabaseApiGatewayConfigLockRequest interceptedRequest = + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDatabaseToolsIdentityLockConverter.fromRequest(client, interceptedRequest); + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -617,12 +619,14 @@ public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "AddDatabaseToolsIdentityLock", + "AddDatabaseToolsDatabaseApiGatewayConfigLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> transformer = - AddDatabaseToolsIdentityLockConverter.fromResponse( + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -644,14 +648,13 @@ public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( } @Override - public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpointLock( - AddDatabaseToolsPrivateEndpointLockRequest request) { - LOG.trace("Called addDatabaseToolsPrivateEndpointLock"); - final AddDatabaseToolsPrivateEndpointLockRequest interceptedRequest = - AddDatabaseToolsPrivateEndpointLockConverter.interceptRequest(request); + public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( + AddDatabaseToolsIdentityLockRequest request) { + LOG.trace("Called addDatabaseToolsIdentityLock"); + final AddDatabaseToolsIdentityLockRequest interceptedRequest = + AddDatabaseToolsIdentityLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDatabaseToolsPrivateEndpointLockConverter.fromRequest( - client, interceptedRequest); + AddDatabaseToolsIdentityLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -660,13 +663,12 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "AddDatabaseToolsPrivateEndpointLock", + "AddDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/AddDatabaseToolsPrivateEndpointLock"); - java.util.function.Function< - javax.ws.rs.core.Response, AddDatabaseToolsPrivateEndpointLockResponse> + ""); + java.util.function.Function transformer = - AddDatabaseToolsPrivateEndpointLockConverter.fromResponse( + AddDatabaseToolsIdentityLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -688,15 +690,13 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi } @Override - public ChangeDatabaseToolsConnectionCompartmentResponse - changeDatabaseToolsConnectionCompartment( - ChangeDatabaseToolsConnectionCompartmentRequest request) { - LOG.trace("Called changeDatabaseToolsConnectionCompartment"); - final ChangeDatabaseToolsConnectionCompartmentRequest interceptedRequest = - ChangeDatabaseToolsConnectionCompartmentConverter.interceptRequest(request); + public AddDatabaseToolsMcpServerLockResponse addDatabaseToolsMcpServerLock( + AddDatabaseToolsMcpServerLockRequest request) { + LOG.trace("Called addDatabaseToolsMcpServerLock"); + final AddDatabaseToolsMcpServerLockRequest interceptedRequest = + AddDatabaseToolsMcpServerLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDatabaseToolsConnectionCompartmentConverter.fromRequest( - client, interceptedRequest); + AddDatabaseToolsMcpServerLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -705,13 +705,13 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ChangeDatabaseToolsConnectionCompartment", + "AddDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, ChangeDatabaseToolsConnectionCompartmentResponse> + javax.ws.rs.core.Response, AddDatabaseToolsMcpServerLockResponse> transformer = - ChangeDatabaseToolsConnectionCompartmentConverter.fromResponse( + AddDatabaseToolsMcpServerLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -725,8 +725,7 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getChangeDatabaseToolsConnectionCompartmentDetails(), + retriedRequest.getAddResourceLockDetails(), retriedRequest); return transformer.apply(response); }); @@ -734,14 +733,13 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi } @Override - public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentityCompartment( - ChangeDatabaseToolsIdentityCompartmentRequest request) { - LOG.trace("Called changeDatabaseToolsIdentityCompartment"); - final ChangeDatabaseToolsIdentityCompartmentRequest interceptedRequest = - ChangeDatabaseToolsIdentityCompartmentConverter.interceptRequest(request); + public AddDatabaseToolsMcpToolsetLockResponse addDatabaseToolsMcpToolsetLock( + AddDatabaseToolsMcpToolsetLockRequest request) { + LOG.trace("Called addDatabaseToolsMcpToolsetLock"); + final AddDatabaseToolsMcpToolsetLockRequest interceptedRequest = + AddDatabaseToolsMcpToolsetLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDatabaseToolsIdentityCompartmentConverter.fromRequest( - client, interceptedRequest); + AddDatabaseToolsMcpToolsetLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -750,13 +748,13 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ChangeDatabaseToolsIdentityCompartment", + "AddDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, ChangeDatabaseToolsIdentityCompartmentResponse> + javax.ws.rs.core.Response, AddDatabaseToolsMcpToolsetLockResponse> transformer = - ChangeDatabaseToolsIdentityCompartmentConverter.fromResponse( + AddDatabaseToolsMcpToolsetLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -770,8 +768,7 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getChangeDatabaseToolsIdentityCompartmentDetails(), + retriedRequest.getAddResourceLockDetails(), retriedRequest); return transformer.apply(response); }); @@ -779,14 +776,13 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit } @Override - public ChangeDatabaseToolsPrivateEndpointCompartmentResponse - changeDatabaseToolsPrivateEndpointCompartment( - ChangeDatabaseToolsPrivateEndpointCompartmentRequest request) { - LOG.trace("Called changeDatabaseToolsPrivateEndpointCompartment"); - final ChangeDatabaseToolsPrivateEndpointCompartmentRequest interceptedRequest = - ChangeDatabaseToolsPrivateEndpointCompartmentConverter.interceptRequest(request); + public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpointLock( + AddDatabaseToolsPrivateEndpointLockRequest request) { + LOG.trace("Called addDatabaseToolsPrivateEndpointLock"); + final AddDatabaseToolsPrivateEndpointLockRequest interceptedRequest = + AddDatabaseToolsPrivateEndpointLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromRequest( + AddDatabaseToolsPrivateEndpointLockConverter.fromRequest( client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = @@ -796,14 +792,13 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ChangeDatabaseToolsPrivateEndpointCompartment", + "AddDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartment"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDatabaseToolsPrivateEndpointCompartmentResponse> + javax.ws.rs.core.Response, AddDatabaseToolsPrivateEndpointLockResponse> transformer = - ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromResponse( + AddDatabaseToolsPrivateEndpointLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -817,8 +812,7 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getChangeDatabaseToolsPrivateEndpointCompartmentDetails(), + retriedRequest.getAddResourceLockDetails(), retriedRequest); return transformer.apply(response); }); @@ -826,29 +820,28 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit } @Override - public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( - CreateDatabaseToolsConnectionRequest request) { - LOG.trace("Called createDatabaseToolsConnection"); - final CreateDatabaseToolsConnectionRequest interceptedRequest = - CreateDatabaseToolsConnectionConverter.interceptRequest(request); + public AddDatabaseToolsSqlReportLockResponse addDatabaseToolsSqlReportLock( + AddDatabaseToolsSqlReportLockRequest request) { + LOG.trace("Called addDatabaseToolsSqlReportLock"); + final AddDatabaseToolsSqlReportLockRequest interceptedRequest = + AddDatabaseToolsSqlReportLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + AddDatabaseToolsSqlReportLockConverter.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); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "CreateDatabaseToolsConnection", + "AddDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), ""); java.util.function.Function< - javax.ws.rs.core.Response, CreateDatabaseToolsConnectionResponse> + javax.ws.rs.core.Response, AddDatabaseToolsSqlReportLockResponse> transformer = - CreateDatabaseToolsConnectionConverter.fromResponse( + AddDatabaseToolsSqlReportLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -862,8 +855,7 @@ public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getCreateDatabaseToolsConnectionDetails(), + retriedRequest.getAddResourceLockDetails(), retriedRequest); return transformer.apply(response); }); @@ -871,28 +863,29 @@ public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( } @Override - public CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( - CreateDatabaseToolsIdentityRequest request) { - LOG.trace("Called createDatabaseToolsIdentity"); - final CreateDatabaseToolsIdentityRequest interceptedRequest = - CreateDatabaseToolsIdentityConverter.interceptRequest(request); + public CascadingDeleteDatabaseToolsMcpServerResponse cascadingDeleteDatabaseToolsMcpServer( + CascadingDeleteDatabaseToolsMcpServerRequest request) { + LOG.trace("Called cascadingDeleteDatabaseToolsMcpServer"); + final CascadingDeleteDatabaseToolsMcpServerRequest interceptedRequest = + CascadingDeleteDatabaseToolsMcpServerConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + CascadingDeleteDatabaseToolsMcpServerConverter.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); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "CreateDatabaseToolsIdentity", + "CascadingDeleteDatabaseToolsMcpServer", ib.getRequestUri().toString(), ""); - java.util.function.Function + java.util.function.Function< + javax.ws.rs.core.Response, CascadingDeleteDatabaseToolsMcpServerResponse> transformer = - CreateDatabaseToolsIdentityConverter.fromResponse( + CascadingDeleteDatabaseToolsMcpServerConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -904,40 +897,37 @@ public CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getCreateDatabaseToolsIdentityDetails(), - retriedRequest); + client.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndpoint( - CreateDatabaseToolsPrivateEndpointRequest request) { - LOG.trace("Called createDatabaseToolsPrivateEndpoint"); - final CreateDatabaseToolsPrivateEndpointRequest interceptedRequest = - CreateDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + public ChangeDatabaseToolsConnectionCompartmentResponse + changeDatabaseToolsConnectionCompartment( + ChangeDatabaseToolsConnectionCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsConnectionCompartment"); + final ChangeDatabaseToolsConnectionCompartmentRequest interceptedRequest = + ChangeDatabaseToolsConnectionCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + ChangeDatabaseToolsConnectionCompartmentConverter.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); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "CreateDatabaseToolsPrivateEndpoint", + "ChangeDatabaseToolsConnectionCompartment", ib.getRequestUri().toString(), ""); java.util.function.Function< - javax.ws.rs.core.Response, CreateDatabaseToolsPrivateEndpointResponse> + javax.ws.rs.core.Response, ChangeDatabaseToolsConnectionCompartmentResponse> transformer = - CreateDatabaseToolsPrivateEndpointConverter.fromResponse( + ChangeDatabaseToolsConnectionCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -952,7 +942,7 @@ public CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndp client.post( ib, retriedRequest - .getCreateDatabaseToolsPrivateEndpointDetails(), + .getChangeDatabaseToolsConnectionCompartmentDetails(), retriedRequest); return transformer.apply(response); }); @@ -960,13 +950,16 @@ public CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndp } @Override - public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( - DeleteDatabaseToolsConnectionRequest request) { - LOG.trace("Called deleteDatabaseToolsConnection"); - final DeleteDatabaseToolsConnectionRequest interceptedRequest = - DeleteDatabaseToolsConnectionConverter.interceptRequest(request); + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + changeDatabaseToolsDatabaseApiGatewayConfigCompartment( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsDatabaseApiGatewayConfigCompartment"); + final ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest interceptedRequest = + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.interceptRequest( + request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -975,14 +968,15 @@ public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "DeleteDatabaseToolsConnection", + "ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, DeleteDatabaseToolsConnectionResponse> + javax.ws.rs.core.Response, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> transformer = - DeleteDatabaseToolsConnectionConverter.fromResponse( - java.util.Optional.of(serviceDetails)); + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter + .fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -993,20 +987,25 @@ public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( - DeleteDatabaseToolsIdentityRequest request) { - LOG.trace("Called deleteDatabaseToolsIdentity"); - final DeleteDatabaseToolsIdentityRequest interceptedRequest = - DeleteDatabaseToolsIdentityConverter.interceptRequest(request); + public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentityCompartment( + ChangeDatabaseToolsIdentityCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsIdentityCompartment"); + final ChangeDatabaseToolsIdentityCompartmentRequest interceptedRequest = + ChangeDatabaseToolsIdentityCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + ChangeDatabaseToolsIdentityCompartmentConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1015,12 +1014,13 @@ public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "DeleteDatabaseToolsIdentity", + "ChangeDatabaseToolsIdentityCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsIdentityCompartmentResponse> transformer = - DeleteDatabaseToolsIdentityConverter.fromResponse( + ChangeDatabaseToolsIdentityCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1032,20 +1032,25 @@ public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getChangeDatabaseToolsIdentityCompartmentDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndpoint( - DeleteDatabaseToolsPrivateEndpointRequest request) { - LOG.trace("Called deleteDatabaseToolsPrivateEndpoint"); - final DeleteDatabaseToolsPrivateEndpointRequest interceptedRequest = - DeleteDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + public ChangeDatabaseToolsMcpServerCompartmentResponse changeDatabaseToolsMcpServerCompartment( + ChangeDatabaseToolsMcpServerCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsMcpServerCompartment"); + final ChangeDatabaseToolsMcpServerCompartmentRequest interceptedRequest = + ChangeDatabaseToolsMcpServerCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + ChangeDatabaseToolsMcpServerCompartmentConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1054,13 +1059,13 @@ public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndp com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "DeleteDatabaseToolsPrivateEndpoint", + "ChangeDatabaseToolsMcpServerCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpoint"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, DeleteDatabaseToolsPrivateEndpointResponse> + javax.ws.rs.core.Response, ChangeDatabaseToolsMcpServerCompartmentResponse> transformer = - DeleteDatabaseToolsPrivateEndpointConverter.fromResponse( + ChangeDatabaseToolsMcpServerCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1072,34 +1077,41 @@ public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndp retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getChangeDatabaseToolsMcpServerCompartmentDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( - GetDatabaseToolsConnectionRequest request) { - LOG.trace("Called getDatabaseToolsConnection"); - final GetDatabaseToolsConnectionRequest interceptedRequest = - GetDatabaseToolsConnectionConverter.interceptRequest(request); + public ChangeDatabaseToolsMcpToolsetCompartmentResponse + changeDatabaseToolsMcpToolsetCompartment( + ChangeDatabaseToolsMcpToolsetCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsMcpToolsetCompartment"); + final ChangeDatabaseToolsMcpToolsetCompartmentRequest interceptedRequest = + ChangeDatabaseToolsMcpToolsetCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + ChangeDatabaseToolsMcpToolsetCompartmentConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsConnection", + "ChangeDatabaseToolsMcpToolsetCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsMcpToolsetCompartmentResponse> transformer = - GetDatabaseToolsConnectionConverter.fromResponse( + ChangeDatabaseToolsMcpToolsetCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1110,35 +1122,43 @@ public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeDatabaseToolsMcpToolsetCompartmentDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( - GetDatabaseToolsEndpointServiceRequest request) { - LOG.trace("Called getDatabaseToolsEndpointService"); - final GetDatabaseToolsEndpointServiceRequest interceptedRequest = - GetDatabaseToolsEndpointServiceConverter.interceptRequest(request); + public ChangeDatabaseToolsPrivateEndpointCompartmentResponse + changeDatabaseToolsPrivateEndpointCompartment( + ChangeDatabaseToolsPrivateEndpointCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsPrivateEndpointCompartment"); + final ChangeDatabaseToolsPrivateEndpointCompartmentRequest interceptedRequest = + ChangeDatabaseToolsPrivateEndpointCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsEndpointServiceConverter.fromRequest(client, interceptedRequest); + ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsEndpointService", + "ChangeDatabaseToolsPrivateEndpointCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointService"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, GetDatabaseToolsEndpointServiceResponse> + javax.ws.rs.core.Response, + ChangeDatabaseToolsPrivateEndpointCompartmentResponse> transformer = - GetDatabaseToolsEndpointServiceConverter.fromResponse( + ChangeDatabaseToolsPrivateEndpointCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1149,20 +1169,1202 @@ public GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeDatabaseToolsPrivateEndpointCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeDatabaseToolsSqlReportCompartmentResponse changeDatabaseToolsSqlReportCompartment( + ChangeDatabaseToolsSqlReportCompartmentRequest request) { + LOG.trace("Called changeDatabaseToolsSqlReportCompartment"); + final ChangeDatabaseToolsSqlReportCompartmentRequest interceptedRequest = + ChangeDatabaseToolsSqlReportCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDatabaseToolsSqlReportCompartmentConverter.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( + "DatabaseTools", + "ChangeDatabaseToolsSqlReportCompartment", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeDatabaseToolsSqlReportCompartmentResponse> + transformer = + ChangeDatabaseToolsSqlReportCompartmentConverter.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 + .getChangeDatabaseToolsSqlReportCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( + CreateDatabaseToolsConnectionRequest request) { + LOG.trace("Called createDatabaseToolsConnection"); + final CreateDatabaseToolsConnectionRequest interceptedRequest = + CreateDatabaseToolsConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsConnectionConverter.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( + "DatabaseTools", + "CreateDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsConnectionResponse> + transformer = + CreateDatabaseToolsConnectionConverter.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 + .getCreateDatabaseToolsConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigResponse + createDatabaseToolsDatabaseApiGatewayConfig( + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request) { + LOG.trace("Called createDatabaseToolsDatabaseApiGatewayConfig"); + final CreateDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.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( + "DatabaseTools", + "CreateDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.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 + .getCreateDatabaseToolsDatabaseApiGatewayConfigDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( + CreateDatabaseToolsIdentityRequest request) { + LOG.trace("Called createDatabaseToolsIdentity"); + final CreateDatabaseToolsIdentityRequest interceptedRequest = + CreateDatabaseToolsIdentityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsIdentityConverter.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( + "DatabaseTools", + "CreateDatabaseToolsIdentity", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + CreateDatabaseToolsIdentityConverter.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 + .getCreateDatabaseToolsIdentityDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsMcpServerResponse createDatabaseToolsMcpServer( + CreateDatabaseToolsMcpServerRequest request) { + LOG.trace("Called createDatabaseToolsMcpServer"); + final CreateDatabaseToolsMcpServerRequest interceptedRequest = + CreateDatabaseToolsMcpServerConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsMcpServerConverter.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( + "DatabaseTools", + "CreateDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + CreateDatabaseToolsMcpServerConverter.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 + .getCreateDatabaseToolsMcpServerDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsMcpToolsetResponse createDatabaseToolsMcpToolset( + CreateDatabaseToolsMcpToolsetRequest request) { + LOG.trace("Called createDatabaseToolsMcpToolset"); + final CreateDatabaseToolsMcpToolsetRequest interceptedRequest = + CreateDatabaseToolsMcpToolsetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsMcpToolsetConverter.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( + "DatabaseTools", + "CreateDatabaseToolsMcpToolset", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsMcpToolsetResponse> + transformer = + CreateDatabaseToolsMcpToolsetConverter.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 + .getCreateDatabaseToolsMcpToolsetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndpoint( + CreateDatabaseToolsPrivateEndpointRequest request) { + LOG.trace("Called createDatabaseToolsPrivateEndpoint"); + final CreateDatabaseToolsPrivateEndpointRequest interceptedRequest = + CreateDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsPrivateEndpointConverter.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( + "DatabaseTools", + "CreateDatabaseToolsPrivateEndpoint", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, CreateDatabaseToolsPrivateEndpointResponse> + transformer = + CreateDatabaseToolsPrivateEndpointConverter.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 + .getCreateDatabaseToolsPrivateEndpointDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsSqlReportResponse createDatabaseToolsSqlReport( + CreateDatabaseToolsSqlReportRequest request) { + LOG.trace("Called createDatabaseToolsSqlReport"); + final CreateDatabaseToolsSqlReportRequest interceptedRequest = + CreateDatabaseToolsSqlReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsSqlReportConverter.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( + "DatabaseTools", + "CreateDatabaseToolsSqlReport", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + CreateDatabaseToolsSqlReportConverter.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 + .getCreateDatabaseToolsSqlReportDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( + DeleteDatabaseToolsConnectionRequest request) { + LOG.trace("Called deleteDatabaseToolsConnection"); + final DeleteDatabaseToolsConnectionRequest interceptedRequest = + DeleteDatabaseToolsConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsConnectionConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsConnectionResponse> + transformer = + DeleteDatabaseToolsConnectionConverter.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 DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + deleteDatabaseToolsDatabaseApiGatewayConfig( + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request) { + LOG.trace("Called deleteDatabaseToolsDatabaseApiGatewayConfig"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.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 DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( + DeleteDatabaseToolsIdentityRequest request) { + LOG.trace("Called deleteDatabaseToolsIdentity"); + final DeleteDatabaseToolsIdentityRequest interceptedRequest = + DeleteDatabaseToolsIdentityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsIdentityConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsIdentity", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + DeleteDatabaseToolsIdentityConverter.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 DeleteDatabaseToolsMcpServerResponse deleteDatabaseToolsMcpServer( + DeleteDatabaseToolsMcpServerRequest request) { + LOG.trace("Called deleteDatabaseToolsMcpServer"); + final DeleteDatabaseToolsMcpServerRequest interceptedRequest = + DeleteDatabaseToolsMcpServerConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsMcpServerConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + DeleteDatabaseToolsMcpServerConverter.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 DeleteDatabaseToolsMcpToolsetResponse deleteDatabaseToolsMcpToolset( + DeleteDatabaseToolsMcpToolsetRequest request) { + LOG.trace("Called deleteDatabaseToolsMcpToolset"); + final DeleteDatabaseToolsMcpToolsetRequest interceptedRequest = + DeleteDatabaseToolsMcpToolsetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsMcpToolsetConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsMcpToolset", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsMcpToolsetResponse> + transformer = + DeleteDatabaseToolsMcpToolsetConverter.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 DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndpoint( + DeleteDatabaseToolsPrivateEndpointRequest request) { + LOG.trace("Called deleteDatabaseToolsPrivateEndpoint"); + final DeleteDatabaseToolsPrivateEndpointRequest interceptedRequest = + DeleteDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsPrivateEndpointConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsPrivateEndpoint", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteDatabaseToolsPrivateEndpointResponse> + transformer = + DeleteDatabaseToolsPrivateEndpointConverter.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 DeleteDatabaseToolsSqlReportResponse deleteDatabaseToolsSqlReport( + DeleteDatabaseToolsSqlReportRequest request) { + LOG.trace("Called deleteDatabaseToolsSqlReport"); + final DeleteDatabaseToolsSqlReportRequest interceptedRequest = + DeleteDatabaseToolsSqlReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsSqlReportConverter.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( + "DatabaseTools", + "DeleteDatabaseToolsSqlReport", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + DeleteDatabaseToolsSqlReportConverter.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 GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( + GetDatabaseToolsConnectionRequest request) { + LOG.trace("Called getDatabaseToolsConnection"); + final GetDatabaseToolsConnectionRequest interceptedRequest = + GetDatabaseToolsConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsConnectionConverter.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( + "DatabaseTools", + "GetDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetDatabaseToolsConnectionConverter.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 GetDatabaseToolsDatabaseApiGatewayConfigResponse + getDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request) { + LOG.trace("Called getDatabaseToolsDatabaseApiGatewayConfig"); + final GetDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigConverter.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( + "DatabaseTools", + "GetDatabaseToolsDatabaseApiGatewayConfig", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigConverter.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 GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( + GetDatabaseToolsEndpointServiceRequest request) { + LOG.trace("Called getDatabaseToolsEndpointService"); + final GetDatabaseToolsEndpointServiceRequest interceptedRequest = + GetDatabaseToolsEndpointServiceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsEndpointServiceConverter.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( + "DatabaseTools", + "GetDatabaseToolsEndpointService", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsEndpointServiceResponse> + transformer = + GetDatabaseToolsEndpointServiceConverter.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 GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( + GetDatabaseToolsIdentityRequest request) { + LOG.trace("Called getDatabaseToolsIdentity"); + final GetDatabaseToolsIdentityRequest interceptedRequest = + GetDatabaseToolsIdentityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsIdentityConverter.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( + "DatabaseTools", + "GetDatabaseToolsIdentity", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetDatabaseToolsIdentityConverter.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 GetDatabaseToolsMcpServerResponse getDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request) { + LOG.trace("Called getDatabaseToolsMcpServer"); + final GetDatabaseToolsMcpServerRequest interceptedRequest = + GetDatabaseToolsMcpServerConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsMcpServerConverter.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( + "DatabaseTools", + "GetDatabaseToolsMcpServer", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetDatabaseToolsMcpServerConverter.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 GetDatabaseToolsMcpToolsetResponse getDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request) { + LOG.trace("Called getDatabaseToolsMcpToolset"); + final GetDatabaseToolsMcpToolsetRequest interceptedRequest = + GetDatabaseToolsMcpToolsetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsMcpToolsetConverter.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( + "DatabaseTools", + "GetDatabaseToolsMcpToolset", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetDatabaseToolsMcpToolsetConverter.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 GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( + GetDatabaseToolsPrivateEndpointRequest request) { + LOG.trace("Called getDatabaseToolsPrivateEndpoint"); + final GetDatabaseToolsPrivateEndpointRequest interceptedRequest = + GetDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsPrivateEndpointConverter.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( + "DatabaseTools", + "GetDatabaseToolsPrivateEndpoint", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, GetDatabaseToolsPrivateEndpointResponse> + transformer = + GetDatabaseToolsPrivateEndpointConverter.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 GetDatabaseToolsSqlReportResponse getDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request) { + LOG.trace("Called getDatabaseToolsSqlReport"); + final GetDatabaseToolsSqlReportRequest interceptedRequest = + GetDatabaseToolsSqlReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsSqlReportConverter.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( + "DatabaseTools", + "GetDatabaseToolsSqlReport", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetDatabaseToolsSqlReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", "GetWorkRequest", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( + ListDatabaseToolsConnectionsRequest request) { + LOG.trace("Called listDatabaseToolsConnections"); + final ListDatabaseToolsConnectionsRequest interceptedRequest = + ListDatabaseToolsConnectionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsConnectionsConverter.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( + "DatabaseTools", + "ListDatabaseToolsConnections", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListDatabaseToolsConnectionsConverter.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 ListDatabaseToolsDatabaseApiGatewayConfigsResponse + listDatabaseToolsDatabaseApiGatewayConfigs( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request) { + LOG.trace("Called listDatabaseToolsDatabaseApiGatewayConfigs"); + final ListDatabaseToolsDatabaseApiGatewayConfigsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.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( + "DatabaseTools", + "ListDatabaseToolsDatabaseApiGatewayConfigs", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.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 ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServices( + ListDatabaseToolsEndpointServicesRequest request) { + LOG.trace("Called listDatabaseToolsEndpointServices"); + final ListDatabaseToolsEndpointServicesRequest interceptedRequest = + ListDatabaseToolsEndpointServicesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsEndpointServicesConverter.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( + "DatabaseTools", + "ListDatabaseToolsEndpointServices", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseToolsEndpointServicesResponse> + transformer = + ListDatabaseToolsEndpointServicesConverter.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 ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( + ListDatabaseToolsIdentitiesRequest request) { + LOG.trace("Called listDatabaseToolsIdentities"); + final ListDatabaseToolsIdentitiesRequest interceptedRequest = + ListDatabaseToolsIdentitiesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsIdentitiesConverter.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( + "DatabaseTools", + "ListDatabaseToolsIdentities", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListDatabaseToolsIdentitiesConverter.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 ListDatabaseToolsMcpServersResponse listDatabaseToolsMcpServers( + ListDatabaseToolsMcpServersRequest request) { + LOG.trace("Called listDatabaseToolsMcpServers"); + final ListDatabaseToolsMcpServersRequest interceptedRequest = + ListDatabaseToolsMcpServersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsMcpServersConverter.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( + "DatabaseTools", + "ListDatabaseToolsMcpServers", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListDatabaseToolsMcpServersConverter.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 GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( - GetDatabaseToolsIdentityRequest request) { - LOG.trace("Called getDatabaseToolsIdentity"); - final GetDatabaseToolsIdentityRequest interceptedRequest = - GetDatabaseToolsIdentityConverter.interceptRequest(request); + public ListDatabaseToolsMcpToolsetVersionsResponse listDatabaseToolsMcpToolsetVersions( + ListDatabaseToolsMcpToolsetVersionsRequest request) { + LOG.trace("Called listDatabaseToolsMcpToolsetVersions"); + final ListDatabaseToolsMcpToolsetVersionsRequest interceptedRequest = + ListDatabaseToolsMcpToolsetVersionsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsMcpToolsetVersionsConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1171,12 +2373,13 @@ public GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsIdentity", + "ListDatabaseToolsMcpToolsetVersions", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseToolsMcpToolsetVersionsResponse> transformer = - GetDatabaseToolsIdentityConverter.fromResponse( + ListDatabaseToolsMcpToolsetVersionsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1194,13 +2397,13 @@ public GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( } @Override - public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( - GetDatabaseToolsPrivateEndpointRequest request) { - LOG.trace("Called getDatabaseToolsPrivateEndpoint"); - final GetDatabaseToolsPrivateEndpointRequest interceptedRequest = - GetDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + public ListDatabaseToolsMcpToolsetsResponse listDatabaseToolsMcpToolsets( + ListDatabaseToolsMcpToolsetsRequest request) { + LOG.trace("Called listDatabaseToolsMcpToolsets"); + final ListDatabaseToolsMcpToolsetsRequest interceptedRequest = + ListDatabaseToolsMcpToolsetsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsMcpToolsetsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1209,13 +2412,51 @@ public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetDatabaseToolsPrivateEndpoint", + "ListDatabaseToolsMcpToolsets", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListDatabaseToolsMcpToolsetsConverter.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 ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoints( + ListDatabaseToolsPrivateEndpointsRequest request) { + LOG.trace("Called listDatabaseToolsPrivateEndpoints"); + final ListDatabaseToolsPrivateEndpointsRequest interceptedRequest = + ListDatabaseToolsPrivateEndpointsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsPrivateEndpointsConverter.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( + "DatabaseTools", + "ListDatabaseToolsPrivateEndpoints", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpoint"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, GetDatabaseToolsPrivateEndpointResponse> + javax.ws.rs.core.Response, ListDatabaseToolsPrivateEndpointsResponse> transformer = - GetDatabaseToolsPrivateEndpointConverter.fromResponse( + ListDatabaseToolsPrivateEndpointsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1233,12 +2474,13 @@ public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( } @Override - public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { - LOG.trace("Called getWorkRequest"); - final GetWorkRequestRequest interceptedRequest = - GetWorkRequestConverter.interceptRequest(request); + public ListDatabaseToolsSqlReportsResponse listDatabaseToolsSqlReports( + ListDatabaseToolsSqlReportsRequest request) { + LOG.trace("Called listDatabaseToolsSqlReports"); + final ListDatabaseToolsSqlReportsRequest interceptedRequest = + ListDatabaseToolsSqlReportsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetWorkRequestConverter.fromRequest(client, interceptedRequest); + ListDatabaseToolsSqlReportsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1247,11 +2489,13 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "GetWorkRequest", + "ListDatabaseToolsSqlReports", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequest"); - java.util.function.Function transformer = - GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + ""); + java.util.function.Function + transformer = + ListDatabaseToolsSqlReportsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -1268,13 +2512,13 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { } @Override - public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( - ListDatabaseToolsConnectionsRequest request) { - LOG.trace("Called listDatabaseToolsConnections"); - final ListDatabaseToolsConnectionsRequest interceptedRequest = - ListDatabaseToolsConnectionsConverter.interceptRequest(request); + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsConnectionsConverter.fromRequest(client, interceptedRequest); + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1283,12 +2527,12 @@ public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsConnections", + "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections"); - java.util.function.Function + ""); + java.util.function.Function transformer = - ListDatabaseToolsConnectionsConverter.fromResponse( + ListWorkRequestErrorsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1306,28 +2550,187 @@ public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( } @Override - public ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServices( - ListDatabaseToolsEndpointServicesRequest request) { - LOG.trace("Called listDatabaseToolsEndpointServices"); - final ListDatabaseToolsEndpointServicesRequest interceptedRequest = - ListDatabaseToolsEndpointServicesConverter.interceptRequest(request); + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseTools", "ListWorkRequests", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdentityCredential( + RefreshDatabaseToolsIdentityCredentialRequest request) { + LOG.trace("Called refreshDatabaseToolsIdentityCredential"); + final RefreshDatabaseToolsIdentityCredentialRequest interceptedRequest = + RefreshDatabaseToolsIdentityCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RefreshDatabaseToolsIdentityCredentialConverter.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( + "DatabaseTools", + "RefreshDatabaseToolsIdentityCredential", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, RefreshDatabaseToolsIdentityCredentialResponse> + transformer = + RefreshDatabaseToolsIdentityCredentialConverter.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 + .getRefreshDatabaseToolsIdentityCredentialDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLock( + RemoveDatabaseToolsConnectionLockRequest request) { + LOG.trace("Called removeDatabaseToolsConnectionLock"); + final RemoveDatabaseToolsConnectionLockRequest interceptedRequest = + RemoveDatabaseToolsConnectionLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDatabaseToolsConnectionLockConverter.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( + "DatabaseTools", + "RemoveDatabaseToolsConnectionLock", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsConnectionLockResponse> + transformer = + RemoveDatabaseToolsConnectionLockConverter.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 RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + removeDatabaseToolsDatabaseApiGatewayConfigLock( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request) { + LOG.trace("Called removeDatabaseToolsDatabaseApiGatewayConfigLock"); + final RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest interceptedRequest = + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsEndpointServicesConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsEndpointServices", + "RemoveDatabaseToolsDatabaseApiGatewayConfigLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseToolsEndpointServicesResponse> + javax.ws.rs.core.Response, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> transformer = - ListDatabaseToolsEndpointServicesConverter.fromResponse( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1338,34 +2741,39 @@ public ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServic return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( - ListDatabaseToolsIdentitiesRequest request) { - LOG.trace("Called listDatabaseToolsIdentities"); - final ListDatabaseToolsIdentitiesRequest interceptedRequest = - ListDatabaseToolsIdentitiesConverter.interceptRequest(request); + public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( + RemoveDatabaseToolsIdentityLockRequest request) { + LOG.trace("Called removeDatabaseToolsIdentityLock"); + final RemoveDatabaseToolsIdentityLockRequest interceptedRequest = + RemoveDatabaseToolsIdentityLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsIdentitiesConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsIdentityLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsIdentities", + "RemoveDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsIdentityLockResponse> transformer = - ListDatabaseToolsIdentitiesConverter.fromResponse( + RemoveDatabaseToolsIdentityLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1376,35 +2784,39 @@ public ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoints( - ListDatabaseToolsPrivateEndpointsRequest request) { - LOG.trace("Called listDatabaseToolsPrivateEndpoints"); - final ListDatabaseToolsPrivateEndpointsRequest interceptedRequest = - ListDatabaseToolsPrivateEndpointsConverter.interceptRequest(request); + public RemoveDatabaseToolsMcpServerLockResponse removeDatabaseToolsMcpServerLock( + RemoveDatabaseToolsMcpServerLockRequest request) { + LOG.trace("Called removeDatabaseToolsMcpServerLock"); + final RemoveDatabaseToolsMcpServerLockRequest interceptedRequest = + RemoveDatabaseToolsMcpServerLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseToolsPrivateEndpointsConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsMcpServerLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListDatabaseToolsPrivateEndpoints", + "RemoveDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseToolsPrivateEndpointsResponse> + javax.ws.rs.core.Response, RemoveDatabaseToolsMcpServerLockResponse> transformer = - ListDatabaseToolsPrivateEndpointsConverter.fromResponse( + RemoveDatabaseToolsMcpServerLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1415,34 +2827,39 @@ public ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoin return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListWorkRequestErrorsResponse listWorkRequestErrors( - ListWorkRequestErrorsRequest request) { - LOG.trace("Called listWorkRequestErrors"); - final ListWorkRequestErrorsRequest interceptedRequest = - ListWorkRequestErrorsConverter.interceptRequest(request); + public RemoveDatabaseToolsMcpToolsetLockResponse removeDatabaseToolsMcpToolsetLock( + RemoveDatabaseToolsMcpToolsetLockRequest request) { + LOG.trace("Called removeDatabaseToolsMcpToolsetLock"); + final RemoveDatabaseToolsMcpToolsetLockRequest interceptedRequest = + RemoveDatabaseToolsMcpToolsetLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsMcpToolsetLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListWorkRequestErrors", + "RemoveDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsMcpToolsetLockResponse> transformer = - ListWorkRequestErrorsConverter.fromResponse( + RemoveDatabaseToolsMcpToolsetLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1453,33 +2870,40 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { - LOG.trace("Called listWorkRequestLogs"); - final ListWorkRequestLogsRequest interceptedRequest = - ListWorkRequestLogsConverter.interceptRequest(request); + public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivateEndpointLock( + RemoveDatabaseToolsPrivateEndpointLockRequest request) { + LOG.trace("Called removeDatabaseToolsPrivateEndpointLock"); + final RemoveDatabaseToolsPrivateEndpointLockRequest interceptedRequest = + RemoveDatabaseToolsPrivateEndpointLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsPrivateEndpointLockConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListWorkRequestLogs", + "RemoveDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogs"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsPrivateEndpointLockResponse> transformer = - ListWorkRequestLogsConverter.fromResponse( + RemoveDatabaseToolsPrivateEndpointLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1490,33 +2914,39 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { - LOG.trace("Called listWorkRequests"); - final ListWorkRequestsRequest interceptedRequest = - ListWorkRequestsConverter.interceptRequest(request); + public RemoveDatabaseToolsSqlReportLockResponse removeDatabaseToolsSqlReportLock( + RemoveDatabaseToolsSqlReportLockRequest request) { + LOG.trace("Called removeDatabaseToolsSqlReportLock"); + final RemoveDatabaseToolsSqlReportLockRequest interceptedRequest = + RemoveDatabaseToolsSqlReportLockConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + RemoveDatabaseToolsSqlReportLockConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "ListWorkRequests", + "RemoveDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/ListWorkRequests"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, RemoveDatabaseToolsSqlReportLockResponse> transformer = - ListWorkRequestsConverter.fromResponse( + RemoveDatabaseToolsSqlReportLockConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1527,21 +2957,24 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdentityCredential( - RefreshDatabaseToolsIdentityCredentialRequest request) { - LOG.trace("Called refreshDatabaseToolsIdentityCredential"); - final RefreshDatabaseToolsIdentityCredentialRequest interceptedRequest = - RefreshDatabaseToolsIdentityCredentialConverter.interceptRequest(request); + public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( + UpdateDatabaseToolsConnectionRequest request) { + LOG.trace("Called updateDatabaseToolsConnection"); + final UpdateDatabaseToolsConnectionRequest interceptedRequest = + UpdateDatabaseToolsConnectionConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RefreshDatabaseToolsIdentityCredentialConverter.fromRequest( - client, interceptedRequest); + UpdateDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1550,13 +2983,13 @@ public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdenti com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "RefreshDatabaseToolsIdentityCredential", + "UpdateDatabaseToolsConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, RefreshDatabaseToolsIdentityCredentialResponse> + javax.ws.rs.core.Response, UpdateDatabaseToolsConnectionResponse> transformer = - RefreshDatabaseToolsIdentityCredentialConverter.fromResponse( + UpdateDatabaseToolsConnectionConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1568,10 +3001,10 @@ public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdenti retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( + client.put( ib, retriedRequest - .getRefreshDatabaseToolsIdentityCredentialDetails(), + .getUpdateDatabaseToolsConnectionDetails(), retriedRequest); return transformer.apply(response); }); @@ -1579,13 +3012,15 @@ public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdenti } @Override - public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLock( - RemoveDatabaseToolsConnectionLockRequest request) { - LOG.trace("Called removeDatabaseToolsConnectionLock"); - final RemoveDatabaseToolsConnectionLockRequest interceptedRequest = - RemoveDatabaseToolsConnectionLockConverter.interceptRequest(request); + public UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + updateDatabaseToolsDatabaseApiGatewayConfig( + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request) { + LOG.trace("Called updateDatabaseToolsDatabaseApiGatewayConfig"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RemoveDatabaseToolsConnectionLockConverter.fromRequest(client, interceptedRequest); + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1594,13 +3029,14 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "RemoveDatabaseToolsConnectionLock", + "UpdateDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/RemoveDatabaseToolsConnectionLock"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, RemoveDatabaseToolsConnectionLockResponse> + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> transformer = - RemoveDatabaseToolsConnectionLockConverter.fromResponse( + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1612,9 +3048,10 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( + client.put( ib, - retriedRequest.getRemoveResourceLockDetails(), + retriedRequest + .getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails(), retriedRequest); return transformer.apply(response); }); @@ -1622,13 +3059,13 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo } @Override - public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( - RemoveDatabaseToolsIdentityLockRequest request) { - LOG.trace("Called removeDatabaseToolsIdentityLock"); - final RemoveDatabaseToolsIdentityLockRequest interceptedRequest = - RemoveDatabaseToolsIdentityLockConverter.interceptRequest(request); + public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( + UpdateDatabaseToolsIdentityRequest request) { + LOG.trace("Called updateDatabaseToolsIdentity"); + final UpdateDatabaseToolsIdentityRequest interceptedRequest = + UpdateDatabaseToolsIdentityConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RemoveDatabaseToolsIdentityLockConverter.fromRequest(client, interceptedRequest); + UpdateDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1637,13 +3074,12 @@ public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "RemoveDatabaseToolsIdentityLock", + "UpdateDatabaseToolsIdentity", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock"); - java.util.function.Function< - javax.ws.rs.core.Response, RemoveDatabaseToolsIdentityLockResponse> + ""); + java.util.function.Function transformer = - RemoveDatabaseToolsIdentityLockConverter.fromResponse( + UpdateDatabaseToolsIdentityConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1655,9 +3091,10 @@ public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( + client.put( ib, - retriedRequest.getRemoveResourceLockDetails(), + retriedRequest + .getUpdateDatabaseToolsIdentityDetails(), retriedRequest); return transformer.apply(response); }); @@ -1665,14 +3102,13 @@ public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( } @Override - public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivateEndpointLock( - RemoveDatabaseToolsPrivateEndpointLockRequest request) { - LOG.trace("Called removeDatabaseToolsPrivateEndpointLock"); - final RemoveDatabaseToolsPrivateEndpointLockRequest interceptedRequest = - RemoveDatabaseToolsPrivateEndpointLockConverter.interceptRequest(request); + public UpdateDatabaseToolsMcpServerResponse updateDatabaseToolsMcpServer( + UpdateDatabaseToolsMcpServerRequest request) { + LOG.trace("Called updateDatabaseToolsMcpServer"); + final UpdateDatabaseToolsMcpServerRequest interceptedRequest = + UpdateDatabaseToolsMcpServerConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RemoveDatabaseToolsPrivateEndpointLockConverter.fromRequest( - client, interceptedRequest); + UpdateDatabaseToolsMcpServerConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1681,13 +3117,12 @@ public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivate com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "RemoveDatabaseToolsPrivateEndpointLock", + "UpdateDatabaseToolsMcpServer", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/RemoveDatabaseToolsPrivateEndpointLock"); - java.util.function.Function< - javax.ws.rs.core.Response, RemoveDatabaseToolsPrivateEndpointLockResponse> + ""); + java.util.function.Function transformer = - RemoveDatabaseToolsPrivateEndpointLockConverter.fromResponse( + UpdateDatabaseToolsMcpServerConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1699,9 +3134,10 @@ public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivate retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( + client.put( ib, - retriedRequest.getRemoveResourceLockDetails(), + retriedRequest + .getUpdateDatabaseToolsMcpServerDetails(), retriedRequest); return transformer.apply(response); }); @@ -1709,13 +3145,13 @@ public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivate } @Override - public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( - UpdateDatabaseToolsConnectionRequest request) { - LOG.trace("Called updateDatabaseToolsConnection"); - final UpdateDatabaseToolsConnectionRequest interceptedRequest = - UpdateDatabaseToolsConnectionConverter.interceptRequest(request); + public UpdateDatabaseToolsMcpToolsetResponse updateDatabaseToolsMcpToolset( + UpdateDatabaseToolsMcpToolsetRequest request) { + LOG.trace("Called updateDatabaseToolsMcpToolset"); + final UpdateDatabaseToolsMcpToolsetRequest interceptedRequest = + UpdateDatabaseToolsMcpToolsetConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + UpdateDatabaseToolsMcpToolsetConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1724,13 +3160,13 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "UpdateDatabaseToolsConnection", + "UpdateDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnection"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, UpdateDatabaseToolsConnectionResponse> + javax.ws.rs.core.Response, UpdateDatabaseToolsMcpToolsetResponse> transformer = - UpdateDatabaseToolsConnectionConverter.fromResponse( + UpdateDatabaseToolsMcpToolsetConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1745,7 +3181,7 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( client.put( ib, retriedRequest - .getUpdateDatabaseToolsConnectionDetails(), + .getUpdateDatabaseToolsMcpToolsetDetails(), retriedRequest); return transformer.apply(response); }); @@ -1753,13 +3189,13 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( } @Override - public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( - UpdateDatabaseToolsIdentityRequest request) { - LOG.trace("Called updateDatabaseToolsIdentity"); - final UpdateDatabaseToolsIdentityRequest interceptedRequest = - UpdateDatabaseToolsIdentityConverter.interceptRequest(request); + public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndpoint( + UpdateDatabaseToolsPrivateEndpointRequest request) { + LOG.trace("Called updateDatabaseToolsPrivateEndpoint"); + final UpdateDatabaseToolsPrivateEndpointRequest interceptedRequest = + UpdateDatabaseToolsPrivateEndpointConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDatabaseToolsIdentityConverter.fromRequest(client, interceptedRequest); + UpdateDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1768,12 +3204,13 @@ public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "UpdateDatabaseToolsIdentity", + "UpdateDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity"); - java.util.function.Function + ""); + java.util.function.Function< + javax.ws.rs.core.Response, UpdateDatabaseToolsPrivateEndpointResponse> transformer = - UpdateDatabaseToolsIdentityConverter.fromResponse( + UpdateDatabaseToolsPrivateEndpointConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1788,7 +3225,7 @@ public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( client.put( ib, retriedRequest - .getUpdateDatabaseToolsIdentityDetails(), + .getUpdateDatabaseToolsPrivateEndpointDetails(), retriedRequest); return transformer.apply(response); }); @@ -1796,13 +3233,13 @@ public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( } @Override - public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndpoint( - UpdateDatabaseToolsPrivateEndpointRequest request) { - LOG.trace("Called updateDatabaseToolsPrivateEndpoint"); - final UpdateDatabaseToolsPrivateEndpointRequest interceptedRequest = - UpdateDatabaseToolsPrivateEndpointConverter.interceptRequest(request); + public UpdateDatabaseToolsSqlReportResponse updateDatabaseToolsSqlReport( + UpdateDatabaseToolsSqlReportRequest request) { + LOG.trace("Called updateDatabaseToolsSqlReport"); + final UpdateDatabaseToolsSqlReportRequest interceptedRequest = + UpdateDatabaseToolsSqlReportConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDatabaseToolsPrivateEndpointConverter.fromRequest(client, interceptedRequest); + UpdateDatabaseToolsSqlReportConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1811,13 +3248,12 @@ public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndp com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseTools", - "UpdateDatabaseToolsPrivateEndpoint", + "UpdateDatabaseToolsSqlReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, UpdateDatabaseToolsPrivateEndpointResponse> + ""); + java.util.function.Function transformer = - UpdateDatabaseToolsPrivateEndpointConverter.fromResponse( + UpdateDatabaseToolsSqlReportConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1832,7 +3268,7 @@ public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndp client.put( ib, retriedRequest - .getUpdateDatabaseToolsPrivateEndpointDetails(), + .getUpdateDatabaseToolsSqlReportDetails(), retriedRequest); return transformer.apply(response); }); @@ -1857,7 +3293,7 @@ public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( "DatabaseTools", "ValidateDatabaseToolsConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnection"); + ""); java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> transformer = @@ -1902,7 +3338,7 @@ public ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIden "DatabaseTools", "ValidateDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential"); + ""); java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> transformer = diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsPaginators.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsPaginators.java index 8c7b24ab13a..418ab5232d4 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsPaginators.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsPaginators.java @@ -157,6 +157,143 @@ public ListDatabaseToolsConnectionsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsDatabaseApiGatewayConfigs 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 + listDatabaseToolsDatabaseApiGatewayConfigsResponseIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder get() { + return ListDatabaseToolsDatabaseApiGatewayConfigsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigsResponse, String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigSummary} objects + * contained in responses from the listDatabaseToolsDatabaseApiGatewayConfigs 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.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDatabaseToolsDatabaseApiGatewayConfigsRecordIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigSummary>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder get() { + return ListDatabaseToolsDatabaseApiGatewayConfigsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigsResponse, String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest.Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigs(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigsResponse, + java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigSummary> + apply(ListDatabaseToolsDatabaseApiGatewayConfigsResponse response) { + return response.getDatabaseToolsDatabaseApiGatewayConfigCollection() + .getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsEndpointServices operation. This iterable * will fetch more data from the server as needed. @@ -407,6 +544,252 @@ public ListDatabaseToolsIdentitiesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsMcpServers 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 + listDatabaseToolsMcpServersResponseIterator( + final ListDatabaseToolsMcpServersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsMcpServersRequest.Builder, ListDatabaseToolsMcpServersRequest, + ListDatabaseToolsMcpServersResponse>( + new java.util.function.Supplier() { + @Override + public ListDatabaseToolsMcpServersRequest.Builder get() { + return ListDatabaseToolsMcpServersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDatabaseToolsMcpServersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpServersRequest.Builder>, + ListDatabaseToolsMcpServersRequest>() { + @Override + public ListDatabaseToolsMcpServersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpServersRequest.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< + ListDatabaseToolsMcpServersRequest, ListDatabaseToolsMcpServersResponse>() { + @Override + public ListDatabaseToolsMcpServersResponse apply( + ListDatabaseToolsMcpServersRequest request) { + return client.listDatabaseToolsMcpServers(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerSummary} objects + * contained in responses from the listDatabaseToolsMcpServers 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.databasetools.model.DatabaseToolsMcpServerSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDatabaseToolsMcpServersRecordIterator( + final ListDatabaseToolsMcpServersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsMcpServersRequest.Builder, ListDatabaseToolsMcpServersRequest, + ListDatabaseToolsMcpServersResponse, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerSummary>( + new java.util.function.Supplier() { + @Override + public ListDatabaseToolsMcpServersRequest.Builder get() { + return ListDatabaseToolsMcpServersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDatabaseToolsMcpServersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpServersRequest.Builder>, + ListDatabaseToolsMcpServersRequest>() { + @Override + public ListDatabaseToolsMcpServersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpServersRequest.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< + ListDatabaseToolsMcpServersRequest, ListDatabaseToolsMcpServersResponse>() { + @Override + public ListDatabaseToolsMcpServersResponse apply( + ListDatabaseToolsMcpServersRequest request) { + return client.listDatabaseToolsMcpServers(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsMcpServersResponse, + java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerSummary> + apply(ListDatabaseToolsMcpServersResponse response) { + return response.getDatabaseToolsMcpServerCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsMcpToolsets 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 + listDatabaseToolsMcpToolsetsResponseIterator( + final ListDatabaseToolsMcpToolsetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsMcpToolsetsRequest.Builder, ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse>( + new java.util.function.Supplier() { + @Override + public ListDatabaseToolsMcpToolsetsRequest.Builder get() { + return ListDatabaseToolsMcpToolsetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDatabaseToolsMcpToolsetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpToolsetsRequest.Builder>, + ListDatabaseToolsMcpToolsetsRequest>() { + @Override + public ListDatabaseToolsMcpToolsetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpToolsetsRequest.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< + ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse>() { + @Override + public ListDatabaseToolsMcpToolsetsResponse apply( + ListDatabaseToolsMcpToolsetsRequest request) { + return client.listDatabaseToolsMcpToolsets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetSummary} objects + * contained in responses from the listDatabaseToolsMcpToolsets 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.databasetools.model.DatabaseToolsMcpToolsetSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDatabaseToolsMcpToolsetsRecordIterator( + final ListDatabaseToolsMcpToolsetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsMcpToolsetsRequest.Builder, ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetSummary>( + new java.util.function.Supplier() { + @Override + public ListDatabaseToolsMcpToolsetsRequest.Builder get() { + return ListDatabaseToolsMcpToolsetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDatabaseToolsMcpToolsetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpToolsetsRequest.Builder>, + ListDatabaseToolsMcpToolsetsRequest>() { + @Override + public ListDatabaseToolsMcpToolsetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsMcpToolsetsRequest.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< + ListDatabaseToolsMcpToolsetsRequest, + ListDatabaseToolsMcpToolsetsResponse>() { + @Override + public ListDatabaseToolsMcpToolsetsResponse apply( + ListDatabaseToolsMcpToolsetsRequest request) { + return client.listDatabaseToolsMcpToolsets(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsMcpToolsetsResponse, + java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetSummary> + apply(ListDatabaseToolsMcpToolsetsResponse response) { + return response.getDatabaseToolsMcpToolsetCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsPrivateEndpoints operation. This iterable * will fetch more data from the server as needed. @@ -536,6 +919,128 @@ public ListDatabaseToolsPrivateEndpointsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsSqlReports 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 + listDatabaseToolsSqlReportsResponseIterator( + final ListDatabaseToolsSqlReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsSqlReportsRequest.Builder, ListDatabaseToolsSqlReportsRequest, + ListDatabaseToolsSqlReportsResponse>( + new java.util.function.Supplier() { + @Override + public ListDatabaseToolsSqlReportsRequest.Builder get() { + return ListDatabaseToolsSqlReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDatabaseToolsSqlReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsSqlReportsRequest.Builder>, + ListDatabaseToolsSqlReportsRequest>() { + @Override + public ListDatabaseToolsSqlReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsSqlReportsRequest.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< + ListDatabaseToolsSqlReportsRequest, ListDatabaseToolsSqlReportsResponse>() { + @Override + public ListDatabaseToolsSqlReportsResponse apply( + ListDatabaseToolsSqlReportsRequest request) { + return client.listDatabaseToolsSqlReports(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportSummary} objects + * contained in responses from the listDatabaseToolsSqlReports 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.databasetools.model.DatabaseToolsSqlReportSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDatabaseToolsSqlReportsRecordIterator( + final ListDatabaseToolsSqlReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsSqlReportsRequest.Builder, ListDatabaseToolsSqlReportsRequest, + ListDatabaseToolsSqlReportsResponse, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportSummary>( + new java.util.function.Supplier() { + @Override + public ListDatabaseToolsSqlReportsRequest.Builder get() { + return ListDatabaseToolsSqlReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDatabaseToolsSqlReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsSqlReportsRequest.Builder>, + ListDatabaseToolsSqlReportsRequest>() { + @Override + public ListDatabaseToolsSqlReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsSqlReportsRequest.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< + ListDatabaseToolsSqlReportsRequest, ListDatabaseToolsSqlReportsResponse>() { + @Override + public ListDatabaseToolsSqlReportsResponse apply( + ListDatabaseToolsSqlReportsRequest request) { + return client.listDatabaseToolsSqlReports(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsSqlReportsResponse, + java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportSummary> + apply(ListDatabaseToolsSqlReportsResponse response) { + return response.getDatabaseToolsSqlReportCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsWaiters.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsWaiters.java index 7d5176db034..285389f758b 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsWaiters.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsWaiters.java @@ -132,6 +132,133 @@ public boolean test(GetDatabaseToolsConnectionResponse response) { 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< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + forDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState... + 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 forDatabaseToolsDatabaseApiGatewayConfig( + 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< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + forDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState + 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 forDatabaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + forDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState... + 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 forDatabaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DatabaseToolsDatabaseApiGatewayConfig. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + forDatabaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState> + 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< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse>() { + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigResponse apply( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request) { + return client.getDatabaseToolsDatabaseApiGatewayConfig(request); + } + }, + new java.util.function.Predicate< + GetDatabaseToolsDatabaseApiGatewayConfigResponse>() { + @Override + public boolean test( + GetDatabaseToolsDatabaseApiGatewayConfigResponse response) { + return targetStatesSet.contains( + response.getDatabaseToolsDatabaseApiGatewayConfig() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -355,6 +482,234 @@ public boolean test(GetDatabaseToolsIdentityResponse response) { 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< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + forDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState... + 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 forDatabaseToolsMcpServer( + 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< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + forDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState + 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 forDatabaseToolsMcpServer( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + forDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState... + 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 forDatabaseToolsMcpServer( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DatabaseToolsMcpServer. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + forDatabaseToolsMcpServer( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState... + 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< + GetDatabaseToolsMcpServerRequest, + GetDatabaseToolsMcpServerResponse>() { + @Override + public GetDatabaseToolsMcpServerResponse apply( + GetDatabaseToolsMcpServerRequest request) { + return client.getDatabaseToolsMcpServer(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDatabaseToolsMcpServerResponse response) { + return targetStatesSet.contains( + response.getDatabaseToolsMcpServer().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerLifecycleState.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< + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse> + forDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState... + 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 forDatabaseToolsMcpToolset( + 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< + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse> + forDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState + 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 forDatabaseToolsMcpToolset( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse> + forDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState... + 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 forDatabaseToolsMcpToolset( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DatabaseToolsMcpToolset. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsMcpToolsetRequest, GetDatabaseToolsMcpToolsetResponse> + forDatabaseToolsMcpToolset( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetLifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState> + 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< + GetDatabaseToolsMcpToolsetRequest, + GetDatabaseToolsMcpToolsetResponse>() { + @Override + public GetDatabaseToolsMcpToolsetResponse apply( + GetDatabaseToolsMcpToolsetRequest request) { + return client.getDatabaseToolsMcpToolset(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDatabaseToolsMcpToolsetResponse response) { + return targetStatesSet.contains( + response.getDatabaseToolsMcpToolset().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetLifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -465,6 +820,119 @@ public boolean test(GetDatabaseToolsPrivateEndpointResponse response) { 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< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + forDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState... + 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 forDatabaseToolsSqlReport( + 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< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + forDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState + 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 forDatabaseToolsSqlReport( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + forDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState... + 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 forDatabaseToolsSqlReport( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DatabaseToolsSqlReport. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + forDatabaseToolsSqlReport( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState... + 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< + GetDatabaseToolsSqlReportRequest, + GetDatabaseToolsSqlReportResponse>() { + @Override + public GetDatabaseToolsSqlReportResponse apply( + GetDatabaseToolsSqlReportRequest request) { + return client.getDatabaseToolsSqlReport(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDatabaseToolsSqlReportResponse response) { + return targetStatesSet.contains( + response.getDatabaseToolsSqlReport().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportLifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.java new file mode 100644 index 00000000000..557da6af48f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsDatabaseApiGatewayConfigLockConverter { + 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( + AddDatabaseToolsDatabaseApiGatewayConfigLockConverter.class); + + public static com.oracle.bmc.databasetools.requests + .AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests + .AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .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.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.AddDatabaseToolsDatabaseApiGatewayConfigLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfig(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.databasetools.responses + .AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsMcpServerLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsMcpServerLockConverter.java new file mode 100644 index 00000000000..ea5736fa49c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsMcpServerLockConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsMcpServerLockConverter { + 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(AddDatabaseToolsMcpServerLockConverter.class); + + public static com.oracle.bmc.databasetools.requests.AddDatabaseToolsMcpServerLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.AddDatabaseToolsMcpServerLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.AddDatabaseToolsMcpServerLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())) + .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.databasetools.responses.AddDatabaseToolsMcpServerLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.AddDatabaseToolsMcpServerLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpServerLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpServerLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpServerLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.AddDatabaseToolsMcpServerLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpServerLockResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpServerLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpServer(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.databasetools.responses + .AddDatabaseToolsMcpServerLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsMcpToolsetLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsMcpToolsetLockConverter.java new file mode 100644 index 00000000000..8eef2a892ac --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsMcpToolsetLockConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsMcpToolsetLockConverter { + 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(AddDatabaseToolsMcpToolsetLockConverter.class); + + public static com.oracle.bmc.databasetools.requests.AddDatabaseToolsMcpToolsetLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.AddDatabaseToolsMcpToolsetLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.AddDatabaseToolsMcpToolsetLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpToolsets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpToolsetId())) + .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.databasetools.responses.AddDatabaseToolsMcpToolsetLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.AddDatabaseToolsMcpToolsetLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpToolsetLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpToolsetLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpToolsetLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.AddDatabaseToolsMcpToolsetLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpToolsetLockResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsMcpToolsetLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpToolset(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.databasetools.responses + .AddDatabaseToolsMcpToolsetLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsSqlReportLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsSqlReportLockConverter.java new file mode 100644 index 00000000000..1415f27bdf3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/AddDatabaseToolsSqlReportLockConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsSqlReportLockConverter { + 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(AddDatabaseToolsSqlReportLockConverter.class); + + public static com.oracle.bmc.databasetools.requests.AddDatabaseToolsSqlReportLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.AddDatabaseToolsSqlReportLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.AddDatabaseToolsSqlReportLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsSqlReports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsSqlReportId())) + .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.databasetools.responses.AddDatabaseToolsSqlReportLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.AddDatabaseToolsSqlReportLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsSqlReportLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsSqlReportLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .AddDatabaseToolsSqlReportLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.AddDatabaseToolsSqlReportLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsSqlReportLockResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .AddDatabaseToolsSqlReportLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsSqlReport(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.databasetools.responses + .AddDatabaseToolsSqlReportLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CascadingDeleteDatabaseToolsMcpServerConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CascadingDeleteDatabaseToolsMcpServerConverter.java new file mode 100644 index 00000000000..9c34a819464 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CascadingDeleteDatabaseToolsMcpServerConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CascadingDeleteDatabaseToolsMcpServerConverter { + 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(CascadingDeleteDatabaseToolsMcpServerConverter.class); + + public static com.oracle.bmc.databasetools.requests.CascadingDeleteDatabaseToolsMcpServerRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .CascadingDeleteDatabaseToolsMcpServerRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.CascadingDeleteDatabaseToolsMcpServerRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())) + .path("actions") + .path("cascadingDelete"); + + 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.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.CascadingDeleteDatabaseToolsMcpServerResponse"); + 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.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse + .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.databasetools.responses + .CascadingDeleteDatabaseToolsMcpServerResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.java new file mode 100644 index 00000000000..8cdd87e445a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter { + 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( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentConverter.class); + + public static com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notNull( + request.getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(), + "changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .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); + + 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.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse"); + 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.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsMcpServerCompartmentConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsMcpServerCompartmentConverter.java new file mode 100644 index 00000000000..dbc27d9e1d0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsMcpServerCompartmentConverter.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsMcpServerCompartmentConverter { + 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( + ChangeDatabaseToolsMcpServerCompartmentConverter.class); + + public static com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsMcpServerCompartmentRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsMcpServerCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ChangeDatabaseToolsMcpServerCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Validate.notNull( + request.getChangeDatabaseToolsMcpServerCompartmentDetails(), + "changeDatabaseToolsMcpServerCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())) + .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); + + 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.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ChangeDatabaseToolsMcpServerCompartmentResponse"); + 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.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse + .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.databasetools.responses + .ChangeDatabaseToolsMcpServerCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsMcpToolsetCompartmentConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsMcpToolsetCompartmentConverter.java new file mode 100644 index 00000000000..2a9bfac3cd1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsMcpToolsetCompartmentConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsMcpToolsetCompartmentConverter { + 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( + ChangeDatabaseToolsMcpToolsetCompartmentConverter.class); + + public static com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsMcpToolsetCompartmentRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsMcpToolsetCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ChangeDatabaseToolsMcpToolsetCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Validate.notNull( + request.getChangeDatabaseToolsMcpToolsetCompartmentDetails(), + "changeDatabaseToolsMcpToolsetCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpToolsets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpToolsetId())) + .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); + + 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.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ChangeDatabaseToolsMcpToolsetCompartmentResponse"); + 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.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsMcpToolsetCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsSqlReportCompartmentConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsSqlReportCompartmentConverter.java new file mode 100644 index 00000000000..e7acc1d8f08 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ChangeDatabaseToolsSqlReportCompartmentConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsSqlReportCompartmentConverter { + 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( + ChangeDatabaseToolsSqlReportCompartmentConverter.class); + + public static com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsSqlReportCompartmentRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .ChangeDatabaseToolsSqlReportCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ChangeDatabaseToolsSqlReportCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Validate.notNull( + request.getChangeDatabaseToolsSqlReportCompartmentDetails(), + "changeDatabaseToolsSqlReportCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsSqlReports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsSqlReportId())) + .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); + + 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.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ChangeDatabaseToolsSqlReportCompartmentResponse"); + 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.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .ChangeDatabaseToolsSqlReportCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigConverter.java new file mode 100644 index 00000000000..c4cb17e5429 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigConverter.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsDatabaseApiGatewayConfigConverter { + 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( + CreateDatabaseToolsDatabaseApiGatewayConfigConverter.class); + + public static com.oracle.bmc.databasetools.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs"); + + 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.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.CreateDatabaseToolsDatabaseApiGatewayConfigResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfig(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> 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.databasetools.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsMcpServerConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsMcpServerConverter.java new file mode 100644 index 00000000000..fe895eb7bb3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsMcpServerConverter.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsMcpServerConverter { + 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(CreateDatabaseToolsMcpServerConverter.class); + + public static com.oracle.bmc.databasetools.requests.CreateDatabaseToolsMcpServerRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsMcpServerRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsMcpServerRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateDatabaseToolsMcpServerDetails(), + "createDatabaseToolsMcpServerDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20201005").path("databaseToolsMcpServers"); + + 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.databasetools.responses.CreateDatabaseToolsMcpServerResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.CreateDatabaseToolsMcpServerResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.CreateDatabaseToolsMcpServerResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpServerResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpServerResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.CreateDatabaseToolsMcpServerResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpServerResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpServerResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpServer(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.databasetools.responses + .CreateDatabaseToolsMcpServerResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsMcpToolsetConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsMcpToolsetConverter.java new file mode 100644 index 00000000000..58d3f9aa347 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsMcpToolsetConverter.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsMcpToolsetConverter { + 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(CreateDatabaseToolsMcpToolsetConverter.class); + + public static com.oracle.bmc.databasetools.requests.CreateDatabaseToolsMcpToolsetRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsMcpToolsetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsMcpToolsetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateDatabaseToolsMcpToolsetDetails(), + "createDatabaseToolsMcpToolsetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20201005").path("databaseToolsMcpToolsets"); + + 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.databasetools.responses.CreateDatabaseToolsMcpToolsetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.CreateDatabaseToolsMcpToolsetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpToolsetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpToolsetResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpToolsetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.CreateDatabaseToolsMcpToolsetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpToolsetResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsMcpToolsetResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpToolset(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.databasetools.responses + .CreateDatabaseToolsMcpToolsetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsSqlReportConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsSqlReportConverter.java new file mode 100644 index 00000000000..00d8ecd9c72 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/CreateDatabaseToolsSqlReportConverter.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsSqlReportConverter { + 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(CreateDatabaseToolsSqlReportConverter.class); + + public static com.oracle.bmc.databasetools.requests.CreateDatabaseToolsSqlReportRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsSqlReportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.CreateDatabaseToolsSqlReportRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateDatabaseToolsSqlReportDetails(), + "createDatabaseToolsSqlReportDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20201005").path("databaseToolsSqlReports"); + + 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.databasetools.responses.CreateDatabaseToolsSqlReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.CreateDatabaseToolsSqlReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.CreateDatabaseToolsSqlReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsSqlReportResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsSqlReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.CreateDatabaseToolsSqlReportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsSqlReportResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .CreateDatabaseToolsSqlReportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsSqlReport(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.databasetools.responses + .CreateDatabaseToolsSqlReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.java new file mode 100644 index 00000000000..fd2d62b779d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigConverter { + 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( + DeleteDatabaseToolsDatabaseApiGatewayConfigConverter.class); + + public static com.oracle.bmc.databasetools.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())); + + 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); + + 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.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsDatabaseApiGatewayConfigResponse"); + 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.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsMcpServerConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsMcpServerConverter.java new file mode 100644 index 00000000000..73216d0ecd2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsMcpServerConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsMcpServerConverter { + 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(DeleteDatabaseToolsMcpServerConverter.class); + + public static com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsMcpServerRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsMcpServerRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsMcpServerRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())); + + 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); + + 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.databasetools.responses.DeleteDatabaseToolsMcpServerResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsMcpServerResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsMcpServerResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpServerResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpServerResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsMcpServerResponse"); + 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.databasetools.responses + .DeleteDatabaseToolsMcpServerResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpServerResponse + .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.databasetools.responses + .DeleteDatabaseToolsMcpServerResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsMcpToolsetConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsMcpToolsetConverter.java new file mode 100644 index 00000000000..9c5927dcc90 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsMcpToolsetConverter.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsMcpToolsetConverter { + 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(DeleteDatabaseToolsMcpToolsetConverter.class); + + public static com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsMcpToolsetRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsMcpToolsetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsMcpToolsetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpToolsets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpToolsetId())); + + 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); + + 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.databasetools.responses.DeleteDatabaseToolsMcpToolsetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsMcpToolsetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpToolsetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpToolsetResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpToolsetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsMcpToolsetResponse"); + 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.databasetools.responses + .DeleteDatabaseToolsMcpToolsetResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpToolsetResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsMcpToolsetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsSqlReportConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsSqlReportConverter.java new file mode 100644 index 00000000000..22c9081edb9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/DeleteDatabaseToolsSqlReportConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsSqlReportConverter { + 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(DeleteDatabaseToolsSqlReportConverter.class); + + public static com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsSqlReportRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsSqlReportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.DeleteDatabaseToolsSqlReportRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsSqlReports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsSqlReportId())); + + 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); + + 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.databasetools.responses.DeleteDatabaseToolsSqlReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsSqlReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsSqlReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsSqlReportResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsSqlReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.DeleteDatabaseToolsSqlReportResponse"); + 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.databasetools.responses + .DeleteDatabaseToolsSqlReportResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsSqlReportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .DeleteDatabaseToolsSqlReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigConverter.java new file mode 100644 index 00000000000..f3ca8048535 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsDatabaseApiGatewayConfigConverter { + 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( + GetDatabaseToolsDatabaseApiGatewayConfigConverter.class); + + public static com.oracle.bmc.databasetools.requests + .GetDatabaseToolsDatabaseApiGatewayConfigRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .GetDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.GetDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())); + + 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.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.GetDatabaseToolsDatabaseApiGatewayConfigResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfig(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsDatabaseApiGatewayConfigResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsMcpServerConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsMcpServerConverter.java new file mode 100644 index 00000000000..8ffaab6522e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsMcpServerConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsMcpServerConverter { + 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(GetDatabaseToolsMcpServerConverter.class); + + public static com.oracle.bmc.databasetools.requests.GetDatabaseToolsMcpServerRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.GetDatabaseToolsMcpServerRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.GetDatabaseToolsMcpServerRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())); + + 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.databasetools.responses.GetDatabaseToolsMcpServerResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.GetDatabaseToolsMcpServerResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.GetDatabaseToolsMcpServerResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpServerResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpServerResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.GetDatabaseToolsMcpServerResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpServerResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpServerResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpServer(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpServerResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsMcpToolsetConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsMcpToolsetConverter.java new file mode 100644 index 00000000000..f10ad88add0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsMcpToolsetConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsMcpToolsetConverter { + 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(GetDatabaseToolsMcpToolsetConverter.class); + + public static com.oracle.bmc.databasetools.requests.GetDatabaseToolsMcpToolsetRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.GetDatabaseToolsMcpToolsetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.GetDatabaseToolsMcpToolsetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpToolsets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpToolsetId())); + + 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.databasetools.responses.GetDatabaseToolsMcpToolsetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.GetDatabaseToolsMcpToolsetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.GetDatabaseToolsMcpToolsetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpToolsetResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpToolsetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.GetDatabaseToolsMcpToolsetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpToolsetResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpToolsetResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpToolset(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsMcpToolsetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsSqlReportConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsSqlReportConverter.java new file mode 100644 index 00000000000..28d486545e3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/GetDatabaseToolsSqlReportConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsSqlReportConverter { + 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(GetDatabaseToolsSqlReportConverter.class); + + public static com.oracle.bmc.databasetools.requests.GetDatabaseToolsSqlReportRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.GetDatabaseToolsSqlReportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.GetDatabaseToolsSqlReportRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsSqlReports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsSqlReportId())); + + 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.databasetools.responses.GetDatabaseToolsSqlReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.GetDatabaseToolsSqlReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.GetDatabaseToolsSqlReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsSqlReportResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .GetDatabaseToolsSqlReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.GetDatabaseToolsSqlReportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsSqlReportResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsSqlReportResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsSqlReport(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .GetDatabaseToolsSqlReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigsConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigsConverter.java new file mode 100644 index 00000000000..1c0ca3a18ae --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigsConverter.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsDatabaseApiGatewayConfigsConverter { + 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( + ListDatabaseToolsDatabaseApiGatewayConfigsConverter.class); + + public static com.oracle.bmc.databasetools.requests + .ListDatabaseToolsDatabaseApiGatewayConfigsRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .ListDatabaseToolsDatabaseApiGatewayConfigsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ListDatabaseToolsDatabaseApiGatewayConfigsRequest + 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("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + 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.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ListDatabaseToolsDatabaseApiGatewayConfigsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigCollection( + 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.databasetools.responses + .ListDatabaseToolsDatabaseApiGatewayConfigsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpServersConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpServersConverter.java new file mode 100644 index 00000000000..b83fc8d4404 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpServersConverter.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpServersConverter { + 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(ListDatabaseToolsMcpServersConverter.class); + + public static com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpServersRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpServersRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpServersRequest 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("/20201005").path("databaseToolsMcpServers"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getDatabaseToolsConnectionId() != null) { + target = + target.queryParam( + "databaseToolsConnectionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDatabaseToolsConnectionId())); + } + + if (request.getRelatedResourceIdentifier() != null) { + target = + target.queryParam( + "relatedResourceIdentifier", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRelatedResourceIdentifier())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + 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.databasetools.responses.ListDatabaseToolsMcpServersResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpServersResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpServersResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpServersResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpServersResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpServersResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServerCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpServersResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpServersResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpServerCollection(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.databasetools.responses + .ListDatabaseToolsMcpServersResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpToolsetVersionsConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpToolsetVersionsConverter.java new file mode 100644 index 00000000000..505c1cfc916 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpToolsetVersionsConverter.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpToolsetVersionsConverter { + 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(ListDatabaseToolsMcpToolsetVersionsConverter.class); + + public static com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpToolsetVersionsRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpToolsetVersionsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpToolsetVersionsRequest + 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("/20201005").path("databaseToolsMcpToolsetVersions"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDatabaseToolsMcpServerId() != null) { + target = + target.queryParam( + "databaseToolsMcpServerId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDatabaseToolsMcpServerId())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpToolsetVersionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetVersionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetVersionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetVersionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetVersionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpToolsetVersionCollection( + 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.databasetools.responses + .ListDatabaseToolsMcpToolsetVersionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpToolsetsConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpToolsetsConverter.java new file mode 100644 index 00000000000..7a63b15e6f8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsMcpToolsetsConverter.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpToolsetsConverter { + 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(ListDatabaseToolsMcpToolsetsConverter.class); + + public static com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpToolsetsRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpToolsetsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ListDatabaseToolsMcpToolsetsRequest 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("/20201005").path("databaseToolsMcpToolsets"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getDatabaseToolsMcpServerId() != null) { + target = + target.queryParam( + "databaseToolsMcpServerId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDatabaseToolsMcpServerId())); + } + + 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.databasetools.responses.ListDatabaseToolsMcpToolsetsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpToolsetsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpToolsetsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetsResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ListDatabaseToolsMcpToolsetsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolsetCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetsResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsMcpToolsetsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpToolsetCollection(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.databasetools.responses + .ListDatabaseToolsMcpToolsetsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsSqlReportsConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsSqlReportsConverter.java new file mode 100644 index 00000000000..3e4cf95384a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/ListDatabaseToolsSqlReportsConverter.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsSqlReportsConverter { + 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(ListDatabaseToolsSqlReportsConverter.class); + + public static com.oracle.bmc.databasetools.requests.ListDatabaseToolsSqlReportsRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.ListDatabaseToolsSqlReportsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.ListDatabaseToolsSqlReportsRequest 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("/20201005").path("databaseToolsSqlReports"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + 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.databasetools.responses.ListDatabaseToolsSqlReportsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.ListDatabaseToolsSqlReportsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.ListDatabaseToolsSqlReportsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsSqlReportsResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .ListDatabaseToolsSqlReportsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.ListDatabaseToolsSqlReportsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReportCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsSqlReportsResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .ListDatabaseToolsSqlReportsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsSqlReportCollection(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.databasetools.responses + .ListDatabaseToolsSqlReportsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.java new file mode 100644 index 00000000000..01e01b8d53f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter { + 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( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockConverter.class); + + public static com.oracle.bmc.databasetools.requests + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .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.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfig(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.databasetools.responses + .RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsMcpServerLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsMcpServerLockConverter.java new file mode 100644 index 00000000000..46a7f795a3a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsMcpServerLockConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsMcpServerLockConverter { + 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(RemoveDatabaseToolsMcpServerLockConverter.class); + + public static com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsMcpServerLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsMcpServerLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsMcpServerLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())) + .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.databasetools.responses.RemoveDatabaseToolsMcpServerLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.RemoveDatabaseToolsMcpServerLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpServerLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpServerLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpServerLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.RemoveDatabaseToolsMcpServerLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpServer> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpServerLockResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpServerLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpServer(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.databasetools.responses + .RemoveDatabaseToolsMcpServerLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsMcpToolsetLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsMcpToolsetLockConverter.java new file mode 100644 index 00000000000..44c49ad17c1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsMcpToolsetLockConverter.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsMcpToolsetLockConverter { + 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(RemoveDatabaseToolsMcpToolsetLockConverter.class); + + public static com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsMcpToolsetLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsMcpToolsetLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsMcpToolsetLockRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpToolsets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpToolsetId())) + .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.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.RemoveDatabaseToolsMcpToolsetLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsMcpToolset> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsMcpToolset(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.databasetools.responses + .RemoveDatabaseToolsMcpToolsetLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsSqlReportLockConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsSqlReportLockConverter.java new file mode 100644 index 00000000000..479ee46496a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/RemoveDatabaseToolsSqlReportLockConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsSqlReportLockConverter { + 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(RemoveDatabaseToolsSqlReportLockConverter.class); + + public static com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsSqlReportLockRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsSqlReportLockRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.RemoveDatabaseToolsSqlReportLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsSqlReports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsSqlReportId())) + .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.databasetools.responses.RemoveDatabaseToolsSqlReportLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.RemoveDatabaseToolsSqlReportLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsSqlReportLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsSqlReportLockResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsSqlReportLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.RemoveDatabaseToolsSqlReportLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsSqlReportLockResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .RemoveDatabaseToolsSqlReportLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsSqlReport(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.databasetools.responses + .RemoveDatabaseToolsSqlReportLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.java new file mode 100644 index 00000000000..a2685425b72 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigConverter { + 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( + UpdateDatabaseToolsDatabaseApiGatewayConfigConverter.class); + + public static com.oracle.bmc.databasetools.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigRequest + interceptRequest( + com.oracle.bmc.databasetools.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsDatabaseApiGatewayConfigRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())); + + 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); + + 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.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsDatabaseApiGatewayConfigResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + .Builder + builder = + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfig(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsMcpServerConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsMcpServerConverter.java new file mode 100644 index 00000000000..979d0318259 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsMcpServerConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsMcpServerConverter { + 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(UpdateDatabaseToolsMcpServerConverter.class); + + public static com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsMcpServerRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsMcpServerRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsMcpServerRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsMcpServerDetails(), + "updateDatabaseToolsMcpServerDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpServers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpServerId())); + + 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); + + 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.databasetools.responses.UpdateDatabaseToolsMcpServerResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsMcpServerResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsMcpServerResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpServerResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpServerResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsMcpServerResponse"); + 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.databasetools.responses + .UpdateDatabaseToolsMcpServerResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpServerResponse + .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.databasetools.responses + .UpdateDatabaseToolsMcpServerResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsMcpToolsetConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsMcpToolsetConverter.java new file mode 100644 index 00000000000..58119cf3e32 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsMcpToolsetConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsMcpToolsetConverter { + 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(UpdateDatabaseToolsMcpToolsetConverter.class); + + public static com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsMcpToolsetRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsMcpToolsetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsMcpToolsetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsMcpToolsetDetails(), + "updateDatabaseToolsMcpToolsetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsMcpToolsets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsMcpToolsetId())); + + 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); + + 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.databasetools.responses.UpdateDatabaseToolsMcpToolsetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsMcpToolsetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpToolsetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpToolsetResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpToolsetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsMcpToolsetResponse"); + 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.databasetools.responses + .UpdateDatabaseToolsMcpToolsetResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsMcpToolsetResponse + .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.databasetools.responses + .UpdateDatabaseToolsMcpToolsetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsSqlReportConverter.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsSqlReportConverter.java new file mode 100644 index 00000000000..170c711e7c3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/internal/http/UpdateDatabaseToolsSqlReportConverter.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetools.model.*; +import com.oracle.bmc.databasetools.requests.*; +import com.oracle.bmc.databasetools.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsSqlReportConverter { + 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(UpdateDatabaseToolsSqlReportConverter.class); + + public static com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsSqlReportRequest + interceptRequest( + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsSqlReportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetools.requests.UpdateDatabaseToolsSqlReportRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsSqlReportDetails(), + "updateDatabaseToolsSqlReportDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201005") + .path("databaseToolsSqlReports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsSqlReportId())); + + 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); + + 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.databasetools.responses.UpdateDatabaseToolsSqlReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsSqlReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsSqlReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsSqlReportResponse>() { + @Override + public com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsSqlReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetools.responses.UpdateDatabaseToolsSqlReportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetools.model + .DatabaseToolsSqlReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsSqlReportResponse.Builder + builder = + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsSqlReportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsSqlReport(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetools.responses + .UpdateDatabaseToolsSqlReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/AuthenticationType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/AuthenticationType.java new file mode 100644 index 00000000000..dbe35fcf6cd --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/AuthenticationType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The authentication type to use. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum AuthenticationType { + Token("TOKEN"), + Password("PASSWORD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AuthenticationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AuthenticationType v : AuthenticationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AuthenticationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AuthenticationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AuthenticationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails.java new file mode 100644 index 00000000000..7ed040cd86f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Contains the details for the compartment to move the Database Tools database API gateway config to. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools database API gateway config to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools database API gateway config to. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails build() { + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails model = + new ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails( + this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools database API gateway config to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools database API gateway config to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails)) { + return false; + } + + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails other = + (ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpServerCompartmentDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpServerCompartmentDetails.java new file mode 100644 index 00000000000..4c10633ed9f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpServerCompartmentDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Contains the details for the compartment to move the Database Tools MCP server to. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsMcpServerCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeDatabaseToolsMcpServerCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDatabaseToolsMcpServerCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP server to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP server to. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDatabaseToolsMcpServerCompartmentDetails build() { + ChangeDatabaseToolsMcpServerCompartmentDetails model = + new ChangeDatabaseToolsMcpServerCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDatabaseToolsMcpServerCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP server to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP server to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDatabaseToolsMcpServerCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsMcpServerCompartmentDetails)) { + return false; + } + + ChangeDatabaseToolsMcpServerCompartmentDetails other = + (ChangeDatabaseToolsMcpServerCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpToolsetCompartmentDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpToolsetCompartmentDetails.java new file mode 100644 index 00000000000..fdcc87ba2d9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpToolsetCompartmentDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Contains the details for the compartment to move the Database Tools MCP Toolset to. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsMcpToolsetCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeDatabaseToolsMcpToolsetCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDatabaseToolsMcpToolsetCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDatabaseToolsMcpToolsetCompartmentDetails build() { + ChangeDatabaseToolsMcpToolsetCompartmentDetails model = + new ChangeDatabaseToolsMcpToolsetCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDatabaseToolsMcpToolsetCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDatabaseToolsMcpToolsetCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsMcpToolsetCompartmentDetails)) { + return false; + } + + ChangeDatabaseToolsMcpToolsetCompartmentDetails other = + (ChangeDatabaseToolsMcpToolsetCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsSqlReportCompartmentDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsSqlReportCompartmentDetails.java new file mode 100644 index 00000000000..39f749a5fb7 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsSqlReportCompartmentDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Contains the details for the compartment to move the Database Tools SQL Report to. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsSqlReportCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeDatabaseToolsSqlReportCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDatabaseToolsSqlReportCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools SQL Report to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools SQL Report to. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDatabaseToolsSqlReportCompartmentDetails build() { + ChangeDatabaseToolsSqlReportCompartmentDetails model = + new ChangeDatabaseToolsSqlReportCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDatabaseToolsSqlReportCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools SQL Report to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools SQL Report to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDatabaseToolsSqlReportCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsSqlReportCompartmentDetails)) { + return false; + } + + ChangeDatabaseToolsSqlReportCompartmentDetails other = + (ChangeDatabaseToolsSqlReportCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionDetails.java index 3081db97400..b42b5fda79f 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionDetails.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionDetails.java @@ -163,13 +163,15 @@ public RuntimeSupport getRuntimeSupport() { } /** - * Specifies the identity used by the Database Tools service to issue requests to other OCI services (e.g., Secrets in Vault). + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("runtimeIdentity") private final RuntimeIdentity runtimeIdentity; /** - * Specifies the identity used by the Database Tools service to issue requests to other OCI services (e.g., Secrets in Vault). + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * * @return the value **/ public RuntimeIdentity getRuntimeIdentity() { diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionOracleDatabaseDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionOracleDatabaseDetails.java index fe14217a36f..a45bc3d924b 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionOracleDatabaseDetails.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsConnectionOracleDatabaseDetails.java @@ -203,6 +203,22 @@ public Builder proxyClient( this.__explicitlySet__.add("proxyClient"); return this; } + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + private AuthenticationType authenticationType; + + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + * @param authenticationType the value to set + * @return this builder + **/ + public Builder authenticationType(AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + this.__explicitlySet__.add("authenticationType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -224,7 +240,8 @@ public CreateDatabaseToolsConnectionOracleDatabaseDetails build() { this.advancedProperties, this.keyStores, this.privateEndpointId, - this.proxyClient); + this.proxyClient, + this.authenticationType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -278,6 +295,9 @@ public Builder copy(CreateDatabaseToolsConnectionOracleDatabaseDetails model) { if (model.wasPropertyExplicitlySet("proxyClient")) { this.proxyClient(model.getProxyClient()); } + if (model.wasPropertyExplicitlySet("authenticationType")) { + this.authenticationType(model.getAuthenticationType()); + } return this; } } @@ -309,7 +329,8 @@ public CreateDatabaseToolsConnectionOracleDatabaseDetails( java.util.Map advancedProperties, java.util.List keyStores, String privateEndpointId, - DatabaseToolsConnectionOracleDatabaseProxyClientDetails proxyClient) { + DatabaseToolsConnectionOracleDatabaseProxyClientDetails proxyClient, + AuthenticationType authenticationType) { super( displayName, compartmentId, @@ -326,6 +347,7 @@ public CreateDatabaseToolsConnectionOracleDatabaseDetails( this.keyStores = keyStores; this.privateEndpointId = privateEndpointId; this.proxyClient = proxyClient; + this.authenticationType = authenticationType; } @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") @@ -423,6 +445,20 @@ public DatabaseToolsConnectionOracleDatabaseProxyClientDetails getProxyClient() return proxyClient; } + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + private final AuthenticationType authenticationType; + + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + * @return the value + **/ + public AuthenticationType getAuthenticationType() { + return authenticationType; + } + @Override public String toString() { return this.toString(true); @@ -445,6 +481,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", keyStores=").append(String.valueOf(this.keyStores)); sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); sb.append(", proxyClient=").append(String.valueOf(this.proxyClient)); + sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); sb.append(")"); return sb.toString(); } @@ -468,6 +505,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.keyStores, other.keyStores) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) && java.util.Objects.equals(this.proxyClient, other.proxyClient) + && java.util.Objects.equals(this.authenticationType, other.authenticationType) && super.equals(other); } @@ -493,6 +531,11 @@ public int hashCode() { (result * PRIME) + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); result = (result * PRIME) + (this.proxyClient == null ? 43 : this.proxyClient.hashCode()); + result = + (result * PRIME) + + (this.authenticationType == null + ? 43 + : this.authenticationType.hashCode()); return result; } } diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.java new file mode 100644 index 00000000000..16dff743d76 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools database API gateway config for the default type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.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 CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails + extends CreateDatabaseToolsDatabaseApiGatewayConfigDetails { + @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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private DatabaseApiGatewayConfigMetadataSource metadataSource; + + public Builder metadataSource(DatabaseApiGatewayConfigMetadataSource metadataSource) { + this.metadataSource = metadataSource; + this.__explicitlySet__.add("metadataSource"); + 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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails build() { + CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails model = + new CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails( + this.compartmentId, + this.displayName, + this.metadataSource, + this.definedTags, + this.freeformTags, + this.locks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("metadataSource")) { + this.metadataSource(model.getMetadataSource()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails( + String compartmentId, + String displayName, + DatabaseApiGatewayConfigMetadataSource metadataSource, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks) { + super(compartmentId, displayName, metadataSource, definedTags, freeformTags, locks); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails("); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDetails.java new file mode 100644 index 00000000000..2089222cb12 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDetails.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools database API gateway config. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsDatabaseApiGatewayConfigDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "metadataSource", + "definedTags", + "freeformTags", + "locks" + }) + protected CreateDatabaseToolsDatabaseApiGatewayConfigDetails( + String compartmentId, + String displayName, + DatabaseApiGatewayConfigMetadataSource metadataSource, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.metadataSource = metadataSource; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The RESTful service definition location. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private final DatabaseApiGatewayConfigMetadataSource metadataSource; + + /** + * The RESTful service definition location. + * @return the value + **/ + public DatabaseApiGatewayConfigMetadataSource getMetadataSource() { + return metadataSource; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", metadataSource=").append(String.valueOf(this.metadataSource)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.metadataSource, other.metadataSource) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.metadataSource == null ? 43 : this.metadataSource.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDefaultDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDefaultDetails.java new file mode 100644 index 00000000000..8aaf409113f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDefaultDetails.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpServerDefaultDetails.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 CreateDatabaseToolsMcpServerDefaultDetails + extends CreateDatabaseToolsMcpServerDetails { + @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("customRoles") + private java.util.List customRoles; + + public Builder customRoles(java.util.List customRoles) { + this.customRoles = customRoles; + this.__explicitlySet__.add("customRoles"); + 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("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenExpiryInSeconds") + private Integer accessTokenExpiryInSeconds; + + public Builder accessTokenExpiryInSeconds(Integer accessTokenExpiryInSeconds) { + this.accessTokenExpiryInSeconds = accessTokenExpiryInSeconds; + this.__explicitlySet__.add("accessTokenExpiryInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("refreshTokenExpiryInSeconds") + private Integer refreshTokenExpiryInSeconds; + + public Builder refreshTokenExpiryInSeconds(Integer refreshTokenExpiryInSeconds) { + this.refreshTokenExpiryInSeconds = refreshTokenExpiryInSeconds; + this.__explicitlySet__.add("refreshTokenExpiryInSeconds"); + 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("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("runtimeIdentity") + private DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity; + + public Builder runtimeIdentity(DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity) { + this.runtimeIdentity = runtimeIdentity; + this.__explicitlySet__.add("runtimeIdentity"); + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private String domainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + * @param domainId the value to set + * @return this builder + **/ + public Builder domainId(String domainId) { + this.domainId = domainId; + this.__explicitlySet__.add("domainId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private DatabaseToolsMcpServerStorage storage; + + public Builder storage(DatabaseToolsMcpServerStorage storage) { + this.storage = storage; + this.__explicitlySet__.add("storage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsMcpServerDefaultDetails build() { + CreateDatabaseToolsMcpServerDefaultDetails model = + new CreateDatabaseToolsMcpServerDefaultDetails( + this.compartmentId, + this.customRoles, + this.displayName, + this.description, + this.databaseToolsConnectionId, + this.accessTokenExpiryInSeconds, + this.refreshTokenExpiryInSeconds, + this.definedTags, + this.freeformTags, + this.runtimeIdentity, + this.locks, + this.domainId, + this.storage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsMcpServerDefaultDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("customRoles")) { + this.customRoles(model.getCustomRoles()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("accessTokenExpiryInSeconds")) { + this.accessTokenExpiryInSeconds(model.getAccessTokenExpiryInSeconds()); + } + if (model.wasPropertyExplicitlySet("refreshTokenExpiryInSeconds")) { + this.refreshTokenExpiryInSeconds(model.getRefreshTokenExpiryInSeconds()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("runtimeIdentity")) { + this.runtimeIdentity(model.getRuntimeIdentity()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("domainId")) { + this.domainId(model.getDomainId()); + } + if (model.wasPropertyExplicitlySet("storage")) { + this.storage(model.getStorage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsMcpServerDefaultDetails( + String compartmentId, + java.util.List customRoles, + String displayName, + String description, + String databaseToolsConnectionId, + Integer accessTokenExpiryInSeconds, + Integer refreshTokenExpiryInSeconds, + java.util.Map> definedTags, + java.util.Map freeformTags, + DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity, + java.util.List locks, + String domainId, + DatabaseToolsMcpServerStorage storage) { + super( + compartmentId, + customRoles, + displayName, + description, + databaseToolsConnectionId, + accessTokenExpiryInSeconds, + refreshTokenExpiryInSeconds, + definedTags, + freeformTags, + runtimeIdentity, + locks); + this.domainId = domainId; + this.storage = storage; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private final String domainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + * @return the value + **/ + public String getDomainId() { + return domainId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private final DatabaseToolsMcpServerStorage storage; + + public DatabaseToolsMcpServerStorage getStorage() { + return storage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpServerDefaultDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", domainId=").append(String.valueOf(this.domainId)); + sb.append(", storage=").append(String.valueOf(this.storage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpServerDefaultDetails)) { + return false; + } + + CreateDatabaseToolsMcpServerDefaultDetails other = + (CreateDatabaseToolsMcpServerDefaultDetails) o; + return java.util.Objects.equals(this.domainId, other.domainId) + && java.util.Objects.equals(this.storage, other.storage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = (result * PRIME) + (this.storage == null ? 43 : this.storage.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDetails.java new file mode 100644 index 00000000000..42ef1f06fb6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDetails.java @@ -0,0 +1,330 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsMcpServerDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsMcpServerDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsMcpServerDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "customRoles", + "displayName", + "description", + "databaseToolsConnectionId", + "accessTokenExpiryInSeconds", + "refreshTokenExpiryInSeconds", + "definedTags", + "freeformTags", + "runtimeIdentity", + "locks" + }) + protected CreateDatabaseToolsMcpServerDetails( + String compartmentId, + java.util.List customRoles, + String displayName, + String description, + String databaseToolsConnectionId, + Integer accessTokenExpiryInSeconds, + Integer refreshTokenExpiryInSeconds, + java.util.Map> definedTags, + java.util.Map freeformTags, + DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity, + java.util.List locks) { + super(); + this.compartmentId = compartmentId; + this.customRoles = customRoles; + this.displayName = displayName; + this.description = description; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.accessTokenExpiryInSeconds = accessTokenExpiryInSeconds; + this.refreshTokenExpiryInSeconds = refreshTokenExpiryInSeconds; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.runtimeIdentity = runtimeIdentity; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Custom Roles associated with the MCP Server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customRoles") + private final java.util.List customRoles; + + /** + * Custom Roles associated with the MCP Server. + * @return the value + **/ + public java.util.List getCustomRoles() { + return customRoles; + } + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A human-readable description of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description of the Database Tools MCP server. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Access token expiry in seconds + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenExpiryInSeconds") + private final Integer accessTokenExpiryInSeconds; + + /** + * Access token expiry in seconds + * @return the value + **/ + public Integer getAccessTokenExpiryInSeconds() { + return accessTokenExpiryInSeconds; + } + + /** + * Refresh token expiry in seconds + **/ + @com.fasterxml.jackson.annotation.JsonProperty("refreshTokenExpiryInSeconds") + private final Integer refreshTokenExpiryInSeconds; + + /** + * Refresh token expiry in seconds + * @return the value + **/ + public Integer getRefreshTokenExpiryInSeconds() { + return refreshTokenExpiryInSeconds; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("runtimeIdentity") + private final DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity; + + /** + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + * @return the value + **/ + public DatabaseToolsMcpServerRuntimeIdentity getRuntimeIdentity() { + return runtimeIdentity; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpServerDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", customRoles=").append(String.valueOf(this.customRoles)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", accessTokenExpiryInSeconds=") + .append(String.valueOf(this.accessTokenExpiryInSeconds)); + sb.append(", refreshTokenExpiryInSeconds=") + .append(String.valueOf(this.refreshTokenExpiryInSeconds)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", runtimeIdentity=").append(String.valueOf(this.runtimeIdentity)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpServerDetails)) { + return false; + } + + CreateDatabaseToolsMcpServerDetails other = (CreateDatabaseToolsMcpServerDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.customRoles, other.customRoles) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals( + this.accessTokenExpiryInSeconds, other.accessTokenExpiryInSeconds) + && java.util.Objects.equals( + this.refreshTokenExpiryInSeconds, other.refreshTokenExpiryInSeconds) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.runtimeIdentity, other.runtimeIdentity) + && java.util.Objects.equals(this.locks, other.locks) + && 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.customRoles == null ? 43 : this.customRoles.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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.accessTokenExpiryInSeconds == null + ? 43 + : this.accessTokenExpiryInSeconds.hashCode()); + result = + (result * PRIME) + + (this.refreshTokenExpiryInSeconds == null + ? 43 + : this.refreshTokenExpiryInSeconds.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.runtimeIdentity == null ? 43 : this.runtimeIdentity.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.java new file mode 100644 index 00000000000..b1d51dc9fbd --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools MCP Toolset of type Built-in SQL tools. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.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 CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails + extends CreateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + 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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails build() { + CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails model = + new CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails( + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.description, + this.definedTags, + this.freeformTags, + this.locks, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails( + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + description, + definedTags, + freeformTags, + locks); + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails)) { + return false; + } + + CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails other = + (CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails) o; + return java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomSqlToolDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomSqlToolDetails.java new file mode 100644 index 00000000000..a4366bffad7 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomSqlToolDetails.java @@ -0,0 +1,464 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools MCP Toolset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpToolsetCustomSqlToolDetails.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 CreateDatabaseToolsMcpToolsetCustomSqlToolDetails + extends CreateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + 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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @param toolDescription the value to set + * @return this builder + **/ + public Builder toolDescription(String toolDescription) { + this.toolDescription = toolDescription; + this.__explicitlySet__.add("toolDescription"); + return this; + } + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private String toolName; + + /** + * Name of the tool returned by the MCP Server + * @param toolName the value to set + * @return this builder + **/ + public Builder toolName(String toolName) { + this.toolName = toolName; + this.__explicitlySet__.add("toolName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private DatabaseToolsCustomSqlToolToolsetSource source; + + public Builder source(DatabaseToolsCustomSqlToolToolsetSource source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + /** + * The variables to use with the query + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private java.util.List variables; + + /** + * The variables to use with the query + * @param variables the value to set + * @return this builder + **/ + public Builder variables( + java.util.List variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + /** + * The roles granted access to the MCP tool generated by this toolset + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to the MCP tool generated by this toolset + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsMcpToolsetCustomSqlToolDetails build() { + CreateDatabaseToolsMcpToolsetCustomSqlToolDetails model = + new CreateDatabaseToolsMcpToolsetCustomSqlToolDetails( + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.description, + this.definedTags, + this.freeformTags, + this.locks, + this.toolDescription, + this.toolName, + this.source, + this.variables, + this.allowedRoles, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsMcpToolsetCustomSqlToolDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("toolDescription")) { + this.toolDescription(model.getToolDescription()); + } + if (model.wasPropertyExplicitlySet("toolName")) { + this.toolName(model.getToolName()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsMcpToolsetCustomSqlToolDetails( + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks, + String toolDescription, + String toolName, + DatabaseToolsCustomSqlToolToolsetSource source, + java.util.List variables, + java.util.List allowedRoles, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + description, + definedTags, + freeformTags, + locks); + this.toolDescription = toolDescription; + this.toolName = toolName; + this.source = source; + this.variables = variables; + this.allowedRoles = allowedRoles; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private final String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @return the value + **/ + public String getToolDescription() { + return toolDescription; + } + + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private final String toolName; + + /** + * Name of the tool returned by the MCP Server + * @return the value + **/ + public String getToolName() { + return toolName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final DatabaseToolsCustomSqlToolToolsetSource source; + + public DatabaseToolsCustomSqlToolToolsetSource getSource() { + return source; + } + + /** + * The variables to use with the query + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final java.util.List variables; + + /** + * The variables to use with the query + * @return the value + **/ + public java.util.List getVariables() { + return variables; + } + + /** + * The roles granted access to the MCP tool generated by this toolset + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to the MCP tool generated by this toolset + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpToolsetCustomSqlToolDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", toolDescription=").append(String.valueOf(this.toolDescription)); + sb.append(", toolName=").append(String.valueOf(this.toolName)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetCustomSqlToolDetails)) { + return false; + } + + CreateDatabaseToolsMcpToolsetCustomSqlToolDetails other = + (CreateDatabaseToolsMcpToolsetCustomSqlToolDetails) o; + return java.util.Objects.equals(this.toolDescription, other.toolDescription) + && java.util.Objects.equals(this.toolName, other.toolName) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.toolDescription == null ? 43 : this.toolDescription.hashCode()); + result = (result * PRIME) + (this.toolName == null ? 43 : this.toolName.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.java new file mode 100644 index 00000000000..2f7cc61504f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.java @@ -0,0 +1,359 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP Toolset information to be updated for the Customizable reporting tools type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.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 CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails + extends CreateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + 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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * List of Database Tools SQL Reports + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private java.util.List reports; + + /** + * List of Database Tools SQL Reports + * @param reports the value to set + * @return this builder + **/ + public Builder reports( + java.util.List reports) { + this.reports = reports; + this.__explicitlySet__.add("reports"); + return this; + } + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails build() { + CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails model = + new CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails( + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.description, + this.definedTags, + this.freeformTags, + this.locks, + this.reports, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("reports")) { + this.reports(model.getReports()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails( + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks, + java.util.List reports, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + description, + definedTags, + freeformTags, + locks); + this.reports = reports; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools SQL Reports + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private final java.util.List reports; + + /** + * List of Database Tools SQL Reports + * @return the value + **/ + public java.util.List getReports() { + return reports; + } + + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", reports=").append(String.valueOf(this.reports)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails)) { + return false; + } + + CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails other = + (CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails) o; + return java.util.Objects.equals(this.reports, other.reports) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.reports == null ? 43 : this.reports.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetDetails.java new file mode 100644 index 00000000000..98d6beddad7 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetDetails.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsMcpToolsetDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.class, + name = "BUILT_IN_SQL_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsMcpToolsetCustomSqlToolDetails.class, + name = "CUSTOM_SQL_TOOL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.class, + name = "GENAI_SQL_ASSISTANT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.class, + name = "CUSTOMIZABLE_REPORTING_TOOLS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsMcpToolsetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "version", + "compartmentId", + "displayName", + "databaseToolsMcpServerId", + "description", + "definedTags", + "freeformTags", + "locks" + }) + protected CreateDatabaseToolsMcpToolsetDetails( + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks) { + super(); + this.version = version; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.description = description; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.locks = locks; + } + + /** + * The MCP toolset version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The MCP toolset version + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the Database Tools MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private final String databaseToolsMcpServerId; + + /** + * The OCID of the Database Tools MCP Server + * @return the value + **/ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + + /** + * A human readable description of the Database Tools MCP toolset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human readable description of the Database Tools MCP toolset. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpToolsetDetails("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetDetails)) { + return false; + } + + CreateDatabaseToolsMcpToolsetDetails other = (CreateDatabaseToolsMcpToolsetDetails) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.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.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.java new file mode 100644 index 00000000000..9e3f6cfe1b0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.java @@ -0,0 +1,364 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools MCP Toolset of type GenAI SQL Assistant. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.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 CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails + extends CreateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + 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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @param generativeAiSemanticStoreId the value to set + * @return this builder + **/ + public Builder generativeAiSemanticStoreId(String generativeAiSemanticStoreId) { + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.__explicitlySet__.add("generativeAiSemanticStoreId"); + return this; + } + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails build() { + CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails model = + new CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails( + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.description, + this.definedTags, + this.freeformTags, + this.locks, + this.generativeAiSemanticStoreId, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("generativeAiSemanticStoreId")) { + this.generativeAiSemanticStoreId(model.getGenerativeAiSemanticStoreId()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails( + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks, + String generativeAiSemanticStoreId, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + description, + definedTags, + freeformTags, + locks); + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private final String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @return the value + **/ + public String getGenerativeAiSemanticStoreId() { + return generativeAiSemanticStoreId; + } + + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", generativeAiSemanticStoreId=") + .append(String.valueOf(this.generativeAiSemanticStoreId)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails)) { + return false; + } + + CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails other = + (CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails) o; + return java.util.Objects.equals( + this.generativeAiSemanticStoreId, other.generativeAiSemanticStoreId) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.generativeAiSemanticStoreId == null + ? 43 + : this.generativeAiSemanticStoreId.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetToolDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetToolDetails.java new file mode 100644 index 00000000000..234f403596f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetToolDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * MCP toolset tool configuration + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpToolsetToolDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateDatabaseToolsMcpToolsetToolDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "status", "allowedRoles"}) + public CreateDatabaseToolsMcpToolsetToolDetails( + String name, + DatabaseToolsMcpToolsetToolStatus status, + java.util.List allowedRoles) { + super(); + this.name = name; + this.status = status; + this.allowedRoles = allowedRoles; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the tool + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The status of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private DatabaseToolsMcpToolsetToolStatus status; + + /** + * The status of the tool + * @param status the value to set + * @return this builder + **/ + public Builder status(DatabaseToolsMcpToolsetToolStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The roles granted access to this tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to this tool + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsMcpToolsetToolDetails build() { + CreateDatabaseToolsMcpToolsetToolDetails model = + new CreateDatabaseToolsMcpToolsetToolDetails( + this.name, this.status, this.allowedRoles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsMcpToolsetToolDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + 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 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the tool + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The status of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final DatabaseToolsMcpToolsetToolStatus status; + + /** + * The status of the tool + * @return the value + **/ + public DatabaseToolsMcpToolsetToolStatus getStatus() { + return status; + } + + /** + * The roles granted access to this tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to this tool + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsMcpToolsetToolDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetToolDetails)) { + return false; + } + + CreateDatabaseToolsMcpToolsetToolDetails other = + (CreateDatabaseToolsMcpToolsetToolDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && 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.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportDetails.java new file mode 100644 index 00000000000..d87ee9c436c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportDetails.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools SQL report. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsSqlReportDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsSqlReportOracleDatabaseDetails.class, + name = "ORACLE_DATABASE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsSqlReportDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "source", + "description", + "purpose", + "instructions", + "variables", + "columns", + "definedTags", + "freeformTags", + "locks" + }) + protected CreateDatabaseToolsSqlReportDetails( + String compartmentId, + String displayName, + String source, + String description, + String purpose, + String instructions, + java.util.List variables, + java.util.List columns, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.source = source; + this.description = description; + this.purpose = purpose; + this.instructions = instructions; + this.variables = variables; + this.columns = columns; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools SQL report. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * SQL query executed to generate the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final String source; + + /** + * SQL query executed to generate the report. + * @return the value + **/ + public String getSource() { + return source; + } + + /** + * A description of the SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the SQL report. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("purpose") + private final String purpose; + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + * @return the value + **/ + public String getPurpose() { + return purpose; + } + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private final String instructions; + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + * @return the value + **/ + public String getInstructions() { + return instructions; + } + + /** + * Variables referenced in the Database Tools SQL Report source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final java.util.List variables; + + /** + * Variables referenced in the Database Tools SQL Report source. + * @return the value + **/ + public java.util.List getVariables() { + return variables; + } + + /** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("columns") + private final java.util.List columns; + + /** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + * @return the value + **/ + public java.util.List getColumns() { + return columns; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsSqlReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", purpose=").append(String.valueOf(this.purpose)); + sb.append(", instructions=").append(String.valueOf(this.instructions)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", columns=").append(String.valueOf(this.columns)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsSqlReportDetails)) { + return false; + } + + CreateDatabaseToolsSqlReportDetails other = (CreateDatabaseToolsSqlReportDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.purpose, other.purpose) + && java.util.Objects.equals(this.instructions, other.instructions) + && java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.columns, other.columns) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.purpose == null ? 43 : this.purpose.hashCode()); + result = (result * PRIME) + (this.instructions == null ? 43 : this.instructions.hashCode()); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.columns == null ? 43 : this.columns.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportOracleDatabaseDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportOracleDatabaseDetails.java new file mode 100644 index 00000000000..6e75fca7164 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportOracleDatabaseDetails.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Details for the new Database Tools SQL report. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsSqlReportOracleDatabaseDetails.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 CreateDatabaseToolsSqlReportOracleDatabaseDetails + extends CreateDatabaseToolsSqlReportDetails { + @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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private String source; + + public Builder source(String source) { + this.source = source; + this.__explicitlySet__.add("source"); + 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("purpose") + private String purpose; + + public Builder purpose(String purpose) { + this.purpose = purpose; + this.__explicitlySet__.add("purpose"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private String instructions; + + public Builder instructions(String instructions) { + this.instructions = instructions; + this.__explicitlySet__.add("instructions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private java.util.List variables; + + public Builder variables(java.util.List variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("columns") + private java.util.List columns; + + public Builder columns(java.util.List columns) { + this.columns = columns; + this.__explicitlySet__.add("columns"); + 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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsSqlReportOracleDatabaseDetails build() { + CreateDatabaseToolsSqlReportOracleDatabaseDetails model = + new CreateDatabaseToolsSqlReportOracleDatabaseDetails( + this.compartmentId, + this.displayName, + this.source, + this.description, + this.purpose, + this.instructions, + this.variables, + this.columns, + this.definedTags, + this.freeformTags, + this.locks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsSqlReportOracleDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("purpose")) { + this.purpose(model.getPurpose()); + } + if (model.wasPropertyExplicitlySet("instructions")) { + this.instructions(model.getInstructions()); + } + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("columns")) { + this.columns(model.getColumns()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsSqlReportOracleDatabaseDetails( + String compartmentId, + String displayName, + String source, + String description, + String purpose, + String instructions, + java.util.List variables, + java.util.List columns, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List locks) { + super( + compartmentId, + displayName, + source, + description, + purpose, + instructions, + variables, + columns, + definedTags, + freeformTags, + locks); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsSqlReportOracleDatabaseDetails("); + 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 CreateDatabaseToolsSqlReportOracleDatabaseDetails)) { + return false; + } + + CreateDatabaseToolsSqlReportOracleDatabaseDetails other = + (CreateDatabaseToolsSqlReportOracleDatabaseDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigMetadataSource.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigMetadataSource.java new file mode 100644 index 00000000000..0731daa06ab --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigMetadataSource.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The RESTful service definition location. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseApiGatewayConfigMetadataSource { + Database("DATABASE"), + Cloud("CLOUD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseApiGatewayConfigMetadataSource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiGatewayConfigMetadataSource v : + DatabaseApiGatewayConfigMetadataSource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseApiGatewayConfigMetadataSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiGatewayConfigMetadataSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseApiGatewayConfigMetadataSource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigType.java new file mode 100644 index 00000000000..e33147979b2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The Database Tools database API gateway config type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseApiGatewayConfigType { + Default("DEFAULT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseApiGatewayConfigType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiGatewayConfigType v : DatabaseApiGatewayConfigType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseApiGatewayConfigType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiGatewayConfigType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseApiGatewayConfigType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnection.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnection.java index e6b7e86d1f6..5ed23781aea 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnection.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnection.java @@ -285,13 +285,15 @@ public String getRuntimeEndpoint() { } /** - * Specifies the identity used by the Database Tools service to issue requests to other OCI services (e.g., Secrets in Vault). + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("runtimeIdentity") private final RuntimeIdentity runtimeIdentity; /** - * Specifies the identity used by the Database Tools service to issue requests to other OCI services (e.g., Secrets in Vault). + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * * @return the value **/ public RuntimeIdentity getRuntimeIdentity() { diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabase.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabase.java index d76525c074e..dec20574601 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabase.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabase.java @@ -179,13 +179,13 @@ public Builder connectionString(String connectionString) { return this; } /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). **/ @com.fasterxml.jackson.annotation.JsonProperty("userName") private String userName; /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). * @param userName the value to set * @return this builder **/ @@ -264,6 +264,22 @@ public Builder proxyClient(DatabaseToolsConnectionOracleDatabaseProxyClient prox this.__explicitlySet__.add("proxyClient"); return this; } + /** + * Specifies the authentication type used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + private AuthenticationType authenticationType; + + /** + * Specifies the authentication type used to connect to the database. + * @param authenticationType the value to set + * @return this builder + **/ + public Builder authenticationType(AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + this.__explicitlySet__.add("authenticationType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -292,7 +308,8 @@ public DatabaseToolsConnectionOracleDatabase build() { this.advancedProperties, this.keyStores, this.privateEndpointId, - this.proxyClient); + this.proxyClient, + this.authenticationType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -367,6 +384,9 @@ public Builder copy(DatabaseToolsConnectionOracleDatabase model) { if (model.wasPropertyExplicitlySet("proxyClient")) { this.proxyClient(model.getProxyClient()); } + if (model.wasPropertyExplicitlySet("authenticationType")) { + this.authenticationType(model.getAuthenticationType()); + } return this; } } @@ -405,7 +425,8 @@ public DatabaseToolsConnectionOracleDatabase( java.util.Map advancedProperties, java.util.List keyStores, String privateEndpointId, - DatabaseToolsConnectionOracleDatabaseProxyClient proxyClient) { + DatabaseToolsConnectionOracleDatabaseProxyClient proxyClient, + AuthenticationType authenticationType) { super( id, displayName, @@ -429,6 +450,7 @@ public DatabaseToolsConnectionOracleDatabase( this.keyStores = keyStores; this.privateEndpointId = privateEndpointId; this.proxyClient = proxyClient; + this.authenticationType = authenticationType; } @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") @@ -453,13 +475,13 @@ public String getConnectionString() { } /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). **/ @com.fasterxml.jackson.annotation.JsonProperty("userName") private final String userName; /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). * @return the value **/ public String getUserName() { @@ -526,6 +548,20 @@ public DatabaseToolsConnectionOracleDatabaseProxyClient getProxyClient() { return proxyClient; } + /** + * Specifies the authentication type used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + private final AuthenticationType authenticationType; + + /** + * Specifies the authentication type used to connect to the database. + * @return the value + **/ + public AuthenticationType getAuthenticationType() { + return authenticationType; + } + @Override public String toString() { return this.toString(true); @@ -548,6 +584,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", keyStores=").append(String.valueOf(this.keyStores)); sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); sb.append(", proxyClient=").append(String.valueOf(this.proxyClient)); + sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); sb.append(")"); return sb.toString(); } @@ -570,6 +607,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.keyStores, other.keyStores) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) && java.util.Objects.equals(this.proxyClient, other.proxyClient) + && java.util.Objects.equals(this.authenticationType, other.authenticationType) && super.equals(other); } @@ -595,6 +633,11 @@ public int hashCode() { (result * PRIME) + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); result = (result * PRIME) + (this.proxyClient == null ? 43 : this.proxyClient.hashCode()); + result = + (result * PRIME) + + (this.authenticationType == null + ? 43 + : this.authenticationType.hashCode()); return result; } } diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClient.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClient.java index 01b9bf69640..7cb9dfb540f 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClient.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClient.java @@ -26,6 +26,10 @@ value = DatabaseToolsConnectionOracleDatabaseProxyClientNoProxy.class, name = "NO_PROXY" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect.class, + name = "USER_NAME_AUTO_DETECT" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseToolsConnectionOracleDatabaseProxyClientUserName.class, name = "USER_NAME" diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientDetails.java index fb642db2d85..c1a3f81b220 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientDetails.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientDetails.java @@ -26,6 +26,10 @@ value = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameDetails.class, name = "USER_NAME" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails.class, + name = "USER_NAME_AUTO_DETECT" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseToolsConnectionOracleDatabaseProxyClientNoProxyDetails.class, name = "NO_PROXY" diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientSummary.java index 86ec6b65736..34ef8d3c430 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientSummary.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientSummary.java @@ -29,6 +29,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameSummary.class, name = "USER_NAME" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary.class, + name = "USER_NAME_AUTO_DETECT" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect.java new file mode 100644 index 00000000000..1ea6686ac53 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Proxy client information for user name auto detect based proxy authentication. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "proxyAuthenticationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect + extends DatabaseToolsConnectionOracleDatabaseProxyClient { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private java.util.List roles; + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + * @param roles the value to set + * @return this builder + **/ + public Builder roles(java.util.List roles) { + this.roles = roles; + this.__explicitlySet__.add("roles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect build() { + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect model = + new DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect( + this.roles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect model) { + if (model.wasPropertyExplicitlySet("roles")) { + this.roles(model.getRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect( + java.util.List roles) { + super(); + this.roles = roles; + } + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private final java.util.List roles; + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + * @return the value + **/ + public java.util.List getRoles() { + return roles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", roles=").append(String.valueOf(this.roles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect)) { + return false; + } + + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect other = + (DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect) o; + return java.util.Objects.equals(this.roles, other.roles) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.roles == null ? 43 : this.roles.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails.java new file mode 100644 index 00000000000..e716e76a889 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Proxy client information for user name auto detect based proxy authentication. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "proxyAuthenticationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails + extends DatabaseToolsConnectionOracleDatabaseProxyClientDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private java.util.List roles; + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + * @param roles the value to set + * @return this builder + **/ + public Builder roles(java.util.List roles) { + this.roles = roles; + this.__explicitlySet__.add("roles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails build() { + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails model = + new DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails( + this.roles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails model) { + if (model.wasPropertyExplicitlySet("roles")) { + this.roles(model.getRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails( + java.util.List roles) { + super(); + this.roles = roles; + } + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private final java.util.List roles; + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + * @return the value + **/ + public java.util.List getRoles() { + return roles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", roles=").append(String.valueOf(this.roles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o + instanceof + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails)) { + return false; + } + + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails other = + (DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails) o; + return java.util.Objects.equals(this.roles, other.roles) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.roles == null ? 43 : this.roles.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary.java new file mode 100644 index 00000000000..f1ec9c8a059 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Proxy client information for user name auto detect based proxy authentication. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "proxyAuthenticationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary + extends DatabaseToolsConnectionOracleDatabaseProxyClientSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private java.util.List roles; + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + * @param roles the value to set + * @return this builder + **/ + public Builder roles(java.util.List roles) { + this.roles = roles; + this.__explicitlySet__.add("roles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary build() { + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary model = + new DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary( + this.roles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary model) { + if (model.wasPropertyExplicitlySet("roles")) { + this.roles(model.getRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary( + java.util.List roles) { + super(); + this.roles = roles; + } + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private final java.util.List roles; + + /** + * A list of database roles for the client. These roles are enabled if the proxy is authorized to use the roles on behalf of the client. + * @return the value + **/ + public java.util.List getRoles() { + return roles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", roles=").append(String.valueOf(this.roles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o + instanceof + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary)) { + return false; + } + + DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary other = + (DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary) o; + return java.util.Objects.equals(this.roles, other.roles) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.roles == null ? 43 : this.roles.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseSummary.java index 36192da4319..ec0d1cbb821 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseSummary.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseSummary.java @@ -180,13 +180,13 @@ public Builder connectionString(String connectionString) { return this; } /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). **/ @com.fasterxml.jackson.annotation.JsonProperty("userName") private String userName; /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). * @param userName the value to set * @return this builder **/ @@ -266,6 +266,22 @@ public Builder proxyClient( this.__explicitlySet__.add("proxyClient"); return this; } + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + private AuthenticationType authenticationType; + + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + * @param authenticationType the value to set + * @return this builder + **/ + public Builder authenticationType(AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + this.__explicitlySet__.add("authenticationType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -294,7 +310,8 @@ public DatabaseToolsConnectionOracleDatabaseSummary build() { this.advancedProperties, this.keyStores, this.privateEndpointId, - this.proxyClient); + this.proxyClient, + this.authenticationType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -369,6 +386,9 @@ public Builder copy(DatabaseToolsConnectionOracleDatabaseSummary model) { if (model.wasPropertyExplicitlySet("proxyClient")) { this.proxyClient(model.getProxyClient()); } + if (model.wasPropertyExplicitlySet("authenticationType")) { + this.authenticationType(model.getAuthenticationType()); + } return this; } } @@ -407,7 +427,8 @@ public DatabaseToolsConnectionOracleDatabaseSummary( java.util.Map advancedProperties, java.util.List keyStores, String privateEndpointId, - DatabaseToolsConnectionOracleDatabaseProxyClientSummary proxyClient) { + DatabaseToolsConnectionOracleDatabaseProxyClientSummary proxyClient, + AuthenticationType authenticationType) { super( id, displayName, @@ -431,6 +452,7 @@ public DatabaseToolsConnectionOracleDatabaseSummary( this.keyStores = keyStores; this.privateEndpointId = privateEndpointId; this.proxyClient = proxyClient; + this.authenticationType = authenticationType; } @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") @@ -455,13 +477,13 @@ public String getConnectionString() { } /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). **/ @com.fasterxml.jackson.annotation.JsonProperty("userName") private final String userName; /** - * The database user name. + * The database user name. When authenticationType is TOKEN, if provided, userName must be in square brackets (for example, [proxyClient]). * @return the value **/ public String getUserName() { @@ -528,6 +550,20 @@ public DatabaseToolsConnectionOracleDatabaseProxyClientSummary getProxyClient() return proxyClient; } + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + private final AuthenticationType authenticationType; + + /** + * Specifies the authentication type used by the Database Tools service to authenticate with the database. + * @return the value + **/ + public AuthenticationType getAuthenticationType() { + return authenticationType; + } + @Override public String toString() { return this.toString(true); @@ -550,6 +586,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", keyStores=").append(String.valueOf(this.keyStores)); sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); sb.append(", proxyClient=").append(String.valueOf(this.proxyClient)); + sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); sb.append(")"); return sb.toString(); } @@ -573,6 +610,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.keyStores, other.keyStores) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) && java.util.Objects.equals(this.proxyClient, other.proxyClient) + && java.util.Objects.equals(this.authenticationType, other.authenticationType) && super.equals(other); } @@ -598,6 +636,11 @@ public int hashCode() { (result * PRIME) + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); result = (result * PRIME) + (this.proxyClient == null ? 43 : this.proxyClient.hashCode()); + result = + (result * PRIME) + + (this.authenticationType == null + ? 43 + : this.authenticationType.hashCode()); return result; } } diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionSummary.java index 6374c91cedc..929fe89e3cc 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionSummary.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionSummary.java @@ -286,13 +286,15 @@ public String getRuntimeEndpoint() { } /** - * Specifies the identity used by the Database Tools service to issue requests to other OCI services (e.g., Secrets in Vault). + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("runtimeIdentity") private final RuntimeIdentity runtimeIdentity; /** - * Specifies the identity used by the Database Tools service to issue requests to other OCI services (e.g., Secrets in Vault). + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * * @return the value **/ public RuntimeIdentity getRuntimeIdentity() { diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSource.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSource.java new file mode 100644 index 00000000000..b7d4cf2edd1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSource.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The SQL source. Can contain multiple statements with a mix of queries, DML, DCL, DLL and scripts. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsCustomSqlToolToolsetSource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsCustomSqlToolToolsetSource + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "value"}) + public DatabaseToolsCustomSqlToolToolsetSource( + DatabaseToolsCustomSqlToolToolsetSourceType type, String value) { + super(); + this.type = type; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The sql toolset sources type. INLINE is the only possible value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private DatabaseToolsCustomSqlToolToolsetSourceType type; + + /** + * The sql toolset sources type. INLINE is the only possible value. + * @param type the value to set + * @return this builder + **/ + public Builder type(DatabaseToolsCustomSqlToolToolsetSourceType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The SQL source. Can contain multiple statements with a mix of queries, DML, DCL, DLL and scripts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The SQL source. Can contain multiple statements with a mix of queries, DML, DCL, DLL and scripts. + * @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 DatabaseToolsCustomSqlToolToolsetSource build() { + DatabaseToolsCustomSqlToolToolsetSource model = + new DatabaseToolsCustomSqlToolToolsetSource(this.type, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsCustomSqlToolToolsetSource model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The sql toolset sources type. INLINE is the only possible value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final DatabaseToolsCustomSqlToolToolsetSourceType type; + + /** + * The sql toolset sources type. INLINE is the only possible value. + * @return the value + **/ + public DatabaseToolsCustomSqlToolToolsetSourceType getType() { + return type; + } + + /** + * The SQL source. Can contain multiple statements with a mix of queries, DML, DCL, DLL and scripts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The SQL source. Can contain multiple statements with a mix of queries, DML, DCL, DLL and scripts. + * @return the value + **/ + public String 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("DatabaseToolsCustomSqlToolToolsetSource("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsCustomSqlToolToolsetSource)) { + return false; + } + + DatabaseToolsCustomSqlToolToolsetSource other = (DatabaseToolsCustomSqlToolToolsetSource) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSourceType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSourceType.java new file mode 100644 index 00000000000..a98a843a31a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSourceType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The sql toolset sources type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsCustomSqlToolToolsetSourceType { + Inline("INLINE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsCustomSqlToolToolsetSourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsCustomSqlToolToolsetSourceType v : + DatabaseToolsCustomSqlToolToolsetSourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsCustomSqlToolToolsetSourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsCustomSqlToolToolsetSourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsCustomSqlToolToolsetSourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfig.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfig.java new file mode 100644 index 00000000000..77f17e87c6c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfig.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Manage configuration related to database API gateway config resources. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfig.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "metadataSource", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "locks" + }) + protected DatabaseToolsDatabaseApiGatewayConfig( + String id, + String compartmentId, + String displayName, + DatabaseApiGatewayConfigMetadataSource metadataSource, + DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.metadataSource = metadataSource; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The RESTful service definition location. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private final DatabaseApiGatewayConfigMetadataSource metadataSource; + + /** + * The RESTful service definition location. + * @return the value + **/ + public DatabaseApiGatewayConfigMetadataSource getMetadataSource() { + return metadataSource; + } + + /** + * The current state of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState; + + /** + * The current state of the Database Tools database API gateway config. + * @return the value + **/ + public DatabaseToolsDatabaseApiGatewayConfigLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfig("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", metadataSource=").append(String.valueOf(this.metadataSource)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfig)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfig other = (DatabaseToolsDatabaseApiGatewayConfig) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.metadataSource, other.metadataSource) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.metadataSource == null ? 43 : this.metadataSource.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigCollection.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigCollection.java new file mode 100644 index 00000000000..cfa8ebce862 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigCollection.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * List of Database Tools database API gateway config summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsDatabaseApiGatewayConfigCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools database API gateway config summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools database API gateway config summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigCollection build() { + DatabaseToolsDatabaseApiGatewayConfigCollection model = + new DatabaseToolsDatabaseApiGatewayConfigCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools database API gateway config summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools database API gateway config summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigCollection("); + 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 DatabaseToolsDatabaseApiGatewayConfigCollection)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigCollection other = + (DatabaseToolsDatabaseApiGatewayConfigCollection) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefault.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefault.java new file mode 100644 index 00000000000..04fe2607bd8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefault.java @@ -0,0 +1,285 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Manage configuration related to database API gateway config resources. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigDefault.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 DatabaseToolsDatabaseApiGatewayConfigDefault + extends DatabaseToolsDatabaseApiGatewayConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private DatabaseApiGatewayConfigMetadataSource metadataSource; + + public Builder metadataSource(DatabaseApiGatewayConfigMetadataSource metadataSource) { + this.metadataSource = metadataSource; + this.__explicitlySet__.add("metadataSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState; + + public Builder lifecycleState( + DatabaseToolsDatabaseApiGatewayConfigLifecycleState 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("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("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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigDefault build() { + DatabaseToolsDatabaseApiGatewayConfigDefault model = + new DatabaseToolsDatabaseApiGatewayConfigDefault( + this.id, + this.compartmentId, + this.displayName, + this.metadataSource, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigDefault 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("metadataSource")) { + this.metadataSource(model.getMetadataSource()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigDefault( + String id, + String compartmentId, + String displayName, + DatabaseApiGatewayConfigMetadataSource metadataSource, + DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super( + id, + compartmentId, + displayName, + metadataSource, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigDefault("); + 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 DatabaseToolsDatabaseApiGatewayConfigDefault)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigDefault other = + (DatabaseToolsDatabaseApiGatewayConfigDefault) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefaultSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefaultSummary.java new file mode 100644 index 00000000000..4692305c868 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefaultSummary.java @@ -0,0 +1,285 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools database API gateway config. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigDefaultSummary.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 DatabaseToolsDatabaseApiGatewayConfigDefaultSummary + extends DatabaseToolsDatabaseApiGatewayConfigSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private DatabaseApiGatewayConfigMetadataSource metadataSource; + + public Builder metadataSource(DatabaseApiGatewayConfigMetadataSource metadataSource) { + this.metadataSource = metadataSource; + this.__explicitlySet__.add("metadataSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState; + + public Builder lifecycleState( + DatabaseToolsDatabaseApiGatewayConfigLifecycleState 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("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("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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigDefaultSummary build() { + DatabaseToolsDatabaseApiGatewayConfigDefaultSummary model = + new DatabaseToolsDatabaseApiGatewayConfigDefaultSummary( + this.id, + this.compartmentId, + this.displayName, + this.metadataSource, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigDefaultSummary 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("metadataSource")) { + this.metadataSource(model.getMetadataSource()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigDefaultSummary( + String id, + String compartmentId, + String displayName, + DatabaseApiGatewayConfigMetadataSource metadataSource, + DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super( + id, + compartmentId, + displayName, + metadataSource, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigDefaultSummary("); + 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 DatabaseToolsDatabaseApiGatewayConfigDefaultSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigDefaultSummary other = + (DatabaseToolsDatabaseApiGatewayConfigDefaultSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigLifecycleState.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigLifecycleState.java new file mode 100644 index 00000000000..bf5903faa2c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigLifecycleState.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The lifecycle state. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsDatabaseApiGatewayConfigLifecycleState { + Active("ACTIVE"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + DatabaseToolsDatabaseApiGatewayConfigLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsDatabaseApiGatewayConfigLifecycleState v : + DatabaseToolsDatabaseApiGatewayConfigLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsDatabaseApiGatewayConfigLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsDatabaseApiGatewayConfigLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsDatabaseApiGatewayConfigLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigSummary.java new file mode 100644 index 00000000000..68f245e82f0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigSummary.java @@ -0,0 +1,339 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools database API gateway config. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigDefaultSummary.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "metadataSource", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "locks" + }) + protected DatabaseToolsDatabaseApiGatewayConfigSummary( + String id, + String compartmentId, + String displayName, + DatabaseApiGatewayConfigMetadataSource metadataSource, + DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.metadataSource = metadataSource; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The RESTful service definition location. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private final DatabaseApiGatewayConfigMetadataSource metadataSource; + + /** + * The RESTful service definition location. + * @return the value + **/ + public DatabaseApiGatewayConfigMetadataSource getMetadataSource() { + return metadataSource; + } + + /** + * The current state of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsDatabaseApiGatewayConfigLifecycleState lifecycleState; + + /** + * The current state of the Database Tools database API gateway config. + * @return the value + **/ + public DatabaseToolsDatabaseApiGatewayConfigLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", metadataSource=").append(String.valueOf(this.metadataSource)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigSummary other = + (DatabaseToolsDatabaseApiGatewayConfigSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.metadataSource, other.metadataSource) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.metadataSource == null ? 43 : this.metadataSource.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsExternalAuthenticationStatus.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsExternalAuthenticationStatus.java new file mode 100644 index 00000000000..27709e0180d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsExternalAuthenticationStatus.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. UNKNOWN if the user has insufficient privilege. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsExternalAuthenticationStatus { + Available("AVAILABLE"), + Unavailable("UNAVAILABLE"), + Enabled("ENABLED"), + Unknown("UNKNOWN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsExternalAuthenticationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsExternalAuthenticationStatus v : + DatabaseToolsExternalAuthenticationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsExternalAuthenticationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsExternalAuthenticationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsExternalAuthenticationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServer.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServer.java new file mode 100644 index 00000000000..6487337a697 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServer.java @@ -0,0 +1,512 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsMcpServer.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpServerDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsMcpServer extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "databaseToolsConnectionId", + "endpoints", + "builtInRoles", + "customRoles", + "accessTokenExpiryInSeconds", + "refreshTokenExpiryInSeconds", + "relatedResource", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "runtimeIdentity", + "locks" + }) + protected DatabaseToolsMcpServer( + String id, + String compartmentId, + String displayName, + String description, + String databaseToolsConnectionId, + java.util.List endpoints, + java.util.List builtInRoles, + java.util.List customRoles, + Integer accessTokenExpiryInSeconds, + Integer refreshTokenExpiryInSeconds, + DatabaseToolsMcpServerRelatedResource relatedResource, + DatabaseToolsMcpServerLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity, + java.util.List locks) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.endpoints = endpoints; + this.builtInRoles = builtInRoles; + this.customRoles = customRoles; + this.accessTokenExpiryInSeconds = accessTokenExpiryInSeconds; + this.refreshTokenExpiryInSeconds = refreshTokenExpiryInSeconds; + this.relatedResource = relatedResource; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.runtimeIdentity = runtimeIdentity; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP server. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A human-readable description of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description of the Database Tools MCP server. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Invoke endpoints for the MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoints") + private final java.util.List endpoints; + + /** + * Invoke endpoints for the MCP server. + * @return the value + **/ + public java.util.List getEndpoints() { + return endpoints; + } + + /** + * Built-in roles associated with the MCP Server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("builtInRoles") + private final java.util.List builtInRoles; + + /** + * Built-in roles associated with the MCP Server. + * @return the value + **/ + public java.util.List getBuiltInRoles() { + return builtInRoles; + } + + /** + * Custom roles associated with the MCP Server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customRoles") + private final java.util.List customRoles; + + /** + * Custom roles associated with the MCP Server. + * @return the value + **/ + public java.util.List getCustomRoles() { + return customRoles; + } + + /** + * Access token expiry in seconds + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenExpiryInSeconds") + private final Integer accessTokenExpiryInSeconds; + + /** + * Access token expiry in seconds + * @return the value + **/ + public Integer getAccessTokenExpiryInSeconds() { + return accessTokenExpiryInSeconds; + } + + /** + * Refresh token expiry in seconds + **/ + @com.fasterxml.jackson.annotation.JsonProperty("refreshTokenExpiryInSeconds") + private final Integer refreshTokenExpiryInSeconds; + + /** + * Refresh token expiry in seconds + * @return the value + **/ + public Integer getRefreshTokenExpiryInSeconds() { + return refreshTokenExpiryInSeconds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private final DatabaseToolsMcpServerRelatedResource relatedResource; + + public DatabaseToolsMcpServerRelatedResource getRelatedResource() { + return relatedResource; + } + + /** + * The current state of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsMcpServerLifecycleState lifecycleState; + + /** + * The current state of the Database Tools MCP server. + * @return the value + **/ + public DatabaseToolsMcpServerLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("runtimeIdentity") + private final DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity; + + /** + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + * @return the value + **/ + public DatabaseToolsMcpServerRuntimeIdentity getRuntimeIdentity() { + return runtimeIdentity; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServer("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", endpoints=").append(String.valueOf(this.endpoints)); + sb.append(", builtInRoles=").append(String.valueOf(this.builtInRoles)); + sb.append(", customRoles=").append(String.valueOf(this.customRoles)); + sb.append(", accessTokenExpiryInSeconds=") + .append(String.valueOf(this.accessTokenExpiryInSeconds)); + sb.append(", refreshTokenExpiryInSeconds=") + .append(String.valueOf(this.refreshTokenExpiryInSeconds)); + sb.append(", relatedResource=").append(String.valueOf(this.relatedResource)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", runtimeIdentity=").append(String.valueOf(this.runtimeIdentity)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServer)) { + return false; + } + + DatabaseToolsMcpServer other = (DatabaseToolsMcpServer) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.endpoints, other.endpoints) + && java.util.Objects.equals(this.builtInRoles, other.builtInRoles) + && java.util.Objects.equals(this.customRoles, other.customRoles) + && java.util.Objects.equals( + this.accessTokenExpiryInSeconds, other.accessTokenExpiryInSeconds) + && java.util.Objects.equals( + this.refreshTokenExpiryInSeconds, other.refreshTokenExpiryInSeconds) + && java.util.Objects.equals(this.relatedResource, other.relatedResource) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.runtimeIdentity, other.runtimeIdentity) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.endpoints == null ? 43 : this.endpoints.hashCode()); + result = (result * PRIME) + (this.builtInRoles == null ? 43 : this.builtInRoles.hashCode()); + result = (result * PRIME) + (this.customRoles == null ? 43 : this.customRoles.hashCode()); + result = + (result * PRIME) + + (this.accessTokenExpiryInSeconds == null + ? 43 + : this.accessTokenExpiryInSeconds.hashCode()); + result = + (result * PRIME) + + (this.refreshTokenExpiryInSeconds == null + ? 43 + : this.refreshTokenExpiryInSeconds.hashCode()); + result = + (result * PRIME) + + (this.relatedResource == null ? 43 : this.relatedResource.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.runtimeIdentity == null ? 43 : this.runtimeIdentity.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerBuiltInRole.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerBuiltInRole.java new file mode 100644 index 00000000000..5945837782a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerBuiltInRole.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Built-in MCP server roles + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerBuiltInRole.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpServerBuiltInRole + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "description"}) + public DatabaseToolsMcpServerBuiltInRole(String displayName, String description) { + super(); + this.displayName = displayName; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The display name of the built-in role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the built-in role. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The description of the built-in role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the built-in role. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerBuiltInRole build() { + DatabaseToolsMcpServerBuiltInRole model = + new DatabaseToolsMcpServerBuiltInRole(this.displayName, this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerBuiltInRole model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The display name of the built-in role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the built-in role. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The description of the built-in role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the built-in role. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerBuiltInRole("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerBuiltInRole)) { + return false; + } + + DatabaseToolsMcpServerBuiltInRole other = (DatabaseToolsMcpServerBuiltInRole) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCollection.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCollection.java new file mode 100644 index 00000000000..af982acfd5c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * List of Database Tools MCP server summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpServerCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsMcpServerCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools MCP server summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools MCP server summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerCollection build() { + DatabaseToolsMcpServerCollection model = + new DatabaseToolsMcpServerCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools MCP server summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools MCP server summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerCollection("); + 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 DatabaseToolsMcpServerCollection)) { + return false; + } + + DatabaseToolsMcpServerCollection other = (DatabaseToolsMcpServerCollection) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCustomRole.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCustomRole.java new file mode 100644 index 00000000000..0693efae421 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCustomRole.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * DatabaseToolsMcpServerCustomRole. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerCustomRole.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpServerCustomRole + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "description"}) + public DatabaseToolsMcpServerCustomRole(String displayName, String description) { + super(); + this.displayName = displayName; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The display name of the custom role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the custom role. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The description of the custom role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the custom role. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerCustomRole build() { + DatabaseToolsMcpServerCustomRole model = + new DatabaseToolsMcpServerCustomRole(this.displayName, this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerCustomRole model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The display name of the custom role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the custom role. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The description of the custom role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the custom role. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerCustomRole("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerCustomRole)) { + return false; + } + + DatabaseToolsMcpServerCustomRole other = (DatabaseToolsMcpServerCustomRole) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerDefault.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerDefault.java new file mode 100644 index 00000000000..afd3be822e9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerDefault.java @@ -0,0 +1,506 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerDefault.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 DatabaseToolsMcpServerDefault extends DatabaseToolsMcpServer { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("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("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("endpoints") + private java.util.List endpoints; + + public Builder endpoints(java.util.List endpoints) { + this.endpoints = endpoints; + this.__explicitlySet__.add("endpoints"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("builtInRoles") + private java.util.List builtInRoles; + + public Builder builtInRoles( + java.util.List builtInRoles) { + this.builtInRoles = builtInRoles; + this.__explicitlySet__.add("builtInRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customRoles") + private java.util.List customRoles; + + public Builder customRoles(java.util.List customRoles) { + this.customRoles = customRoles; + this.__explicitlySet__.add("customRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenExpiryInSeconds") + private Integer accessTokenExpiryInSeconds; + + public Builder accessTokenExpiryInSeconds(Integer accessTokenExpiryInSeconds) { + this.accessTokenExpiryInSeconds = accessTokenExpiryInSeconds; + this.__explicitlySet__.add("accessTokenExpiryInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("refreshTokenExpiryInSeconds") + private Integer refreshTokenExpiryInSeconds; + + public Builder refreshTokenExpiryInSeconds(Integer refreshTokenExpiryInSeconds) { + this.refreshTokenExpiryInSeconds = refreshTokenExpiryInSeconds; + this.__explicitlySet__.add("refreshTokenExpiryInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private DatabaseToolsMcpServerRelatedResource relatedResource; + + public Builder relatedResource(DatabaseToolsMcpServerRelatedResource relatedResource) { + this.relatedResource = relatedResource; + this.__explicitlySet__.add("relatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpServerLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpServerLifecycleState 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("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("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("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("runtimeIdentity") + private DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity; + + public Builder runtimeIdentity(DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity) { + this.runtimeIdentity = runtimeIdentity; + this.__explicitlySet__.add("runtimeIdentity"); + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private String domainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + * @param domainId the value to set + * @return this builder + **/ + public Builder domainId(String domainId) { + this.domainId = domainId; + this.__explicitlySet__.add("domainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainAppId") + private String domainAppId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + * @param domainAppId the value to set + * @return this builder + **/ + public Builder domainAppId(String domainAppId) { + this.domainAppId = domainAppId; + this.__explicitlySet__.add("domainAppId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private DatabaseToolsMcpServerStorage storage; + + public Builder storage(DatabaseToolsMcpServerStorage storage) { + this.storage = storage; + this.__explicitlySet__.add("storage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerDefault build() { + DatabaseToolsMcpServerDefault model = + new DatabaseToolsMcpServerDefault( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.databaseToolsConnectionId, + this.endpoints, + this.builtInRoles, + this.customRoles, + this.accessTokenExpiryInSeconds, + this.refreshTokenExpiryInSeconds, + this.relatedResource, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.runtimeIdentity, + this.locks, + this.domainId, + this.domainAppId, + this.storage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerDefault 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("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("endpoints")) { + this.endpoints(model.getEndpoints()); + } + if (model.wasPropertyExplicitlySet("builtInRoles")) { + this.builtInRoles(model.getBuiltInRoles()); + } + if (model.wasPropertyExplicitlySet("customRoles")) { + this.customRoles(model.getCustomRoles()); + } + if (model.wasPropertyExplicitlySet("accessTokenExpiryInSeconds")) { + this.accessTokenExpiryInSeconds(model.getAccessTokenExpiryInSeconds()); + } + if (model.wasPropertyExplicitlySet("refreshTokenExpiryInSeconds")) { + this.refreshTokenExpiryInSeconds(model.getRefreshTokenExpiryInSeconds()); + } + if (model.wasPropertyExplicitlySet("relatedResource")) { + this.relatedResource(model.getRelatedResource()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("runtimeIdentity")) { + this.runtimeIdentity(model.getRuntimeIdentity()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("domainId")) { + this.domainId(model.getDomainId()); + } + if (model.wasPropertyExplicitlySet("domainAppId")) { + this.domainAppId(model.getDomainAppId()); + } + if (model.wasPropertyExplicitlySet("storage")) { + this.storage(model.getStorage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpServerDefault( + String id, + String compartmentId, + String displayName, + String description, + String databaseToolsConnectionId, + java.util.List endpoints, + java.util.List builtInRoles, + java.util.List customRoles, + Integer accessTokenExpiryInSeconds, + Integer refreshTokenExpiryInSeconds, + DatabaseToolsMcpServerRelatedResource relatedResource, + DatabaseToolsMcpServerLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity, + java.util.List locks, + String domainId, + String domainAppId, + DatabaseToolsMcpServerStorage storage) { + super( + id, + compartmentId, + displayName, + description, + databaseToolsConnectionId, + endpoints, + builtInRoles, + customRoles, + accessTokenExpiryInSeconds, + refreshTokenExpiryInSeconds, + relatedResource, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + runtimeIdentity, + locks); + this.domainId = domainId; + this.domainAppId = domainAppId; + this.storage = storage; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private final String domainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + * @return the value + **/ + public String getDomainId() { + return domainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainAppId") + private final String domainAppId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + * @return the value + **/ + public String getDomainAppId() { + return domainAppId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private final DatabaseToolsMcpServerStorage storage; + + public DatabaseToolsMcpServerStorage getStorage() { + return storage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerDefault("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", domainId=").append(String.valueOf(this.domainId)); + sb.append(", domainAppId=").append(String.valueOf(this.domainAppId)); + sb.append(", storage=").append(String.valueOf(this.storage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerDefault)) { + return false; + } + + DatabaseToolsMcpServerDefault other = (DatabaseToolsMcpServerDefault) o; + return java.util.Objects.equals(this.domainId, other.domainId) + && java.util.Objects.equals(this.domainAppId, other.domainAppId) + && java.util.Objects.equals(this.storage, other.storage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = (result * PRIME) + (this.domainAppId == null ? 43 : this.domainAppId.hashCode()); + result = (result * PRIME) + (this.storage == null ? 43 : this.storage.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerEndpoint.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerEndpoint.java new file mode 100644 index 00000000000..8a0d5797b48 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerEndpoint.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The details of an MCP server 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: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerEndpoint.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpServerEndpoint + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "endpoint"}) + public DatabaseToolsMcpServerEndpoint(DatabaseToolsMcpServerType type, String endpoint) { + super(); + this.type = type; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The MCP server type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private DatabaseToolsMcpServerType type; + + /** + * The MCP server type + * @param type the value to set + * @return this builder + **/ + public Builder type(DatabaseToolsMcpServerType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The URI endpoint of the MCP server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * The URI endpoint of the MCP server + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerEndpoint build() { + DatabaseToolsMcpServerEndpoint model = + new DatabaseToolsMcpServerEndpoint(this.type, this.endpoint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerEndpoint model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The MCP server type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final DatabaseToolsMcpServerType type; + + /** + * The MCP server type + * @return the value + **/ + public DatabaseToolsMcpServerType getType() { + return type; + } + + /** + * The URI endpoint of the MCP server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * The URI endpoint of the MCP server + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerEndpoint("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerEndpoint)) { + return false; + } + + DatabaseToolsMcpServerEndpoint other = (DatabaseToolsMcpServerEndpoint) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.endpoint, other.endpoint) + && 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.endpoint == null ? 43 : this.endpoint.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerLifecycleState.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerLifecycleState.java new file mode 100644 index 00000000000..fd80b88eb81 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerLifecycleState.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The lifecycle state. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerLifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + 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(DatabaseToolsMcpServerLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpServerLifecycleState v : + DatabaseToolsMcpServerLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpServerLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpServerLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpServerLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResource.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResource.java new file mode 100644 index 00000000000..9f3b3ddb084 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResource.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A related 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: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerRelatedResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpServerRelatedResource + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"entityType", "identifier"}) + public DatabaseToolsMcpServerRelatedResource( + DatabaseToolsMcpServerRelatedResourceEntityType entityType, String identifier) { + super(); + this.entityType = entityType; + this.identifier = identifier; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The resource entity type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private DatabaseToolsMcpServerRelatedResourceEntityType entityType; + + /** + * The resource entity type. + * @param entityType the value to set + * @return this builder + **/ + public Builder entityType(DatabaseToolsMcpServerRelatedResourceEntityType entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + * @param identifier the value to set + * @return this builder + **/ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerRelatedResource build() { + DatabaseToolsMcpServerRelatedResource model = + new DatabaseToolsMcpServerRelatedResource(this.entityType, this.identifier); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerRelatedResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The resource entity type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final DatabaseToolsMcpServerRelatedResourceEntityType entityType; + + /** + * The resource entity type. + * @return the value + **/ + public DatabaseToolsMcpServerRelatedResourceEntityType getEntityType() { + return entityType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + * @return the value + **/ + public String getIdentifier() { + return identifier; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerRelatedResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerRelatedResource)) { + return false; + } + + DatabaseToolsMcpServerRelatedResource other = (DatabaseToolsMcpServerRelatedResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.identifier, other.identifier) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResourceEntityType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResourceEntityType.java new file mode 100644 index 00000000000..300949434fe --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResourceEntityType.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The related database type + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerRelatedResourceEntityType { + Autonomousdatabase("AUTONOMOUSDATABASE"), + Database("DATABASE"), + Pluggabledatabase("PLUGGABLEDATABASE"), + Mysqldbsystem("MYSQLDBSYSTEM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + DatabaseToolsMcpServerRelatedResourceEntityType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpServerRelatedResourceEntityType v : + DatabaseToolsMcpServerRelatedResourceEntityType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpServerRelatedResourceEntityType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpServerRelatedResourceEntityType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpServerRelatedResourceEntityType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRuntimeIdentity.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRuntimeIdentity.java new file mode 100644 index 00000000000..83d739a0eaf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRuntimeIdentity.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Determines the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerRuntimeIdentity { + AuthenticatedPrincipal("AUTHENTICATED_PRINCIPAL"), + ResourcePrincipal("RESOURCE_PRINCIPAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsMcpServerRuntimeIdentity.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpServerRuntimeIdentity v : + DatabaseToolsMcpServerRuntimeIdentity.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpServerRuntimeIdentity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpServerRuntimeIdentity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpServerRuntimeIdentity', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorage.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorage.java new file mode 100644 index 00000000000..c2d06c4771a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorage.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The storage option used when running a tool asynchronously. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsMcpServerStorage.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpServerStorageObjectStorage.class, + name = "OBJECT_STORAGE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpServerStorageNone.class, + name = "NONE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsMcpServerStorage + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected DatabaseToolsMcpServerStorage() { + 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("DatabaseToolsMcpServerStorage("); + 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 DatabaseToolsMcpServerStorage)) { + return false; + } + + DatabaseToolsMcpServerStorage other = (DatabaseToolsMcpServerStorage) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of storage used for asynchronous tool calls. + **/ + public enum Type { + None("NONE"), + 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageNone.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageNone.java new file mode 100644 index 00000000000..08f91d1c4b5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageNone.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Type used when the MCP server has no storage details configured. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerStorageNone.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 DatabaseToolsMcpServerStorageNone extends DatabaseToolsMcpServerStorage { + @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 DatabaseToolsMcpServerStorageNone build() { + DatabaseToolsMcpServerStorageNone model = new DatabaseToolsMcpServerStorageNone(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerStorageNone model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpServerStorageNone() { + 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("DatabaseToolsMcpServerStorageNone("); + 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 DatabaseToolsMcpServerStorageNone)) { + return false; + } + + DatabaseToolsMcpServerStorageNone other = (DatabaseToolsMcpServerStorageNone) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorage.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorage.java new file mode 100644 index 00000000000..7be07a9f71f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorage.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Object storage. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerStorageObjectStorage.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 DatabaseToolsMcpServerStorageObjectStorage + extends DatabaseToolsMcpServerStorage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private DatabaseToolsMcpServerStorageObjectStorageBucket bucket; + + public Builder bucket(DatabaseToolsMcpServerStorageObjectStorageBucket bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerStorageObjectStorage build() { + DatabaseToolsMcpServerStorageObjectStorage model = + new DatabaseToolsMcpServerStorageObjectStorage(this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerStorageObjectStorage model) { + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpServerStorageObjectStorage( + DatabaseToolsMcpServerStorageObjectStorageBucket bucket) { + super(); + this.bucket = bucket; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final DatabaseToolsMcpServerStorageObjectStorageBucket bucket; + + public DatabaseToolsMcpServerStorageObjectStorageBucket getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerStorageObjectStorage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerStorageObjectStorage)) { + return false; + } + + DatabaseToolsMcpServerStorageObjectStorage other = + (DatabaseToolsMcpServerStorageObjectStorage) o; + return java.util.Objects.equals(this.bucket, other.bucket) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorageBucket.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorageBucket.java new file mode 100644 index 00000000000..e61dc00472b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorageBucket.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A Cloud Storage bucket for an MCP Server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerStorageObjectStorageBucket.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpServerStorageObjectStorageBucket + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "bucketName"}) + public DatabaseToolsMcpServerStorageObjectStorageBucket(String namespace, String bucketName) { + super(); + this.namespace = namespace; + this.bucketName = bucketName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Object Storage namespace to use. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace to use. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The Object Storage bucket to use. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The Object Storage bucket to use. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerStorageObjectStorageBucket build() { + DatabaseToolsMcpServerStorageObjectStorageBucket model = + new DatabaseToolsMcpServerStorageObjectStorageBucket( + this.namespace, this.bucketName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerStorageObjectStorageBucket model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Object Storage namespace to use. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace to use. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * The Object Storage bucket to use. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The Object Storage bucket to use. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerStorageObjectStorageBucket("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerStorageObjectStorageBucket)) { + return false; + } + + DatabaseToolsMcpServerStorageObjectStorageBucket other = + (DatabaseToolsMcpServerStorageObjectStorageBucket) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummary.java new file mode 100644 index 00000000000..b54bffcc471 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummary.java @@ -0,0 +1,441 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsMcpServerSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpServerSummaryDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsMcpServerSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "databaseToolsConnectionId", + "endpoints", + "builtInRoles", + "customRoles", + "relatedResource", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "runtimeIdentity", + "locks" + }) + protected DatabaseToolsMcpServerSummary( + String id, + String compartmentId, + String displayName, + String databaseToolsConnectionId, + java.util.List endpoints, + java.util.List builtInRoles, + java.util.List customRoles, + DatabaseToolsMcpServerRelatedResource relatedResource, + DatabaseToolsMcpServerLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity, + java.util.List locks) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.endpoints = endpoints; + this.builtInRoles = builtInRoles; + this.customRoles = customRoles; + this.relatedResource = relatedResource; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.runtimeIdentity = runtimeIdentity; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP server. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Invoke endpoint of MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoints") + private final java.util.List endpoints; + + /** + * Invoke endpoint of MCP server. + * @return the value + **/ + public java.util.List getEndpoints() { + return endpoints; + } + + /** + * Built-in roles associated with the MCP Server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("builtInRoles") + private final java.util.List builtInRoles; + + /** + * Built-in roles associated with the MCP Server. + * @return the value + **/ + public java.util.List getBuiltInRoles() { + return builtInRoles; + } + + /** + * Custom roles associated with the MCP Server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customRoles") + private final java.util.List customRoles; + + /** + * Custom roles associated with the MCP Server. + * @return the value + **/ + public java.util.List getCustomRoles() { + return customRoles; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private final DatabaseToolsMcpServerRelatedResource relatedResource; + + public DatabaseToolsMcpServerRelatedResource getRelatedResource() { + return relatedResource; + } + + /** + * The current state of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsMcpServerLifecycleState lifecycleState; + + /** + * The current state of the Database Tools MCP server. + * @return the value + **/ + public DatabaseToolsMcpServerLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("runtimeIdentity") + private final DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity; + + /** + * Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). + * + * @return the value + **/ + public DatabaseToolsMcpServerRuntimeIdentity getRuntimeIdentity() { + return runtimeIdentity; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", endpoints=").append(String.valueOf(this.endpoints)); + sb.append(", builtInRoles=").append(String.valueOf(this.builtInRoles)); + sb.append(", customRoles=").append(String.valueOf(this.customRoles)); + sb.append(", relatedResource=").append(String.valueOf(this.relatedResource)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", runtimeIdentity=").append(String.valueOf(this.runtimeIdentity)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerSummary)) { + return false; + } + + DatabaseToolsMcpServerSummary other = (DatabaseToolsMcpServerSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.endpoints, other.endpoints) + && java.util.Objects.equals(this.builtInRoles, other.builtInRoles) + && java.util.Objects.equals(this.customRoles, other.customRoles) + && java.util.Objects.equals(this.relatedResource, other.relatedResource) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.runtimeIdentity, other.runtimeIdentity) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.endpoints == null ? 43 : this.endpoints.hashCode()); + result = (result * PRIME) + (this.builtInRoles == null ? 43 : this.builtInRoles.hashCode()); + result = (result * PRIME) + (this.customRoles == null ? 43 : this.customRoles.hashCode()); + result = + (result * PRIME) + + (this.relatedResource == null ? 43 : this.relatedResource.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.runtimeIdentity == null ? 43 : this.runtimeIdentity.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummaryDefault.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummaryDefault.java new file mode 100644 index 00000000000..8da8f69037d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummaryDefault.java @@ -0,0 +1,461 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerSummaryDefault.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 DatabaseToolsMcpServerSummaryDefault extends DatabaseToolsMcpServerSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("endpoints") + private java.util.List endpoints; + + public Builder endpoints(java.util.List endpoints) { + this.endpoints = endpoints; + this.__explicitlySet__.add("endpoints"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("builtInRoles") + private java.util.List builtInRoles; + + public Builder builtInRoles( + java.util.List builtInRoles) { + this.builtInRoles = builtInRoles; + this.__explicitlySet__.add("builtInRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customRoles") + private java.util.List customRoles; + + public Builder customRoles(java.util.List customRoles) { + this.customRoles = customRoles; + this.__explicitlySet__.add("customRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private DatabaseToolsMcpServerRelatedResource relatedResource; + + public Builder relatedResource(DatabaseToolsMcpServerRelatedResource relatedResource) { + this.relatedResource = relatedResource; + this.__explicitlySet__.add("relatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpServerLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpServerLifecycleState 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("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("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("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("runtimeIdentity") + private DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity; + + public Builder runtimeIdentity(DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity) { + this.runtimeIdentity = runtimeIdentity; + this.__explicitlySet__.add("runtimeIdentity"); + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private String domainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + * @param domainId the value to set + * @return this builder + **/ + public Builder domainId(String domainId) { + this.domainId = domainId; + this.__explicitlySet__.add("domainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainAppId") + private String domainAppId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + * @param domainAppId the value to set + * @return this builder + **/ + public Builder domainAppId(String domainAppId) { + this.domainAppId = domainAppId; + this.__explicitlySet__.add("domainAppId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private DatabaseToolsMcpServerStorage storage; + + public Builder storage(DatabaseToolsMcpServerStorage storage) { + this.storage = storage; + this.__explicitlySet__.add("storage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpServerSummaryDefault build() { + DatabaseToolsMcpServerSummaryDefault model = + new DatabaseToolsMcpServerSummaryDefault( + this.id, + this.compartmentId, + this.displayName, + this.databaseToolsConnectionId, + this.endpoints, + this.builtInRoles, + this.customRoles, + this.relatedResource, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.runtimeIdentity, + this.locks, + this.domainId, + this.domainAppId, + this.storage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpServerSummaryDefault 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("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("endpoints")) { + this.endpoints(model.getEndpoints()); + } + if (model.wasPropertyExplicitlySet("builtInRoles")) { + this.builtInRoles(model.getBuiltInRoles()); + } + if (model.wasPropertyExplicitlySet("customRoles")) { + this.customRoles(model.getCustomRoles()); + } + if (model.wasPropertyExplicitlySet("relatedResource")) { + this.relatedResource(model.getRelatedResource()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("runtimeIdentity")) { + this.runtimeIdentity(model.getRuntimeIdentity()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("domainId")) { + this.domainId(model.getDomainId()); + } + if (model.wasPropertyExplicitlySet("domainAppId")) { + this.domainAppId(model.getDomainAppId()); + } + if (model.wasPropertyExplicitlySet("storage")) { + this.storage(model.getStorage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpServerSummaryDefault( + String id, + String compartmentId, + String displayName, + String databaseToolsConnectionId, + java.util.List endpoints, + java.util.List builtInRoles, + java.util.List customRoles, + DatabaseToolsMcpServerRelatedResource relatedResource, + DatabaseToolsMcpServerLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + DatabaseToolsMcpServerRuntimeIdentity runtimeIdentity, + java.util.List locks, + String domainId, + String domainAppId, + DatabaseToolsMcpServerStorage storage) { + super( + id, + compartmentId, + displayName, + databaseToolsConnectionId, + endpoints, + builtInRoles, + customRoles, + relatedResource, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + runtimeIdentity, + locks); + this.domainId = domainId; + this.domainAppId = domainAppId; + this.storage = storage; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private final String domainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated identity domain. + * @return the value + **/ + public String getDomainId() { + return domainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainAppId") + private final String domainAppId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated domain application (Oracle Cloud Service). + * @return the value + **/ + public String getDomainAppId() { + return domainAppId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private final DatabaseToolsMcpServerStorage storage; + + public DatabaseToolsMcpServerStorage getStorage() { + return storage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpServerSummaryDefault("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", domainId=").append(String.valueOf(this.domainId)); + sb.append(", domainAppId=").append(String.valueOf(this.domainAppId)); + sb.append(", storage=").append(String.valueOf(this.storage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpServerSummaryDefault)) { + return false; + } + + DatabaseToolsMcpServerSummaryDefault other = (DatabaseToolsMcpServerSummaryDefault) o; + return java.util.Objects.equals(this.domainId, other.domainId) + && java.util.Objects.equals(this.domainAppId, other.domainAppId) + && java.util.Objects.equals(this.storage, other.storage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = (result * PRIME) + (this.domainAppId == null ? 43 : this.domainAppId.hashCode()); + result = (result * PRIME) + (this.storage == null ? 43 : this.storage.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerType.java new file mode 100644 index 00000000000..1f8609e165e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The Database Tools MCP server type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerType { + Default("DEFAULT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsMcpServerType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpServerType v : DatabaseToolsMcpServerType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpServerType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpServerType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpServerType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolset.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolset.java new file mode 100644 index 00000000000..672d3f4ac6d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolset.java @@ -0,0 +1,393 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an MCP Toolset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsMcpToolset.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetCustomSqlTool.class, + name = "CUSTOM_SQL_TOOL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetGenAiSqlAssistant.class, + name = "GENAI_SQL_ASSISTANT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetCustomizableReportingTools.class, + name = "CUSTOMIZABLE_REPORTING_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetBuiltInSqlTools.class, + name = "BUILT_IN_SQL_TOOLS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsMcpToolset extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "version", + "compartmentId", + "displayName", + "description", + "databaseToolsMcpServerId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "locks" + }) + protected DatabaseToolsMcpToolset( + String id, + Integer version, + String compartmentId, + String displayName, + String description, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super(); + this.id = id; + this.version = version; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP Toolsets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP Toolsets. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The MCP toolset version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The MCP toolset version + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Database Tools MCP Toolset to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A human readable description of the Database Tools MCP toolset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human readable description of the Database Tools MCP toolset. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools McpServer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private final String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools McpServer. + * @return the value + **/ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + + /** + * The current state of the Database Tools MCP Toolset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + /** + * The current state of the Database Tools MCP Toolset. + * @return the value + **/ + public DatabaseToolsMcpToolsetLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolset("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolset)) { + return false; + } + + DatabaseToolsMcpToolset other = (DatabaseToolsMcpToolset) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlTools.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlTools.java new file mode 100644 index 00000000000..f5f89745eaf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlTools.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an McpToolset of type Built-in SQL tools. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetBuiltInSqlTools.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 DatabaseToolsMcpToolsetBuiltInSqlTools extends DatabaseToolsMcpToolset { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * List of Database Tools Built-in SQL tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools Built-in SQL tools + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetBuiltInSqlTools build() { + DatabaseToolsMcpToolsetBuiltInSqlTools model = + new DatabaseToolsMcpToolsetBuiltInSqlTools( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.description, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetBuiltInSqlTools model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetBuiltInSqlTools( + String id, + Integer version, + String compartmentId, + String displayName, + String description, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + description, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools Built-in SQL tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools Built-in SQL tools + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetBuiltInSqlTools("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetBuiltInSqlTools)) { + return false; + } + + DatabaseToolsMcpToolsetBuiltInSqlTools other = (DatabaseToolsMcpToolsetBuiltInSqlTools) o; + return java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsSummary.java new file mode 100644 index 00000000000..8d460805e08 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsSummary.java @@ -0,0 +1,394 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP Toolset of type Built-in SQL tools. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetBuiltInSqlToolsSummary.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 DatabaseToolsMcpToolsetBuiltInSqlToolsSummary + extends DatabaseToolsMcpToolsetSummary { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * List of Database Tools Built-in SQL tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools Built-in SQL tools + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetBuiltInSqlToolsSummary build() { + DatabaseToolsMcpToolsetBuiltInSqlToolsSummary model = + new DatabaseToolsMcpToolsetBuiltInSqlToolsSummary( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetBuiltInSqlToolsSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetBuiltInSqlToolsSummary( + String id, + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools Built-in SQL tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools Built-in SQL tools + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetBuiltInSqlToolsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetBuiltInSqlToolsSummary)) { + return false; + } + + DatabaseToolsMcpToolsetBuiltInSqlToolsSummary other = + (DatabaseToolsMcpToolsetBuiltInSqlToolsSummary) o; + return java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsVersion.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsVersion.java new file mode 100644 index 00000000000..30d33af92ca --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsVersion.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A specific version entry for a BUILT_IN_SQL_TOOLS MCP toolset version + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetBuiltInSqlToolsVersion.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetBuiltInSqlToolsVersion + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"version", "description", "features", "tools"}) + public DatabaseToolsMcpToolsetBuiltInSqlToolsVersion( + Integer version, + String description, + java.util.List features, + java.util.List tools) { + super(); + this.version = version; + this.description = description; + this.features = features; + this.tools = tools; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + /** + * The version number. + * @param version the value to set + * @return this builder + **/ + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of this version. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + /** + * The tools available in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * The tools available in this version. + * @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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetBuiltInSqlToolsVersion build() { + DatabaseToolsMcpToolsetBuiltInSqlToolsVersion model = + new DatabaseToolsMcpToolsetBuiltInSqlToolsVersion( + this.version, this.description, this.features, this.tools); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetBuiltInSqlToolsVersion model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The version number. + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of this version. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + + /** + * The tools available in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * The tools available in this version. + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetBuiltInSqlToolsVersion("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetBuiltInSqlToolsVersion)) { + return false; + } + + DatabaseToolsMcpToolsetBuiltInSqlToolsVersion other = + (DatabaseToolsMcpToolsetBuiltInSqlToolsVersion) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.tools, other.tools) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCollection.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCollection.java new file mode 100644 index 00000000000..60afbe07589 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * List of Database Tools MCP Toolset summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsMcpToolsetCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools MCP Toolset summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools MCP Toolset summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCollection build() { + DatabaseToolsMcpToolsetCollection model = + new DatabaseToolsMcpToolsetCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools MCP Toolset summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools MCP Toolset summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCollection("); + 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 DatabaseToolsMcpToolsetCollection)) { + return false; + } + + DatabaseToolsMcpToolsetCollection other = (DatabaseToolsMcpToolsetCollection) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlTool.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlTool.java new file mode 100644 index 00000000000..5cd3b16127a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlTool.java @@ -0,0 +1,552 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an McpToolset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomSqlTool.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 DatabaseToolsMcpToolsetCustomSqlTool extends DatabaseToolsMcpToolset { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private String toolName; + + /** + * Name of the tool returned by the MCP Server + * @param toolName the value to set + * @return this builder + **/ + public Builder toolName(String toolName) { + this.toolName = toolName; + this.__explicitlySet__.add("toolName"); + return this; + } + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @param toolDescription the value to set + * @return this builder + **/ + public Builder toolDescription(String toolDescription) { + this.toolDescription = toolDescription; + this.__explicitlySet__.add("toolDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private DatabaseToolsCustomSqlToolToolsetSource source; + + public Builder source(DatabaseToolsCustomSqlToolToolsetSource source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + /** + * The variables to use with the query + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private java.util.List variables; + + /** + * The variables to use with the query + * @param variables the value to set + * @return this builder + **/ + public Builder variables( + java.util.List variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + /** + * The roles granted access to the MCP tool generated by this toolset + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to the MCP tool generated by this toolset + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomSqlTool build() { + DatabaseToolsMcpToolsetCustomSqlTool model = + new DatabaseToolsMcpToolsetCustomSqlTool( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.description, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.toolName, + this.toolDescription, + this.source, + this.variables, + this.allowedRoles, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomSqlTool model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("toolName")) { + this.toolName(model.getToolName()); + } + if (model.wasPropertyExplicitlySet("toolDescription")) { + this.toolDescription(model.getToolDescription()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetCustomSqlTool( + String id, + Integer version, + String compartmentId, + String displayName, + String description, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + String toolName, + String toolDescription, + DatabaseToolsCustomSqlToolToolsetSource source, + java.util.List variables, + java.util.List allowedRoles, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + description, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.toolName = toolName; + this.toolDescription = toolDescription; + this.source = source; + this.variables = variables; + this.allowedRoles = allowedRoles; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private final String toolName; + + /** + * Name of the tool returned by the MCP Server + * @return the value + **/ + public String getToolName() { + return toolName; + } + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private final String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @return the value + **/ + public String getToolDescription() { + return toolDescription; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final DatabaseToolsCustomSqlToolToolsetSource source; + + public DatabaseToolsCustomSqlToolToolsetSource getSource() { + return source; + } + + /** + * The variables to use with the query + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final java.util.List variables; + + /** + * The variables to use with the query + * @return the value + **/ + public java.util.List getVariables() { + return variables; + } + + /** + * The roles granted access to the MCP tool generated by this toolset + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to the MCP tool generated by this toolset + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomSqlTool("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", toolName=").append(String.valueOf(this.toolName)); + sb.append(", toolDescription=").append(String.valueOf(this.toolDescription)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomSqlTool)) { + return false; + } + + DatabaseToolsMcpToolsetCustomSqlTool other = (DatabaseToolsMcpToolsetCustomSqlTool) o; + return java.util.Objects.equals(this.toolName, other.toolName) + && java.util.Objects.equals(this.toolDescription, other.toolDescription) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.toolName == null ? 43 : this.toolName.hashCode()); + result = + (result * PRIME) + + (this.toolDescription == null ? 43 : this.toolDescription.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolSummary.java new file mode 100644 index 00000000000..0641b1399bb --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolSummary.java @@ -0,0 +1,474 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP Toolset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomSqlToolSummary.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 DatabaseToolsMcpToolsetCustomSqlToolSummary + extends DatabaseToolsMcpToolsetSummary { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private String toolName; + + /** + * Name of the tool returned by the MCP Server + * @param toolName the value to set + * @return this builder + **/ + public Builder toolName(String toolName) { + this.toolName = toolName; + this.__explicitlySet__.add("toolName"); + return this; + } + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @param toolDescription the value to set + * @return this builder + **/ + public Builder toolDescription(String toolDescription) { + this.toolDescription = toolDescription; + this.__explicitlySet__.add("toolDescription"); + return this; + } + /** + * The roles granted access to this MCP tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to this MCP tool + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomSqlToolSummary build() { + DatabaseToolsMcpToolsetCustomSqlToolSummary model = + new DatabaseToolsMcpToolsetCustomSqlToolSummary( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.toolName, + this.toolDescription, + this.allowedRoles, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomSqlToolSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("toolName")) { + this.toolName(model.getToolName()); + } + if (model.wasPropertyExplicitlySet("toolDescription")) { + this.toolDescription(model.getToolDescription()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetCustomSqlToolSummary( + String id, + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + String toolName, + String toolDescription, + java.util.List allowedRoles, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.toolName = toolName; + this.toolDescription = toolDescription; + this.allowedRoles = allowedRoles; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private final String toolName; + + /** + * Name of the tool returned by the MCP Server + * @return the value + **/ + public String getToolName() { + return toolName; + } + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private final String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @return the value + **/ + public String getToolDescription() { + return toolDescription; + } + + /** + * The roles granted access to this MCP tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to this MCP tool + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomSqlToolSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", toolName=").append(String.valueOf(this.toolName)); + sb.append(", toolDescription=").append(String.valueOf(this.toolDescription)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomSqlToolSummary)) { + return false; + } + + DatabaseToolsMcpToolsetCustomSqlToolSummary other = + (DatabaseToolsMcpToolsetCustomSqlToolSummary) o; + return java.util.Objects.equals(this.toolName, other.toolName) + && java.util.Objects.equals(this.toolDescription, other.toolDescription) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.toolName == null ? 43 : this.toolName.hashCode()); + result = + (result * PRIME) + + (this.toolDescription == null ? 43 : this.toolDescription.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVariable.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVariable.java new file mode 100644 index 00000000000..85f312da31d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVariable.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A variable to use within a query + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomSqlToolVariable.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetCustomSqlToolVariable + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "description", "type"}) + public DatabaseToolsMcpToolsetCustomSqlToolVariable( + String name, String description, String type) { + super(); + this.name = name; + this.description = description; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the variable + * @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 the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the variable + * @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 variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The type of the variable + * @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 DatabaseToolsMcpToolsetCustomSqlToolVariable build() { + DatabaseToolsMcpToolsetCustomSqlToolVariable model = + new DatabaseToolsMcpToolsetCustomSqlToolVariable( + this.name, this.description, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomSqlToolVariable model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + 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); + } + + /** + * The name of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the variable + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The description of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the variable + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The type of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The type of the variable + * @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("DatabaseToolsMcpToolsetCustomSqlToolVariable("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + 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 DatabaseToolsMcpToolsetCustomSqlToolVariable)) { + return false; + } + + DatabaseToolsMcpToolsetCustomSqlToolVariable other = + (DatabaseToolsMcpToolsetCustomSqlToolVariable) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVersion.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVersion.java new file mode 100644 index 00000000000..cea5f1b364f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVersion.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A specific version entry for a CUSTOM_SQL_TOOL MCP toolset version + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomSqlToolVersion.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetCustomSqlToolVersion + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"version", "description", "features", "defaultAllowedRoles"}) + public DatabaseToolsMcpToolsetCustomSqlToolVersion( + Integer version, + String description, + java.util.List features, + java.util.List defaultAllowedRoles) { + super(); + this.version = version; + this.description = description; + this.features = features; + this.defaultAllowedRoles = defaultAllowedRoles; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + /** + * The version number. + * @param version the value to set + * @return this builder + **/ + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of this version. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + /** + * The roles granted access to this toolset version by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultAllowedRoles") + private java.util.List defaultAllowedRoles; + + /** + * The roles granted access to this toolset version by default. + * @param defaultAllowedRoles the value to set + * @return this builder + **/ + public Builder defaultAllowedRoles(java.util.List defaultAllowedRoles) { + this.defaultAllowedRoles = defaultAllowedRoles; + this.__explicitlySet__.add("defaultAllowedRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomSqlToolVersion build() { + DatabaseToolsMcpToolsetCustomSqlToolVersion model = + new DatabaseToolsMcpToolsetCustomSqlToolVersion( + this.version, + this.description, + this.features, + this.defaultAllowedRoles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomSqlToolVersion model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("defaultAllowedRoles")) { + this.defaultAllowedRoles(model.getDefaultAllowedRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The version number. + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of this version. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + + /** + * The roles granted access to this toolset version by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultAllowedRoles") + private final java.util.List defaultAllowedRoles; + + /** + * The roles granted access to this toolset version by default. + * @return the value + **/ + public java.util.List getDefaultAllowedRoles() { + return defaultAllowedRoles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomSqlToolVersion("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", defaultAllowedRoles=").append(String.valueOf(this.defaultAllowedRoles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomSqlToolVersion)) { + return false; + } + + DatabaseToolsMcpToolsetCustomSqlToolVersion other = + (DatabaseToolsMcpToolsetCustomSqlToolVersion) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.defaultAllowedRoles, other.defaultAllowedRoles) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = + (result * PRIME) + + (this.defaultAllowedRoles == null + ? 43 + : this.defaultAllowedRoles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingTools.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingTools.java new file mode 100644 index 00000000000..96f0166ebf3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingTools.java @@ -0,0 +1,449 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an McpToolset of type Customizable reporting tools. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomizableReportingTools.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 DatabaseToolsMcpToolsetCustomizableReportingTools + extends DatabaseToolsMcpToolset { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * List of Database Tools Customizable reporting tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private java.util.List reports; + + /** + * List of Database Tools Customizable reporting tools + * @param reports the value to set + * @return this builder + **/ + public Builder reports( + java.util.List reports) { + this.reports = reports; + this.__explicitlySet__.add("reports"); + return this; + } + /** + * List of Database Tools Customizable reporting tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools Customizable reporting tools + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomizableReportingTools build() { + DatabaseToolsMcpToolsetCustomizableReportingTools model = + new DatabaseToolsMcpToolsetCustomizableReportingTools( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.description, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.reports, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomizableReportingTools model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("reports")) { + this.reports(model.getReports()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetCustomizableReportingTools( + String id, + Integer version, + String compartmentId, + String displayName, + String description, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + java.util.List reports, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + description, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.reports = reports; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools Customizable reporting tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private final java.util.List reports; + + /** + * List of Database Tools Customizable reporting tools + * @return the value + **/ + public java.util.List getReports() { + return reports; + } + + /** + * List of Database Tools Customizable reporting tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools Customizable reporting tools + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomizableReportingTools("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", reports=").append(String.valueOf(this.reports)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomizableReportingTools)) { + return false; + } + + DatabaseToolsMcpToolsetCustomizableReportingTools other = + (DatabaseToolsMcpToolsetCustomizableReportingTools) o; + return java.util.Objects.equals(this.reports, other.reports) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.reports == null ? 43 : this.reports.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsReport.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsReport.java new file mode 100644 index 00000000000..0e2887573e9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsReport.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools SQL Reports + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomizableReportingToolsReport.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetCustomizableReportingToolsReport + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"databaseToolsSqlReportId", "allowedRoles"}) + public DatabaseToolsMcpToolsetCustomizableReportingToolsReport( + String databaseToolsSqlReportId, java.util.List allowedRoles) { + super(); + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + this.allowedRoles = allowedRoles; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the report OCID of sql report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsSqlReportId") + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the report OCID of sql report. + * @param databaseToolsSqlReportId the value to set + * @return this builder + **/ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + this.__explicitlySet__.add("databaseToolsSqlReportId"); + return this; + } + /** + * The roles granted access to this report + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to this report + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomizableReportingToolsReport build() { + DatabaseToolsMcpToolsetCustomizableReportingToolsReport model = + new DatabaseToolsMcpToolsetCustomizableReportingToolsReport( + this.databaseToolsSqlReportId, this.allowedRoles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomizableReportingToolsReport model) { + if (model.wasPropertyExplicitlySet("databaseToolsSqlReportId")) { + this.databaseToolsSqlReportId(model.getDatabaseToolsSqlReportId()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the report OCID of sql report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsSqlReportId") + private final String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the report OCID of sql report. + * @return the value + **/ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + + /** + * The roles granted access to this report + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to this report + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomizableReportingToolsReport("); + sb.append("super=").append(super.toString()); + sb.append("databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomizableReportingToolsReport)) { + return false; + } + + DatabaseToolsMcpToolsetCustomizableReportingToolsReport other = + (DatabaseToolsMcpToolsetCustomizableReportingToolsReport) o; + return java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsSummary.java new file mode 100644 index 00000000000..bca28a0226c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsSummary.java @@ -0,0 +1,434 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP Toolset of type Customizable reporting tools. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomizableReportingToolsSummary.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 DatabaseToolsMcpToolsetCustomizableReportingToolsSummary + extends DatabaseToolsMcpToolsetSummary { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * List of Database Tools SQL Reports + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private java.util.List reports; + + /** + * List of Database Tools SQL Reports + * @param reports the value to set + * @return this builder + **/ + public Builder reports( + java.util.List reports) { + this.reports = reports; + this.__explicitlySet__.add("reports"); + return this; + } + /** + * List of Database Tools Customizable reporting tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools Customizable reporting tools + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomizableReportingToolsSummary build() { + DatabaseToolsMcpToolsetCustomizableReportingToolsSummary model = + new DatabaseToolsMcpToolsetCustomizableReportingToolsSummary( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.reports, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomizableReportingToolsSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("reports")) { + this.reports(model.getReports()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetCustomizableReportingToolsSummary( + String id, + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + java.util.List reports, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.reports = reports; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools SQL Reports + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private final java.util.List reports; + + /** + * List of Database Tools SQL Reports + * @return the value + **/ + public java.util.List getReports() { + return reports; + } + + /** + * List of Database Tools Customizable reporting tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools Customizable reporting tools + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomizableReportingToolsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", reports=").append(String.valueOf(this.reports)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomizableReportingToolsSummary)) { + return false; + } + + DatabaseToolsMcpToolsetCustomizableReportingToolsSummary other = + (DatabaseToolsMcpToolsetCustomizableReportingToolsSummary) o; + return java.util.Objects.equals(this.reports, other.reports) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.reports == null ? 43 : this.reports.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsVersion.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsVersion.java new file mode 100644 index 00000000000..52c31d260fc --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsVersion.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A specific version entry for a CUSTOMIZABLE_REPORTING_TOOLS MCP toolset version + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomizableReportingToolsVersion.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetCustomizableReportingToolsVersion + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "version", + "description", + "features", + "defaultReportAllowedRoles", + "tools" + }) + public DatabaseToolsMcpToolsetCustomizableReportingToolsVersion( + Integer version, + String description, + java.util.List features, + java.util.List defaultReportAllowedRoles, + java.util.List tools) { + super(); + this.version = version; + this.description = description; + this.features = features; + this.defaultReportAllowedRoles = defaultReportAllowedRoles; + this.tools = tools; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + /** + * The version number. + * @param version the value to set + * @return this builder + **/ + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of this version. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + /** + * The roles granted access to this toolset version by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultReportAllowedRoles") + private java.util.List defaultReportAllowedRoles; + + /** + * The roles granted access to this toolset version by default. + * @param defaultReportAllowedRoles the value to set + * @return this builder + **/ + public Builder defaultReportAllowedRoles(java.util.List defaultReportAllowedRoles) { + this.defaultReportAllowedRoles = defaultReportAllowedRoles; + this.__explicitlySet__.add("defaultReportAllowedRoles"); + return this; + } + /** + * The tools available in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * The tools available in this version. + * @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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetCustomizableReportingToolsVersion build() { + DatabaseToolsMcpToolsetCustomizableReportingToolsVersion model = + new DatabaseToolsMcpToolsetCustomizableReportingToolsVersion( + this.version, + this.description, + this.features, + this.defaultReportAllowedRoles, + this.tools); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetCustomizableReportingToolsVersion model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("defaultReportAllowedRoles")) { + this.defaultReportAllowedRoles(model.getDefaultReportAllowedRoles()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The version number. + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of this version. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + + /** + * The roles granted access to this toolset version by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultReportAllowedRoles") + private final java.util.List defaultReportAllowedRoles; + + /** + * The roles granted access to this toolset version by default. + * @return the value + **/ + public java.util.List getDefaultReportAllowedRoles() { + return defaultReportAllowedRoles; + } + + /** + * The tools available in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * The tools available in this version. + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetCustomizableReportingToolsVersion("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", defaultReportAllowedRoles=") + .append(String.valueOf(this.defaultReportAllowedRoles)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetCustomizableReportingToolsVersion)) { + return false; + } + + DatabaseToolsMcpToolsetCustomizableReportingToolsVersion other = + (DatabaseToolsMcpToolsetCustomizableReportingToolsVersion) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals( + this.defaultReportAllowedRoles, other.defaultReportAllowedRoles) + && java.util.Objects.equals(this.tools, other.tools) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = + (result * PRIME) + + (this.defaultReportAllowedRoles == null + ? 43 + : this.defaultReportAllowedRoles.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetDefaultExecutionType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetDefaultExecutionType.java new file mode 100644 index 00000000000..09d1df38d92 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetDefaultExecutionType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The default execution type for the Database Tools MCP Toolset. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetDefaultExecutionType { + Synchronous("SYNCHRONOUS"), + Asynchronous("ASYNCHRONOUS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsMcpToolsetDefaultExecutionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpToolsetDefaultExecutionType v : + DatabaseToolsMcpToolsetDefaultExecutionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpToolsetDefaultExecutionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpToolsetDefaultExecutionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpToolsetDefaultExecutionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistant.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistant.java new file mode 100644 index 00000000000..768d57976a9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistant.java @@ -0,0 +1,453 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an McpToolset of type GenAI SQL Assistant. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetGenAiSqlAssistant.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 DatabaseToolsMcpToolsetGenAiSqlAssistant extends DatabaseToolsMcpToolset { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @param generativeAiSemanticStoreId the value to set + * @return this builder + **/ + public Builder generativeAiSemanticStoreId(String generativeAiSemanticStoreId) { + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.__explicitlySet__.add("generativeAiSemanticStoreId"); + return this; + } + /** + * List of Database Tools GenAI SQL Assistant tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools GenAI SQL Assistant tools + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetGenAiSqlAssistant build() { + DatabaseToolsMcpToolsetGenAiSqlAssistant model = + new DatabaseToolsMcpToolsetGenAiSqlAssistant( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.description, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.generativeAiSemanticStoreId, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetGenAiSqlAssistant model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("generativeAiSemanticStoreId")) { + this.generativeAiSemanticStoreId(model.getGenerativeAiSemanticStoreId()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetGenAiSqlAssistant( + String id, + Integer version, + String compartmentId, + String displayName, + String description, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + String generativeAiSemanticStoreId, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + description, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private final String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @return the value + **/ + public String getGenerativeAiSemanticStoreId() { + return generativeAiSemanticStoreId; + } + + /** + * List of Database Tools GenAI SQL Assistant tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools GenAI SQL Assistant tools + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetGenAiSqlAssistant("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", generativeAiSemanticStoreId=") + .append(String.valueOf(this.generativeAiSemanticStoreId)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetGenAiSqlAssistant)) { + return false; + } + + DatabaseToolsMcpToolsetGenAiSqlAssistant other = + (DatabaseToolsMcpToolsetGenAiSqlAssistant) o; + return java.util.Objects.equals( + this.generativeAiSemanticStoreId, other.generativeAiSemanticStoreId) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.generativeAiSemanticStoreId == null + ? 43 + : this.generativeAiSemanticStoreId.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantSummary.java new file mode 100644 index 00000000000..75ff1486ca3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantSummary.java @@ -0,0 +1,439 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP Toolset of type GenAI SQL Assistant. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetGenAiSqlAssistantSummary.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 DatabaseToolsMcpToolsetGenAiSqlAssistantSummary + extends DatabaseToolsMcpToolsetSummary { + @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("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private String databaseToolsMcpServerId; + + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.__explicitlySet__.add("databaseToolsMcpServerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsMcpToolsetLifecycleState 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("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("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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @param generativeAiSemanticStoreId the value to set + * @return this builder + **/ + public Builder generativeAiSemanticStoreId(String generativeAiSemanticStoreId) { + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.__explicitlySet__.add("generativeAiSemanticStoreId"); + return this; + } + /** + * List of Database Tools GenAI SQL Assistant tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools GenAI SQL Assistant tools + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetGenAiSqlAssistantSummary build() { + DatabaseToolsMcpToolsetGenAiSqlAssistantSummary model = + new DatabaseToolsMcpToolsetGenAiSqlAssistantSummary( + this.id, + this.version, + this.compartmentId, + this.displayName, + this.databaseToolsMcpServerId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks, + this.generativeAiSemanticStoreId, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetGenAiSqlAssistantSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsMcpServerId")) { + this.databaseToolsMcpServerId(model.getDatabaseToolsMcpServerId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("generativeAiSemanticStoreId")) { + this.generativeAiSemanticStoreId(model.getGenerativeAiSemanticStoreId()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetGenAiSqlAssistantSummary( + String id, + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks, + String generativeAiSemanticStoreId, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super( + id, + version, + compartmentId, + displayName, + databaseToolsMcpServerId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private final String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @return the value + **/ + public String getGenerativeAiSemanticStoreId() { + return generativeAiSemanticStoreId; + } + + /** + * List of Database Tools GenAI SQL Assistant tools + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools GenAI SQL Assistant tools + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetGenAiSqlAssistantSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", generativeAiSemanticStoreId=") + .append(String.valueOf(this.generativeAiSemanticStoreId)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetGenAiSqlAssistantSummary)) { + return false; + } + + DatabaseToolsMcpToolsetGenAiSqlAssistantSummary other = + (DatabaseToolsMcpToolsetGenAiSqlAssistantSummary) o; + return java.util.Objects.equals( + this.generativeAiSemanticStoreId, other.generativeAiSemanticStoreId) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.generativeAiSemanticStoreId == null + ? 43 + : this.generativeAiSemanticStoreId.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantVersion.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantVersion.java new file mode 100644 index 00000000000..c91c0912c4a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantVersion.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A specific version entry for a GENAI_SQL_ASSISTANT MCP toolset version + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetGenAiSqlAssistantVersion.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetGenAiSqlAssistantVersion + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"version", "description", "features", "tools"}) + public DatabaseToolsMcpToolsetGenAiSqlAssistantVersion( + Integer version, + String description, + java.util.List features, + java.util.List tools) { + super(); + this.version = version; + this.description = description; + this.features = features; + this.tools = tools; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + /** + * The version number. + * @param version the value to set + * @return this builder + **/ + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of this version. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + /** + * The tools available in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * The tools available in this version. + * @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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetGenAiSqlAssistantVersion build() { + DatabaseToolsMcpToolsetGenAiSqlAssistantVersion model = + new DatabaseToolsMcpToolsetGenAiSqlAssistantVersion( + this.version, this.description, this.features, this.tools); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetGenAiSqlAssistantVersion model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The version number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The version number. + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * A description of this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of this version. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Optional feature flags or attributes for this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * Optional feature flags or attributes for this version. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + + /** + * The tools available in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * The tools available in this version. + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetGenAiSqlAssistantVersion("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetGenAiSqlAssistantVersion)) { + return false; + } + + DatabaseToolsMcpToolsetGenAiSqlAssistantVersion other = + (DatabaseToolsMcpToolsetGenAiSqlAssistantVersion) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.tools, other.tools) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetLifecycleState.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetLifecycleState.java new file mode 100644 index 00000000000..b7fa5f62f06 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetLifecycleState.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The lifecycle state. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetLifecycleState { + 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(DatabaseToolsMcpToolsetLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpToolsetLifecycleState v : + DatabaseToolsMcpToolsetLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpToolsetLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpToolsetLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpToolsetLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetSummary.java new file mode 100644 index 00000000000..a0fb8d1401c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetSummary.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools MCP Toolset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsMcpToolsetSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetBuiltInSqlToolsSummary.class, + name = "BUILT_IN_SQL_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetCustomizableReportingToolsSummary.class, + name = "CUSTOMIZABLE_REPORTING_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetCustomSqlToolSummary.class, + name = "CUSTOM_SQL_TOOL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetGenAiSqlAssistantSummary.class, + name = "GENAI_SQL_ASSISTANT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsMcpToolsetSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "version", + "compartmentId", + "displayName", + "databaseToolsMcpServerId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "locks" + }) + protected DatabaseToolsMcpToolsetSummary( + String id, + Integer version, + String compartmentId, + String displayName, + String databaseToolsMcpServerId, + DatabaseToolsMcpToolsetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super(); + this.id = id; + this.version = version; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP Toolset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools MCP Toolset. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The toolset version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The toolset version + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools MCP server. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools McpServer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsMcpServerId") + private final String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools McpServer. + * @return the value + **/ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + + /** + * The current state of the Database Tools MCP Toolset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + /** + * The current state of the Database Tools MCP Toolset. + * @return the value + **/ + public DatabaseToolsMcpToolsetLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetSummary)) { + return false; + } + + DatabaseToolsMcpToolsetSummary other = (DatabaseToolsMcpToolsetSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolDetails.java new file mode 100644 index 00000000000..3d4b7ed204b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolDetails.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * MCP toolset tool configuration + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetToolDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetToolDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "displayName", "status", "allowedRoles"}) + public DatabaseToolsMcpToolsetToolDetails( + String name, + String displayName, + DatabaseToolsMcpToolsetToolStatus status, + java.util.List allowedRoles) { + super(); + this.name = name; + this.displayName = displayName; + this.status = status; + this.allowedRoles = allowedRoles; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the tool + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The display name of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the tool + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The status of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private DatabaseToolsMcpToolsetToolStatus status; + + /** + * The status of the tool + * @param status the value to set + * @return this builder + **/ + public Builder status(DatabaseToolsMcpToolsetToolStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The roles granted access to this MCP tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to this MCP tool + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetToolDetails build() { + DatabaseToolsMcpToolsetToolDetails model = + new DatabaseToolsMcpToolsetToolDetails( + this.name, this.displayName, this.status, this.allowedRoles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetToolDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + 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 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the tool + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The display name of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the tool + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The status of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final DatabaseToolsMcpToolsetToolStatus status; + + /** + * The status of the tool + * @return the value + **/ + public DatabaseToolsMcpToolsetToolStatus getStatus() { + return status; + } + + /** + * The roles granted access to this MCP tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to this MCP tool + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetToolDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetToolDetails)) { + return false; + } + + DatabaseToolsMcpToolsetToolDetails other = (DatabaseToolsMcpToolsetToolDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && 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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolStatus.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolStatus.java new file mode 100644 index 00000000000..b534eaeed49 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolStatus.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The Database Tools MCP Toolset CustomizableReportingTools tool status. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetToolStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsMcpToolsetToolStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpToolsetToolStatus v : DatabaseToolsMcpToolsetToolStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpToolsetToolStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpToolsetToolStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpToolsetToolStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetType.java new file mode 100644 index 00000000000..922e0413906 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetType.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The Database Tools MCP Toolset type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetType { + CustomSqlTool("CUSTOM_SQL_TOOL"), + BuiltInSqlTools("BUILT_IN_SQL_TOOLS"), + CustomizableReportingTools("CUSTOMIZABLE_REPORTING_TOOLS"), + GenaiSqlAssistant("GENAI_SQL_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(DatabaseToolsMcpToolsetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpToolsetType v : DatabaseToolsMcpToolsetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpToolsetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpToolsetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpToolsetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary.java new file mode 100644 index 00000000000..bd89f26047e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of versions available for the BUILT_IN_SQL_TOOLS MCP toolset type + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary.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 DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary + extends DatabaseToolsMcpToolsetVersionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("defaultVersion") + private Integer defaultVersion; + + public Builder defaultVersion(Integer defaultVersion) { + this.defaultVersion = defaultVersion; + this.__explicitlySet__.add("defaultVersion"); + return this; + } + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @param versions the value to set + * @return this builder + **/ + public Builder versions( + java.util.List versions) { + this.versions = versions; + this.__explicitlySet__.add("versions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary build() { + DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary model = + new DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary( + this.defaultVersion, this.versions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary model) { + if (model.wasPropertyExplicitlySet("defaultVersion")) { + this.defaultVersion(model.getDefaultVersion()); + } + if (model.wasPropertyExplicitlySet("versions")) { + this.versions(model.getVersions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary( + Integer defaultVersion, + java.util.List versions) { + super(defaultVersion); + this.versions = versions; + } + + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private final java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @return the value + **/ + public java.util.List getVersions() { + return versions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versions=").append(String.valueOf(this.versions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary)) { + return false; + } + + DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary other = + (DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary) o; + return java.util.Objects.equals(this.versions, other.versions) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.versions == null ? 43 : this.versions.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCollection.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCollection.java new file mode 100644 index 00000000000..3167685af52 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCollection.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * List of MCP toolset type version summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetVersionCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsMcpToolsetVersionCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of MCP toolset type version summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of MCP toolset type version summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetVersionCollection build() { + DatabaseToolsMcpToolsetVersionCollection model = + new DatabaseToolsMcpToolsetVersionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetVersionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of MCP toolset type version summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of MCP toolset type version summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionCollection("); + 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 DatabaseToolsMcpToolsetVersionCollection)) { + return false; + } + + DatabaseToolsMcpToolsetVersionCollection other = + (DatabaseToolsMcpToolsetVersionCollection) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomSqlToolSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomSqlToolSummary.java new file mode 100644 index 00000000000..7e79fe7676b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomSqlToolSummary.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of versions available for the CUSTOM_SQL_TOOL MCP toolset type + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionCustomSqlToolSummary.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 DatabaseToolsMcpToolsetVersionCustomSqlToolSummary + extends DatabaseToolsMcpToolsetVersionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("defaultVersion") + private Integer defaultVersion; + + public Builder defaultVersion(Integer defaultVersion) { + this.defaultVersion = defaultVersion; + this.__explicitlySet__.add("defaultVersion"); + return this; + } + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @param versions the value to set + * @return this builder + **/ + public Builder versions( + java.util.List versions) { + this.versions = versions; + this.__explicitlySet__.add("versions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetVersionCustomSqlToolSummary build() { + DatabaseToolsMcpToolsetVersionCustomSqlToolSummary model = + new DatabaseToolsMcpToolsetVersionCustomSqlToolSummary( + this.defaultVersion, this.versions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetVersionCustomSqlToolSummary model) { + if (model.wasPropertyExplicitlySet("defaultVersion")) { + this.defaultVersion(model.getDefaultVersion()); + } + if (model.wasPropertyExplicitlySet("versions")) { + this.versions(model.getVersions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetVersionCustomSqlToolSummary( + Integer defaultVersion, + java.util.List versions) { + super(defaultVersion); + this.versions = versions; + } + + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private final java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @return the value + **/ + public java.util.List getVersions() { + return versions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionCustomSqlToolSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versions=").append(String.valueOf(this.versions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetVersionCustomSqlToolSummary)) { + return false; + } + + DatabaseToolsMcpToolsetVersionCustomSqlToolSummary other = + (DatabaseToolsMcpToolsetVersionCustomSqlToolSummary) o; + return java.util.Objects.equals(this.versions, other.versions) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.versions == null ? 43 : this.versions.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary.java new file mode 100644 index 00000000000..8b5a18b34d8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of versions available for the CUSTOMIZABLE_REPORTING_TOOLS MCP toolset type + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary.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 DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary + extends DatabaseToolsMcpToolsetVersionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("defaultVersion") + private Integer defaultVersion; + + public Builder defaultVersion(Integer defaultVersion) { + this.defaultVersion = defaultVersion; + this.__explicitlySet__.add("defaultVersion"); + return this; + } + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @param versions the value to set + * @return this builder + **/ + public Builder versions( + java.util.List versions) { + this.versions = versions; + this.__explicitlySet__.add("versions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary build() { + DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary model = + new DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary( + this.defaultVersion, this.versions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary model) { + if (model.wasPropertyExplicitlySet("defaultVersion")) { + this.defaultVersion(model.getDefaultVersion()); + } + if (model.wasPropertyExplicitlySet("versions")) { + this.versions(model.getVersions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary( + Integer defaultVersion, + java.util.List versions) { + super(defaultVersion); + this.versions = versions; + } + + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private final java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @return the value + **/ + public java.util.List getVersions() { + return versions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versions=").append(String.valueOf(this.versions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary)) { + return false; + } + + DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary other = + (DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary) o; + return java.util.Objects.equals(this.versions, other.versions) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.versions == null ? 43 : this.versions.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary.java new file mode 100644 index 00000000000..d175cee597a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of versions available for the GENAI_SQL_ASSISTANT MCP toolset type + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary.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 DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary + extends DatabaseToolsMcpToolsetVersionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("defaultVersion") + private Integer defaultVersion; + + public Builder defaultVersion(Integer defaultVersion) { + this.defaultVersion = defaultVersion; + this.__explicitlySet__.add("defaultVersion"); + return this; + } + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @param versions the value to set + * @return this builder + **/ + public Builder versions( + java.util.List versions) { + this.versions = versions; + this.__explicitlySet__.add("versions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary build() { + DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary model = + new DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary( + this.defaultVersion, this.versions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary model) { + if (model.wasPropertyExplicitlySet("defaultVersion")) { + this.defaultVersion(model.getDefaultVersion()); + } + if (model.wasPropertyExplicitlySet("versions")) { + this.versions(model.getVersions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary( + Integer defaultVersion, + java.util.List versions) { + super(defaultVersion); + this.versions = versions; + } + + /** + * The version configurations available for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private final java.util.List versions; + + /** + * The version configurations available for this toolset type. + * @return the value + **/ + public java.util.List getVersions() { + return versions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versions=").append(String.valueOf(this.versions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary)) { + return false; + } + + DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary other = + (DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary) o; + return java.util.Objects.equals(this.versions, other.versions) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.versions == null ? 43 : this.versions.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionSummary.java new file mode 100644 index 00000000000..f5c14457ae8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionSummary.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of versions available for a specific MCP toolset type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsMcpToolsetVersionSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetVersionCustomSqlToolSummary.class, + name = "CUSTOM_SQL_TOOL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary.class, + name = "CUSTOMIZABLE_REPORTING_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary.class, + name = "BUILT_IN_SQL_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary.class, + name = "GENAI_SQL_ASSISTANT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsMcpToolsetVersionSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"defaultVersion"}) + protected DatabaseToolsMcpToolsetVersionSummary(Integer defaultVersion) { + super(); + this.defaultVersion = defaultVersion; + } + + /** + * The default version for this toolset type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultVersion") + private final Integer defaultVersion; + + /** + * The default version for this toolset type. + * @return the value + **/ + public Integer getDefaultVersion() { + return defaultVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionSummary("); + sb.append("super=").append(super.toString()); + sb.append("defaultVersion=").append(String.valueOf(this.defaultVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetVersionSummary)) { + return false; + } + + DatabaseToolsMcpToolsetVersionSummary other = (DatabaseToolsMcpToolsetVersionSummary) o; + return java.util.Objects.equals(this.defaultVersion, other.defaultVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.defaultVersion == null ? 43 : this.defaultVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionTool.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionTool.java new file mode 100644 index 00000000000..7bd554de393 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionTool.java @@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A tool definition for a specific MCP toolset version. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionTool.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsMcpToolsetVersionTool + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "displayName", + "description", + "defaultStatus", + "defaultAllowedRoles" + }) + public DatabaseToolsMcpToolsetVersionTool( + String name, + String displayName, + String description, + DatabaseToolsMcpToolsetToolStatus defaultStatus, + java.util.List defaultAllowedRoles) { + super(); + this.name = name; + this.displayName = displayName; + this.description = description; + this.defaultStatus = defaultStatus; + this.defaultAllowedRoles = defaultAllowedRoles; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique name of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The unique name of the tool. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The display name of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the tool. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The description of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the tool. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The default status of the tool in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultStatus") + private DatabaseToolsMcpToolsetToolStatus defaultStatus; + + /** + * The default status of the tool in this version. + * @param defaultStatus the value to set + * @return this builder + **/ + public Builder defaultStatus(DatabaseToolsMcpToolsetToolStatus defaultStatus) { + this.defaultStatus = defaultStatus; + this.__explicitlySet__.add("defaultStatus"); + return this; + } + /** + * The roles granted access to this tool by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultAllowedRoles") + private java.util.List defaultAllowedRoles; + + /** + * The roles granted access to this tool by default. + * @param defaultAllowedRoles the value to set + * @return this builder + **/ + public Builder defaultAllowedRoles(java.util.List defaultAllowedRoles) { + this.defaultAllowedRoles = defaultAllowedRoles; + this.__explicitlySet__.add("defaultAllowedRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsMcpToolsetVersionTool build() { + DatabaseToolsMcpToolsetVersionTool model = + new DatabaseToolsMcpToolsetVersionTool( + this.name, + this.displayName, + this.description, + this.defaultStatus, + this.defaultAllowedRoles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsMcpToolsetVersionTool model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("defaultStatus")) { + this.defaultStatus(model.getDefaultStatus()); + } + if (model.wasPropertyExplicitlySet("defaultAllowedRoles")) { + this.defaultAllowedRoles(model.getDefaultAllowedRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique name of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The unique name of the tool. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The display name of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the tool. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The description of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the tool. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The default status of the tool in this version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultStatus") + private final DatabaseToolsMcpToolsetToolStatus defaultStatus; + + /** + * The default status of the tool in this version. + * @return the value + **/ + public DatabaseToolsMcpToolsetToolStatus getDefaultStatus() { + return defaultStatus; + } + + /** + * The roles granted access to this tool by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultAllowedRoles") + private final java.util.List defaultAllowedRoles; + + /** + * The roles granted access to this tool by default. + * @return the value + **/ + public java.util.List getDefaultAllowedRoles() { + return defaultAllowedRoles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsMcpToolsetVersionTool("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", defaultStatus=").append(String.valueOf(this.defaultStatus)); + sb.append(", defaultAllowedRoles=").append(String.valueOf(this.defaultAllowedRoles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsMcpToolsetVersionTool)) { + return false; + } + + DatabaseToolsMcpToolsetVersionTool other = (DatabaseToolsMcpToolsetVersionTool) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.defaultStatus, other.defaultStatus) + && java.util.Objects.equals(this.defaultAllowedRoles, other.defaultAllowedRoles) + && 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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.defaultStatus == null ? 43 : this.defaultStatus.hashCode()); + result = + (result * PRIME) + + (this.defaultAllowedRoles == null + ? 43 + : this.defaultAllowedRoles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionType.java new file mode 100644 index 00000000000..8fee58e0f56 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionType.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The Database Tools MCP toolset version type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetVersionType { + CustomSqlTool("CUSTOM_SQL_TOOL"), + BuiltInSqlTools("BUILT_IN_SQL_TOOLS"), + CustomizableReportingTools("CUSTOMIZABLE_REPORTING_TOOLS"), + GenaiSqlAssistant("GENAI_SQL_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(DatabaseToolsMcpToolsetVersionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsMcpToolsetVersionType v : DatabaseToolsMcpToolsetVersionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsMcpToolsetVersionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsMcpToolsetVersionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsMcpToolsetVersionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReport.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReport.java new file mode 100644 index 00000000000..12a805c6be3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReport.java @@ -0,0 +1,435 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows generating a summary of SQL query execution details for database operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsSqlReport.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsSqlReportOracleDatabase.class, + name = "ORACLE_DATABASE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsSqlReport extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "source", + "purpose", + "instructions", + "variables", + "columns", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "locks" + }) + protected DatabaseToolsSqlReport( + String id, + String compartmentId, + String displayName, + String description, + String source, + String purpose, + String instructions, + java.util.List variables, + java.util.List columns, + DatabaseToolsSqlReportLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.source = source; + this.purpose = purpose; + this.instructions = instructions; + this.variables = variables; + this.columns = columns; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools SQL report. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools SQL report. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A description of the SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the SQL report. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * SQL query executed to generate the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final String source; + + /** + * SQL query executed to generate the report. + * @return the value + **/ + public String getSource() { + return source; + } + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("purpose") + private final String purpose; + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + * @return the value + **/ + public String getPurpose() { + return purpose; + } + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private final String instructions; + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + * @return the value + **/ + public String getInstructions() { + return instructions; + } + + /** + * Variables referenced in the Database Tools SQL Report source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final java.util.List variables; + + /** + * Variables referenced in the Database Tools SQL Report source. + * @return the value + **/ + public java.util.List getVariables() { + return variables; + } + + /** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("columns") + private final java.util.List columns; + + /** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + * @return the value + **/ + public java.util.List getColumns() { + return columns; + } + + /** + * The current state of the Database Tools SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsSqlReportLifecycleState lifecycleState; + + /** + * The current state of the Database Tools SQL report. + * @return the value + **/ + public DatabaseToolsSqlReportLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools SQL report was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools SQL report was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsSqlReport("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", purpose=").append(String.valueOf(this.purpose)); + sb.append(", instructions=").append(String.valueOf(this.instructions)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", columns=").append(String.valueOf(this.columns)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsSqlReport)) { + return false; + } + + DatabaseToolsSqlReport other = (DatabaseToolsSqlReport) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.purpose, other.purpose) + && java.util.Objects.equals(this.instructions, other.instructions) + && java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.columns, other.columns) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.purpose == null ? 43 : this.purpose.hashCode()); + result = (result * PRIME) + (this.instructions == null ? 43 : this.instructions.hashCode()); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.columns == null ? 43 : this.columns.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportCollection.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportCollection.java new file mode 100644 index 00000000000..595c8a0f993 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * List of Database Tools SQL report summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsSqlReportCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsSqlReportCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools SQL report summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools SQL report summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsSqlReportCollection build() { + DatabaseToolsSqlReportCollection model = + new DatabaseToolsSqlReportCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsSqlReportCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools SQL report summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools SQL report summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsSqlReportCollection("); + 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 DatabaseToolsSqlReportCollection)) { + return false; + } + + DatabaseToolsSqlReportCollection other = (DatabaseToolsSqlReportCollection) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportColumn.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportColumn.java new file mode 100644 index 00000000000..304b96c683e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportColumn.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportColumn.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsSqlReportColumn + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "description", "type"}) + public DatabaseToolsSqlReportColumn(String name, String description, String type) { + super(); + this.name = name; + this.description = description; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the column + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the column + * @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 the column + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the column + * @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 column + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The type of the column + * @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 DatabaseToolsSqlReportColumn build() { + DatabaseToolsSqlReportColumn model = + new DatabaseToolsSqlReportColumn(this.name, this.description, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsSqlReportColumn model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + 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); + } + + /** + * The name of the column + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the column + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The description of the column + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the column + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The type of the column + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The type of the column + * @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("DatabaseToolsSqlReportColumn("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + 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 DatabaseToolsSqlReportColumn)) { + return false; + } + + DatabaseToolsSqlReportColumn other = (DatabaseToolsSqlReportColumn) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportLifecycleState.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportLifecycleState.java new file mode 100644 index 00000000000..2d1bf0f27e3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportLifecycleState.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The lifecycle state. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsSqlReportLifecycleState { + Active("ACTIVE"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsSqlReportLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsSqlReportLifecycleState v : + DatabaseToolsSqlReportLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsSqlReportLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsSqlReportLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsSqlReportLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportOracleDatabase.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportOracleDatabase.java new file mode 100644 index 00000000000..e7b44988d00 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportOracleDatabase.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Allows the creation, configuration and management of an SQL Report. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportOracleDatabase.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 DatabaseToolsSqlReportOracleDatabase extends DatabaseToolsSqlReport { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("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("source") + private String source; + + public Builder source(String source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("purpose") + private String purpose; + + public Builder purpose(String purpose) { + this.purpose = purpose; + this.__explicitlySet__.add("purpose"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private String instructions; + + public Builder instructions(String instructions) { + this.instructions = instructions; + this.__explicitlySet__.add("instructions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private java.util.List variables; + + public Builder variables(java.util.List variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("columns") + private java.util.List columns; + + public Builder columns(java.util.List columns) { + this.columns = columns; + this.__explicitlySet__.add("columns"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsSqlReportLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsSqlReportLifecycleState 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("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("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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsSqlReportOracleDatabase build() { + DatabaseToolsSqlReportOracleDatabase model = + new DatabaseToolsSqlReportOracleDatabase( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.source, + this.purpose, + this.instructions, + this.variables, + this.columns, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsSqlReportOracleDatabase 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("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("purpose")) { + this.purpose(model.getPurpose()); + } + if (model.wasPropertyExplicitlySet("instructions")) { + this.instructions(model.getInstructions()); + } + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("columns")) { + this.columns(model.getColumns()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsSqlReportOracleDatabase( + String id, + String compartmentId, + String displayName, + String description, + String source, + String purpose, + String instructions, + java.util.List variables, + java.util.List columns, + DatabaseToolsSqlReportLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super( + id, + compartmentId, + displayName, + description, + source, + purpose, + instructions, + variables, + columns, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsSqlReportOracleDatabase("); + 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 DatabaseToolsSqlReportOracleDatabase)) { + return false; + } + + DatabaseToolsSqlReportOracleDatabase other = (DatabaseToolsSqlReportOracleDatabase) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummary.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummary.java new file mode 100644 index 00000000000..82b34ff382a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummary.java @@ -0,0 +1,376 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools SQL report. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsSqlReportSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsSqlReportSummaryOracleDatabase.class, + name = "ORACLE_DATABASE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsSqlReportSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "purpose", + "instructions", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "locks" + }) + protected DatabaseToolsSqlReportSummary( + String id, + String compartmentId, + String displayName, + String description, + String purpose, + String instructions, + DatabaseToolsSqlReportLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.purpose = purpose; + this.instructions = instructions; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.locks = locks; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools SQL Report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools SQL Report. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools SQL Report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools SQL Report. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A description of the SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the SQL report. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("purpose") + private final String purpose; + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + * @return the value + **/ + public String getPurpose() { + return purpose; + } + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private final String instructions; + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + * @return the value + **/ + public String getInstructions() { + return instructions; + } + + /** + * The current state of the Database Tools SQL Report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsSqlReportLifecycleState lifecycleState; + + /** + * The current state of the Database Tools SQL Report. + * @return the value + **/ + public DatabaseToolsSqlReportLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state of the Database Tools SQL Report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state of the Database Tools SQL Report. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools SQL Report was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools SQL Report was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools SQL Report was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools SQL Report was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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; + } + + /** + * 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); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsSqlReportSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", purpose=").append(String.valueOf(this.purpose)); + sb.append(", instructions=").append(String.valueOf(this.instructions)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsSqlReportSummary)) { + return false; + } + + DatabaseToolsSqlReportSummary other = (DatabaseToolsSqlReportSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.purpose, other.purpose) + && java.util.Objects.equals(this.instructions, other.instructions) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.purpose == null ? 43 : this.purpose.hashCode()); + result = (result * PRIME) + (this.instructions == null ? 43 : this.instructions.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummaryOracleDatabase.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummaryOracleDatabase.java new file mode 100644 index 00000000000..6407e5678f5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummaryOracleDatabase.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Summary of the Database Tools SQL report for an Oracle 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: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportSummaryOracleDatabase.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 DatabaseToolsSqlReportSummaryOracleDatabase + extends DatabaseToolsSqlReportSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("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("purpose") + private String purpose; + + public Builder purpose(String purpose) { + this.purpose = purpose; + this.__explicitlySet__.add("purpose"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private String instructions; + + public Builder instructions(String instructions) { + this.instructions = instructions; + this.__explicitlySet__.add("instructions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsSqlReportLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsSqlReportLifecycleState 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("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("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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsSqlReportSummaryOracleDatabase build() { + DatabaseToolsSqlReportSummaryOracleDatabase model = + new DatabaseToolsSqlReportSummaryOracleDatabase( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.purpose, + this.instructions, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.locks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsSqlReportSummaryOracleDatabase 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("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("purpose")) { + this.purpose(model.getPurpose()); + } + if (model.wasPropertyExplicitlySet("instructions")) { + this.instructions(model.getInstructions()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsSqlReportSummaryOracleDatabase( + String id, + String compartmentId, + String displayName, + String description, + String purpose, + String instructions, + DatabaseToolsSqlReportLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + java.util.List locks) { + super( + id, + compartmentId, + displayName, + description, + purpose, + instructions, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags, + locks); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsSqlReportSummaryOracleDatabase("); + 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 DatabaseToolsSqlReportSummaryOracleDatabase)) { + return false; + } + + DatabaseToolsSqlReportSummaryOracleDatabase other = + (DatabaseToolsSqlReportSummaryOracleDatabase) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportType.java new file mode 100644 index 00000000000..ff3033e9cff --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The Database Tools SQL report type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsSqlReportType { + OracleDatabase("ORACLE_DATABASE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsSqlReportType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsSqlReportType v : DatabaseToolsSqlReportType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsSqlReportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsSqlReportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsSqlReportType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportVariable.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportVariable.java new file mode 100644 index 00000000000..82cfa5e4131 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportVariable.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * A variable referenced in the Database Tools SQL Report source. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportVariable.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsSqlReportVariable + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "description", "type"}) + public DatabaseToolsSqlReportVariable(String name, String description, String type) { + super(); + this.name = name; + this.description = description; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the variable + * @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 the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the variable + * @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 variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The type of the variable + * @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 DatabaseToolsSqlReportVariable build() { + DatabaseToolsSqlReportVariable model = + new DatabaseToolsSqlReportVariable(this.name, this.description, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsSqlReportVariable model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + 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); + } + + /** + * The name of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the variable + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The description of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the variable + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The type of the variable + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The type of the variable + * @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("DatabaseToolsSqlReportVariable("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + 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 DatabaseToolsSqlReportVariable)) { + return false; + } + + DatabaseToolsSqlReportVariable other = (DatabaseToolsSqlReportVariable) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/IdentityProviderType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/IdentityProviderType.java new file mode 100644 index 00000000000..517e34fe00b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/IdentityProviderType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * The identity provider type + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum IdentityProviderType { + OciIam("OCI_IAM"), + AzureAd("AZURE_AD"), + None("NONE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(IdentityProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IdentityProviderType v : IdentityProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IdentityProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IdentityProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IdentityProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/OperationType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/OperationType.java index 53962cf40dd..241e780ea1f 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/OperationType.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/OperationType.java @@ -22,6 +22,12 @@ public enum OperationType { DeleteDatabaseToolsIdentity("DELETE_DATABASE_TOOLS_IDENTITY"), UpdateDatabaseToolsIdentity("UPDATE_DATABASE_TOOLS_IDENTITY"), RefreshDatabaseToolsIdentityCredential("REFRESH_DATABASE_TOOLS_IDENTITY_CREDENTIAL"), + CreateDatabaseToolsMcpServer("CREATE_DATABASE_TOOLS_MCP_SERVER"), + DeleteDatabaseToolsMcpServer("DELETE_DATABASE_TOOLS_MCP_SERVER"), + UpdateDatabaseToolsMcpServer("UPDATE_DATABASE_TOOLS_MCP_SERVER"), + CreateDatabaseToolsMcpToolset("CREATE_DATABASE_TOOLS_MCP_TOOLSET"), + DeleteDatabaseToolsMcpToolset("DELETE_DATABASE_TOOLS_MCP_TOOLSET"), + UpdateDatabaseToolsMcpToolset("UPDATE_DATABASE_TOOLS_MCP_TOOLSET"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ProxyAuthenticationType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ProxyAuthenticationType.java index b71ad9b5588..33c24e4b507 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ProxyAuthenticationType.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ProxyAuthenticationType.java @@ -10,6 +10,7 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") public enum ProxyAuthenticationType { UserName("USER_NAME"), + UserNameAutoDetect("USER_NAME_AUTO_DETECT"), NoProxy("NO_PROXY"), /** diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/RuntimeIdentity.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/RuntimeIdentity.java index 7607a4d5598..3caf00905f9 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/RuntimeIdentity.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/RuntimeIdentity.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasetools.model; /** - * The runtime identity to use. + * Determines the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection\u2019s resource principal (RPST). + * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") public enum RuntimeIdentity { diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.java new file mode 100644 index 00000000000..91acc5c1e1d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools database API gateway config information to be updated for the default type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.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 UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails + extends UpdateDatabaseToolsDatabaseApiGatewayConfigDetails { + @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("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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails model = + new UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails( + this.displayName, this.definedTags, this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails( + String displayName, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(displayName, definedTags, freeformTags); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails("); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDetails.java new file mode 100644 index 00000000000..ac6ed120e58 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDetails.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools database API gateway config information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsDatabaseApiGatewayConfigDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "definedTags", "freeformTags"}) + protected UpdateDatabaseToolsDatabaseApiGatewayConfigDetails( + String displayName, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.displayName = displayName; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetails.java new file mode 100644 index 00000000000..2c56b38c7bd --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetails.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP server information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsMcpServerDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsMcpServerDetailsDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsMcpServerDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "customRoles", + "accessTokenExpiryInSeconds", + "refreshTokenExpiryInSeconds", + "definedTags", + "freeformTags" + }) + protected UpdateDatabaseToolsMcpServerDetails( + String displayName, + String description, + java.util.List customRoles, + Integer accessTokenExpiryInSeconds, + Integer refreshTokenExpiryInSeconds, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.displayName = displayName; + this.description = description; + this.customRoles = customRoles; + this.accessTokenExpiryInSeconds = accessTokenExpiryInSeconds; + this.refreshTokenExpiryInSeconds = refreshTokenExpiryInSeconds; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A human-readable description of the Database Tools MCP server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description of the Database Tools MCP server. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Custom roles associated with the MCP Server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customRoles") + private final java.util.List customRoles; + + /** + * Custom roles associated with the MCP Server. + * @return the value + **/ + public java.util.List getCustomRoles() { + return customRoles; + } + + /** + * Access token expiry in seconds + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenExpiryInSeconds") + private final Integer accessTokenExpiryInSeconds; + + /** + * Access token expiry in seconds + * @return the value + **/ + public Integer getAccessTokenExpiryInSeconds() { + return accessTokenExpiryInSeconds; + } + + /** + * Refresh token expiry in seconds + **/ + @com.fasterxml.jackson.annotation.JsonProperty("refreshTokenExpiryInSeconds") + private final Integer refreshTokenExpiryInSeconds; + + /** + * Refresh token expiry in seconds + * @return the value + **/ + public Integer getRefreshTokenExpiryInSeconds() { + return refreshTokenExpiryInSeconds; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpServerDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", customRoles=").append(String.valueOf(this.customRoles)); + sb.append(", accessTokenExpiryInSeconds=") + .append(String.valueOf(this.accessTokenExpiryInSeconds)); + sb.append(", refreshTokenExpiryInSeconds=") + .append(String.valueOf(this.refreshTokenExpiryInSeconds)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpServerDetails)) { + return false; + } + + UpdateDatabaseToolsMcpServerDetails other = (UpdateDatabaseToolsMcpServerDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.customRoles, other.customRoles) + && java.util.Objects.equals( + this.accessTokenExpiryInSeconds, other.accessTokenExpiryInSeconds) + && java.util.Objects.equals( + this.refreshTokenExpiryInSeconds, other.refreshTokenExpiryInSeconds) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.customRoles == null ? 43 : this.customRoles.hashCode()); + result = + (result * PRIME) + + (this.accessTokenExpiryInSeconds == null + ? 43 + : this.accessTokenExpiryInSeconds.hashCode()); + result = + (result * PRIME) + + (this.refreshTokenExpiryInSeconds == null + ? 43 + : this.refreshTokenExpiryInSeconds.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetailsDefault.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetailsDefault.java new file mode 100644 index 00000000000..204f87d38fb --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetailsDefault.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP server information to be updated for the default type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpServerDetailsDefault.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 UpdateDatabaseToolsMcpServerDetailsDefault + extends UpdateDatabaseToolsMcpServerDetails { + @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("customRoles") + private java.util.List customRoles; + + public Builder customRoles(java.util.List customRoles) { + this.customRoles = customRoles; + this.__explicitlySet__.add("customRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenExpiryInSeconds") + private Integer accessTokenExpiryInSeconds; + + public Builder accessTokenExpiryInSeconds(Integer accessTokenExpiryInSeconds) { + this.accessTokenExpiryInSeconds = accessTokenExpiryInSeconds; + this.__explicitlySet__.add("accessTokenExpiryInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("refreshTokenExpiryInSeconds") + private Integer refreshTokenExpiryInSeconds; + + public Builder refreshTokenExpiryInSeconds(Integer refreshTokenExpiryInSeconds) { + this.refreshTokenExpiryInSeconds = refreshTokenExpiryInSeconds; + this.__explicitlySet__.add("refreshTokenExpiryInSeconds"); + 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("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("storage") + private DatabaseToolsMcpServerStorage storage; + + public Builder storage(DatabaseToolsMcpServerStorage storage) { + this.storage = storage; + this.__explicitlySet__.add("storage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsMcpServerDetailsDefault build() { + UpdateDatabaseToolsMcpServerDetailsDefault model = + new UpdateDatabaseToolsMcpServerDetailsDefault( + this.displayName, + this.description, + this.customRoles, + this.accessTokenExpiryInSeconds, + this.refreshTokenExpiryInSeconds, + this.definedTags, + this.freeformTags, + this.storage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsMcpServerDetailsDefault model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("customRoles")) { + this.customRoles(model.getCustomRoles()); + } + if (model.wasPropertyExplicitlySet("accessTokenExpiryInSeconds")) { + this.accessTokenExpiryInSeconds(model.getAccessTokenExpiryInSeconds()); + } + if (model.wasPropertyExplicitlySet("refreshTokenExpiryInSeconds")) { + this.refreshTokenExpiryInSeconds(model.getRefreshTokenExpiryInSeconds()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("storage")) { + this.storage(model.getStorage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsMcpServerDetailsDefault( + String displayName, + String description, + java.util.List customRoles, + Integer accessTokenExpiryInSeconds, + Integer refreshTokenExpiryInSeconds, + java.util.Map> definedTags, + java.util.Map freeformTags, + DatabaseToolsMcpServerStorage storage) { + super( + displayName, + description, + customRoles, + accessTokenExpiryInSeconds, + refreshTokenExpiryInSeconds, + definedTags, + freeformTags); + this.storage = storage; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storage") + private final DatabaseToolsMcpServerStorage storage; + + public DatabaseToolsMcpServerStorage getStorage() { + return storage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpServerDetailsDefault("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", storage=").append(String.valueOf(this.storage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpServerDetailsDefault)) { + return false; + } + + UpdateDatabaseToolsMcpServerDetailsDefault other = + (UpdateDatabaseToolsMcpServerDetailsDefault) o; + return java.util.Objects.equals(this.storage, other.storage) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.storage == null ? 43 : this.storage.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.java new file mode 100644 index 00000000000..f59d8a00a01 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP Toolset information to be updated for the Built-in SQL tools type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.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 UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails + extends UpdateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails build() { + UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails model = + new UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails( + this.version, + this.displayName, + this.description, + this.definedTags, + this.freeformTags, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails( + Integer version, + String displayName, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super(version, displayName, description, definedTags, freeformTags); + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools BUILT_IN_SQL_TOOLS toolset tool configurations + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails other = + (UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails) o; + return java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails.java new file mode 100644 index 00000000000..392ca9d6bcc --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails.java @@ -0,0 +1,414 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP Toolset information to be updated for the CUSTOM_SQL_TOOL type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails.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 UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails + extends UpdateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @param toolDescription the value to set + * @return this builder + **/ + public Builder toolDescription(String toolDescription) { + this.toolDescription = toolDescription; + this.__explicitlySet__.add("toolDescription"); + return this; + } + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private String toolName; + + /** + * Name of the tool returned by the MCP Server + * @param toolName the value to set + * @return this builder + **/ + public Builder toolName(String toolName) { + this.toolName = toolName; + this.__explicitlySet__.add("toolName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private DatabaseToolsCustomSqlToolToolsetSource source; + + public Builder source(DatabaseToolsCustomSqlToolToolsetSource source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + /** + * The variables to use with the query + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private java.util.List variables; + + /** + * The variables to use with the query + * @param variables the value to set + * @return this builder + **/ + public Builder variables( + java.util.List variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + /** + * The roles granted access to the MCP tool generated by this toolset + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to the MCP tool generated by this toolset + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails build() { + UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails model = + new UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails( + this.version, + this.displayName, + this.description, + this.definedTags, + this.freeformTags, + this.toolDescription, + this.toolName, + this.source, + this.variables, + this.allowedRoles, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("toolDescription")) { + this.toolDescription(model.getToolDescription()); + } + if (model.wasPropertyExplicitlySet("toolName")) { + this.toolName(model.getToolName()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails( + Integer version, + String displayName, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + String toolDescription, + String toolName, + DatabaseToolsCustomSqlToolToolsetSource source, + java.util.List variables, + java.util.List allowedRoles, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super(version, displayName, description, definedTags, freeformTags); + this.toolDescription = toolDescription; + this.toolName = toolName; + this.source = source; + this.variables = variables; + this.allowedRoles = allowedRoles; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolDescription") + private final String toolDescription; + + /** + * Instructions describing how to use the MCP toolset and its features. This can be used to improve the LLM's understanding of the tool. + * @return the value + **/ + public String getToolDescription() { + return toolDescription; + } + + /** + * Name of the tool returned by the MCP Server + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolName") + private final String toolName; + + /** + * Name of the tool returned by the MCP Server + * @return the value + **/ + public String getToolName() { + return toolName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final DatabaseToolsCustomSqlToolToolsetSource source; + + public DatabaseToolsCustomSqlToolToolsetSource getSource() { + return source; + } + + /** + * The variables to use with the query + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final java.util.List variables; + + /** + * The variables to use with the query + * @return the value + **/ + public java.util.List getVariables() { + return variables; + } + + /** + * The roles granted access to the MCP tool generated by this toolset + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to the MCP tool generated by this toolset + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", toolDescription=").append(String.valueOf(this.toolDescription)); + sb.append(", toolName=").append(String.valueOf(this.toolName)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails other = + (UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails) o; + return java.util.Objects.equals(this.toolDescription, other.toolDescription) + && java.util.Objects.equals(this.toolName, other.toolName) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.toolDescription == null ? 43 : this.toolDescription.hashCode()); + result = (result * PRIME) + (this.toolName == null ? 43 : this.toolName.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.java new file mode 100644 index 00000000000..5e3edfefec9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP Toolset information to be updated for the Customizable reporting tools type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.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 UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails + extends UpdateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * List of Database Tools SQL Reports + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private java.util.List reports; + + /** + * List of Database Tools SQL Reports + * @param reports the value to set + * @return this builder + **/ + public Builder reports( + java.util.List reports) { + this.reports = reports; + this.__explicitlySet__.add("reports"); + return this; + } + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails build() { + UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails model = + new UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails( + this.version, + this.displayName, + this.description, + this.definedTags, + this.freeformTags, + this.reports, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("reports")) { + this.reports(model.getReports()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails( + Integer version, + String displayName, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.List reports, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super(version, displayName, description, definedTags, freeformTags); + this.reports = reports; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * List of Database Tools SQL Reports + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reports") + private final java.util.List reports; + + /** + * List of Database Tools SQL Reports + * @return the value + **/ + public java.util.List getReports() { + return reports; + } + + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools CUSTOMIZABLE_REPORTING_TOOLS toolset tool configurations + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", reports=").append(String.valueOf(this.reports)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails other = + (UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails) o; + return java.util.Objects.equals(this.reports, other.reports) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.reports == null ? 43 : this.reports.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetDetails.java new file mode 100644 index 00000000000..04134cd92d5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetDetails.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP Toolset information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsMcpToolsetDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.class, + name = "CUSTOMIZABLE_REPORTING_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.class, + name = "BUILT_IN_SQL_TOOLS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails.class, + name = "CUSTOM_SQL_TOOL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.class, + name = "GENAI_SQL_ASSISTANT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsMcpToolsetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "version", + "displayName", + "description", + "definedTags", + "freeformTags" + }) + protected UpdateDatabaseToolsMcpToolsetDetails( + Integer version, + String displayName, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.version = version; + this.displayName = displayName; + this.description = description; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + /** + * The MCP toolset version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final Integer version; + + /** + * The MCP toolset version + * @return the value + **/ + public Integer getVersion() { + return version; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A human readable description of the Database Tools MCP toolset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human readable description of the Database Tools MCP toolset. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpToolsetDetails("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetDetails)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetDetails other = (UpdateDatabaseToolsMcpToolsetDetails) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.java new file mode 100644 index 00000000000..c1edcb86cb0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools MCP Toolset information to be updated for the GenAI SQL Assistant type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.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 UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails + extends UpdateDatabaseToolsMcpToolsetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private Integer version; + + public Builder version(Integer version) { + this.version = version; + this.__explicitlySet__.add("version"); + 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("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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @param generativeAiSemanticStoreId the value to set + * @return this builder + **/ + public Builder generativeAiSemanticStoreId(String generativeAiSemanticStoreId) { + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.__explicitlySet__.add("generativeAiSemanticStoreId"); + return this; + } + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + * @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; + } + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @param defaultExecutionType the value to set + * @return this builder + **/ + public Builder defaultExecutionType( + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + this.defaultExecutionType = defaultExecutionType; + this.__explicitlySet__.add("defaultExecutionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails build() { + UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails model = + new UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails( + this.version, + this.displayName, + this.description, + this.definedTags, + this.freeformTags, + this.generativeAiSemanticStoreId, + this.tools, + this.defaultExecutionType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("generativeAiSemanticStoreId")) { + this.generativeAiSemanticStoreId(model.getGenerativeAiSemanticStoreId()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("defaultExecutionType")) { + this.defaultExecutionType(model.getDefaultExecutionType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails( + Integer version, + String displayName, + String description, + java.util.Map> definedTags, + java.util.Map freeformTags, + String generativeAiSemanticStoreId, + java.util.List tools, + DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType) { + super(version, displayName, description, definedTags, freeformTags); + this.generativeAiSemanticStoreId = generativeAiSemanticStoreId; + this.tools = tools; + this.defaultExecutionType = defaultExecutionType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("generativeAiSemanticStoreId") + private final String generativeAiSemanticStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Generative AI Semantic Store. + * @return the value + **/ + public String getGenerativeAiSemanticStoreId() { + return generativeAiSemanticStoreId; + } + + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * List of Database Tools GENAI_SQL_ASSISTANT toolset tool configurations + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultExecutionType") + private final DatabaseToolsMcpToolsetDefaultExecutionType defaultExecutionType; + + /** + * The default execution type for the toolset. The default value is SYNCHRONOUS. + *

+ * To use ASYNCHRONOUS execution, the MCP Server must have the storage property configured. + * + * @return the value + **/ + public DatabaseToolsMcpToolsetDefaultExecutionType getDefaultExecutionType() { + return defaultExecutionType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", generativeAiSemanticStoreId=") + .append(String.valueOf(this.generativeAiSemanticStoreId)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", defaultExecutionType=").append(String.valueOf(this.defaultExecutionType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails other = + (UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails) o; + return java.util.Objects.equals( + this.generativeAiSemanticStoreId, other.generativeAiSemanticStoreId) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.defaultExecutionType, other.defaultExecutionType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.generativeAiSemanticStoreId == null + ? 43 + : this.generativeAiSemanticStoreId.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = + (result * PRIME) + + (this.defaultExecutionType == null + ? 43 + : this.defaultExecutionType.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetToolDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetToolDetails.java new file mode 100644 index 00000000000..26ff1f49408 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetToolDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * MCP toolset tool configuration + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpToolsetToolDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateDatabaseToolsMcpToolsetToolDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "status", "allowedRoles"}) + public UpdateDatabaseToolsMcpToolsetToolDetails( + String name, + DatabaseToolsMcpToolsetToolStatus status, + java.util.List allowedRoles) { + super(); + this.name = name; + this.status = status; + this.allowedRoles = allowedRoles; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the tool + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The status of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private DatabaseToolsMcpToolsetToolStatus status; + + /** + * The status of the tool + * @param status the value to set + * @return this builder + **/ + public Builder status(DatabaseToolsMcpToolsetToolStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The roles granted access to this tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private java.util.List allowedRoles; + + /** + * The roles granted access to this tool + * @param allowedRoles the value to set + * @return this builder + **/ + public Builder allowedRoles(java.util.List allowedRoles) { + this.allowedRoles = allowedRoles; + this.__explicitlySet__.add("allowedRoles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsMcpToolsetToolDetails build() { + UpdateDatabaseToolsMcpToolsetToolDetails model = + new UpdateDatabaseToolsMcpToolsetToolDetails( + this.name, this.status, this.allowedRoles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsMcpToolsetToolDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("allowedRoles")) { + this.allowedRoles(model.getAllowedRoles()); + } + 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 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the tool + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The status of the tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final DatabaseToolsMcpToolsetToolStatus status; + + /** + * The status of the tool + * @return the value + **/ + public DatabaseToolsMcpToolsetToolStatus getStatus() { + return status; + } + + /** + * The roles granted access to this tool + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRoles") + private final java.util.List allowedRoles; + + /** + * The roles granted access to this tool + * @return the value + **/ + public java.util.List getAllowedRoles() { + return allowedRoles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsMcpToolsetToolDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", allowedRoles=").append(String.valueOf(this.allowedRoles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetToolDetails)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetToolDetails other = + (UpdateDatabaseToolsMcpToolsetToolDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.allowedRoles, other.allowedRoles) + && 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.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.allowedRoles == null ? 43 : this.allowedRoles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetails.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetails.java new file mode 100644 index 00000000000..1f02e69718e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetails.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools SQL report information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsSqlReportDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsSqlReportDetailsOracleDatabase.class, + name = "ORACLE_DATABASE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsSqlReportDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "definedTags", + "freeformTags", + "source", + "description", + "purpose", + "instructions", + "variables", + "columns" + }) + protected UpdateDatabaseToolsSqlReportDetails( + String displayName, + java.util.Map> definedTags, + java.util.Map freeformTags, + String source, + String description, + String purpose, + String instructions, + java.util.List variables, + java.util.List columns) { + super(); + this.displayName = displayName; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.source = source; + this.description = description; + this.purpose = purpose; + this.instructions = instructions; + this.variables = variables; + this.columns = columns; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * SQL query executed to generate the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final String source; + + /** + * SQL query executed to generate the report. + * @return the value + **/ + public String getSource() { + return source; + } + + /** + * A description of the SQL report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the SQL report. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("purpose") + private final String purpose; + + /** + * Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy. + * @return the value + **/ + public String getPurpose() { + return purpose; + } + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private final String instructions; + + /** + * Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report. + * @return the value + **/ + public String getInstructions() { + return instructions; + } + + /** + * Variables referenced in the Database Tools SQL Report source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final java.util.List variables; + + /** + * Variables referenced in the Database Tools SQL Report source. + * @return the value + **/ + public java.util.List getVariables() { + return variables; + } + + /** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("columns") + private final java.util.List columns; + + /** + * Descriptive information on columns referenced in the Database Tools SQL Report source. + * @return the value + **/ + public java.util.List getColumns() { + return columns; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsSqlReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", purpose=").append(String.valueOf(this.purpose)); + sb.append(", instructions=").append(String.valueOf(this.instructions)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", columns=").append(String.valueOf(this.columns)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsSqlReportDetails)) { + return false; + } + + UpdateDatabaseToolsSqlReportDetails other = (UpdateDatabaseToolsSqlReportDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.purpose, other.purpose) + && java.util.Objects.equals(this.instructions, other.instructions) + && java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.columns, other.columns) + && 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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.purpose == null ? 43 : this.purpose.hashCode()); + result = (result * PRIME) + (this.instructions == null ? 43 : this.instructions.hashCode()); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.columns == null ? 43 : this.columns.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetailsOracleDatabase.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetailsOracleDatabase.java new file mode 100644 index 00000000000..675f5a9254a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetailsOracleDatabase.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Database Tools SQL report information to be updated for a report of type ORACLE_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: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsSqlReportDetailsOracleDatabase.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 UpdateDatabaseToolsSqlReportDetailsOracleDatabase + extends UpdateDatabaseToolsSqlReportDetails { + @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("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("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("source") + private String source; + + public Builder source(String source) { + this.source = source; + this.__explicitlySet__.add("source"); + 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("purpose") + private String purpose; + + public Builder purpose(String purpose) { + this.purpose = purpose; + this.__explicitlySet__.add("purpose"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instructions") + private String instructions; + + public Builder instructions(String instructions) { + this.instructions = instructions; + this.__explicitlySet__.add("instructions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private java.util.List variables; + + public Builder variables(java.util.List variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("columns") + private java.util.List columns; + + public Builder columns(java.util.List columns) { + this.columns = columns; + this.__explicitlySet__.add("columns"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsSqlReportDetailsOracleDatabase build() { + UpdateDatabaseToolsSqlReportDetailsOracleDatabase model = + new UpdateDatabaseToolsSqlReportDetailsOracleDatabase( + this.displayName, + this.definedTags, + this.freeformTags, + this.source, + this.description, + this.purpose, + this.instructions, + this.variables, + this.columns); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsSqlReportDetailsOracleDatabase model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("purpose")) { + this.purpose(model.getPurpose()); + } + if (model.wasPropertyExplicitlySet("instructions")) { + this.instructions(model.getInstructions()); + } + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("columns")) { + this.columns(model.getColumns()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsSqlReportDetailsOracleDatabase( + String displayName, + java.util.Map> definedTags, + java.util.Map freeformTags, + String source, + String description, + String purpose, + String instructions, + java.util.List variables, + java.util.List columns) { + super( + displayName, + definedTags, + freeformTags, + source, + description, + purpose, + instructions, + variables, + columns); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsSqlReportDetailsOracleDatabase("); + 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 UpdateDatabaseToolsSqlReportDetailsOracleDatabase)) { + return false; + } + + UpdateDatabaseToolsSqlReportDetailsOracleDatabase other = + (UpdateDatabaseToolsSqlReportDetailsOracleDatabase) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionMySqlResult.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionMySqlResult.java index 57639a8bbdb..af869bf4861 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionMySqlResult.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionMySqlResult.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasetools.model; /** - * Connection validaton result for the MySQL Server. + * Connection validation result for the MySQL Server. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java index 03a1c831e2b..b0c7d735c8d 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasetools.model; /** - * Connection validaton result for the Oracle Database. + * Connection validation result for the Oracle 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 @@ -95,6 +95,86 @@ public Builder databaseVersion(String databaseVersion) { this.__explicitlySet__.add("databaseVersion"); return this; } + /** + * The name of the currently active default schema. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSchema") + private String currentSchema; + + /** + * The name of the currently active default schema. + * @param currentSchema the value to set + * @return this builder + **/ + public Builder currentSchema(String currentSchema) { + this.currentSchema = currentSchema; + this.__explicitlySet__.add("currentSchema"); + return this; + } + /** + * The name of the session user (the user who logged on). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sessionUser") + private String sessionUser; + + /** + * The name of the session user (the user who logged on). + * @param sessionUser the value to set + * @return this builder + **/ + public Builder sessionUser(String sessionUser) { + this.sessionUser = sessionUser; + this.__explicitlySet__.add("sessionUser"); + return this; + } + /** + * Name of the database user who opened the current session on behalf of sessionUser. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyUser") + private String proxyUser; + + /** + * Name of the database user who opened the current session on behalf of sessionUser. + * @param proxyUser the value to set + * @return this builder + **/ + public Builder proxyUser(String proxyUser) { + this.proxyUser = proxyUser; + this.__explicitlySet__.add("proxyUser"); + return this; + } + /** + * Returns the identity used in authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticatedIdentity") + private String authenticatedIdentity; + + /** + * Returns the identity used in authentication. + * @param authenticatedIdentity the value to set + * @return this builder + **/ + public Builder authenticatedIdentity(String authenticatedIdentity) { + this.authenticatedIdentity = authenticatedIdentity; + this.__explicitlySet__.add("authenticatedIdentity"); + return this; + } + /** + * Returns the method of authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMethod") + private String authenticationMethod; + + /** + * Returns the method of authentication. + * @param authenticationMethod the value to set + * @return this builder + **/ + public Builder authenticationMethod(String authenticationMethod) { + this.authenticationMethod = authenticationMethod; + this.__explicitlySet__.add("authenticationMethod"); + return this; + } /** * The DBMS_CLOUD package installation status. **/ @@ -144,6 +224,57 @@ public Builder databaseToolsIdentityStatuses( this.__explicitlySet__.add("databaseToolsIdentityStatuses"); return this; } + /** + * Displays the enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enterpriseIdentity") + private String enterpriseIdentity; + + /** + * Displays the enterprise identity value within the USERENV context + * @param enterpriseIdentity the value to set + * @return this builder + **/ + public Builder enterpriseIdentity(String enterpriseIdentity) { + this.enterpriseIdentity = enterpriseIdentity; + this.__explicitlySet__.add("enterpriseIdentity"); + return this; + } + /** + * Displays the proxy enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyEnterpriseIdentity") + private String proxyEnterpriseIdentity; + + /** + * Displays the proxy enterprise identity value within the USERENV context + * @param proxyEnterpriseIdentity the value to set + * @return this builder + **/ + public Builder proxyEnterpriseIdentity(String proxyEnterpriseIdentity) { + this.proxyEnterpriseIdentity = proxyEnterpriseIdentity; + this.__explicitlySet__.add("proxyEnterpriseIdentity"); + return this; + } + /** + * Status on whether an external authentication can be used with this connection or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalAuthenticationStatuses") + private java.util.List + externalAuthenticationStatuses; + + /** + * Status on whether an external authentication can be used with this connection or not. + * @param externalAuthenticationStatuses the value to set + * @return this builder + **/ + public Builder externalAuthenticationStatuses( + java.util.List + externalAuthenticationStatuses) { + this.externalAuthenticationStatuses = externalAuthenticationStatuses; + this.__explicitlySet__.add("externalAuthenticationStatuses"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -157,9 +288,17 @@ public ValidateDatabaseToolsConnectionOracleDatabaseResult build() { this.action, this.databaseName, this.databaseVersion, + this.currentSchema, + this.sessionUser, + this.proxyUser, + this.authenticatedIdentity, + this.authenticationMethod, this.dbmsCloudStatus, this.cloudService, - this.databaseToolsIdentityStatuses); + this.databaseToolsIdentityStatuses, + this.enterpriseIdentity, + this.proxyEnterpriseIdentity, + this.externalAuthenticationStatuses); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -186,6 +325,21 @@ public Builder copy(ValidateDatabaseToolsConnectionOracleDatabaseResult model) { if (model.wasPropertyExplicitlySet("databaseVersion")) { this.databaseVersion(model.getDatabaseVersion()); } + if (model.wasPropertyExplicitlySet("currentSchema")) { + this.currentSchema(model.getCurrentSchema()); + } + if (model.wasPropertyExplicitlySet("sessionUser")) { + this.sessionUser(model.getSessionUser()); + } + if (model.wasPropertyExplicitlySet("proxyUser")) { + this.proxyUser(model.getProxyUser()); + } + if (model.wasPropertyExplicitlySet("authenticatedIdentity")) { + this.authenticatedIdentity(model.getAuthenticatedIdentity()); + } + if (model.wasPropertyExplicitlySet("authenticationMethod")) { + this.authenticationMethod(model.getAuthenticationMethod()); + } if (model.wasPropertyExplicitlySet("dbmsCloudStatus")) { this.dbmsCloudStatus(model.getDbmsCloudStatus()); } @@ -195,6 +349,15 @@ public Builder copy(ValidateDatabaseToolsConnectionOracleDatabaseResult model) { if (model.wasPropertyExplicitlySet("databaseToolsIdentityStatuses")) { this.databaseToolsIdentityStatuses(model.getDatabaseToolsIdentityStatuses()); } + if (model.wasPropertyExplicitlySet("enterpriseIdentity")) { + this.enterpriseIdentity(model.getEnterpriseIdentity()); + } + if (model.wasPropertyExplicitlySet("proxyEnterpriseIdentity")) { + this.proxyEnterpriseIdentity(model.getProxyEnterpriseIdentity()); + } + if (model.wasPropertyExplicitlySet("externalAuthenticationStatuses")) { + this.externalAuthenticationStatuses(model.getExternalAuthenticationStatuses()); + } return this; } } @@ -218,15 +381,31 @@ public ValidateDatabaseToolsConnectionOracleDatabaseResult( String action, String databaseName, String databaseVersion, + String currentSchema, + String sessionUser, + String proxyUser, + String authenticatedIdentity, + String authenticationMethod, DbmsCloudStatus dbmsCloudStatus, String cloudService, - java.util.List databaseToolsIdentityStatuses) { + java.util.List databaseToolsIdentityStatuses, + String enterpriseIdentity, + String proxyEnterpriseIdentity, + java.util.List externalAuthenticationStatuses) { super(code, message, cause, action); this.databaseName = databaseName; this.databaseVersion = databaseVersion; + this.currentSchema = currentSchema; + this.sessionUser = sessionUser; + this.proxyUser = proxyUser; + this.authenticatedIdentity = authenticatedIdentity; + this.authenticationMethod = authenticationMethod; this.dbmsCloudStatus = dbmsCloudStatus; this.cloudService = cloudService; this.databaseToolsIdentityStatuses = databaseToolsIdentityStatuses; + this.enterpriseIdentity = enterpriseIdentity; + this.proxyEnterpriseIdentity = proxyEnterpriseIdentity; + this.externalAuthenticationStatuses = externalAuthenticationStatuses; } /** @@ -257,6 +436,76 @@ public String getDatabaseVersion() { return databaseVersion; } + /** + * The name of the currently active default schema. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSchema") + private final String currentSchema; + + /** + * The name of the currently active default schema. + * @return the value + **/ + public String getCurrentSchema() { + return currentSchema; + } + + /** + * The name of the session user (the user who logged on). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sessionUser") + private final String sessionUser; + + /** + * The name of the session user (the user who logged on). + * @return the value + **/ + public String getSessionUser() { + return sessionUser; + } + + /** + * Name of the database user who opened the current session on behalf of sessionUser. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyUser") + private final String proxyUser; + + /** + * Name of the database user who opened the current session on behalf of sessionUser. + * @return the value + **/ + public String getProxyUser() { + return proxyUser; + } + + /** + * Returns the identity used in authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticatedIdentity") + private final String authenticatedIdentity; + + /** + * Returns the identity used in authentication. + * @return the value + **/ + public String getAuthenticatedIdentity() { + return authenticatedIdentity; + } + + /** + * Returns the method of authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMethod") + private final String authenticationMethod; + + /** + * Returns the method of authentication. + * @return the value + **/ + public String getAuthenticationMethod() { + return authenticationMethod; + } + /** * The DBMS_CLOUD package installation status. **/ @@ -299,6 +548,50 @@ public java.util.List getDatabaseToolsIdentityStatuses return databaseToolsIdentityStatuses; } + /** + * Displays the enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enterpriseIdentity") + private final String enterpriseIdentity; + + /** + * Displays the enterprise identity value within the USERENV context + * @return the value + **/ + public String getEnterpriseIdentity() { + return enterpriseIdentity; + } + + /** + * Displays the proxy enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyEnterpriseIdentity") + private final String proxyEnterpriseIdentity; + + /** + * Displays the proxy enterprise identity value within the USERENV context + * @return the value + **/ + public String getProxyEnterpriseIdentity() { + return proxyEnterpriseIdentity; + } + + /** + * Status on whether an external authentication can be used with this connection or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalAuthenticationStatuses") + private final java.util.List + externalAuthenticationStatuses; + + /** + * Status on whether an external authentication can be used with this connection or not. + * @return the value + **/ + public java.util.List + getExternalAuthenticationStatuses() { + return externalAuthenticationStatuses; + } + @Override public String toString() { return this.toString(true); @@ -315,10 +608,20 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", databaseName=").append(String.valueOf(this.databaseName)); sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", currentSchema=").append(String.valueOf(this.currentSchema)); + sb.append(", sessionUser=").append(String.valueOf(this.sessionUser)); + sb.append(", proxyUser=").append(String.valueOf(this.proxyUser)); + sb.append(", authenticatedIdentity=").append(String.valueOf(this.authenticatedIdentity)); + sb.append(", authenticationMethod=").append(String.valueOf(this.authenticationMethod)); sb.append(", dbmsCloudStatus=").append(String.valueOf(this.dbmsCloudStatus)); sb.append(", cloudService=").append(String.valueOf(this.cloudService)); sb.append(", databaseToolsIdentityStatuses=") .append(String.valueOf(this.databaseToolsIdentityStatuses)); + sb.append(", enterpriseIdentity=").append(String.valueOf(this.enterpriseIdentity)); + sb.append(", proxyEnterpriseIdentity=") + .append(String.valueOf(this.proxyEnterpriseIdentity)); + sb.append(", externalAuthenticationStatuses=") + .append(String.valueOf(this.externalAuthenticationStatuses)); sb.append(")"); return sb.toString(); } @@ -336,10 +639,20 @@ public boolean equals(Object o) { (ValidateDatabaseToolsConnectionOracleDatabaseResult) o; return java.util.Objects.equals(this.databaseName, other.databaseName) && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.currentSchema, other.currentSchema) + && java.util.Objects.equals(this.sessionUser, other.sessionUser) + && java.util.Objects.equals(this.proxyUser, other.proxyUser) + && java.util.Objects.equals(this.authenticatedIdentity, other.authenticatedIdentity) + && java.util.Objects.equals(this.authenticationMethod, other.authenticationMethod) && java.util.Objects.equals(this.dbmsCloudStatus, other.dbmsCloudStatus) && java.util.Objects.equals(this.cloudService, other.cloudService) && java.util.Objects.equals( this.databaseToolsIdentityStatuses, other.databaseToolsIdentityStatuses) + && java.util.Objects.equals(this.enterpriseIdentity, other.enterpriseIdentity) + && java.util.Objects.equals( + this.proxyEnterpriseIdentity, other.proxyEnterpriseIdentity) + && java.util.Objects.equals( + this.externalAuthenticationStatuses, other.externalAuthenticationStatuses) && super.equals(other); } @@ -351,6 +664,21 @@ public int hashCode() { result = (result * PRIME) + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.currentSchema == null ? 43 : this.currentSchema.hashCode()); + result = (result * PRIME) + (this.sessionUser == null ? 43 : this.sessionUser.hashCode()); + result = (result * PRIME) + (this.proxyUser == null ? 43 : this.proxyUser.hashCode()); + result = + (result * PRIME) + + (this.authenticatedIdentity == null + ? 43 + : this.authenticatedIdentity.hashCode()); + result = + (result * PRIME) + + (this.authenticationMethod == null + ? 43 + : this.authenticationMethod.hashCode()); result = (result * PRIME) + (this.dbmsCloudStatus == null ? 43 : this.dbmsCloudStatus.hashCode()); @@ -360,6 +688,21 @@ public int hashCode() { + (this.databaseToolsIdentityStatuses == null ? 43 : this.databaseToolsIdentityStatuses.hashCode()); + result = + (result * PRIME) + + (this.enterpriseIdentity == null + ? 43 + : this.enterpriseIdentity.hashCode()); + result = + (result * PRIME) + + (this.proxyEnterpriseIdentity == null + ? 43 + : this.proxyEnterpriseIdentity.hashCode()); + result = + (result * PRIME) + + (this.externalAuthenticationStatuses == null + ? 43 + : this.externalAuthenticationStatuses.hashCode()); return result; } } diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionPostgresqlResult.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionPostgresqlResult.java index 5c6bfb6a09d..e6e038d30ae 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionPostgresqlResult.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidateDatabaseToolsConnectionPostgresqlResult.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasetools.model; /** - * Connection validaton result for the PostgreSQL Server. + * Connection validation result for the PostgreSQL Server. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidationExternalAuthenticationStatus.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidationExternalAuthenticationStatus.java new file mode 100644 index 00000000000..77f1d08be4e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidationExternalAuthenticationStatus.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** + * Status details for an external authentication + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidationExternalAuthenticationStatus.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ValidationExternalAuthenticationStatus + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "status", "statusDetails"}) + public ValidationExternalAuthenticationStatus( + IdentityProviderType type, + DatabaseToolsExternalAuthenticationStatus status, + String statusDetails) { + super(); + this.type = type; + this.status = status; + this.statusDetails = statusDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Database Tools identity provider type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private IdentityProviderType type; + + /** + * The Database Tools identity provider type. + * @param type the value to set + * @return this builder + **/ + public Builder type(IdentityProviderType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private DatabaseToolsExternalAuthenticationStatus status; + + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + * @param status the value to set + * @return this builder + **/ + public Builder status(DatabaseToolsExternalAuthenticationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * If the status is UNAVAILABLE this displays the cause. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private String statusDetails; + + /** + * If the status is UNAVAILABLE this displays the cause. + * @param statusDetails the value to set + * @return this builder + **/ + public Builder statusDetails(String statusDetails) { + this.statusDetails = statusDetails; + this.__explicitlySet__.add("statusDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidationExternalAuthenticationStatus build() { + ValidationExternalAuthenticationStatus model = + new ValidationExternalAuthenticationStatus( + this.type, this.status, this.statusDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidationExternalAuthenticationStatus model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusDetails")) { + this.statusDetails(model.getStatusDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Database Tools identity provider type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final IdentityProviderType type; + + /** + * The Database Tools identity provider type. + * @return the value + **/ + public IdentityProviderType getType() { + return type; + } + + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final DatabaseToolsExternalAuthenticationStatus status; + + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + * @return the value + **/ + public DatabaseToolsExternalAuthenticationStatus getStatus() { + return status; + } + + /** + * If the status is UNAVAILABLE this displays the cause. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private final String statusDetails; + + /** + * If the status is UNAVAILABLE this displays the cause. + * @return the value + **/ + public String getStatusDetails() { + return statusDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidationExternalAuthenticationStatus("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", statusDetails=").append(String.valueOf(this.statusDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidationExternalAuthenticationStatus)) { + return false; + } + + ValidationExternalAuthenticationStatus other = (ValidationExternalAuthenticationStatus) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusDetails, other.statusDetails) + && 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.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.statusDetails == null ? 43 : this.statusDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsDatabaseApiGatewayConfigLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsDatabaseApiGatewayConfigLockRequest.java new file mode 100644 index 00000000000..a62c89cbd6f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsDatabaseApiGatewayConfigLockRequest.java @@ -0,0 +1,323 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use AddDatabaseToolsDatabaseApiGatewayConfigLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.databasetools.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(AddDatabaseToolsDatabaseApiGatewayConfigLockRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDatabaseToolsDatabaseApiGatewayConfigLockRequest 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 AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + */ + public AddDatabaseToolsDatabaseApiGatewayConfigLockRequest build() { + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest 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.databasetools.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddDatabaseToolsDatabaseApiGatewayConfigLockRequest 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 AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + */ + public AddDatabaseToolsDatabaseApiGatewayConfigLockRequest + buildWithoutInvocationCallback() { + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request = + new AddDatabaseToolsDatabaseApiGatewayConfigLockRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDatabaseToolsDatabaseApiGatewayConfigLockRequest(databaseToolsDatabaseApiGatewayConfigId, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + 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 AddDatabaseToolsDatabaseApiGatewayConfigLockRequest)) { + return false; + } + + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest other = + (AddDatabaseToolsDatabaseApiGatewayConfigLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpServerLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpServerLockRequest.java new file mode 100644 index 00000000000..c3770021ad4 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpServerLockRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use AddDatabaseToolsMcpServerLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsMcpServerLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDatabaseToolsMcpServerLockRequest, + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.databasetools.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(AddDatabaseToolsMcpServerLockRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDatabaseToolsMcpServerLockRequest 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 AddDatabaseToolsMcpServerLockRequest + */ + public AddDatabaseToolsMcpServerLockRequest build() { + AddDatabaseToolsMcpServerLockRequest 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.databasetools.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddDatabaseToolsMcpServerLockRequest 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 AddDatabaseToolsMcpServerLockRequest + */ + public AddDatabaseToolsMcpServerLockRequest buildWithoutInvocationCallback() { + AddDatabaseToolsMcpServerLockRequest request = + new AddDatabaseToolsMcpServerLockRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDatabaseToolsMcpServerLockRequest(databaseToolsMcpServerId, 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() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .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(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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 AddDatabaseToolsMcpServerLockRequest)) { + return false; + } + + AddDatabaseToolsMcpServerLockRequest other = (AddDatabaseToolsMcpServerLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && 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.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpToolsetLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpToolsetLockRequest.java new file mode 100644 index 00000000000..70560fa2cb2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpToolsetLockRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use AddDatabaseToolsMcpToolsetLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsMcpToolsetLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + public String getDatabaseToolsMcpToolsetId() { + return databaseToolsMcpToolsetId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDatabaseToolsMcpToolsetLockRequest, + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + * @param databaseToolsMcpToolsetId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpToolsetId(String databaseToolsMcpToolsetId) { + this.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.databasetools.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(AddDatabaseToolsMcpToolsetLockRequest o) { + databaseToolsMcpToolsetId(o.getDatabaseToolsMcpToolsetId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDatabaseToolsMcpToolsetLockRequest 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 AddDatabaseToolsMcpToolsetLockRequest + */ + public AddDatabaseToolsMcpToolsetLockRequest build() { + AddDatabaseToolsMcpToolsetLockRequest 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.databasetools.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddDatabaseToolsMcpToolsetLockRequest 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 AddDatabaseToolsMcpToolsetLockRequest + */ + public AddDatabaseToolsMcpToolsetLockRequest buildWithoutInvocationCallback() { + AddDatabaseToolsMcpToolsetLockRequest request = + new AddDatabaseToolsMcpToolsetLockRequest(); + request.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDatabaseToolsMcpToolsetLockRequest(databaseToolsMcpToolsetId, 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() + .databaseToolsMcpToolsetId(databaseToolsMcpToolsetId) + .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(",databaseToolsMcpToolsetId=") + .append(String.valueOf(this.databaseToolsMcpToolsetId)); + 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 AddDatabaseToolsMcpToolsetLockRequest)) { + return false; + } + + AddDatabaseToolsMcpToolsetLockRequest other = (AddDatabaseToolsMcpToolsetLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpToolsetId, other.databaseToolsMcpToolsetId) + && 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.databaseToolsMcpToolsetId == null + ? 43 + : this.databaseToolsMcpToolsetId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsSqlReportLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsSqlReportLockRequest.java new file mode 100644 index 00000000000..dc602c9a1cf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsSqlReportLockRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use AddDatabaseToolsSqlReportLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsSqlReportLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDatabaseToolsSqlReportLockRequest, + com.oracle.bmc.databasetools.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + * @param databaseToolsSqlReportId the value to set + * @return this builder instance + */ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.databasetools.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(AddDatabaseToolsSqlReportLockRequest o) { + databaseToolsSqlReportId(o.getDatabaseToolsSqlReportId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDatabaseToolsSqlReportLockRequest 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 AddDatabaseToolsSqlReportLockRequest + */ + public AddDatabaseToolsSqlReportLockRequest build() { + AddDatabaseToolsSqlReportLockRequest 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.databasetools.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddDatabaseToolsSqlReportLockRequest 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 AddDatabaseToolsSqlReportLockRequest + */ + public AddDatabaseToolsSqlReportLockRequest buildWithoutInvocationCallback() { + AddDatabaseToolsSqlReportLockRequest request = + new AddDatabaseToolsSqlReportLockRequest(); + request.databaseToolsSqlReportId = databaseToolsSqlReportId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDatabaseToolsSqlReportLockRequest(databaseToolsSqlReportId, 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() + .databaseToolsSqlReportId(databaseToolsSqlReportId) + .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(",databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + 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 AddDatabaseToolsSqlReportLockRequest)) { + return false; + } + + AddDatabaseToolsSqlReportLockRequest other = (AddDatabaseToolsSqlReportLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && 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.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CascadingDeleteDatabaseToolsMcpServerRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CascadingDeleteDatabaseToolsMcpServerRequest.java new file mode 100644 index 00000000000..e1a72ae0c1b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CascadingDeleteDatabaseToolsMcpServerRequest.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use CascadingDeleteDatabaseToolsMcpServerRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CascadingDeleteDatabaseToolsMcpServerRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CascadingDeleteDatabaseToolsMcpServerRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CascadingDeleteDatabaseToolsMcpServerRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CascadingDeleteDatabaseToolsMcpServerRequest 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 CascadingDeleteDatabaseToolsMcpServerRequest + */ + public CascadingDeleteDatabaseToolsMcpServerRequest build() { + CascadingDeleteDatabaseToolsMcpServerRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CascadingDeleteDatabaseToolsMcpServerRequest 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 CascadingDeleteDatabaseToolsMcpServerRequest + */ + public CascadingDeleteDatabaseToolsMcpServerRequest buildWithoutInvocationCallback() { + CascadingDeleteDatabaseToolsMcpServerRequest request = + new CascadingDeleteDatabaseToolsMcpServerRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CascadingDeleteDatabaseToolsMcpServerRequest(databaseToolsMcpServerId, 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() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .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(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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 CascadingDeleteDatabaseToolsMcpServerRequest)) { + return false; + } + + CascadingDeleteDatabaseToolsMcpServerRequest other = + (CascadingDeleteDatabaseToolsMcpServerRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && 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.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest.java new file mode 100644 index 00000000000..b2e63fac79b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * Request to change the compartment of the Database Tools database API gateway config. + */ + private com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails; + + /** + * Request to change the compartment of the Database Tools database API gateway config. + */ + public com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails() { + return changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + getBody$() { + return changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * Request to change the compartment of the Database Tools database API gateway config. + */ + private com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails = null; + + /** + * Request to change the compartment of the Database Tools database API gateway config. + * @param changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails( + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails) { + this.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails = + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails( + o.getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest 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 ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + */ + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest build() { + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest 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.databasetools.model + .ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + body) { + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest 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 ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + */ + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest + buildWithoutInvocationCallback() { + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request = + new ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails = + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest(databaseToolsDatabaseApiGatewayConfigId, changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails( + changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails=") + .append( + String.valueOf( + this.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest)) { + return false; + } + + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest other = + (ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals( + this.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails, + other.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = + (result * PRIME) + + (this.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + == null + ? 43 + : this.changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + .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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpServerCompartmentRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpServerCompartmentRequest.java new file mode 100644 index 00000000000..80775f2932b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpServerCompartmentRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ChangeDatabaseToolsMcpServerCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsMcpServerCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * Request to change the compartment of the Database Tools MCP server. + */ + private com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails + changeDatabaseToolsMcpServerCompartmentDetails; + + /** + * Request to change the compartment of the Database Tools MCP server. + */ + public com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails + getChangeDatabaseToolsMcpServerCompartmentDetails() { + return changeDatabaseToolsMcpServerCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails + getBody$() { + return changeDatabaseToolsMcpServerCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDatabaseToolsMcpServerCompartmentRequest, + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsMcpServerCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * Request to change the compartment of the Database Tools MCP server. + */ + private com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails + changeDatabaseToolsMcpServerCompartmentDetails = null; + + /** + * Request to change the compartment of the Database Tools MCP server. + * @param changeDatabaseToolsMcpServerCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDatabaseToolsMcpServerCompartmentDetails( + com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails + changeDatabaseToolsMcpServerCompartmentDetails) { + this.changeDatabaseToolsMcpServerCompartmentDetails = + changeDatabaseToolsMcpServerCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(ChangeDatabaseToolsMcpServerCompartmentRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + changeDatabaseToolsMcpServerCompartmentDetails( + o.getChangeDatabaseToolsMcpServerCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsMcpServerCompartmentRequest 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 ChangeDatabaseToolsMcpServerCompartmentRequest + */ + public ChangeDatabaseToolsMcpServerCompartmentRequest build() { + ChangeDatabaseToolsMcpServerCompartmentRequest 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.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails + body) { + changeDatabaseToolsMcpServerCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsMcpServerCompartmentRequest 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 ChangeDatabaseToolsMcpServerCompartmentRequest + */ + public ChangeDatabaseToolsMcpServerCompartmentRequest buildWithoutInvocationCallback() { + ChangeDatabaseToolsMcpServerCompartmentRequest request = + new ChangeDatabaseToolsMcpServerCompartmentRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.changeDatabaseToolsMcpServerCompartmentDetails = + changeDatabaseToolsMcpServerCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new ChangeDatabaseToolsMcpServerCompartmentRequest(databaseToolsMcpServerId, changeDatabaseToolsMcpServerCompartmentDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .changeDatabaseToolsMcpServerCompartmentDetails( + changeDatabaseToolsMcpServerCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + sb.append(",changeDatabaseToolsMcpServerCompartmentDetails=") + .append(String.valueOf(this.changeDatabaseToolsMcpServerCompartmentDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsMcpServerCompartmentRequest)) { + return false; + } + + ChangeDatabaseToolsMcpServerCompartmentRequest other = + (ChangeDatabaseToolsMcpServerCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && java.util.Objects.equals( + this.changeDatabaseToolsMcpServerCompartmentDetails, + other.changeDatabaseToolsMcpServerCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.hashCode()); + result = + (result * PRIME) + + (this.changeDatabaseToolsMcpServerCompartmentDetails == null + ? 43 + : this.changeDatabaseToolsMcpServerCompartmentDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpToolsetCompartmentRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpToolsetCompartmentRequest.java new file mode 100644 index 00000000000..ce1657077b5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpToolsetCompartmentRequest.java @@ -0,0 +1,367 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ChangeDatabaseToolsMcpToolsetCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsMcpToolsetCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsMcpToolsetCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + public String getDatabaseToolsMcpToolsetId() { + return databaseToolsMcpToolsetId; + } + /** + * Request to change the compartment of the Database Tools MCP Toolset. + */ + private com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails + changeDatabaseToolsMcpToolsetCompartmentDetails; + + /** + * Request to change the compartment of the Database Tools MCP Toolset. + */ + public com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails + getChangeDatabaseToolsMcpToolsetCompartmentDetails() { + return changeDatabaseToolsMcpToolsetCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails + getBody$() { + return changeDatabaseToolsMcpToolsetCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsMcpToolsetCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + * @param databaseToolsMcpToolsetId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpToolsetId(String databaseToolsMcpToolsetId) { + this.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + return this; + } + + /** + * Request to change the compartment of the Database Tools MCP Toolset. + */ + private com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails + changeDatabaseToolsMcpToolsetCompartmentDetails = null; + + /** + * Request to change the compartment of the Database Tools MCP Toolset. + * @param changeDatabaseToolsMcpToolsetCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDatabaseToolsMcpToolsetCompartmentDetails( + com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails + changeDatabaseToolsMcpToolsetCompartmentDetails) { + this.changeDatabaseToolsMcpToolsetCompartmentDetails = + changeDatabaseToolsMcpToolsetCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(ChangeDatabaseToolsMcpToolsetCompartmentRequest o) { + databaseToolsMcpToolsetId(o.getDatabaseToolsMcpToolsetId()); + changeDatabaseToolsMcpToolsetCompartmentDetails( + o.getChangeDatabaseToolsMcpToolsetCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsMcpToolsetCompartmentRequest 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 ChangeDatabaseToolsMcpToolsetCompartmentRequest + */ + public ChangeDatabaseToolsMcpToolsetCompartmentRequest build() { + ChangeDatabaseToolsMcpToolsetCompartmentRequest 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.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails + body) { + changeDatabaseToolsMcpToolsetCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsMcpToolsetCompartmentRequest 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 ChangeDatabaseToolsMcpToolsetCompartmentRequest + */ + public ChangeDatabaseToolsMcpToolsetCompartmentRequest buildWithoutInvocationCallback() { + ChangeDatabaseToolsMcpToolsetCompartmentRequest request = + new ChangeDatabaseToolsMcpToolsetCompartmentRequest(); + request.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + request.changeDatabaseToolsMcpToolsetCompartmentDetails = + changeDatabaseToolsMcpToolsetCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new ChangeDatabaseToolsMcpToolsetCompartmentRequest(databaseToolsMcpToolsetId, changeDatabaseToolsMcpToolsetCompartmentDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsMcpToolsetId(databaseToolsMcpToolsetId) + .changeDatabaseToolsMcpToolsetCompartmentDetails( + changeDatabaseToolsMcpToolsetCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsMcpToolsetId=") + .append(String.valueOf(this.databaseToolsMcpToolsetId)); + sb.append(",changeDatabaseToolsMcpToolsetCompartmentDetails=") + .append(String.valueOf(this.changeDatabaseToolsMcpToolsetCompartmentDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsMcpToolsetCompartmentRequest)) { + return false; + } + + ChangeDatabaseToolsMcpToolsetCompartmentRequest other = + (ChangeDatabaseToolsMcpToolsetCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpToolsetId, other.databaseToolsMcpToolsetId) + && java.util.Objects.equals( + this.changeDatabaseToolsMcpToolsetCompartmentDetails, + other.changeDatabaseToolsMcpToolsetCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpToolsetId == null + ? 43 + : this.databaseToolsMcpToolsetId.hashCode()); + result = + (result * PRIME) + + (this.changeDatabaseToolsMcpToolsetCompartmentDetails == null + ? 43 + : this.changeDatabaseToolsMcpToolsetCompartmentDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsSqlReportCompartmentRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsSqlReportCompartmentRequest.java new file mode 100644 index 00000000000..3d1d2f51ca0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsSqlReportCompartmentRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ChangeDatabaseToolsSqlReportCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsSqlReportCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + /** + * Request to change the compartment of the Database Tools SQL Report. + */ + private com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails + changeDatabaseToolsSqlReportCompartmentDetails; + + /** + * Request to change the compartment of the Database Tools SQL Report. + */ + public com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails + getChangeDatabaseToolsSqlReportCompartmentDetails() { + return changeDatabaseToolsSqlReportCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails + getBody$() { + return changeDatabaseToolsSqlReportCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDatabaseToolsSqlReportCompartmentRequest, + com.oracle.bmc.databasetools.model + .ChangeDatabaseToolsSqlReportCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + * @param databaseToolsSqlReportId the value to set + * @return this builder instance + */ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + return this; + } + + /** + * Request to change the compartment of the Database Tools SQL Report. + */ + private com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails + changeDatabaseToolsSqlReportCompartmentDetails = null; + + /** + * Request to change the compartment of the Database Tools SQL Report. + * @param changeDatabaseToolsSqlReportCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDatabaseToolsSqlReportCompartmentDetails( + com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails + changeDatabaseToolsSqlReportCompartmentDetails) { + this.changeDatabaseToolsSqlReportCompartmentDetails = + changeDatabaseToolsSqlReportCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(ChangeDatabaseToolsSqlReportCompartmentRequest o) { + databaseToolsSqlReportId(o.getDatabaseToolsSqlReportId()); + changeDatabaseToolsSqlReportCompartmentDetails( + o.getChangeDatabaseToolsSqlReportCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsSqlReportCompartmentRequest 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 ChangeDatabaseToolsSqlReportCompartmentRequest + */ + public ChangeDatabaseToolsSqlReportCompartmentRequest build() { + ChangeDatabaseToolsSqlReportCompartmentRequest 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.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails + body) { + changeDatabaseToolsSqlReportCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDatabaseToolsSqlReportCompartmentRequest 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 ChangeDatabaseToolsSqlReportCompartmentRequest + */ + public ChangeDatabaseToolsSqlReportCompartmentRequest buildWithoutInvocationCallback() { + ChangeDatabaseToolsSqlReportCompartmentRequest request = + new ChangeDatabaseToolsSqlReportCompartmentRequest(); + request.databaseToolsSqlReportId = databaseToolsSqlReportId; + request.changeDatabaseToolsSqlReportCompartmentDetails = + changeDatabaseToolsSqlReportCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new ChangeDatabaseToolsSqlReportCompartmentRequest(databaseToolsSqlReportId, changeDatabaseToolsSqlReportCompartmentDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsSqlReportId(databaseToolsSqlReportId) + .changeDatabaseToolsSqlReportCompartmentDetails( + changeDatabaseToolsSqlReportCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + sb.append(",changeDatabaseToolsSqlReportCompartmentDetails=") + .append(String.valueOf(this.changeDatabaseToolsSqlReportCompartmentDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsSqlReportCompartmentRequest)) { + return false; + } + + ChangeDatabaseToolsSqlReportCompartmentRequest other = + (ChangeDatabaseToolsSqlReportCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && java.util.Objects.equals( + this.changeDatabaseToolsSqlReportCompartmentDetails, + other.changeDatabaseToolsSqlReportCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.hashCode()); + result = + (result * PRIME) + + (this.changeDatabaseToolsSqlReportCompartmentDetails == null + ? 43 + : this.changeDatabaseToolsSqlReportCompartmentDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsDatabaseApiGatewayConfigRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsDatabaseApiGatewayConfigRequest.java new file mode 100644 index 00000000000..af46d9a55ac --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsDatabaseApiGatewayConfigRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsDatabaseApiGatewayConfigRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model + .CreateDatabaseToolsDatabaseApiGatewayConfigDetails> { + + /** + * Details for the new Database Tools database API gateway config. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsDatabaseApiGatewayConfigDetails + createDatabaseToolsDatabaseApiGatewayConfigDetails; + + /** + * Details for the new Database Tools database API gateway config. + */ + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsDatabaseApiGatewayConfigDetails + getCreateDatabaseToolsDatabaseApiGatewayConfigDetails() { + return createDatabaseToolsDatabaseApiGatewayConfigDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsDatabaseApiGatewayConfigDetails + getBody$() { + return createDatabaseToolsDatabaseApiGatewayConfigDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + com.oracle.bmc.databasetools.model + .CreateDatabaseToolsDatabaseApiGatewayConfigDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new Database Tools database API gateway config. + */ + private com.oracle.bmc.databasetools.model + .CreateDatabaseToolsDatabaseApiGatewayConfigDetails + createDatabaseToolsDatabaseApiGatewayConfigDetails = null; + + /** + * Details for the new Database Tools database API gateway config. + * @param createDatabaseToolsDatabaseApiGatewayConfigDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsDatabaseApiGatewayConfigDetails( + com.oracle.bmc.databasetools.model + .CreateDatabaseToolsDatabaseApiGatewayConfigDetails + createDatabaseToolsDatabaseApiGatewayConfigDetails) { + this.createDatabaseToolsDatabaseApiGatewayConfigDetails = + createDatabaseToolsDatabaseApiGatewayConfigDetails; + 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. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigRequest o) { + createDatabaseToolsDatabaseApiGatewayConfigDetails( + o.getCreateDatabaseToolsDatabaseApiGatewayConfigDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigRequest build() { + CreateDatabaseToolsDatabaseApiGatewayConfigRequest 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.databasetools.model + .CreateDatabaseToolsDatabaseApiGatewayConfigDetails + body) { + createDatabaseToolsDatabaseApiGatewayConfigDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigRequest buildWithoutInvocationCallback() { + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request = + new CreateDatabaseToolsDatabaseApiGatewayConfigRequest(); + request.createDatabaseToolsDatabaseApiGatewayConfigDetails = + createDatabaseToolsDatabaseApiGatewayConfigDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDatabaseToolsDatabaseApiGatewayConfigRequest(createDatabaseToolsDatabaseApiGatewayConfigDetails, 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() + .createDatabaseToolsDatabaseApiGatewayConfigDetails( + createDatabaseToolsDatabaseApiGatewayConfigDetails) + .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(",createDatabaseToolsDatabaseApiGatewayConfigDetails=") + .append(String.valueOf(this.createDatabaseToolsDatabaseApiGatewayConfigDetails)); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigRequest)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigRequest other = + (CreateDatabaseToolsDatabaseApiGatewayConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDatabaseToolsDatabaseApiGatewayConfigDetails, + other.createDatabaseToolsDatabaseApiGatewayConfigDetails) + && 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.createDatabaseToolsDatabaseApiGatewayConfigDetails == null + ? 43 + : this.createDatabaseToolsDatabaseApiGatewayConfigDetails + .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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpServerRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpServerRequest.java new file mode 100644 index 00000000000..bad7f470a1e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpServerRequest.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsMcpServerRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsMcpServerRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails> { + + /** + * Details for the new Database Tools MCP server. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails + createDatabaseToolsMcpServerDetails; + + /** + * Details for the new Database Tools MCP server. + */ + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails + getCreateDatabaseToolsMcpServerDetails() { + return createDatabaseToolsMcpServerDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails getBody$() { + return createDatabaseToolsMcpServerDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsMcpServerRequest, + com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new Database Tools MCP server. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails + createDatabaseToolsMcpServerDetails = null; + + /** + * Details for the new Database Tools MCP server. + * @param createDatabaseToolsMcpServerDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsMcpServerDetails( + com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails + createDatabaseToolsMcpServerDetails) { + this.createDatabaseToolsMcpServerDetails = createDatabaseToolsMcpServerDetails; + 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. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsMcpServerRequest o) { + createDatabaseToolsMcpServerDetails(o.getCreateDatabaseToolsMcpServerDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsMcpServerRequest 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 CreateDatabaseToolsMcpServerRequest + */ + public CreateDatabaseToolsMcpServerRequest build() { + CreateDatabaseToolsMcpServerRequest 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.databasetools.model.CreateDatabaseToolsMcpServerDetails body) { + createDatabaseToolsMcpServerDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsMcpServerRequest 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 CreateDatabaseToolsMcpServerRequest + */ + public CreateDatabaseToolsMcpServerRequest buildWithoutInvocationCallback() { + CreateDatabaseToolsMcpServerRequest request = new CreateDatabaseToolsMcpServerRequest(); + request.createDatabaseToolsMcpServerDetails = createDatabaseToolsMcpServerDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDatabaseToolsMcpServerRequest(createDatabaseToolsMcpServerDetails, 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() + .createDatabaseToolsMcpServerDetails(createDatabaseToolsMcpServerDetails) + .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(",createDatabaseToolsMcpServerDetails=") + .append(String.valueOf(this.createDatabaseToolsMcpServerDetails)); + 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 CreateDatabaseToolsMcpServerRequest)) { + return false; + } + + CreateDatabaseToolsMcpServerRequest other = (CreateDatabaseToolsMcpServerRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDatabaseToolsMcpServerDetails, + other.createDatabaseToolsMcpServerDetails) + && 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.createDatabaseToolsMcpServerDetails == null + ? 43 + : this.createDatabaseToolsMcpServerDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpToolsetRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpToolsetRequest.java new file mode 100644 index 00000000000..99ae1b9da79 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpToolsetRequest.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsMcpToolsetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsMcpToolsetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails> { + + /** + * Details for the new Database Tools MCP Toolset. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails + createDatabaseToolsMcpToolsetDetails; + + /** + * Details for the new Database Tools MCP Toolset. + */ + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails + getCreateDatabaseToolsMcpToolsetDetails() { + return createDatabaseToolsMcpToolsetDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails getBody$() { + return createDatabaseToolsMcpToolsetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsMcpToolsetRequest, + com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new Database Tools MCP Toolset. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails + createDatabaseToolsMcpToolsetDetails = null; + + /** + * Details for the new Database Tools MCP Toolset. + * @param createDatabaseToolsMcpToolsetDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsMcpToolsetDetails( + com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails + createDatabaseToolsMcpToolsetDetails) { + this.createDatabaseToolsMcpToolsetDetails = createDatabaseToolsMcpToolsetDetails; + 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. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsMcpToolsetRequest o) { + createDatabaseToolsMcpToolsetDetails(o.getCreateDatabaseToolsMcpToolsetDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsMcpToolsetRequest 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 CreateDatabaseToolsMcpToolsetRequest + */ + public CreateDatabaseToolsMcpToolsetRequest build() { + CreateDatabaseToolsMcpToolsetRequest 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.databasetools.model.CreateDatabaseToolsMcpToolsetDetails body) { + createDatabaseToolsMcpToolsetDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsMcpToolsetRequest 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 CreateDatabaseToolsMcpToolsetRequest + */ + public CreateDatabaseToolsMcpToolsetRequest buildWithoutInvocationCallback() { + CreateDatabaseToolsMcpToolsetRequest request = + new CreateDatabaseToolsMcpToolsetRequest(); + request.createDatabaseToolsMcpToolsetDetails = createDatabaseToolsMcpToolsetDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDatabaseToolsMcpToolsetRequest(createDatabaseToolsMcpToolsetDetails, 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() + .createDatabaseToolsMcpToolsetDetails(createDatabaseToolsMcpToolsetDetails) + .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(",createDatabaseToolsMcpToolsetDetails=") + .append(String.valueOf(this.createDatabaseToolsMcpToolsetDetails)); + 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 CreateDatabaseToolsMcpToolsetRequest)) { + return false; + } + + CreateDatabaseToolsMcpToolsetRequest other = (CreateDatabaseToolsMcpToolsetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDatabaseToolsMcpToolsetDetails, + other.createDatabaseToolsMcpToolsetDetails) + && 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.createDatabaseToolsMcpToolsetDetails == null + ? 43 + : this.createDatabaseToolsMcpToolsetDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsSqlReportRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsSqlReportRequest.java new file mode 100644 index 00000000000..fefcf563916 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsSqlReportRequest.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsSqlReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsSqlReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails> { + + /** + * Details for the new Database Tools Sql Report. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails + createDatabaseToolsSqlReportDetails; + + /** + * Details for the new Database Tools Sql Report. + */ + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails + getCreateDatabaseToolsSqlReportDetails() { + return createDatabaseToolsSqlReportDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails getBody$() { + return createDatabaseToolsSqlReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsSqlReportRequest, + com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new Database Tools Sql Report. + */ + private com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails + createDatabaseToolsSqlReportDetails = null; + + /** + * Details for the new Database Tools Sql Report. + * @param createDatabaseToolsSqlReportDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsSqlReportDetails( + com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails + createDatabaseToolsSqlReportDetails) { + this.createDatabaseToolsSqlReportDetails = createDatabaseToolsSqlReportDetails; + 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. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsSqlReportRequest o) { + createDatabaseToolsSqlReportDetails(o.getCreateDatabaseToolsSqlReportDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsSqlReportRequest 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 CreateDatabaseToolsSqlReportRequest + */ + public CreateDatabaseToolsSqlReportRequest build() { + CreateDatabaseToolsSqlReportRequest 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.databasetools.model.CreateDatabaseToolsSqlReportDetails body) { + createDatabaseToolsSqlReportDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsSqlReportRequest 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 CreateDatabaseToolsSqlReportRequest + */ + public CreateDatabaseToolsSqlReportRequest buildWithoutInvocationCallback() { + CreateDatabaseToolsSqlReportRequest request = new CreateDatabaseToolsSqlReportRequest(); + request.createDatabaseToolsSqlReportDetails = createDatabaseToolsSqlReportDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDatabaseToolsSqlReportRequest(createDatabaseToolsSqlReportDetails, 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() + .createDatabaseToolsSqlReportDetails(createDatabaseToolsSqlReportDetails) + .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(",createDatabaseToolsSqlReportDetails=") + .append(String.valueOf(this.createDatabaseToolsSqlReportDetails)); + 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 CreateDatabaseToolsSqlReportRequest)) { + return false; + } + + CreateDatabaseToolsSqlReportRequest other = (CreateDatabaseToolsSqlReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDatabaseToolsSqlReportDetails, + other.createDatabaseToolsSqlReportDetails) + && 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.createDatabaseToolsSqlReportDetails == null + ? 43 + : this.createDatabaseToolsSqlReportDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigRequest.java new file mode 100644 index 00000000000..187203d10fa --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigRequest.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(DeleteDatabaseToolsDatabaseApiGatewayConfigRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigRequest build() { + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigRequest buildWithoutInvocationCallback() { + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request = + new DeleteDatabaseToolsDatabaseApiGatewayConfigRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new DeleteDatabaseToolsDatabaseApiGatewayConfigRequest(databaseToolsDatabaseApiGatewayConfigId, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsDatabaseApiGatewayConfigRequest)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpServerRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpServerRequest.java new file mode 100644 index 00000000000..32b7bd5e23d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpServerRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsMcpServerRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsMcpServerRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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< + DeleteDatabaseToolsMcpServerRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(DeleteDatabaseToolsMcpServerRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsMcpServerRequest 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 DeleteDatabaseToolsMcpServerRequest + */ + public DeleteDatabaseToolsMcpServerRequest build() { + DeleteDatabaseToolsMcpServerRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsMcpServerRequest 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 DeleteDatabaseToolsMcpServerRequest + */ + public DeleteDatabaseToolsMcpServerRequest buildWithoutInvocationCallback() { + DeleteDatabaseToolsMcpServerRequest request = new DeleteDatabaseToolsMcpServerRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new DeleteDatabaseToolsMcpServerRequest(databaseToolsMcpServerId, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsMcpServerRequest)) { + return false; + } + + DeleteDatabaseToolsMcpServerRequest other = (DeleteDatabaseToolsMcpServerRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpToolsetRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpToolsetRequest.java new file mode 100644 index 00000000000..5995553cf5b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpToolsetRequest.java @@ -0,0 +1,289 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsMcpToolsetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsMcpToolsetRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + public String getDatabaseToolsMcpToolsetId() { + return databaseToolsMcpToolsetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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< + DeleteDatabaseToolsMcpToolsetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + * @param databaseToolsMcpToolsetId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpToolsetId(String databaseToolsMcpToolsetId) { + this.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(DeleteDatabaseToolsMcpToolsetRequest o) { + databaseToolsMcpToolsetId(o.getDatabaseToolsMcpToolsetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsMcpToolsetRequest 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 DeleteDatabaseToolsMcpToolsetRequest + */ + public DeleteDatabaseToolsMcpToolsetRequest build() { + DeleteDatabaseToolsMcpToolsetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsMcpToolsetRequest 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 DeleteDatabaseToolsMcpToolsetRequest + */ + public DeleteDatabaseToolsMcpToolsetRequest buildWithoutInvocationCallback() { + DeleteDatabaseToolsMcpToolsetRequest request = + new DeleteDatabaseToolsMcpToolsetRequest(); + request.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new DeleteDatabaseToolsMcpToolsetRequest(databaseToolsMcpToolsetId, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsMcpToolsetId(databaseToolsMcpToolsetId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsMcpToolsetId=") + .append(String.valueOf(this.databaseToolsMcpToolsetId)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsMcpToolsetRequest)) { + return false; + } + + DeleteDatabaseToolsMcpToolsetRequest other = (DeleteDatabaseToolsMcpToolsetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpToolsetId, other.databaseToolsMcpToolsetId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpToolsetId == null + ? 43 + : this.databaseToolsMcpToolsetId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsSqlReportRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsSqlReportRequest.java new file mode 100644 index 00000000000..4506cdd69b9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsSqlReportRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsSqlReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsSqlReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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< + DeleteDatabaseToolsSqlReportRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + * @param databaseToolsSqlReportId the value to set + * @return this builder instance + */ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(DeleteDatabaseToolsSqlReportRequest o) { + databaseToolsSqlReportId(o.getDatabaseToolsSqlReportId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsSqlReportRequest 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 DeleteDatabaseToolsSqlReportRequest + */ + public DeleteDatabaseToolsSqlReportRequest build() { + DeleteDatabaseToolsSqlReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsSqlReportRequest 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 DeleteDatabaseToolsSqlReportRequest + */ + public DeleteDatabaseToolsSqlReportRequest buildWithoutInvocationCallback() { + DeleteDatabaseToolsSqlReportRequest request = new DeleteDatabaseToolsSqlReportRequest(); + request.databaseToolsSqlReportId = databaseToolsSqlReportId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new DeleteDatabaseToolsSqlReportRequest(databaseToolsSqlReportId, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsSqlReportId(databaseToolsSqlReportId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsSqlReportRequest)) { + return false; + } + + DeleteDatabaseToolsSqlReportRequest other = (DeleteDatabaseToolsSqlReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsDatabaseApiGatewayConfigRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsDatabaseApiGatewayConfigRequest.java new file mode 100644 index 00000000000..fc1dced8509 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsDatabaseApiGatewayConfigRequest.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsDatabaseApiGatewayConfigRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * 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< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + 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(GetDatabaseToolsDatabaseApiGatewayConfigRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigRequest build() { + GetDatabaseToolsDatabaseApiGatewayConfigRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigRequest buildWithoutInvocationCallback() { + GetDatabaseToolsDatabaseApiGatewayConfigRequest request = + new GetDatabaseToolsDatabaseApiGatewayConfigRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.opcRequestId = opcRequestId; + return request; + // new GetDatabaseToolsDatabaseApiGatewayConfigRequest(databaseToolsDatabaseApiGatewayConfigId, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + 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 GetDatabaseToolsDatabaseApiGatewayConfigRequest)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigRequest other = + (GetDatabaseToolsDatabaseApiGatewayConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpServerRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpServerRequest.java new file mode 100644 index 00000000000..dd024c2b22c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpServerRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsMcpServerRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsMcpServerRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * 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< + GetDatabaseToolsMcpServerRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + 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(GetDatabaseToolsMcpServerRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsMcpServerRequest 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 GetDatabaseToolsMcpServerRequest + */ + public GetDatabaseToolsMcpServerRequest build() { + GetDatabaseToolsMcpServerRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsMcpServerRequest 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 GetDatabaseToolsMcpServerRequest + */ + public GetDatabaseToolsMcpServerRequest buildWithoutInvocationCallback() { + GetDatabaseToolsMcpServerRequest request = new GetDatabaseToolsMcpServerRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.opcRequestId = opcRequestId; + return request; + // new GetDatabaseToolsMcpServerRequest(databaseToolsMcpServerId, 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() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .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(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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 GetDatabaseToolsMcpServerRequest)) { + return false; + } + + GetDatabaseToolsMcpServerRequest other = (GetDatabaseToolsMcpServerRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpToolsetRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpToolsetRequest.java new file mode 100644 index 00000000000..43f90220917 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpToolsetRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsMcpToolsetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsMcpToolsetRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + public String getDatabaseToolsMcpToolsetId() { + return databaseToolsMcpToolsetId; + } + /** + * 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< + GetDatabaseToolsMcpToolsetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + * @param databaseToolsMcpToolsetId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpToolsetId(String databaseToolsMcpToolsetId) { + this.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + 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(GetDatabaseToolsMcpToolsetRequest o) { + databaseToolsMcpToolsetId(o.getDatabaseToolsMcpToolsetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsMcpToolsetRequest 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 GetDatabaseToolsMcpToolsetRequest + */ + public GetDatabaseToolsMcpToolsetRequest build() { + GetDatabaseToolsMcpToolsetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsMcpToolsetRequest 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 GetDatabaseToolsMcpToolsetRequest + */ + public GetDatabaseToolsMcpToolsetRequest buildWithoutInvocationCallback() { + GetDatabaseToolsMcpToolsetRequest request = new GetDatabaseToolsMcpToolsetRequest(); + request.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + request.opcRequestId = opcRequestId; + return request; + // new GetDatabaseToolsMcpToolsetRequest(databaseToolsMcpToolsetId, 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() + .databaseToolsMcpToolsetId(databaseToolsMcpToolsetId) + .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(",databaseToolsMcpToolsetId=") + .append(String.valueOf(this.databaseToolsMcpToolsetId)); + 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 GetDatabaseToolsMcpToolsetRequest)) { + return false; + } + + GetDatabaseToolsMcpToolsetRequest other = (GetDatabaseToolsMcpToolsetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpToolsetId, other.databaseToolsMcpToolsetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpToolsetId == null + ? 43 + : this.databaseToolsMcpToolsetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsSqlReportRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsSqlReportRequest.java new file mode 100644 index 00000000000..b7c66a2c3cd --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsSqlReportRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsSqlReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsSqlReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + /** + * 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< + GetDatabaseToolsSqlReportRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + * @param databaseToolsSqlReportId the value to set + * @return this builder instance + */ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + 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(GetDatabaseToolsSqlReportRequest o) { + databaseToolsSqlReportId(o.getDatabaseToolsSqlReportId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsSqlReportRequest 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 GetDatabaseToolsSqlReportRequest + */ + public GetDatabaseToolsSqlReportRequest build() { + GetDatabaseToolsSqlReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsSqlReportRequest 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 GetDatabaseToolsSqlReportRequest + */ + public GetDatabaseToolsSqlReportRequest buildWithoutInvocationCallback() { + GetDatabaseToolsSqlReportRequest request = new GetDatabaseToolsSqlReportRequest(); + request.databaseToolsSqlReportId = databaseToolsSqlReportId; + request.opcRequestId = opcRequestId; + return request; + // new GetDatabaseToolsSqlReportRequest(databaseToolsSqlReportId, 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() + .databaseToolsSqlReportId(databaseToolsSqlReportId) + .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(",databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + 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 GetDatabaseToolsSqlReportRequest)) { + return false; + } + + GetDatabaseToolsSqlReportRequest other = (GetDatabaseToolsSqlReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsDatabaseApiGatewayConfigsRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsDatabaseApiGatewayConfigsRequest.java new file mode 100644 index 00000000000..e92508524d2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsDatabaseApiGatewayConfigsRequest.java @@ -0,0 +1,488 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsDatabaseApiGatewayConfigsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources only when their {@code lifecycleState} matches the specified {@code lifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigLifecycleState + lifecycleState; + + /** + * A filter to return resources only when their {@code lifecycleState} matches the specified {@code lifecycleState}. + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigLifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetools.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List type; + + /** + * A filter to return only resources with one of the specified type values. + */ + public java.util.List + getType() { + return type; + } + /** + * 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< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources only when their {@code lifecycleState} matches the specified {@code lifecycleState}. + */ + private com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState + lifecycleState = null; + + /** + * A filter to return resources only when their {@code lifecycleState} matches the specified {@code lifecycleState}. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigLifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.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.databasetools.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List + type = null; + + /** + * A filter to return only resources with one of the specified type values. + * @param type the value to set + * @return this builder instance + */ + public Builder type( + java.util.List + type) { + this.type = type; + return this; + } + + /** + * Singular setter. A filter to return only resources with one of the specified type values. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder type(DatabaseApiGatewayConfigType singularValue) { + return this.type(java.util.Arrays.asList(singularValue)); + } + + /** + * 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(ListDatabaseToolsDatabaseApiGatewayConfigsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + type(o.getType()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigsRequest build() { + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigsRequest buildWithoutInvocationCallback() { + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request = + new ListDatabaseToolsDatabaseApiGatewayConfigsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.type = type; + request.opcRequestId = opcRequestId; + return request; + // new ListDatabaseToolsDatabaseApiGatewayConfigsRequest(compartmentId, lifecycleState, displayName, limit, page, sortOrder, sortBy, type, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .type(type) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",type=").append(String.valueOf(this.type)); + 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 ListDatabaseToolsDatabaseApiGatewayConfigsRequest)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigsRequest other = + (ListDatabaseToolsDatabaseApiGatewayConfigsRequest) 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.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.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.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpServersRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpServersRequest.java new file mode 100644 index 00000000000..958c95b238a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpServersRequest.java @@ -0,0 +1,557 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsMcpServersRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpServersRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources only when their {@code databaseToolsMcpServerLifecycleState} matches the specified {@code databaseToolsMcpServerLifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState lifecycleState; + + /** + * A filter to return resources only when their {@code databaseToolsMcpServerLifecycleState} matches the specified {@code databaseToolsMcpServerLifecycleState}. + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return only resources when their {@code databaseToolsConnectionId} matches the specified {@code databaseToolsConnectionId}. + */ + private String databaseToolsConnectionId; + + /** + * A filter to return only resources when their {@code databaseToolsConnectionId} matches the specified {@code databaseToolsConnectionId}. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + */ + private String relatedResourceIdentifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + */ + public String getRelatedResourceIdentifier() { + return relatedResourceIdentifier; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetools.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List type; + + /** + * A filter to return only resources with one of the specified type values. + */ + public java.util.List getType() { + return type; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDatabaseToolsMcpServersRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources only when their {@code databaseToolsMcpServerLifecycleState} matches the specified {@code databaseToolsMcpServerLifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState + lifecycleState = null; + + /** + * A filter to return resources only when their {@code databaseToolsMcpServerLifecycleState} matches the specified {@code databaseToolsMcpServerLifecycleState}. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return only resources when their {@code databaseToolsConnectionId} matches the specified {@code databaseToolsConnectionId}. + */ + private String databaseToolsConnectionId = null; + + /** + * A filter to return only resources when their {@code databaseToolsConnectionId} matches the specified {@code databaseToolsConnectionId}. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + */ + private String relatedResourceIdentifier = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + * @param relatedResourceIdentifier the value to set + * @return this builder instance + */ + public Builder relatedResourceIdentifier(String relatedResourceIdentifier) { + this.relatedResourceIdentifier = relatedResourceIdentifier; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.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.databasetools.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List type = + null; + + /** + * A filter to return only resources with one of the specified type values. + * @param type the value to set + * @return this builder instance + */ + public Builder type( + java.util.List + type) { + this.type = type; + return this; + } + + /** + * Singular setter. A filter to return only resources with one of the specified type values. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder type(DatabaseToolsMcpServerType singularValue) { + return this.type(java.util.Arrays.asList(singularValue)); + } + + /** + * Set the invocation callback for the request 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(ListDatabaseToolsMcpServersRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + relatedResourceIdentifier(o.getRelatedResourceIdentifier()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + type(o.getType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsMcpServersRequest 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 ListDatabaseToolsMcpServersRequest + */ + public ListDatabaseToolsMcpServersRequest build() { + ListDatabaseToolsMcpServersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsMcpServersRequest 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 ListDatabaseToolsMcpServersRequest + */ + public ListDatabaseToolsMcpServersRequest buildWithoutInvocationCallback() { + ListDatabaseToolsMcpServersRequest request = new ListDatabaseToolsMcpServersRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.relatedResourceIdentifier = relatedResourceIdentifier; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.type = type; + return request; + // new ListDatabaseToolsMcpServersRequest(compartmentId, lifecycleState, displayName, databaseToolsConnectionId, relatedResourceIdentifier, limit, page, sortOrder, sortBy, opcRequestId, type); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .databaseToolsConnectionId(databaseToolsConnectionId) + .relatedResourceIdentifier(relatedResourceIdentifier) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .type(type); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",relatedResourceIdentifier=") + .append(String.valueOf(this.relatedResourceIdentifier)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",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 ListDatabaseToolsMcpServersRequest)) { + return false; + } + + ListDatabaseToolsMcpServersRequest other = (ListDatabaseToolsMcpServersRequest) 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.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals( + this.relatedResourceIdentifier, other.relatedResourceIdentifier) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.type, other.type); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceIdentifier == null + ? 43 + : this.relatedResourceIdentifier.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetVersionsRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetVersionsRequest.java new file mode 100644 index 00000000000..8367e835f06 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetVersionsRequest.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsMcpToolsetVersionsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpToolsetVersionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + */ + private String databaseToolsMcpServerId; + + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDatabaseToolsMcpToolsetVersionsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + */ + private String databaseToolsMcpServerId = null; + + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsMcpToolsetVersionsRequest o) { + compartmentId(o.getCompartmentId()); + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsMcpToolsetVersionsRequest 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 ListDatabaseToolsMcpToolsetVersionsRequest + */ + public ListDatabaseToolsMcpToolsetVersionsRequest build() { + ListDatabaseToolsMcpToolsetVersionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsMcpToolsetVersionsRequest 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 ListDatabaseToolsMcpToolsetVersionsRequest + */ + public ListDatabaseToolsMcpToolsetVersionsRequest buildWithoutInvocationCallback() { + ListDatabaseToolsMcpToolsetVersionsRequest request = + new ListDatabaseToolsMcpToolsetVersionsRequest(); + request.compartmentId = compartmentId; + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListDatabaseToolsMcpToolsetVersionsRequest(compartmentId, databaseToolsMcpServerId, displayName, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .displayName(displayName) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsMcpToolsetVersionsRequest)) { + return false; + } + + ListDatabaseToolsMcpToolsetVersionsRequest other = + (ListDatabaseToolsMcpToolsetVersionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetsRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetsRequest.java new file mode 100644 index 00000000000..efc99d18689 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetsRequest.java @@ -0,0 +1,520 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsMcpToolsetsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpToolsetsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources only when their {@code databaseToolsMcpToolsetLifecycleState} matches the specified {@code databaseToolsMcpToolsetLifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState lifecycleState; + + /** + * A filter to return resources only when their {@code databaseToolsMcpToolsetLifecycleState} matches the specified {@code databaseToolsMcpToolsetLifecycleState}. + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetools.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List type; + + /** + * A filter to return only resources with one of the specified type values. + */ + public java.util.List + getType() { + return type; + } + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + */ + private String databaseToolsMcpServerId; + + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDatabaseToolsMcpToolsetsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources only when their {@code databaseToolsMcpToolsetLifecycleState} matches the specified {@code databaseToolsMcpToolsetLifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState + lifecycleState = null; + + /** + * A filter to return resources only when their {@code databaseToolsMcpToolsetLifecycleState} matches the specified {@code databaseToolsMcpToolsetLifecycleState}. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.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.databasetools.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List + type = null; + + /** + * A filter to return only resources with one of the specified type values. + * @param type the value to set + * @return this builder instance + */ + public Builder type( + java.util.List + type) { + this.type = type; + return this; + } + + /** + * Singular setter. A filter to return only resources with one of the specified type values. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder type(DatabaseToolsMcpToolsetType singularValue) { + return this.type(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + */ + private String databaseToolsMcpServerId = null; + + /** + * A filter to return only resources matching the specified {@code databaseToolsMcpServerId}. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * Set the invocation callback for the request 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(ListDatabaseToolsMcpToolsetsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + type(o.getType()); + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsMcpToolsetsRequest 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 ListDatabaseToolsMcpToolsetsRequest + */ + public ListDatabaseToolsMcpToolsetsRequest build() { + ListDatabaseToolsMcpToolsetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsMcpToolsetsRequest 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 ListDatabaseToolsMcpToolsetsRequest + */ + public ListDatabaseToolsMcpToolsetsRequest buildWithoutInvocationCallback() { + ListDatabaseToolsMcpToolsetsRequest request = new ListDatabaseToolsMcpToolsetsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.type = type; + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + return request; + // new ListDatabaseToolsMcpToolsetsRequest(compartmentId, lifecycleState, displayName, limit, page, sortOrder, sortBy, opcRequestId, type, databaseToolsMcpServerId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .type(type) + .databaseToolsMcpServerId(databaseToolsMcpServerId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsMcpToolsetsRequest)) { + return false; + } + + ListDatabaseToolsMcpToolsetsRequest other = (ListDatabaseToolsMcpToolsetsRequest) 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.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsSqlReportsRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsSqlReportsRequest.java new file mode 100644 index 00000000000..5cc6925b3bd --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsSqlReportsRequest.java @@ -0,0 +1,481 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsSqlReportsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsSqlReportsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources only when their {@code databaseToolsSqlReportLifecycleState} matches the specified {@code databaseToolsSqlReportLifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState lifecycleState; + + /** + * A filter to return resources only when their {@code databaseToolsSqlReportLifecycleState} matches the specified {@code databaseToolsSqlReportLifecycleState}. + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetools.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List type; + + /** + * A filter to return only resources with one of the specified type values. + */ + public java.util.List getType() { + return type; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDatabaseToolsSqlReportsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources only when their {@code databaseToolsSqlReportLifecycleState} matches the specified {@code databaseToolsSqlReportLifecycleState}. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState + lifecycleState = null; + + /** + * A filter to return resources only when their {@code databaseToolsSqlReportLifecycleState} matches the specified {@code databaseToolsSqlReportLifecycleState}. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetools.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.databasetools.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources with one of the specified type values. + */ + private java.util.List type = + null; + + /** + * A filter to return only resources with one of the specified type values. + * @param type the value to set + * @return this builder instance + */ + public Builder type( + java.util.List + type) { + this.type = type; + return this; + } + + /** + * Singular setter. A filter to return only resources with one of the specified type values. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder type(DatabaseToolsSqlReportType singularValue) { + return this.type(java.util.Arrays.asList(singularValue)); + } + + /** + * Set the invocation callback for the request 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(ListDatabaseToolsSqlReportsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + type(o.getType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsSqlReportsRequest 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 ListDatabaseToolsSqlReportsRequest + */ + public ListDatabaseToolsSqlReportsRequest build() { + ListDatabaseToolsSqlReportsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsSqlReportsRequest 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 ListDatabaseToolsSqlReportsRequest + */ + public ListDatabaseToolsSqlReportsRequest buildWithoutInvocationCallback() { + ListDatabaseToolsSqlReportsRequest request = new ListDatabaseToolsSqlReportsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.type = type; + return request; + // new ListDatabaseToolsSqlReportsRequest(compartmentId, lifecycleState, displayName, limit, page, sortOrder, sortBy, opcRequestId, type); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .type(type); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",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 ListDatabaseToolsSqlReportsRequest)) { + return false; + } + + ListDatabaseToolsSqlReportsRequest other = (ListDatabaseToolsSqlReportsRequest) 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.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.type, other.type); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest.java new file mode 100644 index 00000000000..dbce56aa799 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.databasetools.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(RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest 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 RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + */ + public RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest build() { + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest 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.databasetools.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest 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 RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + */ + public RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest + buildWithoutInvocationCallback() { + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request = + new RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest(databaseToolsDatabaseApiGatewayConfigId, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + 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 RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest)) { + return false; + } + + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest other = + (RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpServerLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpServerLockRequest.java new file mode 100644 index 00000000000..d21db20a213 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpServerLockRequest.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use RemoveDatabaseToolsMcpServerLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsMcpServerLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDatabaseToolsMcpServerLockRequest, + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.databasetools.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(RemoveDatabaseToolsMcpServerLockRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsMcpServerLockRequest 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 RemoveDatabaseToolsMcpServerLockRequest + */ + public RemoveDatabaseToolsMcpServerLockRequest build() { + RemoveDatabaseToolsMcpServerLockRequest 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.databasetools.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsMcpServerLockRequest 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 RemoveDatabaseToolsMcpServerLockRequest + */ + public RemoveDatabaseToolsMcpServerLockRequest buildWithoutInvocationCallback() { + RemoveDatabaseToolsMcpServerLockRequest request = + new RemoveDatabaseToolsMcpServerLockRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveDatabaseToolsMcpServerLockRequest(databaseToolsMcpServerId, 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() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .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(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + 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 RemoveDatabaseToolsMcpServerLockRequest)) { + return false; + } + + RemoveDatabaseToolsMcpServerLockRequest other = (RemoveDatabaseToolsMcpServerLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && 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.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpToolsetLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpToolsetLockRequest.java new file mode 100644 index 00000000000..d68c024811c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpToolsetLockRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use RemoveDatabaseToolsMcpToolsetLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsMcpToolsetLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + public String getDatabaseToolsMcpToolsetId() { + return databaseToolsMcpToolsetId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDatabaseToolsMcpToolsetLockRequest, + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + * @param databaseToolsMcpToolsetId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpToolsetId(String databaseToolsMcpToolsetId) { + this.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.databasetools.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(RemoveDatabaseToolsMcpToolsetLockRequest o) { + databaseToolsMcpToolsetId(o.getDatabaseToolsMcpToolsetId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsMcpToolsetLockRequest 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 RemoveDatabaseToolsMcpToolsetLockRequest + */ + public RemoveDatabaseToolsMcpToolsetLockRequest build() { + RemoveDatabaseToolsMcpToolsetLockRequest 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.databasetools.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsMcpToolsetLockRequest 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 RemoveDatabaseToolsMcpToolsetLockRequest + */ + public RemoveDatabaseToolsMcpToolsetLockRequest buildWithoutInvocationCallback() { + RemoveDatabaseToolsMcpToolsetLockRequest request = + new RemoveDatabaseToolsMcpToolsetLockRequest(); + request.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveDatabaseToolsMcpToolsetLockRequest(databaseToolsMcpToolsetId, 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() + .databaseToolsMcpToolsetId(databaseToolsMcpToolsetId) + .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(",databaseToolsMcpToolsetId=") + .append(String.valueOf(this.databaseToolsMcpToolsetId)); + 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 RemoveDatabaseToolsMcpToolsetLockRequest)) { + return false; + } + + RemoveDatabaseToolsMcpToolsetLockRequest other = + (RemoveDatabaseToolsMcpToolsetLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpToolsetId, other.databaseToolsMcpToolsetId) + && 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.databaseToolsMcpToolsetId == null + ? 43 + : this.databaseToolsMcpToolsetId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsSqlReportLockRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsSqlReportLockRequest.java new file mode 100644 index 00000000000..81e6c0f215d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsSqlReportLockRequest.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use RemoveDatabaseToolsSqlReportLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsSqlReportLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.databasetools.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.databasetools.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDatabaseToolsSqlReportLockRequest, + com.oracle.bmc.databasetools.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + * @param databaseToolsSqlReportId the value to set + * @return this builder instance + */ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.databasetools.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.databasetools.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(RemoveDatabaseToolsSqlReportLockRequest o) { + databaseToolsSqlReportId(o.getDatabaseToolsSqlReportId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsSqlReportLockRequest 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 RemoveDatabaseToolsSqlReportLockRequest + */ + public RemoveDatabaseToolsSqlReportLockRequest build() { + RemoveDatabaseToolsSqlReportLockRequest 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.databasetools.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveDatabaseToolsSqlReportLockRequest 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 RemoveDatabaseToolsSqlReportLockRequest + */ + public RemoveDatabaseToolsSqlReportLockRequest buildWithoutInvocationCallback() { + RemoveDatabaseToolsSqlReportLockRequest request = + new RemoveDatabaseToolsSqlReportLockRequest(); + request.databaseToolsSqlReportId = databaseToolsSqlReportId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveDatabaseToolsSqlReportLockRequest(databaseToolsSqlReportId, 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() + .databaseToolsSqlReportId(databaseToolsSqlReportId) + .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(",databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + 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 RemoveDatabaseToolsSqlReportLockRequest)) { + return false; + } + + RemoveDatabaseToolsSqlReportLockRequest other = (RemoveDatabaseToolsSqlReportLockRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && 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.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigRequest.java new file mode 100644 index 00000000000..0b5bf25d926 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + updateDatabaseToolsDatabaseApiGatewayConfigDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails() { + return updateDatabaseToolsDatabaseApiGatewayConfigDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + getBody$() { + return updateDatabaseToolsDatabaseApiGatewayConfigDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + com.oracle.bmc.databasetools.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + updateDatabaseToolsDatabaseApiGatewayConfigDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsDatabaseApiGatewayConfigDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsDatabaseApiGatewayConfigDetails( + com.oracle.bmc.databasetools.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + updateDatabaseToolsDatabaseApiGatewayConfigDetails) { + this.updateDatabaseToolsDatabaseApiGatewayConfigDetails = + updateDatabaseToolsDatabaseApiGatewayConfigDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(UpdateDatabaseToolsDatabaseApiGatewayConfigRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + updateDatabaseToolsDatabaseApiGatewayConfigDetails( + o.getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigRequest build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest 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.databasetools.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + body) { + updateDatabaseToolsDatabaseApiGatewayConfigDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigRequest buildWithoutInvocationCallback() { + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request = + new UpdateDatabaseToolsDatabaseApiGatewayConfigRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.updateDatabaseToolsDatabaseApiGatewayConfigDetails = + updateDatabaseToolsDatabaseApiGatewayConfigDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new UpdateDatabaseToolsDatabaseApiGatewayConfigRequest(databaseToolsDatabaseApiGatewayConfigId, updateDatabaseToolsDatabaseApiGatewayConfigDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .updateDatabaseToolsDatabaseApiGatewayConfigDetails( + updateDatabaseToolsDatabaseApiGatewayConfigDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",updateDatabaseToolsDatabaseApiGatewayConfigDetails=") + .append(String.valueOf(this.updateDatabaseToolsDatabaseApiGatewayConfigDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigRequest)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals( + this.updateDatabaseToolsDatabaseApiGatewayConfigDetails, + other.updateDatabaseToolsDatabaseApiGatewayConfigDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsDatabaseApiGatewayConfigDetails == null + ? 43 + : this.updateDatabaseToolsDatabaseApiGatewayConfigDetails + .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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpServerRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpServerRequest.java new file mode 100644 index 00000000000..0b6f4e29899 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpServerRequest.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsMcpServerRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsMcpServerRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + public String getDatabaseToolsMcpServerId() { + return databaseToolsMcpServerId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails + updateDatabaseToolsMcpServerDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails + getUpdateDatabaseToolsMcpServerDetails() { + return updateDatabaseToolsMcpServerDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails getBody$() { + return updateDatabaseToolsMcpServerDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsMcpServerRequest, + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + */ + private String databaseToolsMcpServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP server. + * @param databaseToolsMcpServerId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpServerId(String databaseToolsMcpServerId) { + this.databaseToolsMcpServerId = databaseToolsMcpServerId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails + updateDatabaseToolsMcpServerDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsMcpServerDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsMcpServerDetails( + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails + updateDatabaseToolsMcpServerDetails) { + this.updateDatabaseToolsMcpServerDetails = updateDatabaseToolsMcpServerDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(UpdateDatabaseToolsMcpServerRequest o) { + databaseToolsMcpServerId(o.getDatabaseToolsMcpServerId()); + updateDatabaseToolsMcpServerDetails(o.getUpdateDatabaseToolsMcpServerDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsMcpServerRequest 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 UpdateDatabaseToolsMcpServerRequest + */ + public UpdateDatabaseToolsMcpServerRequest build() { + UpdateDatabaseToolsMcpServerRequest 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.databasetools.model.UpdateDatabaseToolsMcpServerDetails body) { + updateDatabaseToolsMcpServerDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsMcpServerRequest 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 UpdateDatabaseToolsMcpServerRequest + */ + public UpdateDatabaseToolsMcpServerRequest buildWithoutInvocationCallback() { + UpdateDatabaseToolsMcpServerRequest request = new UpdateDatabaseToolsMcpServerRequest(); + request.databaseToolsMcpServerId = databaseToolsMcpServerId; + request.updateDatabaseToolsMcpServerDetails = updateDatabaseToolsMcpServerDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new UpdateDatabaseToolsMcpServerRequest(databaseToolsMcpServerId, updateDatabaseToolsMcpServerDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsMcpServerId(databaseToolsMcpServerId) + .updateDatabaseToolsMcpServerDetails(updateDatabaseToolsMcpServerDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsMcpServerId=") + .append(String.valueOf(this.databaseToolsMcpServerId)); + sb.append(",updateDatabaseToolsMcpServerDetails=") + .append(String.valueOf(this.updateDatabaseToolsMcpServerDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpServerRequest)) { + return false; + } + + UpdateDatabaseToolsMcpServerRequest other = (UpdateDatabaseToolsMcpServerRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpServerId, other.databaseToolsMcpServerId) + && java.util.Objects.equals( + this.updateDatabaseToolsMcpServerDetails, + other.updateDatabaseToolsMcpServerDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpServerId == null + ? 43 + : this.databaseToolsMcpServerId.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsMcpServerDetails == null + ? 43 + : this.updateDatabaseToolsMcpServerDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpToolsetRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpToolsetRequest.java new file mode 100644 index 00000000000..a49f8b5acfe --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpToolsetRequest.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsMcpToolsetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsMcpToolsetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + public String getDatabaseToolsMcpToolsetId() { + return databaseToolsMcpToolsetId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails + updateDatabaseToolsMcpToolsetDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails + getUpdateDatabaseToolsMcpToolsetDetails() { + return updateDatabaseToolsMcpToolsetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails getBody$() { + return updateDatabaseToolsMcpToolsetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsMcpToolsetRequest, + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + */ + private String databaseToolsMcpToolsetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools MCP Toolset. + * @param databaseToolsMcpToolsetId the value to set + * @return this builder instance + */ + public Builder databaseToolsMcpToolsetId(String databaseToolsMcpToolsetId) { + this.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails + updateDatabaseToolsMcpToolsetDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsMcpToolsetDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsMcpToolsetDetails( + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails + updateDatabaseToolsMcpToolsetDetails) { + this.updateDatabaseToolsMcpToolsetDetails = updateDatabaseToolsMcpToolsetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(UpdateDatabaseToolsMcpToolsetRequest o) { + databaseToolsMcpToolsetId(o.getDatabaseToolsMcpToolsetId()); + updateDatabaseToolsMcpToolsetDetails(o.getUpdateDatabaseToolsMcpToolsetDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsMcpToolsetRequest 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 UpdateDatabaseToolsMcpToolsetRequest + */ + public UpdateDatabaseToolsMcpToolsetRequest build() { + UpdateDatabaseToolsMcpToolsetRequest 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.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails body) { + updateDatabaseToolsMcpToolsetDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsMcpToolsetRequest 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 UpdateDatabaseToolsMcpToolsetRequest + */ + public UpdateDatabaseToolsMcpToolsetRequest buildWithoutInvocationCallback() { + UpdateDatabaseToolsMcpToolsetRequest request = + new UpdateDatabaseToolsMcpToolsetRequest(); + request.databaseToolsMcpToolsetId = databaseToolsMcpToolsetId; + request.updateDatabaseToolsMcpToolsetDetails = updateDatabaseToolsMcpToolsetDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new UpdateDatabaseToolsMcpToolsetRequest(databaseToolsMcpToolsetId, updateDatabaseToolsMcpToolsetDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsMcpToolsetId(databaseToolsMcpToolsetId) + .updateDatabaseToolsMcpToolsetDetails(updateDatabaseToolsMcpToolsetDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsMcpToolsetId=") + .append(String.valueOf(this.databaseToolsMcpToolsetId)); + sb.append(",updateDatabaseToolsMcpToolsetDetails=") + .append(String.valueOf(this.updateDatabaseToolsMcpToolsetDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsMcpToolsetRequest)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetRequest other = (UpdateDatabaseToolsMcpToolsetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsMcpToolsetId, other.databaseToolsMcpToolsetId) + && java.util.Objects.equals( + this.updateDatabaseToolsMcpToolsetDetails, + other.updateDatabaseToolsMcpToolsetDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsMcpToolsetId == null + ? 43 + : this.databaseToolsMcpToolsetId.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsMcpToolsetDetails == null + ? 43 + : this.updateDatabaseToolsMcpToolsetDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsSqlReportRequest.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsSqlReportRequest.java new file mode 100644 index 00000000000..981c513e5dc --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsSqlReportRequest.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsSqlReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsSqlReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + public String getDatabaseToolsSqlReportId() { + return databaseToolsSqlReportId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails + updateDatabaseToolsSqlReportDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails + getUpdateDatabaseToolsSqlReportDetails() { + return updateDatabaseToolsSqlReportDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails getBody$() { + return updateDatabaseToolsSqlReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsSqlReportRequest, + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + */ + private String databaseToolsSqlReportId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools SQL Report. + * @param databaseToolsSqlReportId the value to set + * @return this builder instance + */ + public Builder databaseToolsSqlReportId(String databaseToolsSqlReportId) { + this.databaseToolsSqlReportId = databaseToolsSqlReportId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails + updateDatabaseToolsSqlReportDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsSqlReportDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsSqlReportDetails( + com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails + updateDatabaseToolsSqlReportDetails) { + this.updateDatabaseToolsSqlReportDetails = updateDatabaseToolsSqlReportDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(UpdateDatabaseToolsSqlReportRequest o) { + databaseToolsSqlReportId(o.getDatabaseToolsSqlReportId()); + updateDatabaseToolsSqlReportDetails(o.getUpdateDatabaseToolsSqlReportDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsSqlReportRequest 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 UpdateDatabaseToolsSqlReportRequest + */ + public UpdateDatabaseToolsSqlReportRequest build() { + UpdateDatabaseToolsSqlReportRequest 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.databasetools.model.UpdateDatabaseToolsSqlReportDetails body) { + updateDatabaseToolsSqlReportDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsSqlReportRequest 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 UpdateDatabaseToolsSqlReportRequest + */ + public UpdateDatabaseToolsSqlReportRequest buildWithoutInvocationCallback() { + UpdateDatabaseToolsSqlReportRequest request = new UpdateDatabaseToolsSqlReportRequest(); + request.databaseToolsSqlReportId = databaseToolsSqlReportId; + request.updateDatabaseToolsSqlReportDetails = updateDatabaseToolsSqlReportDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new UpdateDatabaseToolsSqlReportRequest(databaseToolsSqlReportId, updateDatabaseToolsSqlReportDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsSqlReportId(databaseToolsSqlReportId) + .updateDatabaseToolsSqlReportDetails(updateDatabaseToolsSqlReportDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsSqlReportId=") + .append(String.valueOf(this.databaseToolsSqlReportId)); + sb.append(",updateDatabaseToolsSqlReportDetails=") + .append(String.valueOf(this.updateDatabaseToolsSqlReportDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsSqlReportRequest)) { + return false; + } + + UpdateDatabaseToolsSqlReportRequest other = (UpdateDatabaseToolsSqlReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsSqlReportId, other.databaseToolsSqlReportId) + && java.util.Objects.equals( + this.updateDatabaseToolsSqlReportDetails, + other.updateDatabaseToolsSqlReportDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsSqlReportId == null + ? 43 + : this.databaseToolsSqlReportId.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsSqlReportDetails == null + ? 43 + : this.updateDatabaseToolsSqlReportDetails.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-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.java new file mode 100644 index 00000000000..344c2d5073d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + 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 DatabaseToolsDatabaseApiGatewayConfig resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsDatabaseApiGatewayConfig resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + getDatabaseToolsDatabaseApiGatewayConfig() { + return databaseToolsDatabaseApiGatewayConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsDatabaseApiGatewayConfig" + }) + private AddDatabaseToolsDatabaseApiGatewayConfigLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + } + + 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 DatabaseToolsDatabaseApiGatewayConfig resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsDatabaseApiGatewayConfig resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @param databaseToolsDatabaseApiGatewayConfig the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDatabaseToolsDatabaseApiGatewayConfigLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsDatabaseApiGatewayConfig(o.getDatabaseToolsDatabaseApiGatewayConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddDatabaseToolsDatabaseApiGatewayConfigLockResponse build() { + return new AddDatabaseToolsDatabaseApiGatewayConfigLockResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + databaseToolsDatabaseApiGatewayConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfig=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDatabaseToolsDatabaseApiGatewayConfigLockResponse)) { + return false; + } + + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse other = + (AddDatabaseToolsDatabaseApiGatewayConfigLockResponse) 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.databaseToolsDatabaseApiGatewayConfig, + other.databaseToolsDatabaseApiGatewayConfig); + } + + @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.databaseToolsDatabaseApiGatewayConfig == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfig.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpServerLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpServerLockResponse.java new file mode 100644 index 00000000000..db7e4ba6b40 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpServerLockResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsMcpServerLockResponse 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 DatabaseToolsMcpServer resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpServer resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer getDatabaseToolsMcpServer() { + return databaseToolsMcpServer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsMcpServer" + }) + private AddDatabaseToolsMcpServerLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsMcpServer = databaseToolsMcpServer; + } + + 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 DatabaseToolsMcpServer resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpServer resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @param databaseToolsMcpServer the value to set + * @return this builder + */ + public Builder databaseToolsMcpServer( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + this.databaseToolsMcpServer = databaseToolsMcpServer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDatabaseToolsMcpServerLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsMcpServer(o.getDatabaseToolsMcpServer()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddDatabaseToolsMcpServerLockResponse build() { + return new AddDatabaseToolsMcpServerLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, databaseToolsMcpServer); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpServer=").append(String.valueOf(databaseToolsMcpServer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDatabaseToolsMcpServerLockResponse)) { + return false; + } + + AddDatabaseToolsMcpServerLockResponse other = (AddDatabaseToolsMcpServerLockResponse) 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.databaseToolsMcpServer, other.databaseToolsMcpServer); + } + + @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.databaseToolsMcpServer == null + ? 43 + : this.databaseToolsMcpServer.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpToolsetLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpToolsetLockResponse.java new file mode 100644 index 00000000000..16f81b12516 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpToolsetLockResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsMcpToolsetLockResponse 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 DatabaseToolsMcpToolset resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpToolset resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset getDatabaseToolsMcpToolset() { + return databaseToolsMcpToolset; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsMcpToolset" + }) + private AddDatabaseToolsMcpToolsetLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + } + + 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 DatabaseToolsMcpToolset resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpToolset resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @param databaseToolsMcpToolset the value to set + * @return this builder + */ + public Builder databaseToolsMcpToolset( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset + databaseToolsMcpToolset) { + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDatabaseToolsMcpToolsetLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsMcpToolset(o.getDatabaseToolsMcpToolset()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddDatabaseToolsMcpToolsetLockResponse build() { + return new AddDatabaseToolsMcpToolsetLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, databaseToolsMcpToolset); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpToolset=").append(String.valueOf(databaseToolsMcpToolset)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDatabaseToolsMcpToolsetLockResponse)) { + return false; + } + + AddDatabaseToolsMcpToolsetLockResponse other = (AddDatabaseToolsMcpToolsetLockResponse) 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.databaseToolsMcpToolset, other.databaseToolsMcpToolset); + } + + @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.databaseToolsMcpToolset == null + ? 43 + : this.databaseToolsMcpToolset.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsSqlReportLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsSqlReportLockResponse.java new file mode 100644 index 00000000000..64a340bd16e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsSqlReportLockResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class AddDatabaseToolsSqlReportLockResponse 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 DatabaseToolsSqlReport resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsSqlReport resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport getDatabaseToolsSqlReport() { + return databaseToolsSqlReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsSqlReport" + }) + private AddDatabaseToolsSqlReportLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsSqlReport = databaseToolsSqlReport; + } + + 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 DatabaseToolsSqlReport resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsSqlReport resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @param databaseToolsSqlReport the value to set + * @return this builder + */ + public Builder databaseToolsSqlReport( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + this.databaseToolsSqlReport = databaseToolsSqlReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDatabaseToolsSqlReportLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsSqlReport(o.getDatabaseToolsSqlReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddDatabaseToolsSqlReportLockResponse build() { + return new AddDatabaseToolsSqlReportLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, databaseToolsSqlReport); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsSqlReport=").append(String.valueOf(databaseToolsSqlReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDatabaseToolsSqlReportLockResponse)) { + return false; + } + + AddDatabaseToolsSqlReportLockResponse other = (AddDatabaseToolsSqlReportLockResponse) 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.databaseToolsSqlReport, other.databaseToolsSqlReport); + } + + @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.databaseToolsSqlReport == null + ? 43 + : this.databaseToolsSqlReport.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CascadingDeleteDatabaseToolsMcpServerResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CascadingDeleteDatabaseToolsMcpServerResponse.java new file mode 100644 index 00000000000..5e8d6309999 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CascadingDeleteDatabaseToolsMcpServerResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CascadingDeleteDatabaseToolsMcpServerResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 CascadingDeleteDatabaseToolsMcpServerResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(CascadingDeleteDatabaseToolsMcpServerResponse 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 CascadingDeleteDatabaseToolsMcpServerResponse build() { + return new CascadingDeleteDatabaseToolsMcpServerResponse( + __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 CascadingDeleteDatabaseToolsMcpServerResponse)) { + return false; + } + + CascadingDeleteDatabaseToolsMcpServerResponse other = + (CascadingDeleteDatabaseToolsMcpServerResponse) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse.java new file mode 100644 index 00000000000..907c227c573 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse build() { + return new ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse)) { + return false; + } + + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse other = + (ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpServerCompartmentResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpServerCompartmentResponse.java new file mode 100644 index 00000000000..52b896a5d73 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpServerCompartmentResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsMcpServerCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ChangeDatabaseToolsMcpServerCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(ChangeDatabaseToolsMcpServerCompartmentResponse 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 ChangeDatabaseToolsMcpServerCompartmentResponse build() { + return new ChangeDatabaseToolsMcpServerCompartmentResponse( + __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 ChangeDatabaseToolsMcpServerCompartmentResponse)) { + return false; + } + + ChangeDatabaseToolsMcpServerCompartmentResponse other = + (ChangeDatabaseToolsMcpServerCompartmentResponse) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpToolsetCompartmentResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpToolsetCompartmentResponse.java new file mode 100644 index 00000000000..733f0701898 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpToolsetCompartmentResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsMcpToolsetCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeDatabaseToolsMcpToolsetCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeDatabaseToolsMcpToolsetCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeDatabaseToolsMcpToolsetCompartmentResponse build() { + return new ChangeDatabaseToolsMcpToolsetCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsMcpToolsetCompartmentResponse)) { + return false; + } + + ChangeDatabaseToolsMcpToolsetCompartmentResponse other = + (ChangeDatabaseToolsMcpToolsetCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsSqlReportCompartmentResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsSqlReportCompartmentResponse.java new file mode 100644 index 00000000000..63e0086d6bf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsSqlReportCompartmentResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ChangeDatabaseToolsSqlReportCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeDatabaseToolsSqlReportCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeDatabaseToolsSqlReportCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeDatabaseToolsSqlReportCompartmentResponse build() { + return new ChangeDatabaseToolsSqlReportCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDatabaseToolsSqlReportCompartmentResponse)) { + return false; + } + + ChangeDatabaseToolsSqlReportCompartmentResponse other = + (ChangeDatabaseToolsSqlReportCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsDatabaseApiGatewayConfigResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsDatabaseApiGatewayConfigResponse.java new file mode 100644 index 00000000000..d959739c7ff --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsDatabaseApiGatewayConfigResponse.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsDatabaseApiGatewayConfigResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + getDatabaseToolsDatabaseApiGatewayConfig() { + return databaseToolsDatabaseApiGatewayConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfig" + }) + private CreateDatabaseToolsDatabaseApiGatewayConfigResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @param databaseToolsDatabaseApiGatewayConfig the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfig(o.getDatabaseToolsDatabaseApiGatewayConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigResponse build() { + return new CreateDatabaseToolsDatabaseApiGatewayConfigResponse( + __httpStatusCode__, + headers, + location, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsDatabaseApiGatewayConfig=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigResponse)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigResponse other = + (CreateDatabaseToolsDatabaseApiGatewayConfigResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfig, + other.databaseToolsDatabaseApiGatewayConfig); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfig == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfig.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpServerResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpServerResponse.java new file mode 100644 index 00000000000..ca2cb6bd3d5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpServerResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsMcpServerResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer getDatabaseToolsMcpServer() { + return databaseToolsMcpServer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcWorkRequestId", + "opcRequestId", + "databaseToolsMcpServer" + }) + private CreateDatabaseToolsMcpServerResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.databaseToolsMcpServer = databaseToolsMcpServer; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @param databaseToolsMcpServer the value to set + * @return this builder + */ + public Builder databaseToolsMcpServer( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + this.databaseToolsMcpServer = databaseToolsMcpServer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsMcpServerResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + databaseToolsMcpServer(o.getDatabaseToolsMcpServer()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsMcpServerResponse build() { + return new CreateDatabaseToolsMcpServerResponse( + __httpStatusCode__, + headers, + location, + etag, + opcWorkRequestId, + opcRequestId, + databaseToolsMcpServer); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsMcpServer=").append(String.valueOf(databaseToolsMcpServer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpServerResponse)) { + return false; + } + + CreateDatabaseToolsMcpServerResponse other = (CreateDatabaseToolsMcpServerResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsMcpServer, other.databaseToolsMcpServer); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsMcpServer == null + ? 43 + : this.databaseToolsMcpServer.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpToolsetResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpToolsetResponse.java new file mode 100644 index 00000000000..00d2a3c9b57 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpToolsetResponse.java @@ -0,0 +1,299 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsMcpToolsetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset getDatabaseToolsMcpToolset() { + return databaseToolsMcpToolset; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcWorkRequestId", + "opcRequestId", + "databaseToolsMcpToolset" + }) + private CreateDatabaseToolsMcpToolsetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @param databaseToolsMcpToolset the value to set + * @return this builder + */ + public Builder databaseToolsMcpToolset( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset + databaseToolsMcpToolset) { + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsMcpToolsetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + databaseToolsMcpToolset(o.getDatabaseToolsMcpToolset()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsMcpToolsetResponse build() { + return new CreateDatabaseToolsMcpToolsetResponse( + __httpStatusCode__, + headers, + location, + etag, + opcWorkRequestId, + opcRequestId, + databaseToolsMcpToolset); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsMcpToolset=").append(String.valueOf(databaseToolsMcpToolset)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsMcpToolsetResponse)) { + return false; + } + + CreateDatabaseToolsMcpToolsetResponse other = (CreateDatabaseToolsMcpToolsetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsMcpToolset, other.databaseToolsMcpToolset); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsMcpToolset == null + ? 43 + : this.databaseToolsMcpToolset.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsSqlReportResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsSqlReportResponse.java new file mode 100644 index 00000000000..72d4ccc1c60 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsSqlReportResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class CreateDatabaseToolsSqlReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport getDatabaseToolsSqlReport() { + return databaseToolsSqlReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcWorkRequestId", + "opcRequestId", + "databaseToolsSqlReport" + }) + private CreateDatabaseToolsSqlReportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.databaseToolsSqlReport = databaseToolsSqlReport; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @param databaseToolsSqlReport the value to set + * @return this builder + */ + public Builder databaseToolsSqlReport( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + this.databaseToolsSqlReport = databaseToolsSqlReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsSqlReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + databaseToolsSqlReport(o.getDatabaseToolsSqlReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsSqlReportResponse build() { + return new CreateDatabaseToolsSqlReportResponse( + __httpStatusCode__, + headers, + location, + etag, + opcWorkRequestId, + opcRequestId, + databaseToolsSqlReport); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsSqlReport=").append(String.valueOf(databaseToolsSqlReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsSqlReportResponse)) { + return false; + } + + CreateDatabaseToolsSqlReportResponse other = (CreateDatabaseToolsSqlReportResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsSqlReport, other.databaseToolsSqlReport); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsSqlReport == null + ? 43 + : this.databaseToolsSqlReport.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigResponse.java new file mode 100644 index 00000000000..6a5821db94d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteDatabaseToolsDatabaseApiGatewayConfigResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigResponse build() { + return new DeleteDatabaseToolsDatabaseApiGatewayConfigResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsDatabaseApiGatewayConfigResponse)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpServerResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpServerResponse.java new file mode 100644 index 00000000000..34acc215e3f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpServerResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsMcpServerResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteDatabaseToolsMcpServerResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(DeleteDatabaseToolsMcpServerResponse 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 DeleteDatabaseToolsMcpServerResponse build() { + return new DeleteDatabaseToolsMcpServerResponse( + __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 DeleteDatabaseToolsMcpServerResponse)) { + return false; + } + + DeleteDatabaseToolsMcpServerResponse other = (DeleteDatabaseToolsMcpServerResponse) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpToolsetResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpToolsetResponse.java new file mode 100644 index 00000000000..6f395045051 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpToolsetResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsMcpToolsetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteDatabaseToolsMcpToolsetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsMcpToolsetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDatabaseToolsMcpToolsetResponse build() { + return new DeleteDatabaseToolsMcpToolsetResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsMcpToolsetResponse)) { + return false; + } + + DeleteDatabaseToolsMcpToolsetResponse other = (DeleteDatabaseToolsMcpToolsetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsSqlReportResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsSqlReportResponse.java new file mode 100644 index 00000000000..859b34975ed --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsSqlReportResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class DeleteDatabaseToolsSqlReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteDatabaseToolsSqlReportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsSqlReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDatabaseToolsSqlReportResponse build() { + return new DeleteDatabaseToolsSqlReportResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsSqlReportResponse)) { + return false; + } + + DeleteDatabaseToolsSqlReportResponse other = (DeleteDatabaseToolsSqlReportResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsDatabaseApiGatewayConfigResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsDatabaseApiGatewayConfigResponse.java new file mode 100644 index 00000000000..917ec2bbc6e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsDatabaseApiGatewayConfigResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsDatabaseApiGatewayConfigResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + getDatabaseToolsDatabaseApiGatewayConfig() { + return databaseToolsDatabaseApiGatewayConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfig" + }) + private GetDatabaseToolsDatabaseApiGatewayConfigResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @param databaseToolsDatabaseApiGatewayConfig the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsDatabaseApiGatewayConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfig(o.getDatabaseToolsDatabaseApiGatewayConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsDatabaseApiGatewayConfigResponse build() { + return new GetDatabaseToolsDatabaseApiGatewayConfigResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfig=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigResponse)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigResponse other = + (GetDatabaseToolsDatabaseApiGatewayConfigResponse) 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.databaseToolsDatabaseApiGatewayConfig, + other.databaseToolsDatabaseApiGatewayConfig); + } + + @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.databaseToolsDatabaseApiGatewayConfig == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfig.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpServerResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpServerResponse.java new file mode 100644 index 00000000000..d6800cbcd74 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpServerResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsMcpServerResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer getDatabaseToolsMcpServer() { + return databaseToolsMcpServer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsMcpServer" + }) + private GetDatabaseToolsMcpServerResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsMcpServer = databaseToolsMcpServer; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @param databaseToolsMcpServer the value to set + * @return this builder + */ + public Builder databaseToolsMcpServer( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + this.databaseToolsMcpServer = databaseToolsMcpServer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsMcpServerResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsMcpServer(o.getDatabaseToolsMcpServer()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsMcpServerResponse build() { + return new GetDatabaseToolsMcpServerResponse( + __httpStatusCode__, headers, etag, opcRequestId, databaseToolsMcpServer); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpServer=").append(String.valueOf(databaseToolsMcpServer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsMcpServerResponse)) { + return false; + } + + GetDatabaseToolsMcpServerResponse other = (GetDatabaseToolsMcpServerResponse) 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.databaseToolsMcpServer, other.databaseToolsMcpServer); + } + + @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.databaseToolsMcpServer == null + ? 43 + : this.databaseToolsMcpServer.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpToolsetResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpToolsetResponse.java new file mode 100644 index 00000000000..1bd2ae79c1f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpToolsetResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsMcpToolsetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset getDatabaseToolsMcpToolset() { + return databaseToolsMcpToolset; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsMcpToolset" + }) + private GetDatabaseToolsMcpToolsetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @param databaseToolsMcpToolset the value to set + * @return this builder + */ + public Builder databaseToolsMcpToolset( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset + databaseToolsMcpToolset) { + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsMcpToolsetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsMcpToolset(o.getDatabaseToolsMcpToolset()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsMcpToolsetResponse build() { + return new GetDatabaseToolsMcpToolsetResponse( + __httpStatusCode__, headers, etag, opcRequestId, databaseToolsMcpToolset); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpToolset=").append(String.valueOf(databaseToolsMcpToolset)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsMcpToolsetResponse)) { + return false; + } + + GetDatabaseToolsMcpToolsetResponse other = (GetDatabaseToolsMcpToolsetResponse) 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.databaseToolsMcpToolset, other.databaseToolsMcpToolset); + } + + @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.databaseToolsMcpToolset == null + ? 43 + : this.databaseToolsMcpToolset.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsSqlReportResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsSqlReportResponse.java new file mode 100644 index 00000000000..de67a638373 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsSqlReportResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class GetDatabaseToolsSqlReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport getDatabaseToolsSqlReport() { + return databaseToolsSqlReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsSqlReport" + }) + private GetDatabaseToolsSqlReportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsSqlReport = databaseToolsSqlReport; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @param databaseToolsSqlReport the value to set + * @return this builder + */ + public Builder databaseToolsSqlReport( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + this.databaseToolsSqlReport = databaseToolsSqlReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsSqlReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsSqlReport(o.getDatabaseToolsSqlReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsSqlReportResponse build() { + return new GetDatabaseToolsSqlReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, databaseToolsSqlReport); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsSqlReport=").append(String.valueOf(databaseToolsSqlReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsSqlReportResponse)) { + return false; + } + + GetDatabaseToolsSqlReportResponse other = (GetDatabaseToolsSqlReportResponse) 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.databaseToolsSqlReport, other.databaseToolsSqlReport); + } + + @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.databaseToolsSqlReport == null + ? 43 + : this.databaseToolsSqlReport.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsDatabaseApiGatewayConfigsResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsDatabaseApiGatewayConfigsResponse.java new file mode 100644 index 00000000000..bdd2bb8baed --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsDatabaseApiGatewayConfigsResponse.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsDatabaseApiGatewayConfigsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + databaseToolsDatabaseApiGatewayConfigCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + getDatabaseToolsDatabaseApiGatewayConfigCollection() { + return databaseToolsDatabaseApiGatewayConfigCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsDatabaseApiGatewayConfigCollection" + }) + private ListDatabaseToolsDatabaseApiGatewayConfigsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + databaseToolsDatabaseApiGatewayConfigCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsDatabaseApiGatewayConfigCollection = + databaseToolsDatabaseApiGatewayConfigCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + databaseToolsDatabaseApiGatewayConfigCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigCollection instance. + * @param databaseToolsDatabaseApiGatewayConfigCollection the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigCollection( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + databaseToolsDatabaseApiGatewayConfigCollection) { + this.databaseToolsDatabaseApiGatewayConfigCollection = + databaseToolsDatabaseApiGatewayConfigCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsDatabaseApiGatewayConfigsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsDatabaseApiGatewayConfigCollection( + o.getDatabaseToolsDatabaseApiGatewayConfigCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsDatabaseApiGatewayConfigsResponse build() { + return new ListDatabaseToolsDatabaseApiGatewayConfigsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsDatabaseApiGatewayConfigCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigCollection=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigsResponse)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigsResponse other = + (ListDatabaseToolsDatabaseApiGatewayConfigsResponse) 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.databaseToolsDatabaseApiGatewayConfigCollection, + other.databaseToolsDatabaseApiGatewayConfigCollection); + } + + @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.databaseToolsDatabaseApiGatewayConfigCollection == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpServersResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpServersResponse.java new file mode 100644 index 00000000000..98d20699dad --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpServersResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpServersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsMcpServerCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + databaseToolsMcpServerCollection; + + /** + * The returned DatabaseToolsMcpServerCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + getDatabaseToolsMcpServerCollection() { + return databaseToolsMcpServerCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsMcpServerCollection" + }) + private ListDatabaseToolsMcpServersResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + databaseToolsMcpServerCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsMcpServerCollection = databaseToolsMcpServerCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsMcpServerCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + databaseToolsMcpServerCollection; + + /** + * The returned DatabaseToolsMcpServerCollection instance. + * @param databaseToolsMcpServerCollection the value to set + * @return this builder + */ + public Builder databaseToolsMcpServerCollection( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + databaseToolsMcpServerCollection) { + this.databaseToolsMcpServerCollection = databaseToolsMcpServerCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsMcpServersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsMcpServerCollection(o.getDatabaseToolsMcpServerCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsMcpServersResponse build() { + return new ListDatabaseToolsMcpServersResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsMcpServerCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpServerCollection=") + .append(String.valueOf(databaseToolsMcpServerCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsMcpServersResponse)) { + return false; + } + + ListDatabaseToolsMcpServersResponse other = (ListDatabaseToolsMcpServersResponse) 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.databaseToolsMcpServerCollection, + other.databaseToolsMcpServerCollection); + } + + @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.databaseToolsMcpServerCollection == null + ? 43 + : this.databaseToolsMcpServerCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetVersionsResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetVersionsResponse.java new file mode 100644 index 00000000000..7ce2d45d1aa --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetVersionsResponse.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpToolsetVersionsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsMcpToolsetVersionCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + databaseToolsMcpToolsetVersionCollection; + + /** + * The returned DatabaseToolsMcpToolsetVersionCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + getDatabaseToolsMcpToolsetVersionCollection() { + return databaseToolsMcpToolsetVersionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsMcpToolsetVersionCollection" + }) + private ListDatabaseToolsMcpToolsetVersionsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + databaseToolsMcpToolsetVersionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsMcpToolsetVersionCollection = databaseToolsMcpToolsetVersionCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsMcpToolsetVersionCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + databaseToolsMcpToolsetVersionCollection; + + /** + * The returned DatabaseToolsMcpToolsetVersionCollection instance. + * @param databaseToolsMcpToolsetVersionCollection the value to set + * @return this builder + */ + public Builder databaseToolsMcpToolsetVersionCollection( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + databaseToolsMcpToolsetVersionCollection) { + this.databaseToolsMcpToolsetVersionCollection = + databaseToolsMcpToolsetVersionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsMcpToolsetVersionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsMcpToolsetVersionCollection( + o.getDatabaseToolsMcpToolsetVersionCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsMcpToolsetVersionsResponse build() { + return new ListDatabaseToolsMcpToolsetVersionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsMcpToolsetVersionCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpToolsetVersionCollection=") + .append(String.valueOf(databaseToolsMcpToolsetVersionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsMcpToolsetVersionsResponse)) { + return false; + } + + ListDatabaseToolsMcpToolsetVersionsResponse other = + (ListDatabaseToolsMcpToolsetVersionsResponse) 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.databaseToolsMcpToolsetVersionCollection, + other.databaseToolsMcpToolsetVersionCollection); + } + + @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.databaseToolsMcpToolsetVersionCollection == null + ? 43 + : this.databaseToolsMcpToolsetVersionCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetsResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetsResponse.java new file mode 100644 index 00000000000..7884955aa4f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsMcpToolsetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsMcpToolsetCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + databaseToolsMcpToolsetCollection; + + /** + * The returned DatabaseToolsMcpToolsetCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + getDatabaseToolsMcpToolsetCollection() { + return databaseToolsMcpToolsetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsMcpToolsetCollection" + }) + private ListDatabaseToolsMcpToolsetsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + databaseToolsMcpToolsetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsMcpToolsetCollection = databaseToolsMcpToolsetCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsMcpToolsetCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + databaseToolsMcpToolsetCollection; + + /** + * The returned DatabaseToolsMcpToolsetCollection instance. + * @param databaseToolsMcpToolsetCollection the value to set + * @return this builder + */ + public Builder databaseToolsMcpToolsetCollection( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + databaseToolsMcpToolsetCollection) { + this.databaseToolsMcpToolsetCollection = databaseToolsMcpToolsetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsMcpToolsetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsMcpToolsetCollection(o.getDatabaseToolsMcpToolsetCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsMcpToolsetsResponse build() { + return new ListDatabaseToolsMcpToolsetsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsMcpToolsetCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpToolsetCollection=") + .append(String.valueOf(databaseToolsMcpToolsetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsMcpToolsetsResponse)) { + return false; + } + + ListDatabaseToolsMcpToolsetsResponse other = (ListDatabaseToolsMcpToolsetsResponse) 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.databaseToolsMcpToolsetCollection, + other.databaseToolsMcpToolsetCollection); + } + + @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.databaseToolsMcpToolsetCollection == null + ? 43 + : this.databaseToolsMcpToolsetCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsSqlReportsResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsSqlReportsResponse.java new file mode 100644 index 00000000000..626e1d7c747 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsSqlReportsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class ListDatabaseToolsSqlReportsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsSqlReportCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + databaseToolsSqlReportCollection; + + /** + * The returned DatabaseToolsSqlReportCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + getDatabaseToolsSqlReportCollection() { + return databaseToolsSqlReportCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsSqlReportCollection" + }) + private ListDatabaseToolsSqlReportsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + databaseToolsSqlReportCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsSqlReportCollection = databaseToolsSqlReportCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsSqlReportCollection instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + databaseToolsSqlReportCollection; + + /** + * The returned DatabaseToolsSqlReportCollection instance. + * @param databaseToolsSqlReportCollection the value to set + * @return this builder + */ + public Builder databaseToolsSqlReportCollection( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + databaseToolsSqlReportCollection) { + this.databaseToolsSqlReportCollection = databaseToolsSqlReportCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsSqlReportsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsSqlReportCollection(o.getDatabaseToolsSqlReportCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsSqlReportsResponse build() { + return new ListDatabaseToolsSqlReportsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsSqlReportCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsSqlReportCollection=") + .append(String.valueOf(databaseToolsSqlReportCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsSqlReportsResponse)) { + return false; + } + + ListDatabaseToolsSqlReportsResponse other = (ListDatabaseToolsSqlReportsResponse) 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.databaseToolsSqlReportCollection, + other.databaseToolsSqlReportCollection); + } + + @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.databaseToolsSqlReportCollection == null + ? 43 + : this.databaseToolsSqlReportCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.java new file mode 100644 index 00000000000..996007493a2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + 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 DatabaseToolsDatabaseApiGatewayConfig resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsDatabaseApiGatewayConfig resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + getDatabaseToolsDatabaseApiGatewayConfig() { + return databaseToolsDatabaseApiGatewayConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsDatabaseApiGatewayConfig" + }) + private RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + } + + 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 DatabaseToolsDatabaseApiGatewayConfig resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsDatabaseApiGatewayConfig resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @param databaseToolsDatabaseApiGatewayConfig the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsDatabaseApiGatewayConfig(o.getDatabaseToolsDatabaseApiGatewayConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse build() { + return new RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + databaseToolsDatabaseApiGatewayConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfig=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse)) { + return false; + } + + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse other = + (RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse) 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.databaseToolsDatabaseApiGatewayConfig, + other.databaseToolsDatabaseApiGatewayConfig); + } + + @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.databaseToolsDatabaseApiGatewayConfig == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfig.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpServerLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpServerLockResponse.java new file mode 100644 index 00000000000..178782c12a8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpServerLockResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsMcpServerLockResponse 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 DatabaseToolsMcpServer resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpServer resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer getDatabaseToolsMcpServer() { + return databaseToolsMcpServer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsMcpServer" + }) + private RemoveDatabaseToolsMcpServerLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsMcpServer = databaseToolsMcpServer; + } + + 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 DatabaseToolsMcpServer resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpServer resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsMcpServer instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned DatabaseToolsMcpServer instance. + * @param databaseToolsMcpServer the value to set + * @return this builder + */ + public Builder databaseToolsMcpServer( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer) { + this.databaseToolsMcpServer = databaseToolsMcpServer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDatabaseToolsMcpServerLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsMcpServer(o.getDatabaseToolsMcpServer()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveDatabaseToolsMcpServerLockResponse build() { + return new RemoveDatabaseToolsMcpServerLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, databaseToolsMcpServer); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpServer=").append(String.valueOf(databaseToolsMcpServer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDatabaseToolsMcpServerLockResponse)) { + return false; + } + + RemoveDatabaseToolsMcpServerLockResponse other = + (RemoveDatabaseToolsMcpServerLockResponse) 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.databaseToolsMcpServer, other.databaseToolsMcpServer); + } + + @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.databaseToolsMcpServer == null + ? 43 + : this.databaseToolsMcpServer.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpToolsetLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpToolsetLockResponse.java new file mode 100644 index 00000000000..b948226b68b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpToolsetLockResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsMcpToolsetLockResponse + 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 DatabaseToolsMcpToolset resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpToolset resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset getDatabaseToolsMcpToolset() { + return databaseToolsMcpToolset; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsMcpToolset" + }) + private RemoveDatabaseToolsMcpToolsetLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + } + + 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 DatabaseToolsMcpToolset resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsMcpToolset resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsMcpToolset instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned DatabaseToolsMcpToolset instance. + * @param databaseToolsMcpToolset the value to set + * @return this builder + */ + public Builder databaseToolsMcpToolset( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset + databaseToolsMcpToolset) { + this.databaseToolsMcpToolset = databaseToolsMcpToolset; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDatabaseToolsMcpToolsetLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsMcpToolset(o.getDatabaseToolsMcpToolset()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveDatabaseToolsMcpToolsetLockResponse build() { + return new RemoveDatabaseToolsMcpToolsetLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, databaseToolsMcpToolset); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsMcpToolset=").append(String.valueOf(databaseToolsMcpToolset)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDatabaseToolsMcpToolsetLockResponse)) { + return false; + } + + RemoveDatabaseToolsMcpToolsetLockResponse other = + (RemoveDatabaseToolsMcpToolsetLockResponse) 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.databaseToolsMcpToolset, other.databaseToolsMcpToolset); + } + + @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.databaseToolsMcpToolset == null + ? 43 + : this.databaseToolsMcpToolset.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsSqlReportLockResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsSqlReportLockResponse.java new file mode 100644 index 00000000000..bf9e273fdfb --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsSqlReportLockResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class RemoveDatabaseToolsSqlReportLockResponse 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 DatabaseToolsSqlReport resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsSqlReport resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport getDatabaseToolsSqlReport() { + return databaseToolsSqlReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "databaseToolsSqlReport" + }) + private RemoveDatabaseToolsSqlReportLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.databaseToolsSqlReport = databaseToolsSqlReport; + } + + 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 DatabaseToolsSqlReport resource. + * + */ + private String etag; + + /** + * etag for the returned DatabaseToolsSqlReport resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @param databaseToolsSqlReport the value to set + * @return this builder + */ + public Builder databaseToolsSqlReport( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + this.databaseToolsSqlReport = databaseToolsSqlReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDatabaseToolsSqlReportLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + databaseToolsSqlReport(o.getDatabaseToolsSqlReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveDatabaseToolsSqlReportLockResponse build() { + return new RemoveDatabaseToolsSqlReportLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, databaseToolsSqlReport); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsSqlReport=").append(String.valueOf(databaseToolsSqlReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDatabaseToolsSqlReportLockResponse)) { + return false; + } + + RemoveDatabaseToolsSqlReportLockResponse other = + (RemoveDatabaseToolsSqlReportLockResponse) 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.databaseToolsSqlReport, other.databaseToolsSqlReport); + } + + @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.databaseToolsSqlReport == null + ? 43 + : this.databaseToolsSqlReport.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.java new file mode 100644 index 00000000000..c4735cd1bbc --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + getDatabaseToolsDatabaseApiGatewayConfig() { + return databaseToolsDatabaseApiGatewayConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfig" + }) + private UpdateDatabaseToolsDatabaseApiGatewayConfigResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfig instance. + * @param databaseToolsDatabaseApiGatewayConfig the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfig( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig) { + this.databaseToolsDatabaseApiGatewayConfig = databaseToolsDatabaseApiGatewayConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfig(o.getDatabaseToolsDatabaseApiGatewayConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigResponse build() { + return new UpdateDatabaseToolsDatabaseApiGatewayConfigResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfig=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigResponse)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigResponse) 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.databaseToolsDatabaseApiGatewayConfig, + other.databaseToolsDatabaseApiGatewayConfig); + } + + @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.databaseToolsDatabaseApiGatewayConfig == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfig.hashCode()); + return result; + } +} diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpServerResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpServerResponse.java new file mode 100644 index 00000000000..2fe2585ffc6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpServerResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsMcpServerResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UpdateDatabaseToolsMcpServerResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(UpdateDatabaseToolsMcpServerResponse 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 UpdateDatabaseToolsMcpServerResponse build() { + return new UpdateDatabaseToolsMcpServerResponse( + __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 UpdateDatabaseToolsMcpServerResponse)) { + return false; + } + + UpdateDatabaseToolsMcpServerResponse other = (UpdateDatabaseToolsMcpServerResponse) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpToolsetResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpToolsetResponse.java new file mode 100644 index 00000000000..a25579a2eef --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpToolsetResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsMcpToolsetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UpdateDatabaseToolsMcpToolsetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(UpdateDatabaseToolsMcpToolsetResponse 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 UpdateDatabaseToolsMcpToolsetResponse build() { + return new UpdateDatabaseToolsMcpToolsetResponse( + __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 UpdateDatabaseToolsMcpToolsetResponse)) { + return false; + } + + UpdateDatabaseToolsMcpToolsetResponse other = (UpdateDatabaseToolsMcpToolsetResponse) 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-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsSqlReportResponse.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsSqlReportResponse.java new file mode 100644 index 00000000000..1d57d29a956 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsSqlReportResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public class UpdateDatabaseToolsSqlReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @return the value + */ + public com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport getDatabaseToolsSqlReport() { + return databaseToolsSqlReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsSqlReport" + }) + private UpdateDatabaseToolsSqlReportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsSqlReport = databaseToolsSqlReport; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsSqlReport instance. + */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned DatabaseToolsSqlReport instance. + * @param databaseToolsSqlReport the value to set + * @return this builder + */ + public Builder databaseToolsSqlReport( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport) { + this.databaseToolsSqlReport = databaseToolsSqlReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDatabaseToolsSqlReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsSqlReport(o.getDatabaseToolsSqlReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDatabaseToolsSqlReportResponse build() { + return new UpdateDatabaseToolsSqlReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, databaseToolsSqlReport); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsSqlReport=").append(String.valueOf(databaseToolsSqlReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsSqlReportResponse)) { + return false; + } + + UpdateDatabaseToolsSqlReportResponse other = (UpdateDatabaseToolsSqlReportResponse) 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.databaseToolsSqlReport, other.databaseToolsSqlReport); + } + + @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.databaseToolsSqlReport == null + ? 43 + : this.databaseToolsSqlReport.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml new file mode 100644 index 00000000000..192305ce3c6 --- /dev/null +++ b/bmc-databasetoolsruntime/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 2.93.0 + ../pom.xml + + oci-java-sdk-databasetoolsruntime + Oracle Cloud Infrastructure SDK - Database Tools Runtime + This project contains the SDK used for Oracle Cloud Infrastructure Database Tools Runtime + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 2.93.0 + + + \ No newline at end of file diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntime.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntime.java new file mode 100644 index 00000000000..61c7e96af7a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntime.java @@ -0,0 +1,660 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; + +/** + * Use the Database Tools Runtime API to connect to databases through Database Tools Connections. + * 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: 20230222") +public interface DatabaseToolsRuntime 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); + + /** + * Attempts to cancel the specified work request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CancelWorkRequest API. + */ + CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); + + /** + * Creates a credential for the user specified by the key. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateCredential API. + */ + CreateCredentialResponse createCredential(CreateCredentialRequest request); + + /** + * Grants the EXECUTE privilege on the credential to the user specified by the key. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateCredentialExecuteGrantee API. + */ + CreateCredentialExecuteGranteeResponse createCredentialExecuteGrantee( + CreateCredentialExecuteGranteeRequest request); + + /** + * Creates a public synonym for the given credentials + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateCredentialPublicSynonym API. + */ + CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( + CreateCredentialPublicSynonymRequest request); + + /** + * Create a Database Tools database API gateway config pool 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 CreateDatabaseToolsDatabaseApiGatewayConfigPool API. + */ + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + createDatabaseToolsDatabaseApiGatewayConfigPool( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request); + + /** + * Create a Database Tools database API gateway config API spec 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec API. + */ + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request); + + /** + * Create a Database Tools database API gateway config auto API spec 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec API. + */ + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request); + + /** + * Delete credential + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteCredential API. + */ + DeleteCredentialResponse deleteCredential(DeleteCredentialRequest request); + + /** + * Delete execute grantee + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteCredentialExecuteGrantee API. + */ + DeleteCredentialExecuteGranteeResponse deleteCredentialExecuteGrantee( + DeleteCredentialExecuteGranteeRequest request); + + /** + * Deletes the public synonym + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteCredentialPublicSynonym API. + */ + DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( + DeleteCredentialPublicSynonymRequest request); + + /** + * Deletes the specified Database Tools database API gateway config pool 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPool API. + */ + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPool( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request); + + /** + * Deletes the specified Database Tools database API gateway config API spec 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec API. + */ + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request); + + /** + * Deletes the specified Database Tools database API gateway config auto API spec 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec API. + */ + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request); + + /** + * Execute statements on a database tools connection. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ExecuteSqlDatabaseToolsConnection API. + */ + ExecuteSqlDatabaseToolsConnectionResponse executeSqlDatabaseToolsConnection( + ExecuteSqlDatabaseToolsConnectionRequest request); + + /** + * Get a credential + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetCredential API. + */ + GetCredentialResponse getCredential(GetCredentialRequest request); + + /** + * Get a credential execute grantee + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetCredentialExecuteGrantee API. + */ + GetCredentialExecuteGranteeResponse getCredentialExecuteGrantee( + GetCredentialExecuteGranteeRequest request); + + /** + * Get a public synonym + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetCredentialPublicSynonym API. + */ + GetCredentialPublicSynonymResponse getCredentialPublicSynonym( + GetCredentialPublicSynonymRequest request); + + /** + * Get the content of a Database Tools database API gateway config + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigContent API. + */ + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + getDatabaseToolsDatabaseApiGatewayConfigContent( + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request); + + /** + * Get a Database Tools database API gateway config global 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 GetDatabaseToolsDatabaseApiGatewayConfigGlobal API. + */ + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + getDatabaseToolsDatabaseApiGatewayConfigGlobal( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request); + + /** + * Get a Database Tools database API gateway config pool 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 GetDatabaseToolsDatabaseApiGatewayConfigPool API. + */ + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + getDatabaseToolsDatabaseApiGatewayConfigPool( + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request); + + /** + * Get a Database Tools database API gateway config API spec 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec API. + */ + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request); + + /** + * Get a Database Tools database API gateway config auto API spec 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec API. + */ + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request); + + /** + * Get a property set + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetPropertySet API. + */ + GetPropertySetResponse getPropertySet(GetPropertySetRequest request); + + /** + * Get a user credential + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetUserCredential API. + */ + GetUserCredentialResponse getUserCredential(GetUserCredentialRequest request); + + /** + * Gets the status of the specified work request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Get a list of all execute grantees + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListCredentialExecuteGrantees API. + */ + ListCredentialExecuteGranteesResponse listCredentialExecuteGrantees( + ListCredentialExecuteGranteesRequest request); + + /** + * Get a list of all public synonyms for the given credential + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListCredentialPublicSynonyms API. + */ + ListCredentialPublicSynonymsResponse listCredentialPublicSynonyms( + ListCredentialPublicSynonymsRequest request); + + /** + * Returns a paginated list of `CredentialSummary` for the specified request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListCredentials API. + */ + ListCredentialsResponse listCredentials(ListCredentialsRequest request); + + /** + * Returns list of database API gateway config setting descriptions to be provided as advanced properties. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties API. + */ + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request); + + /** + * Returns a list of Database Tools database API gateway config API spec resources + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs API. + */ + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request); + + /** + * Returns a list of Database Tools database API gateway config auto API spec resources + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs API. + */ + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request); + + /** + * Returns a list of Database Tools database API gateway config pool resources + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigPools API. + */ + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + listDatabaseToolsDatabaseApiGatewayConfigPools( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request); + + /** + * Returns a paginated list of user `UserCredentialSummary` for the specified request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListUserCredentials API. + */ + ListUserCredentialsResponse listUserCredentials(ListUserCredentialsRequest request); + + /** + * Returns a paginated list of errors for the specified work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Returns a paginated list of logs for the specified work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestLogs API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequests API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Update a credential + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateCredential API. + */ + UpdateCredentialResponse updateCredential(UpdateCredentialRequest request); + + /** + * Update a Database Tools database API gateway config global 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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal API. + */ + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + updateDatabaseToolsDatabaseApiGatewayConfigGlobal( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request); + + /** + * Update a Database Tools database API gateway config pool 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPool API. + */ + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + updateDatabaseToolsDatabaseApiGatewayConfigPool( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request); + + /** + * Update a Database Tools database API gateway config API spec 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec API. + */ + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request); + + /** + * Update a Database Tools database API gateway config auto API spec 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec API. + */ + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request); + + /** + * Update a property set + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdatePropertySet API. + */ + UpdatePropertySetResponse updatePropertySet(UpdatePropertySetRequest request); + + /** + * Validates the specified Database Tools connection. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateDatabaseToolsConnection API. + */ + ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( + ValidateDatabaseToolsConnectionRequest request); + + /** + * Validates the Database Tools identity credentials by establishing a connection to the customer database + * and executing the dbms_cloud.send_request to validate the credential. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateDatabaseToolsIdentityCredential API. + */ + ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIdentityCredential( + ValidateDatabaseToolsIdentityCredentialRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DatabaseToolsRuntimeWaiters 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. + */ + DatabaseToolsRuntimePaginators getPaginators(); +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsync.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsync.java new file mode 100644 index 00000000000..26d2f65feed --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsync.java @@ -0,0 +1,817 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; + +/** + * Use the Database Tools Runtime API to connect to databases through Database Tools Connections. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public interface DatabaseToolsRuntimeAsync 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); + + /** + * Attempts to cancel the specified work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler); + + /** + * Creates a credential for the user specified by the key. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createCredential( + CreateCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Grants the EXECUTE privilege on the credential to the user specified by the key. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + createCredentialExecuteGrantee( + CreateCredentialExecuteGranteeRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialExecuteGranteeRequest, + CreateCredentialExecuteGranteeResponse> + handler); + + /** + * Creates a public synonym for the given credentials + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + createCredentialPublicSynonym( + CreateCredentialPublicSynonymRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialPublicSynonymRequest, + CreateCredentialPublicSynonymResponse> + handler); + + /** + * Create a Database Tools database API gateway config pool 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 + createDatabaseToolsDatabaseApiGatewayConfigPool( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler); + + /** + * Create a Database Tools database API gateway config API spec 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 + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler); + + /** + * Create a Database Tools database API gateway config auto API spec 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 + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler); + + /** + * Delete credential + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteCredential( + DeleteCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Delete execute grantee + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + deleteCredentialExecuteGrantee( + DeleteCredentialExecuteGranteeRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialExecuteGranteeRequest, + DeleteCredentialExecuteGranteeResponse> + handler); + + /** + * Deletes the public synonym + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + deleteCredentialPublicSynonym( + DeleteCredentialPublicSynonymRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialPublicSynonymRequest, + DeleteCredentialPublicSynonymResponse> + handler); + + /** + * Deletes the specified Database Tools database API gateway config pool 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 + deleteDatabaseToolsDatabaseApiGatewayConfigPool( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler); + + /** + * Deletes the specified Database Tools database API gateway config API spec 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 + deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler); + + /** + * Deletes the specified Database Tools database API gateway config auto API spec 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 + deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler); + + /** + * Execute statements on a database tools connection. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + executeSqlDatabaseToolsConnection( + ExecuteSqlDatabaseToolsConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ExecuteSqlDatabaseToolsConnectionRequest, + ExecuteSqlDatabaseToolsConnectionResponse> + handler); + + /** + * Get a credential + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCredential( + GetCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Get a credential execute grantee + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCredentialExecuteGrantee( + GetCredentialExecuteGranteeRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCredentialExecuteGranteeRequest, GetCredentialExecuteGranteeResponse> + handler); + + /** + * Get a public synonym + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCredentialPublicSynonym( + GetCredentialPublicSynonymRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCredentialPublicSynonymRequest, GetCredentialPublicSynonymResponse> + handler); + + /** + * Get the content of a Database Tools database API gateway config + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigContent( + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + handler); + + /** + * Get a Database Tools database API gateway config global 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 + getDatabaseToolsDatabaseApiGatewayConfigGlobal( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handler); + + /** + * Get a Database Tools database API gateway config pool 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 + getDatabaseToolsDatabaseApiGatewayConfigPool( + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler); + + /** + * Get a Database Tools database API gateway config API spec 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 + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler); + + /** + * Get a Database Tools database API gateway config auto API spec 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 + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler); + + /** + * Get a property set + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getPropertySet( + GetPropertySetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Get a user credential + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getUserCredential( + GetUserCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetUserCredentialRequest, GetUserCredentialResponse> + handler); + + /** + * Gets the status of the specified work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Get a list of all execute grantees + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listCredentialExecuteGrantees( + ListCredentialExecuteGranteesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse> + handler); + + /** + * Get a list of all public synonyms for the given credential + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listCredentialPublicSynonyms( + ListCredentialPublicSynonymsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse> + handler); + + /** + * Returns a paginated list of `CredentialSummary` for the specified request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listCredentials( + ListCredentialsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns list of database API gateway config setting descriptions to be provided as advanced properties. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + handler); + + /** + * Returns a list of Database Tools database API gateway config API spec resources + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + handler); + + /** + * Returns a list of Database Tools database API gateway config auto API spec resources + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + handler); + + /** + * Returns a list of Database Tools database API gateway config pool resources + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigPools( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + handler); + + /** + * Returns a paginated list of user `UserCredentialSummary` for the specified request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listUserCredentials( + ListUserCredentialsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListUserCredentialsRequest, ListUserCredentialsResponse> + handler); + + /** + * Returns a paginated list of errors for the specified work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Returns a paginated list of logs for the specified work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Update a credential + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateCredential( + UpdateCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Update a Database Tools database API gateway config global 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 + updateDatabaseToolsDatabaseApiGatewayConfigGlobal( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handler); + + /** + * Update a Database Tools database API gateway config pool 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 + updateDatabaseToolsDatabaseApiGatewayConfigPool( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler); + + /** + * Update a Database Tools database API gateway config API spec 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 + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler); + + /** + * Update a Database Tools database API gateway config auto API spec 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 + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler); + + /** + * Update a property set + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updatePropertySet( + UpdatePropertySetRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdatePropertySetRequest, UpdatePropertySetResponse> + handler); + + /** + * Validates the specified Database Tools connection. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + validateDatabaseToolsConnection( + ValidateDatabaseToolsConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsConnectionRequest, + ValidateDatabaseToolsConnectionResponse> + handler); + + /** + * Validates the Database Tools identity credentials by establishing a connection to the customer database + * and executing the dbms_cloud.send_request to validate the credential. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + validateDatabaseToolsIdentityCredential( + ValidateDatabaseToolsIdentityCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsIdentityCredentialRequest, + ValidateDatabaseToolsIdentityCredentialResponse> + handler); +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java new file mode 100644 index 00000000000..71741acb744 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java @@ -0,0 +1,2862 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.databasetoolsruntime.internal.http.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for DatabaseToolsRuntime 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: 20230222") +public class DatabaseToolsRuntimeAsyncClient implements DatabaseToolsRuntimeAsync { + /** + * Service instance for DatabaseToolsRuntime. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DatabaseToolsRuntimeClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://dbtools.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsRuntimeAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + 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 DatabaseToolsRuntimeAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( + "DatabaseToolsRuntimeAsyncClient", + "getDatabaseToolsDatabaseApiGatewayConfigContent")); + } + } + + /** + * 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, DatabaseToolsRuntimeAsyncClient> { + 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 DatabaseToolsRuntimeAsyncClient 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 DatabaseToolsRuntimeAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler) { + LOG.trace("Called async cancelWorkRequest"); + final CancelWorkRequestRequest interceptedRequest = + CancelWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CancelWorkRequest", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + CancelWorkRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CancelWorkRequestRequest, CancelWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createCredential( + CreateCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCredentialRequest, CreateCredentialResponse> + handler) { + LOG.trace("Called async createCredential"); + final CreateCredentialRequest interceptedRequest = + CreateCredentialConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCredentialConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CreateCredential", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + CreateCredentialConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialRequest, CreateCredentialResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateCredentialDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateCredentialRequest, CreateCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createCredentialExecuteGrantee( + CreateCredentialExecuteGranteeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCredentialExecuteGranteeRequest, + CreateCredentialExecuteGranteeResponse> + handler) { + LOG.trace("Called async createCredentialExecuteGrantee"); + final CreateCredentialExecuteGranteeRequest interceptedRequest = + CreateCredentialExecuteGranteeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCredentialExecuteGranteeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CreateCredentialExecuteGrantee", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateCredentialExecuteGranteeResponse> + transformer = + CreateCredentialExecuteGranteeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialExecuteGranteeRequest, + CreateCredentialExecuteGranteeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialExecuteGranteeRequest, + CreateCredentialExecuteGranteeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateCredentialExecuteGranteeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateCredentialExecuteGranteeRequest, CreateCredentialExecuteGranteeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createCredentialPublicSynonym( + CreateCredentialPublicSynonymRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCredentialPublicSynonymRequest, + CreateCredentialPublicSynonymResponse> + handler) { + LOG.trace("Called async createCredentialPublicSynonym"); + final CreateCredentialPublicSynonymRequest interceptedRequest = + CreateCredentialPublicSynonymConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCredentialPublicSynonymConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CreateCredentialPublicSynonym", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateCredentialPublicSynonymResponse> + transformer = + CreateCredentialPublicSynonymConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialPublicSynonymRequest, CreateCredentialPublicSynonymResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateCredentialPublicSynonymRequest, + CreateCredentialPublicSynonymResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateCredentialPublicSynonymDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateCredentialPublicSynonymRequest, CreateCredentialPublicSynonymResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsDatabaseApiGatewayConfigPool( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + LOG.trace("Called async createDatabaseToolsDatabaseApiGatewayConfigPool"); + final CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>, + java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + LOG.trace("Called async createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>, + java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + LOG.trace("Called async createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>, + java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteCredential( + DeleteCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialRequest, DeleteCredentialResponse> + handler) { + LOG.trace("Called async deleteCredential"); + final DeleteCredentialRequest interceptedRequest = + DeleteCredentialConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCredentialConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "DeleteCredential", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + DeleteCredentialConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialRequest, DeleteCredentialResponse>, + 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< + DeleteCredentialRequest, DeleteCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteCredentialExecuteGrantee( + DeleteCredentialExecuteGranteeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialExecuteGranteeRequest, + DeleteCredentialExecuteGranteeResponse> + handler) { + LOG.trace("Called async deleteCredentialExecuteGrantee"); + final DeleteCredentialExecuteGranteeRequest interceptedRequest = + DeleteCredentialExecuteGranteeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCredentialExecuteGranteeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "DeleteCredentialExecuteGrantee", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteCredentialExecuteGranteeResponse> + transformer = + DeleteCredentialExecuteGranteeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialExecuteGranteeRequest, + DeleteCredentialExecuteGranteeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialExecuteGranteeRequest, + DeleteCredentialExecuteGranteeResponse>, + 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< + DeleteCredentialExecuteGranteeRequest, DeleteCredentialExecuteGranteeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteCredentialPublicSynonym( + DeleteCredentialPublicSynonymRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialPublicSynonymRequest, + DeleteCredentialPublicSynonymResponse> + handler) { + LOG.trace("Called async deleteCredentialPublicSynonym"); + final DeleteCredentialPublicSynonymRequest interceptedRequest = + DeleteCredentialPublicSynonymConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCredentialPublicSynonymConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "DeleteCredentialPublicSynonym", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteCredentialPublicSynonymResponse> + transformer = + DeleteCredentialPublicSynonymConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialPublicSynonymRequest, DeleteCredentialPublicSynonymResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialPublicSynonymRequest, + DeleteCredentialPublicSynonymResponse>, + 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< + DeleteCredentialPublicSynonymRequest, DeleteCredentialPublicSynonymResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsDatabaseApiGatewayConfigPool( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsDatabaseApiGatewayConfigPool"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse>, + java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse>> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>, + java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + LOG.trace("Called async deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>, + java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + executeSqlDatabaseToolsConnection( + ExecuteSqlDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ExecuteSqlDatabaseToolsConnectionRequest, + ExecuteSqlDatabaseToolsConnectionResponse> + handler) { + LOG.trace("Called async executeSqlDatabaseToolsConnection"); + final ExecuteSqlDatabaseToolsConnectionRequest interceptedRequest = + ExecuteSqlDatabaseToolsConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExecuteSqlDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ExecuteSqlDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ExecuteSqlDatabaseToolsConnectionResponse> + transformer = + ExecuteSqlDatabaseToolsConnectionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ExecuteSqlDatabaseToolsConnectionRequest, + ExecuteSqlDatabaseToolsConnectionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ExecuteSqlDatabaseToolsConnectionRequest, + ExecuteSqlDatabaseToolsConnectionResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getExecuteSqlDatabaseToolsConnectionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ExecuteSqlDatabaseToolsConnectionRequest, + ExecuteSqlDatabaseToolsConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getCredential( + GetCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getCredential"); + final GetCredentialRequest interceptedRequest = + GetCredentialConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCredentialConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", "GetCredential", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetCredentialConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCredentialRequest, GetCredentialResponse>, + 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< + GetCredentialRequest, GetCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getCredentialExecuteGrantee( + GetCredentialExecuteGranteeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCredentialExecuteGranteeRequest, + GetCredentialExecuteGranteeResponse> + handler) { + LOG.trace("Called async getCredentialExecuteGrantee"); + final GetCredentialExecuteGranteeRequest interceptedRequest = + GetCredentialExecuteGranteeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCredentialExecuteGranteeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetCredentialExecuteGrantee", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetCredentialExecuteGranteeResponse> + transformer = + GetCredentialExecuteGranteeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCredentialExecuteGranteeRequest, GetCredentialExecuteGranteeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCredentialExecuteGranteeRequest, + GetCredentialExecuteGranteeResponse>, + 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< + GetCredentialExecuteGranteeRequest, GetCredentialExecuteGranteeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getCredentialPublicSynonym( + GetCredentialPublicSynonymRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCredentialPublicSynonymRequest, + GetCredentialPublicSynonymResponse> + handler) { + LOG.trace("Called async getCredentialPublicSynonym"); + final GetCredentialPublicSynonymRequest interceptedRequest = + GetCredentialPublicSynonymConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCredentialPublicSynonymConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetCredentialPublicSynonym", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetCredentialPublicSynonymResponse> + transformer = + GetCredentialPublicSynonymConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCredentialPublicSynonymRequest, GetCredentialPublicSynonymResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCredentialPublicSynonymRequest, + GetCredentialPublicSynonymResponse>, + 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< + GetCredentialPublicSynonymRequest, GetCredentialPublicSynonymResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigContent( + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + handler) { + LOG.trace("Called async getDatabaseToolsDatabaseApiGatewayConfigContent"); + final GetDatabaseToolsDatabaseApiGatewayConfigContentRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigContent", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse>, + java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigGlobal( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handler) { + LOG.trace("Called async getDatabaseToolsDatabaseApiGatewayConfigGlobal"); + final GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigGlobal", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>, + java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigPool( + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + LOG.trace("Called async getDatabaseToolsDatabaseApiGatewayConfigPool"); + final GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse>, + java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + LOG.trace("Called async getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>, + java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + LOG.trace("Called async getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>, + java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getPropertySet( + GetPropertySetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetPropertySetRequest, GetPropertySetResponse> + handler) { + LOG.trace("Called async getPropertySet"); + final GetPropertySetRequest interceptedRequest = + GetPropertySetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetPropertySetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetPropertySet", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + GetPropertySetConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetPropertySetRequest, GetPropertySetResponse>, + 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< + GetPropertySetRequest, GetPropertySetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getUserCredential( + GetUserCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetUserCredentialRequest, GetUserCredentialResponse> + handler) { + LOG.trace("Called async getUserCredential"); + final GetUserCredentialRequest interceptedRequest = + GetUserCredentialConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetUserCredentialConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetUserCredential", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + GetUserCredentialConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetUserCredentialRequest, GetUserCredentialResponse>, + 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< + GetUserCredentialRequest, GetUserCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + LOG.trace("Called async getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetWorkRequest", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetWorkRequestRequest, GetWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCredentialExecuteGrantees( + ListCredentialExecuteGranteesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse> + handler) { + LOG.trace("Called async listCredentialExecuteGrantees"); + final ListCredentialExecuteGranteesRequest interceptedRequest = + ListCredentialExecuteGranteesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCredentialExecuteGranteesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListCredentialExecuteGrantees", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCredentialExecuteGranteesResponse> + transformer = + ListCredentialExecuteGranteesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCredentialExecuteGranteesRequest, ListCredentialExecuteGranteesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse>, + 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< + ListCredentialExecuteGranteesRequest, ListCredentialExecuteGranteesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCredentialPublicSynonyms( + ListCredentialPublicSynonymsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse> + handler) { + LOG.trace("Called async listCredentialPublicSynonyms"); + final ListCredentialPublicSynonymsRequest interceptedRequest = + ListCredentialPublicSynonymsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCredentialPublicSynonymsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListCredentialPublicSynonyms", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCredentialPublicSynonymsResponse> + transformer = + ListCredentialPublicSynonymsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCredentialPublicSynonymsRequest, ListCredentialPublicSynonymsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse>, + 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< + ListCredentialPublicSynonymsRequest, ListCredentialPublicSynonymsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listCredentials( + ListCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCredentialsRequest, ListCredentialsResponse> + handler) { + LOG.trace("Called async listCredentials"); + final ListCredentialsRequest interceptedRequest = + ListCredentialsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCredentialsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListCredentials", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + ListCredentialsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCredentialsRequest, ListCredentialsResponse>, + 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< + ListCredentialsRequest, ListCredentialsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + handler) { + LOG.trace("Called async listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties"); + final ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter + .interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse>, + java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + handler) { + LOG.trace("Called async listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs"); + final ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>, + java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + handler) { + LOG.trace("Called async listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs"); + final ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>, + java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigPools( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + handler) { + LOG.trace("Called async listDatabaseToolsDatabaseApiGatewayConfigPools"); + final ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPools", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>, + java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listUserCredentials( + ListUserCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListUserCredentialsRequest, ListUserCredentialsResponse> + handler) { + LOG.trace("Called async listUserCredentials"); + final ListUserCredentialsRequest interceptedRequest = + ListUserCredentialsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListUserCredentialsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListUserCredentials", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + ListUserCredentialsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListUserCredentialsRequest, ListUserCredentialsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListUserCredentialsRequest, ListUserCredentialsResponse>, + 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< + ListUserCredentialsRequest, ListUserCredentialsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + LOG.trace("Called async listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + LOG.trace("Called async listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + LOG.trace("Called async listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListWorkRequests", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestsRequest, ListWorkRequestsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateCredential( + UpdateCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCredentialRequest, UpdateCredentialResponse> + handler) { + LOG.trace("Called async updateCredential"); + final UpdateCredentialRequest interceptedRequest = + UpdateCredentialConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCredentialConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "UpdateCredential", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + UpdateCredentialConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateCredentialRequest, UpdateCredentialResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateCredentialDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateCredentialRequest, UpdateCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfigGlobal( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsDatabaseApiGatewayConfigGlobal"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>, + java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest + .getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfigPool( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsDatabaseApiGatewayConfigPool"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>, + java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest + .getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>, + java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest + .getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + LOG.trace("Called async updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>, + java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest + .getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updatePropertySet( + UpdatePropertySetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdatePropertySetRequest, UpdatePropertySetResponse> + handler) { + LOG.trace("Called async updatePropertySet"); + final UpdatePropertySetRequest interceptedRequest = + UpdatePropertySetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdatePropertySetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "UpdatePropertySet", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + UpdatePropertySetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdatePropertySetRequest, UpdatePropertySetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdatePropertySetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdatePropertySetRequest, UpdatePropertySetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + validateDatabaseToolsConnection( + ValidateDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsConnectionRequest, + ValidateDatabaseToolsConnectionResponse> + handler) { + LOG.trace("Called async validateDatabaseToolsConnection"); + final ValidateDatabaseToolsConnectionRequest interceptedRequest = + ValidateDatabaseToolsConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateDatabaseToolsConnectionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ValidateDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> + transformer = + ValidateDatabaseToolsConnectionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsConnectionRequest, + ValidateDatabaseToolsConnectionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsConnectionRequest, + ValidateDatabaseToolsConnectionResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getValidateDatabaseToolsConnectionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ValidateDatabaseToolsConnectionRequest, + ValidateDatabaseToolsConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + validateDatabaseToolsIdentityCredential( + ValidateDatabaseToolsIdentityCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsIdentityCredentialRequest, + ValidateDatabaseToolsIdentityCredentialResponse> + handler) { + LOG.trace("Called async validateDatabaseToolsIdentityCredential"); + final ValidateDatabaseToolsIdentityCredentialRequest interceptedRequest = + ValidateDatabaseToolsIdentityCredentialConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateDatabaseToolsIdentityCredentialConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ValidateDatabaseToolsIdentityCredential", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> + transformer = + ValidateDatabaseToolsIdentityCredentialConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsIdentityCredentialRequest, + ValidateDatabaseToolsIdentityCredentialResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsIdentityCredentialRequest, + ValidateDatabaseToolsIdentityCredentialResponse>, + java.util.concurrent.Future< + ValidateDatabaseToolsIdentityCredentialResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getValidateDatabaseToolsIdentityCredentialDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ValidateDatabaseToolsIdentityCredentialRequest, + ValidateDatabaseToolsIdentityCredentialResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java new file mode 100644 index 00000000000..ba591cd20df --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java @@ -0,0 +1,2407 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.databasetoolsruntime.internal.http.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DatabaseToolsRuntimeClient implements DatabaseToolsRuntime { + /** + * Service instance for DatabaseToolsRuntime. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DatabaseToolsRuntimeClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://dbtools.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsRuntimeClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final DatabaseToolsRuntimeWaiters waiters; + + private final DatabaseToolsRuntimePaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + 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 DatabaseToolsRuntimeClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("DatabaseToolsRuntime-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DatabaseToolsRuntimeWaiters(executorService, this); + + this.paginators = new DatabaseToolsRuntimePaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( + "DatabaseToolsRuntimeClient", + "getDatabaseToolsDatabaseApiGatewayConfigContent")); + } + } + + /** + * 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, DatabaseToolsRuntimeClient> { + 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 DatabaseToolsRuntimeClient 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 DatabaseToolsRuntimeClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { + LOG.trace("Called cancelWorkRequest"); + final CancelWorkRequestRequest interceptedRequest = + CancelWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "CancelWorkRequest", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + CancelWorkRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateCredentialResponse createCredential(CreateCredentialRequest request) { + LOG.trace("Called createCredential"); + final CreateCredentialRequest interceptedRequest = + CreateCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCredentialConverter.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( + "DatabaseToolsRuntime", + "CreateCredential", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + CreateCredentialConverter.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.getCreateCredentialDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateCredentialExecuteGranteeResponse createCredentialExecuteGrantee( + CreateCredentialExecuteGranteeRequest request) { + LOG.trace("Called createCredentialExecuteGrantee"); + final CreateCredentialExecuteGranteeRequest interceptedRequest = + CreateCredentialExecuteGranteeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCredentialExecuteGranteeConverter.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( + "DatabaseToolsRuntime", + "CreateCredentialExecuteGrantee", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, CreateCredentialExecuteGranteeResponse> + transformer = + CreateCredentialExecuteGranteeConverter.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 + .getCreateCredentialExecuteGranteeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( + CreateCredentialPublicSynonymRequest request) { + LOG.trace("Called createCredentialPublicSynonym"); + final CreateCredentialPublicSynonymRequest interceptedRequest = + CreateCredentialPublicSynonymConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCredentialPublicSynonymConverter.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( + "DatabaseToolsRuntime", + "CreateCredentialPublicSynonym", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, CreateCredentialPublicSynonymResponse> + transformer = + CreateCredentialPublicSynonymConverter.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 + .getCreateCredentialPublicSynonymDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + createDatabaseToolsDatabaseApiGatewayConfigPool( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + LOG.trace("Called createDatabaseToolsDatabaseApiGatewayConfigPool"); + final CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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 + .getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + LOG.trace("Called createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.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( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter + .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 + .getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + LOG.trace("Called createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.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( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .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 + .getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteCredentialResponse deleteCredential(DeleteCredentialRequest request) { + LOG.trace("Called deleteCredential"); + final DeleteCredentialRequest interceptedRequest = + DeleteCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCredentialConverter.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( + "DatabaseToolsRuntime", + "DeleteCredential", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + DeleteCredentialConverter.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 DeleteCredentialExecuteGranteeResponse deleteCredentialExecuteGrantee( + DeleteCredentialExecuteGranteeRequest request) { + LOG.trace("Called deleteCredentialExecuteGrantee"); + final DeleteCredentialExecuteGranteeRequest interceptedRequest = + DeleteCredentialExecuteGranteeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCredentialExecuteGranteeConverter.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( + "DatabaseToolsRuntime", + "DeleteCredentialExecuteGrantee", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteCredentialExecuteGranteeResponse> + transformer = + DeleteCredentialExecuteGranteeConverter.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 DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( + DeleteCredentialPublicSynonymRequest request) { + LOG.trace("Called deleteCredentialPublicSynonym"); + final DeleteCredentialPublicSynonymRequest interceptedRequest = + DeleteCredentialPublicSynonymConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCredentialPublicSynonymConverter.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( + "DatabaseToolsRuntime", + "DeleteCredentialPublicSynonym", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteCredentialPublicSynonymResponse> + transformer = + DeleteCredentialPublicSynonymConverter.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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPool( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + LOG.trace("Called deleteDatabaseToolsDatabaseApiGatewayConfigPool"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + LOG.trace("Called deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.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( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter + .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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + LOG.trace("Called deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.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( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .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 ExecuteSqlDatabaseToolsConnectionResponse executeSqlDatabaseToolsConnection( + ExecuteSqlDatabaseToolsConnectionRequest request) { + LOG.trace("Called executeSqlDatabaseToolsConnection"); + final ExecuteSqlDatabaseToolsConnectionRequest interceptedRequest = + ExecuteSqlDatabaseToolsConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExecuteSqlDatabaseToolsConnectionConverter.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( + "DatabaseToolsRuntime", + "ExecuteSqlDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ExecuteSqlDatabaseToolsConnectionResponse> + transformer = + ExecuteSqlDatabaseToolsConnectionConverter.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 + .getExecuteSqlDatabaseToolsConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetCredentialResponse getCredential(GetCredentialRequest request) { + LOG.trace("Called getCredential"); + final GetCredentialRequest interceptedRequest = + GetCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCredentialConverter.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( + "DatabaseToolsRuntime", "GetCredential", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + GetCredentialConverter.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 GetCredentialExecuteGranteeResponse getCredentialExecuteGrantee( + GetCredentialExecuteGranteeRequest request) { + LOG.trace("Called getCredentialExecuteGrantee"); + final GetCredentialExecuteGranteeRequest interceptedRequest = + GetCredentialExecuteGranteeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCredentialExecuteGranteeConverter.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( + "DatabaseToolsRuntime", + "GetCredentialExecuteGrantee", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetCredentialExecuteGranteeConverter.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 GetCredentialPublicSynonymResponse getCredentialPublicSynonym( + GetCredentialPublicSynonymRequest request) { + LOG.trace("Called getCredentialPublicSynonym"); + final GetCredentialPublicSynonymRequest interceptedRequest = + GetCredentialPublicSynonymConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCredentialPublicSynonymConverter.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( + "DatabaseToolsRuntime", + "GetCredentialPublicSynonym", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetCredentialPublicSynonymConverter.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 GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + getDatabaseToolsDatabaseApiGatewayConfigContent( + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request) { + LOG.trace("Called getDatabaseToolsDatabaseApiGatewayConfigContent"); + final GetDatabaseToolsDatabaseApiGatewayConfigContentRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.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( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigContent", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.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 GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + getDatabaseToolsDatabaseApiGatewayConfigGlobal( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request) { + LOG.trace("Called getDatabaseToolsDatabaseApiGatewayConfigGlobal"); + final GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.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( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigGlobal", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.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 GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + getDatabaseToolsDatabaseApiGatewayConfigPool( + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + LOG.trace("Called getDatabaseToolsDatabaseApiGatewayConfigPool"); + final GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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 GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + LOG.trace("Called getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.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( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.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 GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + LOG.trace("Called getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.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( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .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 GetPropertySetResponse getPropertySet(GetPropertySetRequest request) { + LOG.trace("Called getPropertySet"); + final GetPropertySetRequest interceptedRequest = + GetPropertySetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetPropertySetConverter.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( + "DatabaseToolsRuntime", + "GetPropertySet", + ib.getRequestUri().toString(), + ""); + java.util.function.Function transformer = + GetPropertySetConverter.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 GetUserCredentialResponse getUserCredential(GetUserCredentialRequest request) { + LOG.trace("Called getUserCredential"); + final GetUserCredentialRequest interceptedRequest = + GetUserCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetUserCredentialConverter.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( + "DatabaseToolsRuntime", + "GetUserCredential", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetUserCredentialConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "GetWorkRequest", + ib.getRequestUri().toString(), + ""); + java.util.function.Function transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListCredentialExecuteGranteesResponse listCredentialExecuteGrantees( + ListCredentialExecuteGranteesRequest request) { + LOG.trace("Called listCredentialExecuteGrantees"); + final ListCredentialExecuteGranteesRequest interceptedRequest = + ListCredentialExecuteGranteesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCredentialExecuteGranteesConverter.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( + "DatabaseToolsRuntime", + "ListCredentialExecuteGrantees", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ListCredentialExecuteGranteesResponse> + transformer = + ListCredentialExecuteGranteesConverter.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 ListCredentialPublicSynonymsResponse listCredentialPublicSynonyms( + ListCredentialPublicSynonymsRequest request) { + LOG.trace("Called listCredentialPublicSynonyms"); + final ListCredentialPublicSynonymsRequest interceptedRequest = + ListCredentialPublicSynonymsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCredentialPublicSynonymsConverter.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( + "DatabaseToolsRuntime", + "ListCredentialPublicSynonyms", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListCredentialPublicSynonymsConverter.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 ListCredentialsResponse listCredentials(ListCredentialsRequest request) { + LOG.trace("Called listCredentials"); + final ListCredentialsRequest interceptedRequest = + ListCredentialsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCredentialsConverter.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( + "DatabaseToolsRuntime", + "ListCredentials", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListCredentialsConverter.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 ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request) { + LOG.trace("Called listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties"); + final ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter + .interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter.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( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter + .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 ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request) { + LOG.trace("Called listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs"); + final ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.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( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.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 ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request) { + LOG.trace("Called listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs"); + final ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.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( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter + .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 ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + listDatabaseToolsDatabaseApiGatewayConfigPools( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request) { + LOG.trace("Called listDatabaseToolsDatabaseApiGatewayConfigPools"); + final ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest interceptedRequest = + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.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( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPools", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + transformer = + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.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 ListUserCredentialsResponse listUserCredentials(ListUserCredentialsRequest request) { + LOG.trace("Called listUserCredentials"); + final ListUserCredentialsRequest interceptedRequest = + ListUserCredentialsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListUserCredentialsConverter.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( + "DatabaseToolsRuntime", + "ListUserCredentials", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListUserCredentialsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseToolsRuntime", + "ListWorkRequests", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request) { + LOG.trace("Called updateCredential"); + final UpdateCredentialRequest interceptedRequest = + UpdateCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCredentialConverter.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( + "DatabaseToolsRuntime", + "UpdateCredential", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + UpdateCredentialConverter.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.getUpdateCredentialDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + updateDatabaseToolsDatabaseApiGatewayConfigGlobal( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request) { + LOG.trace("Called updateDatabaseToolsDatabaseApiGatewayConfigGlobal"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.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( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.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 + .getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + updateDatabaseToolsDatabaseApiGatewayConfigPool( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + LOG.trace("Called updateDatabaseToolsDatabaseApiGatewayConfigPool"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPool", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.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 + .getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + LOG.trace("Called updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.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( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter + .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 + .getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + LOG.trace("Called updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); + final UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest interceptedRequest = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.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( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter + .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 + .getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdatePropertySetResponse updatePropertySet(UpdatePropertySetRequest request) { + LOG.trace("Called updatePropertySet"); + final UpdatePropertySetRequest interceptedRequest = + UpdatePropertySetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdatePropertySetConverter.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( + "DatabaseToolsRuntime", + "UpdatePropertySet", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + UpdatePropertySetConverter.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.getUpdatePropertySetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( + ValidateDatabaseToolsConnectionRequest request) { + LOG.trace("Called validateDatabaseToolsConnection"); + final ValidateDatabaseToolsConnectionRequest interceptedRequest = + ValidateDatabaseToolsConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateDatabaseToolsConnectionConverter.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( + "DatabaseToolsRuntime", + "ValidateDatabaseToolsConnection", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> + transformer = + ValidateDatabaseToolsConnectionConverter.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 + .getValidateDatabaseToolsConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIdentityCredential( + ValidateDatabaseToolsIdentityCredentialRequest request) { + LOG.trace("Called validateDatabaseToolsIdentityCredential"); + final ValidateDatabaseToolsIdentityCredentialRequest interceptedRequest = + ValidateDatabaseToolsIdentityCredentialConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateDatabaseToolsIdentityCredentialConverter.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( + "DatabaseToolsRuntime", + "ValidateDatabaseToolsIdentityCredential", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> + transformer = + ValidateDatabaseToolsIdentityCredentialConverter.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 + .getValidateDatabaseToolsIdentityCredentialDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DatabaseToolsRuntimeWaiters getWaiters() { + return waiters; + } + + @Override + public DatabaseToolsRuntimePaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimePaginators.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimePaginators.java new file mode 100644 index 00000000000..6ed9967f898 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimePaginators.java @@ -0,0 +1,1312 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DatabaseToolsRuntime 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: 20230222") +public class DatabaseToolsRuntimePaginators { + private final DatabaseToolsRuntime client; + + public DatabaseToolsRuntimePaginators(DatabaseToolsRuntime client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCredentialExecuteGrantees 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 + listCredentialExecuteGranteesResponseIterator( + final ListCredentialExecuteGranteesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCredentialExecuteGranteesRequest.Builder, ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse>( + new java.util.function.Supplier() { + @Override + public ListCredentialExecuteGranteesRequest.Builder get() { + return ListCredentialExecuteGranteesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCredentialExecuteGranteesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialExecuteGranteesRequest.Builder>, + ListCredentialExecuteGranteesRequest>() { + @Override + public ListCredentialExecuteGranteesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialExecuteGranteesRequest.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< + ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse>() { + @Override + public ListCredentialExecuteGranteesResponse apply( + ListCredentialExecuteGranteesRequest request) { + return client.listCredentialExecuteGrantees(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeSummary} objects + * contained in responses from the listCredentialExecuteGrantees 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.databasetoolsruntime.model.CredentialExecuteGranteeSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCredentialExecuteGranteesRecordIterator( + final ListCredentialExecuteGranteesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCredentialExecuteGranteesRequest.Builder, ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse, + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeSummary>( + new java.util.function.Supplier() { + @Override + public ListCredentialExecuteGranteesRequest.Builder get() { + return ListCredentialExecuteGranteesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCredentialExecuteGranteesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialExecuteGranteesRequest.Builder>, + ListCredentialExecuteGranteesRequest>() { + @Override + public ListCredentialExecuteGranteesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialExecuteGranteesRequest.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< + ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse>() { + @Override + public ListCredentialExecuteGranteesResponse apply( + ListCredentialExecuteGranteesRequest request) { + return client.listCredentialExecuteGrantees(request); + } + }, + new java.util.function.Function< + ListCredentialExecuteGranteesResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGranteeSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGranteeSummary> + apply(ListCredentialExecuteGranteesResponse response) { + return response.getCredentialExecuteGranteeCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCredentialPublicSynonyms 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 + listCredentialPublicSynonymsResponseIterator( + final ListCredentialPublicSynonymsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCredentialPublicSynonymsRequest.Builder, ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse>( + new java.util.function.Supplier() { + @Override + public ListCredentialPublicSynonymsRequest.Builder get() { + return ListCredentialPublicSynonymsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCredentialPublicSynonymsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialPublicSynonymsRequest.Builder>, + ListCredentialPublicSynonymsRequest>() { + @Override + public ListCredentialPublicSynonymsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialPublicSynonymsRequest.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< + ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse>() { + @Override + public ListCredentialPublicSynonymsResponse apply( + ListCredentialPublicSynonymsRequest request) { + return client.listCredentialPublicSynonyms(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymSummary} objects + * contained in responses from the listCredentialPublicSynonyms 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.databasetoolsruntime.model.CredentialPublicSynonymSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCredentialPublicSynonymsRecordIterator( + final ListCredentialPublicSynonymsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCredentialPublicSynonymsRequest.Builder, ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse, + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymSummary>( + new java.util.function.Supplier() { + @Override + public ListCredentialPublicSynonymsRequest.Builder get() { + return ListCredentialPublicSynonymsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCredentialPublicSynonymsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialPublicSynonymsRequest.Builder>, + ListCredentialPublicSynonymsRequest>() { + @Override + public ListCredentialPublicSynonymsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialPublicSynonymsRequest.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< + ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse>() { + @Override + public ListCredentialPublicSynonymsResponse apply( + ListCredentialPublicSynonymsRequest request) { + return client.listCredentialPublicSynonyms(request); + } + }, + new java.util.function.Function< + ListCredentialPublicSynonymsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonymSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonymSummary> + apply(ListCredentialPublicSynonymsResponse response) { + return response.getCredentialPublicSynonymCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCredentials 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 listCredentialsResponseIterator( + final ListCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCredentialsRequest.Builder, ListCredentialsRequest, ListCredentialsResponse>( + new java.util.function.Supplier() { + @Override + public ListCredentialsRequest.Builder get() { + return ListCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialsRequest.Builder>, + ListCredentialsRequest>() { + @Override + public ListCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialsRequest.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 ListCredentialsResponse apply(ListCredentialsRequest request) { + return client.listCredentials(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.CredentialSummary} objects + * contained in responses from the listCredentials 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.databasetoolsruntime.model.CredentialSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCredentialsRecordIterator(final ListCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCredentialsRequest.Builder, ListCredentialsRequest, ListCredentialsResponse, + com.oracle.bmc.databasetoolsruntime.model.CredentialSummary>( + new java.util.function.Supplier() { + @Override + public ListCredentialsRequest.Builder get() { + return ListCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialsRequest.Builder>, + ListCredentialsRequest>() { + @Override + public ListCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCredentialsRequest.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 ListCredentialsResponse apply(ListCredentialsRequest request) { + return client.listCredentials(request); + } + }, + new java.util.function.Function< + ListCredentialsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model.CredentialSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model.CredentialSummary> + apply(ListCredentialsResponse response) { + return response.getCredentialCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs 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 + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponseIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.Builder + get() { + return ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + .builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse, String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + .Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary} objects + * contained in responses from the listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs 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.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary} objects + * contained in responses received from the service. + */ + public Iterable< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary> + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRecordIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.Builder + get() { + return ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + .builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse, String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + .Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary> + apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + response) { + return response.getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs 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 + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponseIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.Builder + get() { + return ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse, + String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary} objects + * contained in responses from the listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs 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.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary} objects + * contained in responses received from the service. + */ + public Iterable< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary> + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRecordIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.Builder + get() { + return ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse, + String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary> + apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + response) { + return response.getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDatabaseToolsDatabaseApiGatewayConfigPools 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 + listDatabaseToolsDatabaseApiGatewayConfigPoolsResponseIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder get() { + return ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse, String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigPools(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolSummary} objects + * contained in responses from the listDatabaseToolsDatabaseApiGatewayConfigPools 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.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolSummary} objects + * contained in responses received from the service. + */ + public Iterable< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolSummary> + listDatabaseToolsDatabaseApiGatewayConfigPoolsRecordIterator( + final ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolSummary>( + new java.util.function.Supplier< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder get() { + return ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse, String>() { + @Override + public String apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.Builder>, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + .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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>() { + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse apply( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request) { + return client.listDatabaseToolsDatabaseApiGatewayConfigPools(request); + } + }, + new java.util.function.Function< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolSummary> + apply(ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse response) { + return response.getDatabaseToolsDatabaseApiGatewayConfigPoolCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listUserCredentials 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 listUserCredentialsResponseIterator( + final ListUserCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListUserCredentialsRequest.Builder, ListUserCredentialsRequest, + ListUserCredentialsResponse>( + new java.util.function.Supplier() { + @Override + public ListUserCredentialsRequest.Builder get() { + return ListUserCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListUserCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListUserCredentialsRequest.Builder>, + ListUserCredentialsRequest>() { + @Override + public ListUserCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListUserCredentialsRequest.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< + ListUserCredentialsRequest, ListUserCredentialsResponse>() { + @Override + public ListUserCredentialsResponse apply(ListUserCredentialsRequest request) { + return client.listUserCredentials(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.UserCredentialSummary} objects + * contained in responses from the listUserCredentials 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.databasetoolsruntime.model.UserCredentialSummary} objects + * contained in responses received from the service. + */ + public Iterable + listUserCredentialsRecordIterator(final ListUserCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListUserCredentialsRequest.Builder, ListUserCredentialsRequest, + ListUserCredentialsResponse, + com.oracle.bmc.databasetoolsruntime.model.UserCredentialSummary>( + new java.util.function.Supplier() { + @Override + public ListUserCredentialsRequest.Builder get() { + return ListUserCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListUserCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListUserCredentialsRequest.Builder>, + ListUserCredentialsRequest>() { + @Override + public ListUserCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListUserCredentialsRequest.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< + ListUserCredentialsRequest, ListUserCredentialsResponse>() { + @Override + public ListUserCredentialsResponse apply(ListUserCredentialsRequest request) { + return client.listUserCredentials(request); + } + }, + new java.util.function.Function< + ListUserCredentialsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model + .UserCredentialSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model.UserCredentialSummary> + apply(ListUserCredentialsResponse response) { + return response.getUserCredentialCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.WorkRequestError} objects + * contained in responses from the listWorkRequestErrors operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.WorkRequestError} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, + com.oracle.bmc.databasetoolsruntime.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model.WorkRequestError>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model.WorkRequestError> + apply(ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestLogs operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry} objects + * contained in responses from the listWorkRequestLogs operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry> + apply(ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequests operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary} objects + * contained in responses from the listWorkRequests operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse, + com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List< + com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary> + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestCollection().getItems(); + } + }); + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeWaiters.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeWaiters.java new file mode 100644 index 00000000000..75e5d4d8547 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeWaiters.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DatabaseToolsRuntime. + *

+ * 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: 20230222") +public class DatabaseToolsRuntimeWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DatabaseToolsRuntime client; + + public DatabaseToolsRuntimeWaiters( + java.util.concurrent.ExecutorService executorService, DatabaseToolsRuntime client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/SdkClientsMetadata.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/SdkClientsMetadata.java new file mode 100644 index 00000000000..57040fd037c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/SdkClientsMetadata.java @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime; + +import com.oracle.bmc.SdkClients; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@SdkClients({DatabaseToolsRuntimeAsyncClient.class, DatabaseToolsRuntimeClient.class}) +public final class SdkClientsMetadata {} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CancelWorkRequestConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CancelWorkRequestConverter.java new file mode 100644 index 00000000000..7d8bbdca44f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CancelWorkRequestConverter.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CancelWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CancelWorkRequestConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.CancelWorkRequestRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.CancelWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.CancelWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (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.databasetoolsruntime.responses.CancelWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.CancelWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.CancelWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CancelWorkRequestResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CancelWorkRequestResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CancelWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CancelWorkRequestResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CancelWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .CancelWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialConverter.java new file mode 100644 index 00000000000..c072592cb52 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialConverter.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialConverter { + 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(CreateCredentialConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notNull( + request.getCreateCredentialDetails(), "createCredentialDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials"); + + 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.databasetoolsruntime.responses.CreateCredentialResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.CreateCredentialResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.CreateCredentialResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CreateCredentialResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .Credential>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .Credential + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .Credential + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .Credential> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credential(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> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialExecuteGranteeConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialExecuteGranteeConverter.java new file mode 100644 index 00000000000..bd3198424fc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialExecuteGranteeConverter.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialExecuteGranteeConverter { + 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(CreateCredentialExecuteGranteeConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialExecuteGranteeRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .CreateCredentialExecuteGranteeRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialExecuteGranteeRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notNull( + request.getCreateCredentialExecuteGranteeDetails(), + "createCredentialExecuteGranteeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("executeGrantees"); + + 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.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CreateCredentialExecuteGranteeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialExecuteGrantee(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> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialExecuteGranteeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialPublicSynonymConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialPublicSynonymConverter.java new file mode 100644 index 00000000000..34ff5a310bc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateCredentialPublicSynonymConverter.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialPublicSynonymConverter { + 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(CreateCredentialPublicSynonymConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialPublicSynonymRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .CreateCredentialPublicSynonymRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.CreateCredentialPublicSynonymRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notNull( + request.getCreateCredentialPublicSynonymDetails(), + "createCredentialPublicSynonymDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("publicSynonyms"); + + 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.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CreateCredentialPublicSynonymResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialPublicSynonym(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> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .CreateCredentialPublicSynonymResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java new file mode 100644 index 00000000000..86c33ef58c3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter { + 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( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("apiSpecs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> 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.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java new file mode 100644 index 00000000000..101cfe69aff --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter { + 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( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("autoApiSpecs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> 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.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java new file mode 100644 index 00000000000..7da7534e89c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter { + 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( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPool( + response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> 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.databasetoolsruntime.responses + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialConverter.java new file mode 100644 index 00000000000..205f6d0960f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialConverter { + 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(DeleteCredentialConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())); + + 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.databasetoolsruntime.responses.DeleteCredentialResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.DeleteCredentialResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.DeleteCredentialResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.DeleteCredentialResponse"); + 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.databasetoolsruntime.responses + .DeleteCredentialResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialExecuteGranteeConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialExecuteGranteeConverter.java new file mode 100644 index 00000000000..958a540b626 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialExecuteGranteeConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialExecuteGranteeConverter { + 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(DeleteCredentialExecuteGranteeConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialExecuteGranteeRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .DeleteCredentialExecuteGranteeRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialExecuteGranteeRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notBlank(request.getExecuteGranteeKey(), "executeGranteeKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("executeGrantees") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExecuteGranteeKey())); + + 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.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.DeleteCredentialExecuteGranteeResponse"); + 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.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialExecuteGranteeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialPublicSynonymConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialPublicSynonymConverter.java new file mode 100644 index 00000000000..b5390721a5a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteCredentialPublicSynonymConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialPublicSynonymConverter { + 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(DeleteCredentialPublicSynonymConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialPublicSynonymRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .DeleteCredentialPublicSynonymRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.DeleteCredentialPublicSynonymRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notBlank(request.getPublicSynonymKey(), "publicSynonymKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("publicSynonyms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPublicSynonymKey())); + + 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.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.DeleteCredentialPublicSynonymResponse"); + 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.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .DeleteCredentialPublicSynonymResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java new file mode 100644 index 00000000000..37f7217f735 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter { + 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( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notBlank(request.getApiSpecKey(), "apiSpecKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("apiSpecs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApiSpecKey())); + + 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.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse"); + 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.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java new file mode 100644 index 00000000000..37bf270f9c8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter { + 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( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notBlank(request.getAutoApiSpecKey(), "autoApiSpecKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("autoApiSpecs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAutoApiSpecKey())); + + 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.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse"); + 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.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java new file mode 100644 index 00000000000..d2cc470735d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter { + 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( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())); + + 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.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse"); + 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.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ExecuteSqlDatabaseToolsConnectionConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ExecuteSqlDatabaseToolsConnectionConverter.java new file mode 100644 index 00000000000..33e2ab682c8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ExecuteSqlDatabaseToolsConnectionConverter.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ExecuteSqlDatabaseToolsConnectionConverter { + 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(ExecuteSqlDatabaseToolsConnectionConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ExecuteSqlDatabaseToolsConnectionRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ExecuteSqlDatabaseToolsConnectionRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ExecuteSqlDatabaseToolsConnectionRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notNull( + request.getExecuteSqlDatabaseToolsConnectionDetails(), + "executeSqlDatabaseToolsConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("actions") + .path("executeSql"); + + 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.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ExecuteSqlDatabaseToolsConnectionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .ExecuteSqlResponse>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .ExecuteSqlResponse + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .ExecuteSqlResponse + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .ExecuteSqlResponse> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.executeSqlResponse(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .ExecuteSqlDatabaseToolsConnectionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialConverter.java new file mode 100644 index 00000000000..2bd78bf07b8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialConverter { + 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(GetCredentialConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.GetCredentialRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.GetCredentialRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.GetCredentialRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())); + + 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.databasetoolsruntime.responses.GetCredentialResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetCredentialResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetCredentialResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetCredentialResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .Credential>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .Credential + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .Credential + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .Credential> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses.GetCredentialResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credential(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.databasetoolsruntime.responses.GetCredentialResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialExecuteGranteeConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialExecuteGranteeConverter.java new file mode 100644 index 00000000000..d36d9b9c6ec --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialExecuteGranteeConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialExecuteGranteeConverter { + 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(GetCredentialExecuteGranteeConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.GetCredentialExecuteGranteeRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.GetCredentialExecuteGranteeRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.GetCredentialExecuteGranteeRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notBlank(request.getExecuteGranteeKey(), "executeGranteeKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("executeGrantees") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExecuteGranteeKey())); + + 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.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetCredentialExecuteGranteeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGrantee> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialExecuteGrantee(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.databasetoolsruntime.responses + .GetCredentialExecuteGranteeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialPublicSynonymConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialPublicSynonymConverter.java new file mode 100644 index 00000000000..c0a5382b04c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetCredentialPublicSynonymConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialPublicSynonymConverter { + 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(GetCredentialPublicSynonymConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.GetCredentialPublicSynonymRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.GetCredentialPublicSynonymRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.GetCredentialPublicSynonymRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notBlank(request.getPublicSynonymKey(), "publicSynonymKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("publicSynonyms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPublicSynonymKey())); + + 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.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetCredentialPublicSynonymResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonym> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialPublicSynonym(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.databasetoolsruntime.responses + .GetCredentialPublicSynonymResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.java new file mode 100644 index 00000000000..567968ce894 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigContentConverter { + 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( + GetDatabaseToolsDatabaseApiGatewayConfigContentConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("content"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getIfNoneMatch() != null) { + ib.header("if-none-match", request.getIfNoneMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetDatabaseToolsDatabaseApiGatewayConfigContentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.io.InputStream>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class); + } + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.inputStream(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + responseWrapper = builder.build(); + + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.java new file mode 100644 index 00000000000..e3c2334504b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter { + 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( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getGlobalKey().getValue(), "globalKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("globals") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlobalKey().getValue())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigGlobal( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java new file mode 100644 index 00000000000..c4b5b86f68e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter { + 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( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notBlank(request.getApiSpecKey(), "apiSpecKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("apiSpecs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApiSpecKey())); + + 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.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java new file mode 100644 index 00000000000..ab5f3c847e4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter { + 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( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notBlank(request.getAutoApiSpecKey(), "autoApiSpecKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("autoApiSpecs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAutoApiSpecKey())); + + 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.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java new file mode 100644 index 00000000000..5303f4353a5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter { + 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( + GetDatabaseToolsDatabaseApiGatewayConfigPoolConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())); + + 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.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPool( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetPropertySetConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetPropertySetConverter.java new file mode 100644 index 00000000000..dcd92795b72 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetPropertySetConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetPropertySetConverter { + 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(GetPropertySetConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.GetPropertySetRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.GetPropertySetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.GetPropertySetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank( + request.getPropertySetKey().getValue(), "propertySetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("propertySets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPropertySetKey().getValue())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetPropertySetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetPropertySetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetPropertySetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetPropertySetResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetPropertySetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetPropertySetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .PropertySet>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .PropertySet + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .PropertySet + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .PropertySet> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses.GetPropertySetResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetPropertySetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.propertySet(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.databasetoolsruntime.responses.GetPropertySetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetUserCredentialConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetUserCredentialConverter.java new file mode 100644 index 00000000000..a4756c00ff4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetUserCredentialConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetUserCredentialConverter { + 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(GetUserCredentialConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.GetUserCredentialRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.GetUserCredentialRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.GetUserCredentialRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getUserKey(), "userKey must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("users") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getUserKey())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())); + + 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.databasetoolsruntime.responses.GetUserCredentialResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetUserCredentialResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetUserCredentialResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetUserCredentialResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetUserCredentialResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetUserCredentialResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .UserCredential>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .UserCredential + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .UserCredential + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .UserCredential> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .GetUserCredentialResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetUserCredentialResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.userCredential(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.databasetoolsruntime.responses + .GetUserCredentialResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetWorkRequestConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetWorkRequestConverter.java new file mode 100644 index 00000000000..291b8baecdd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/GetWorkRequestConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetWorkRequestConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.GetWorkRequestRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.GetWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.GetWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.GetWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .GetWorkRequestResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .GetWorkRequestResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.GetWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequest>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequest + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequest + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequest> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses.GetWorkRequestResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .GetWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequest(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Float.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.databasetoolsruntime.responses.GetWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialExecuteGranteesConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialExecuteGranteesConverter.java new file mode 100644 index 00000000000..ce31924741f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialExecuteGranteesConverter.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialExecuteGranteesConverter { + 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(ListCredentialExecuteGranteesConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListCredentialExecuteGranteesRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ListCredentialExecuteGranteesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListCredentialExecuteGranteesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("executeGrantees"); + + 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())); + } + + 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.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListCredentialExecuteGranteesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGranteeCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGranteeCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGranteeCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialExecuteGranteeCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialExecuteGranteeCollection(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.databasetoolsruntime.responses + .ListCredentialExecuteGranteesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialPublicSynonymsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialPublicSynonymsConverter.java new file mode 100644 index 00000000000..f03721e5158 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialPublicSynonymsConverter.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialPublicSynonymsConverter { + 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(ListCredentialPublicSynonymsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListCredentialPublicSynonymsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.ListCredentialPublicSynonymsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListCredentialPublicSynonymsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())) + .path("publicSynonyms"); + + 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())); + } + + 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.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListCredentialPublicSynonymsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonymCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonymCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonymCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialPublicSynonymCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialPublicSynonymCollection(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.databasetoolsruntime.responses + .ListCredentialPublicSynonymsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialsConverter.java new file mode 100644 index 00000000000..a37352dbdda --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListCredentialsConverter.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialsConverter { + 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(ListCredentialsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListCredentialsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.ListCredentialsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListCredentialsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials"); + + 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())); + } + + 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.databasetoolsruntime.responses.ListCredentialsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListCredentialsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListCredentialsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListCredentialsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .CredentialCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .CredentialCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialsResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credentialCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .ListCredentialsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter.java new file mode 100644 index 00000000000..09ae7dc0bf0 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter { + 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( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigAdvancedProperties"); + + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder + .databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection( + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.java new file mode 100644 index 00000000000..b49ed851d6f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter { + 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( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("apiSpecs"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection( + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.java new file mode 100644 index 00000000000..71bde7d0ab3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter { + 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( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("autoApiSpecs"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder + .databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection( + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.java new file mode 100644 index 00000000000..d26bca38bfb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter { + 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( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolCollection( + 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.databasetoolsruntime.responses + .ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListUserCredentialsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListUserCredentialsConverter.java new file mode 100644 index 00000000000..e1c910f0204 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListUserCredentialsConverter.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListUserCredentialsConverter { + 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(ListUserCredentialsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListUserCredentialsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.ListUserCredentialsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListUserCredentialsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getUserKey(), "userKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("users") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getUserKey())) + .path("credentials"); + + 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())); + } + + 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.databasetoolsruntime.responses.ListUserCredentialsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListUserCredentialsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListUserCredentialsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListUserCredentialsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListUserCredentialsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListUserCredentialsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .UserCredentialCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .UserCredentialCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .UserCredentialCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .UserCredentialCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListUserCredentialsResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListUserCredentialsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.userCredentialCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .ListUserCredentialsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestErrorsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestErrorsConverter.java new file mode 100644 index 00000000000..962441f6dd3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestErrorsConverter.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestErrorsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestErrorsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestErrorsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestErrorsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestErrorsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("errors"); + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + 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.databasetoolsruntime.responses.ListWorkRequestErrorsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestErrorsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestErrorsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestErrorsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestErrorsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestErrorsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestErrorCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestErrorCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestErrorCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestErrorCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestErrorsResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestErrorsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestErrorCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestErrorsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestLogsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestLogsConverter.java new file mode 100644 index 00000000000..a7f9720dfd5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestLogsConverter.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestLogsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestLogsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestLogsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("logs"); + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + 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.databasetoolsruntime.responses.ListWorkRequestLogsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestLogsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestLogsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestLogsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestLogsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestLogsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestLogEntryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestLogEntryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestLogEntryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestLogEntryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestLogsResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestLogsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestLogEntryCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestLogsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestsConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestsConverter.java new file mode 100644 index 00000000000..0cacb4e42ff --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ListWorkRequestsConverter.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestsConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestsRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ListWorkRequestsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20230222").path("workRequests"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getResourceIdentifier() != null) { + target = + target.queryParam( + "resourceIdentifier", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceIdentifier())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getOperationType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "operationType", + request.getOperationType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getCreatedByPrincipalId() != null) { + target = + target.queryParam( + "createdByPrincipalId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedByPrincipalId())); + } + + if (request.getStatus() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "status", + request.getStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + 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.databasetoolsruntime.responses.ListWorkRequestsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestsResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ListWorkRequestsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .WorkRequestCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestsResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ListWorkRequestsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestCollection(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.databasetoolsruntime.responses + .ListWorkRequestsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateCredentialConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateCredentialConverter.java new file mode 100644 index 00000000000..3024235ffd4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateCredentialConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateCredentialConverter { + 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(UpdateCredentialConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.UpdateCredentialRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.UpdateCredentialRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.UpdateCredentialRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Validate.notNull( + request.getUpdateCredentialDetails(), "updateCredentialDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("credentials") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCredentialKey())); + + 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.databasetoolsruntime.responses.UpdateCredentialResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.UpdateCredentialResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.UpdateCredentialResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateCredentialResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .UpdateCredentialResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.UpdateCredentialResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .Credential>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .Credential + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .Credential + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .Credential> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateCredentialResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .UpdateCredentialResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.credential(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.databasetoolsruntime.responses + .UpdateCredentialResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.java new file mode 100644 index 00000000000..6a76ff8524c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter { + 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( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getGlobalKey().getValue(), "globalKey must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("globals") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlobalKey().getValue())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigGlobal( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java new file mode 100644 index 00000000000..bd2efd3c19c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter { + 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( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notBlank(request.getApiSpecKey(), "apiSpecKey must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("apiSpecs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApiSpecKey())); + + 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.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java new file mode 100644 index 00000000000..dd036216916 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter { + 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( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notBlank(request.getAutoApiSpecKey(), "autoApiSpecKey must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())) + .path("autoApiSpecs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAutoApiSpecKey())); + + 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.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java new file mode 100644 index 00000000000..df2fa48d3f1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter { + 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( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Validate.notNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsDatabaseApiGatewayConfigs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsDatabaseApiGatewayConfigId())) + .path("pools") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPoolKey())); + + 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.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.databaseToolsDatabaseApiGatewayConfigPool( + response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasetoolsruntime.responses + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdatePropertySetConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdatePropertySetConverter.java new file mode 100644 index 00000000000..a7d8379a703 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/UpdatePropertySetConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdatePropertySetConverter { + 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(UpdatePropertySetConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests.UpdatePropertySetRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests.UpdatePropertySetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.UpdatePropertySetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notBlank( + request.getPropertySetKey().getValue(), "propertySetKey must not be blank"); + Validate.notNull( + request.getUpdatePropertySetDetails(), "updatePropertySetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("propertySets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPropertySetKey().getValue())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.UpdatePropertySetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.UpdatePropertySetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses.UpdatePropertySetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .UpdatePropertySetResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .UpdatePropertySetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.UpdatePropertySetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .PropertySet>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .PropertySet + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .PropertySet + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .PropertySet> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .UpdatePropertySetResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .UpdatePropertySetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.propertySet(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.databasetoolsruntime.responses + .UpdatePropertySetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ValidateDatabaseToolsConnectionConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ValidateDatabaseToolsConnectionConverter.java new file mode 100644 index 00000000000..e5e77e1b89d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ValidateDatabaseToolsConnectionConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ValidateDatabaseToolsConnectionConverter { + 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(ValidateDatabaseToolsConnectionConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ValidateDatabaseToolsConnectionRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ValidateDatabaseToolsConnectionRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests.ValidateDatabaseToolsConnectionRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Validate.notNull( + request.getValidateDatabaseToolsConnectionDetails(), + "validateDatabaseToolsConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsConnections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsConnectionId())) + .path("actions") + .path("validateConnection"); + + 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.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ValidateDatabaseToolsConnectionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionResult>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionResult + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionResult + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionResult> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse.Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.validateDatabaseToolsConnectionResult(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.databasetoolsruntime.responses + .ValidateDatabaseToolsConnectionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ValidateDatabaseToolsIdentityCredentialConverter.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ValidateDatabaseToolsIdentityCredentialConverter.java new file mode 100644 index 00000000000..aab7723eab7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/internal/http/ValidateDatabaseToolsIdentityCredentialConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasetoolsruntime.model.*; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ValidateDatabaseToolsIdentityCredentialConverter { + 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( + ValidateDatabaseToolsIdentityCredentialConverter.class); + + public static com.oracle.bmc.databasetoolsruntime.requests + .ValidateDatabaseToolsIdentityCredentialRequest + interceptRequest( + com.oracle.bmc.databasetoolsruntime.requests + .ValidateDatabaseToolsIdentityCredentialRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasetoolsruntime.requests + .ValidateDatabaseToolsIdentityCredentialRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getDatabaseToolsIdentityId(), "databaseToolsIdentityId must not be blank"); + Validate.notNull( + request.getValidateDatabaseToolsIdentityCredentialDetails(), + "validateDatabaseToolsIdentityCredentialDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230222") + .path("databaseToolsIdentities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseToolsIdentityId())) + .path("actions") + .path("validateCredential"); + + 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.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse>() { + @Override + public com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasetoolsruntime.responses.ValidateDatabaseToolsIdentityCredentialResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse + .Builder + builder = + com.oracle.bmc.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.validateDatabaseToolsIdentityCredentialResult( + 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.databasetoolsruntime.responses + .ValidateDatabaseToolsIdentityCredentialResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ActionType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ActionType.java new file mode 100644 index 00000000000..d6efb1fb8bf --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ActionType.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The type of action. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum ActionType { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ApexFaIntegrationPrerequisitesCheck.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ApexFaIntegrationPrerequisitesCheck.java new file mode 100644 index 00000000000..ad563f6fafd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ApexFaIntegrationPrerequisitesCheck.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The results of a prerequisites check for APEX FA integration + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApexFaIntegrationPrerequisitesCheck.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ApexFaIntegrationPrerequisitesCheck + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"status", "statusDetails"}) + public ApexFaIntegrationPrerequisitesCheck( + Status status, java.util.List statusDetails) { + super(); + this.status = status; + this.statusDetails = statusDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Status indicating the outcome of the prerequisites check. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status indicating the outcome of the prerequisites check. + * @param status the value to set + * @return this builder + **/ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * Messages describing the prerequisites check outcome. Messages can provide actionable information when the status indicates a failure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private java.util.List statusDetails; + + /** + * Messages describing the prerequisites check outcome. Messages can provide actionable information when the status indicates a failure. + * @param statusDetails the value to set + * @return this builder + **/ + public Builder statusDetails(java.util.List statusDetails) { + this.statusDetails = statusDetails; + this.__explicitlySet__.add("statusDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApexFaIntegrationPrerequisitesCheck build() { + ApexFaIntegrationPrerequisitesCheck model = + new ApexFaIntegrationPrerequisitesCheck(this.status, this.statusDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApexFaIntegrationPrerequisitesCheck model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusDetails")) { + this.statusDetails(model.getStatusDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Status indicating the outcome of the prerequisites check. + **/ + public enum Status { + Pass("PASS"), + Fail("FAIL"), + Error("ERROR"), + Unknown("UNKNOWN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Status indicating the outcome of the prerequisites check. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status indicating the outcome of the prerequisites check. + * @return the value + **/ + public Status getStatus() { + return status; + } + + /** + * Messages describing the prerequisites check outcome. Messages can provide actionable information when the status indicates a failure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private final java.util.List statusDetails; + + /** + * Messages describing the prerequisites check outcome. Messages can provide actionable information when the status indicates a failure. + * @return the value + **/ + public java.util.List getStatusDetails() { + return statusDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ApexFaIntegrationPrerequisitesCheck("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(", statusDetails=").append(String.valueOf(this.statusDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApexFaIntegrationPrerequisitesCheck)) { + return false; + } + + ApexFaIntegrationPrerequisitesCheck other = (ApexFaIntegrationPrerequisitesCheck) o; + return java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusDetails, other.statusDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.statusDetails == null ? 43 : this.statusDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ConnectionType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ConnectionType.java new file mode 100644 index 00000000000..ff78702824b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ConnectionType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The connection type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum ConnectionType { + OracleDatabase("ORACLE_DATABASE"), + Mysql("MYSQL"), + Postgresql("POSTGRESQL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ConnectionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectionType v : ConnectionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ConnectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ConnectionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialBasicDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialBasicDetails.java new file mode 100644 index 00000000000..3b471908c62 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialBasicDetails.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Details for the Credential for the Basic type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCredentialBasicDetails.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 CreateCredentialBasicDetails extends CreateCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * The username for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * The username for the new credential. + * @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 for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private char[] password; + + /** + * The password for the new credential. + * @param password the value to set + * @return this builder + **/ + public Builder password(char[] password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCredentialBasicDetails build() { + CreateCredentialBasicDetails model = + new CreateCredentialBasicDetails(this.key, this.userName, this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCredentialBasicDetails model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateCredentialBasicDetails(String key, String userName, String password) { + super(key); + this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateCredentialBasicDetails(String key, String userName, char[] password) { + super(key); + this.userName = userName; + this.password = password; + } + + /** + * The username for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * The username for the new credential. + * @return the value + **/ + public String getUserName() { + return userName; + } + + /** + * The password for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final char[] password; + + /** + * The password for the new credential. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the new credential. + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCredentialBasicDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", password=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialBasicDetails)) { + return false; + } + + CreateCredentialBasicDetails other = (CreateCredentialBasicDetails) o; + return java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.password, other.password) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialDetails.java new file mode 100644 index 00000000000..4ee79b8ad6c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialDetails.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Details for the new credential. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateCredentialDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateCredentialBasicDetails.class, + name = "BASIC" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateCredentialDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + protected CreateCredentialDetails(String key) { + super(); + this.key = key; + } + + /** + * The credential_name to be created + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The credential_name to be created + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialDetails)) { + return false; + } + + CreateCredentialDetails other = (CreateCredentialDetails) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialExecuteGranteeDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialExecuteGranteeDetails.java new file mode 100644 index 00000000000..b9d58f5fcf9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialExecuteGranteeDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Specifies the database user, the grantee, who is granted the execute privilege on the credential. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCredentialExecuteGranteeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateCredentialExecuteGranteeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + public CreateCredentialExecuteGranteeDetails(String key) { + super(); + this.key = key; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user to grant the EXECUTE privilege on the credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCredentialExecuteGranteeDetails build() { + CreateCredentialExecuteGranteeDetails model = + new CreateCredentialExecuteGranteeDetails(this.key); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCredentialExecuteGranteeDetails model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCredentialExecuteGranteeDetails("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialExecuteGranteeDetails)) { + return false; + } + + CreateCredentialExecuteGranteeDetails other = (CreateCredentialExecuteGranteeDetails) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialPublicSynonymDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialPublicSynonymDetails.java new file mode 100644 index 00000000000..435795c2b60 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialPublicSynonymDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The public synonym information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCredentialPublicSynonymDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateCredentialPublicSynonymDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + public CreateCredentialPublicSynonymDetails(String key) { + super(); + this.key = key; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the public synonym for the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The name of the public synonym for the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCredentialPublicSynonymDetails build() { + CreateCredentialPublicSynonymDetails model = + new CreateCredentialPublicSynonymDetails(this.key); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCredentialPublicSynonymDetails model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + 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 public synonym for the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The name of the public synonym for the credential + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCredentialPublicSynonymDetails("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialPublicSynonymDetails)) { + return false; + } + + CreateCredentialPublicSynonymDetails other = (CreateCredentialPublicSynonymDetails) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.java new file mode 100644 index 00000000000..22b16334a58 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config API spec sub resource to be created. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails + extends CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails { + @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("content") + private String content; + + public Builder content(String 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails build() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails model = + new CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails( + this.displayName, this.content); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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); + } + + @Deprecated + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails( + String displayName, String content) { + super(displayName, content); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails("); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java new file mode 100644 index 00000000000..dae01e1c892 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config API spec sub resource to be created. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "content"}) + protected CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + String displayName, String content) { + super(); + this.displayName = displayName; + this.content = content; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The content of a string-escaped Open API spec in JSON format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final String content; + + /** + * The content of a string-escaped Open API spec in JSON format. + * @return the value + **/ + public String getContent() { + return content; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && 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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.java new file mode 100644 index 00000000000..7da772d5858 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config auto API spec sub resource to be created. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails + extends CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails { + @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("databaseObjectName") + private String databaseObjectName; + + public Builder databaseObjectName(String databaseObjectName) { + this.databaseObjectName = databaseObjectName; + this.__explicitlySet__.add("databaseObjectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectType") + private DatabaseObjectType databaseObjectType; + + public Builder databaseObjectType(DatabaseObjectType databaseObjectType) { + this.databaseObjectType = databaseObjectType; + this.__explicitlySet__.add("databaseObjectType"); + 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("alias") + private String alias; + + public Builder alias(String alias) { + this.alias = alias; + this.__explicitlySet__.add("alias"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("operations") + private java.util.List operations; + + public Builder operations(java.util.List operations) { + this.operations = operations; + this.__explicitlySet__.add("operations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securitySchemes") + private java.util.List securitySchemes; + + public Builder securitySchemes(java.util.List securitySchemes) { + this.securitySchemes = securitySchemes; + this.__explicitlySet__.add("securitySchemes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private java.util.List roles; + + public Builder roles(java.util.List roles) { + this.roles = roles; + this.__explicitlySet__.add("roles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails build() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails model = + new CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails( + this.displayName, + this.databaseObjectName, + this.databaseObjectType, + this.description, + this.alias, + this.operations, + this.securitySchemes, + this.scope, + this.roles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseObjectName")) { + this.databaseObjectName(model.getDatabaseObjectName()); + } + if (model.wasPropertyExplicitlySet("databaseObjectType")) { + this.databaseObjectType(model.getDatabaseObjectType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("alias")) { + this.alias(model.getAlias()); + } + if (model.wasPropertyExplicitlySet("operations")) { + this.operations(model.getOperations()); + } + if (model.wasPropertyExplicitlySet("securitySchemes")) { + this.securitySchemes(model.getSecuritySchemes()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("roles")) { + this.roles(model.getRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails( + String displayName, + String databaseObjectName, + DatabaseObjectType databaseObjectType, + String description, + String alias, + java.util.List operations, + java.util.List securitySchemes, + String scope, + java.util.List roles) { + super( + displayName, + databaseObjectName, + databaseObjectType, + description, + alias, + operations, + securitySchemes, + scope, + roles); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails("); + 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 + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.java new file mode 100644 index 00000000000..f45255a999a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.java @@ -0,0 +1,377 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config auto API spec sub resource to be created. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "databaseObjectName", + "databaseObjectType", + "description", + "alias", + "operations", + "securitySchemes", + "scope", + "roles" + }) + protected CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + String displayName, + String databaseObjectName, + DatabaseObjectType databaseObjectType, + String description, + String alias, + java.util.List operations, + java.util.List securitySchemes, + String scope, + java.util.List roles) { + super(); + this.displayName = displayName; + this.databaseObjectName = databaseObjectName; + this.databaseObjectType = databaseObjectType; + this.description = description; + this.alias = alias; + this.operations = operations; + this.securitySchemes = securitySchemes; + this.scope = scope; + this.roles = roles; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The name of the database object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectName") + private final String databaseObjectName; + + /** + * The name of the database object. + * @return the value + **/ + public String getDatabaseObjectName() { + return databaseObjectName; + } + + /** + * The type of the database object. + **/ + public enum DatabaseObjectType { + Function("FUNCTION"), + Mview("MVIEW"), + Package("PACKAGE"), + Procedure("PROCEDURE"), + Table("TABLE"), + View("VIEW"), + Dualityview("DUALITYVIEW"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseObjectType v : DatabaseObjectType.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseObjectType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseObjectType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseObjectType: " + key); + } + }; + /** + * The type of the database object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectType") + private final DatabaseObjectType databaseObjectType; + + /** + * The type of the database object. + * @return the value + **/ + public DatabaseObjectType getDatabaseObjectType() { + return databaseObjectType; + } + + /** + * Description of the autoApiSpec. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the autoApiSpec. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Used as the URI path element for this object. When not specified the objectName lowercase is the default value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alias") + private final String alias; + + /** + * Used as the URI path element for this object. When not specified the objectName lowercase is the default value. + * @return the value + **/ + public String getAlias() { + return alias; + } + + /** + **/ + public enum Operations { + Read("READ"), + Write("WRITE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operations v : Operations.values()) { + map.put(v.getValue(), v); + } + } + + Operations(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operations create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Operations: " + key); + } + }; + /** + * The operations to limit access to this resource. If not specified then the default is ["READ","WRITE"]. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operations") + private final java.util.List operations; + + /** + * The operations to limit access to this resource. If not specified then the default is ["READ","WRITE"]. + * @return the value + **/ + public java.util.List getOperations() { + return operations; + } + + /** + **/ + public enum SecuritySchemes { + Basic("BASIC"), + Bearer("BEARER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SecuritySchemes v : SecuritySchemes.values()) { + map.put(v.getValue(), v); + } + } + + SecuritySchemes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SecuritySchemes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SecuritySchemes: " + key); + } + }; + /** + * The security schemes that can access this resource. If not specified then the resource is public. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securitySchemes") + private final java.util.List securitySchemes; + + /** + * The security schemes that can access this resource. If not specified then the resource is public. + * @return the value + **/ + public java.util.List getSecuritySchemes() { + return securitySchemes; + } + + /** + * The name of the database API gateway config privilege protecting the resource. Only valid for SCOPE JWT Profile pools and BEARER securitySchemes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * The name of the database API gateway config privilege protecting the resource. Only valid for SCOPE JWT Profile pools and BEARER securitySchemes. + * @return the value + **/ + public String getScope() { + return scope; + } + + /** + * The name of the database API gateway config roles protecting the resource. Only valid for RBAC JWT Profile pools and BEARER securitySchemes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private final java.util.List roles; + + /** + * The name of the database API gateway config roles protecting the resource. Only valid for RBAC JWT Profile pools and BEARER securitySchemes. + * @return the value + **/ + public java.util.List getRoles() { + return roles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseObjectName=").append(String.valueOf(this.databaseObjectName)); + sb.append(", databaseObjectType=").append(String.valueOf(this.databaseObjectType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", alias=").append(String.valueOf(this.alias)); + sb.append(", operations=").append(String.valueOf(this.operations)); + sb.append(", securitySchemes=").append(String.valueOf(this.securitySchemes)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", roles=").append(String.valueOf(this.roles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.databaseObjectName, other.databaseObjectName) + && java.util.Objects.equals(this.databaseObjectType, other.databaseObjectType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.alias, other.alias) + && java.util.Objects.equals(this.operations, other.operations) + && java.util.Objects.equals(this.securitySchemes, other.securitySchemes) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.roles, other.roles) + && 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.databaseObjectName == null + ? 43 + : this.databaseObjectName.hashCode()); + result = + (result * PRIME) + + (this.databaseObjectType == null + ? 43 + : this.databaseObjectType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode()); + result = (result * PRIME) + (this.operations == null ? 43 : this.operations.hashCode()); + result = + (result * PRIME) + + (this.securitySchemes == null ? 43 : this.securitySchemes.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.roles == null ? 43 : this.roles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java new file mode 100644 index 00000000000..103d4c59741 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub resource to be created. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails + extends CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails { + @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("poolRouteValue") + private String poolRouteValue; + + public Builder poolRouteValue(String poolRouteValue) { + this.poolRouteValue = poolRouteValue; + this.__explicitlySet__.add("poolRouteValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private Integer maxPoolSize; + + public Builder maxPoolSize(Integer maxPoolSize) { + this.maxPoolSize = maxPoolSize; + this.__explicitlySet__.add("maxPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private Integer minPoolSize; + + public Builder minPoolSize(Integer minPoolSize) { + this.minPoolSize = minPoolSize; + this.__explicitlySet__.add("minPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private Integer initialPoolSize; + + public Builder initialPoolSize(Integer initialPoolSize) { + this.initialPoolSize = initialPoolSize; + this.__explicitlySet__.add("initialPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private String jwtProfileJwkUrl; + + public Builder jwtProfileJwkUrl(String jwtProfileJwkUrl) { + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.__explicitlySet__.add("jwtProfileJwkUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private String jwtProfileIssuer; + + public Builder jwtProfileIssuer(String jwtProfileIssuer) { + this.jwtProfileIssuer = jwtProfileIssuer; + this.__explicitlySet__.add("jwtProfileIssuer"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private String jwtProfileAudience; + + public Builder jwtProfileAudience(String jwtProfileAudience) { + this.jwtProfileAudience = jwtProfileAudience; + this.__explicitlySet__.add("jwtProfileAudience"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private String jwtProfileRoleClaimName; + + public Builder jwtProfileRoleClaimName(String jwtProfileRoleClaimName) { + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.__explicitlySet__.add("jwtProfileRoleClaimName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private DatabaseActionsStatus databaseActionsStatus; + + public Builder databaseActionsStatus(DatabaseActionsStatus databaseActionsStatus) { + this.databaseActionsStatus = databaseActionsStatus; + this.__explicitlySet__.add("databaseActionsStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private RestEnabledSqlStatus restEnabledSqlStatus; + + public Builder restEnabledSqlStatus(RestEnabledSqlStatus restEnabledSqlStatus) { + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.__explicitlySet__.add("restEnabledSqlStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private java.util.Map advancedProperties; + + public Builder advancedProperties(java.util.Map advancedProperties) { + this.advancedProperties = advancedProperties; + this.__explicitlySet__.add("advancedProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails build() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails model = + new CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails( + this.displayName, + this.poolRouteValue, + this.databaseToolsConnectionId, + this.maxPoolSize, + this.minPoolSize, + this.initialPoolSize, + this.jwtProfileJwkUrl, + this.jwtProfileIssuer, + this.jwtProfileAudience, + this.jwtProfileRoleClaimName, + this.databaseActionsStatus, + this.restEnabledSqlStatus, + this.advancedProperties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("poolRouteValue")) { + this.poolRouteValue(model.getPoolRouteValue()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("maxPoolSize")) { + this.maxPoolSize(model.getMaxPoolSize()); + } + if (model.wasPropertyExplicitlySet("minPoolSize")) { + this.minPoolSize(model.getMinPoolSize()); + } + if (model.wasPropertyExplicitlySet("initialPoolSize")) { + this.initialPoolSize(model.getInitialPoolSize()); + } + if (model.wasPropertyExplicitlySet("jwtProfileJwkUrl")) { + this.jwtProfileJwkUrl(model.getJwtProfileJwkUrl()); + } + if (model.wasPropertyExplicitlySet("jwtProfileIssuer")) { + this.jwtProfileIssuer(model.getJwtProfileIssuer()); + } + if (model.wasPropertyExplicitlySet("jwtProfileAudience")) { + this.jwtProfileAudience(model.getJwtProfileAudience()); + } + if (model.wasPropertyExplicitlySet("jwtProfileRoleClaimName")) { + this.jwtProfileRoleClaimName(model.getJwtProfileRoleClaimName()); + } + if (model.wasPropertyExplicitlySet("databaseActionsStatus")) { + this.databaseActionsStatus(model.getDatabaseActionsStatus()); + } + if (model.wasPropertyExplicitlySet("restEnabledSqlStatus")) { + this.restEnabledSqlStatus(model.getRestEnabledSqlStatus()); + } + if (model.wasPropertyExplicitlySet("advancedProperties")) { + this.advancedProperties(model.getAdvancedProperties()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails( + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties) { + super( + displayName, + poolRouteValue, + databaseToolsConnectionId, + maxPoolSize, + minPoolSize, + initialPoolSize, + jwtProfileJwkUrl, + jwtProfileIssuer, + jwtProfileAudience, + jwtProfileRoleClaimName, + databaseActionsStatus, + restEnabledSqlStatus, + advancedProperties); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails("); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java new file mode 100644 index 00000000000..67c820fe490 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java @@ -0,0 +1,445 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub resource to be created. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "poolRouteValue", + "databaseToolsConnectionId", + "maxPoolSize", + "minPoolSize", + "initialPoolSize", + "jwtProfileJwkUrl", + "jwtProfileIssuer", + "jwtProfileAudience", + "jwtProfileRoleClaimName", + "databaseActionsStatus", + "restEnabledSqlStatus", + "advancedProperties" + }) + protected CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties) { + super(); + this.displayName = displayName; + this.poolRouteValue = poolRouteValue; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.maxPoolSize = maxPoolSize; + this.minPoolSize = minPoolSize; + this.initialPoolSize = initialPoolSize; + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.jwtProfileIssuer = jwtProfileIssuer; + this.jwtProfileAudience = jwtProfileAudience; + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.databaseActionsStatus = databaseActionsStatus; + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.advancedProperties = advancedProperties; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The pool route value provided in requests to target this pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRouteValue") + private final String poolRouteValue; + + /** + * The pool route value provided in requests to target this pool. + * @return the value + **/ + public String getPoolRouteValue() { + return poolRouteValue; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Specifies the maximum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private final Integer maxPoolSize; + + /** + * Specifies the maximum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMaxPoolSize() { + return maxPoolSize; + } + + /** + * Specifies the minimum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private final Integer minPoolSize; + + /** + * Specifies the minimum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMinPoolSize() { + return minPoolSize; + } + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private final Integer initialPoolSize; + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + * @return the value + **/ + public Integer getInitialPoolSize() { + return initialPoolSize; + } + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private final String jwtProfileJwkUrl; + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + * @return the value + **/ + public String getJwtProfileJwkUrl() { + return jwtProfileJwkUrl; + } + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private final String jwtProfileIssuer; + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + * @return the value + **/ + public String getJwtProfileIssuer() { + return jwtProfileIssuer; + } + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private final String jwtProfileAudience; + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + * @return the value + **/ + public String getJwtProfileAudience() { + return jwtProfileAudience; + } + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private final String jwtProfileRoleClaimName; + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + * @return the value + **/ + public String getJwtProfileRoleClaimName() { + return jwtProfileRoleClaimName; + } + + /** + * Specifies to enable the Database Actions feature. + **/ + public enum DatabaseActionsStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseActionsStatus v : DatabaseActionsStatus.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseActionsStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseActionsStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseActionsStatus: " + key); + } + }; + /** + * Specifies to enable the Database Actions feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private final DatabaseActionsStatus databaseActionsStatus; + + /** + * Specifies to enable the Database Actions feature. + * @return the value + **/ + public DatabaseActionsStatus getDatabaseActionsStatus() { + return databaseActionsStatus; + } + + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + public enum RestEnabledSqlStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RestEnabledSqlStatus v : RestEnabledSqlStatus.values()) { + map.put(v.getValue(), v); + } + } + + RestEnabledSqlStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RestEnabledSqlStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RestEnabledSqlStatus: " + key); + } + }; + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private final RestEnabledSqlStatus restEnabledSqlStatus; + + /** + * Specifies whether the REST-Enabled SQL service is active. + * @return the value + **/ + public RestEnabledSqlStatus getRestEnabledSqlStatus() { + return restEnabledSqlStatus; + } + + /** + * Advanced pool properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private final java.util.Map advancedProperties; + + /** + * Advanced pool properties. + * @return the value + **/ + public java.util.Map getAdvancedProperties() { + return advancedProperties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", poolRouteValue=").append(String.valueOf(this.poolRouteValue)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", maxPoolSize=").append(String.valueOf(this.maxPoolSize)); + sb.append(", minPoolSize=").append(String.valueOf(this.minPoolSize)); + sb.append(", initialPoolSize=").append(String.valueOf(this.initialPoolSize)); + sb.append(", jwtProfileJwkUrl=").append(String.valueOf(this.jwtProfileJwkUrl)); + sb.append(", jwtProfileIssuer=").append(String.valueOf(this.jwtProfileIssuer)); + sb.append(", jwtProfileAudience=").append(String.valueOf(this.jwtProfileAudience)); + sb.append(", jwtProfileRoleClaimName=") + .append(String.valueOf(this.jwtProfileRoleClaimName)); + sb.append(", databaseActionsStatus=").append(String.valueOf(this.databaseActionsStatus)); + sb.append(", restEnabledSqlStatus=").append(String.valueOf(this.restEnabledSqlStatus)); + sb.append(", advancedProperties=").append(String.valueOf(this.advancedProperties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.poolRouteValue, other.poolRouteValue) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.maxPoolSize, other.maxPoolSize) + && java.util.Objects.equals(this.minPoolSize, other.minPoolSize) + && java.util.Objects.equals(this.initialPoolSize, other.initialPoolSize) + && java.util.Objects.equals(this.jwtProfileJwkUrl, other.jwtProfileJwkUrl) + && java.util.Objects.equals(this.jwtProfileIssuer, other.jwtProfileIssuer) + && java.util.Objects.equals(this.jwtProfileAudience, other.jwtProfileAudience) + && java.util.Objects.equals( + this.jwtProfileRoleClaimName, other.jwtProfileRoleClaimName) + && java.util.Objects.equals(this.databaseActionsStatus, other.databaseActionsStatus) + && java.util.Objects.equals(this.restEnabledSqlStatus, other.restEnabledSqlStatus) + && java.util.Objects.equals(this.advancedProperties, other.advancedProperties) + && 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.poolRouteValue == null ? 43 : this.poolRouteValue.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.maxPoolSize == null ? 43 : this.maxPoolSize.hashCode()); + result = (result * PRIME) + (this.minPoolSize == null ? 43 : this.minPoolSize.hashCode()); + result = + (result * PRIME) + + (this.initialPoolSize == null ? 43 : this.initialPoolSize.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileJwkUrl == null ? 43 : this.jwtProfileJwkUrl.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileIssuer == null ? 43 : this.jwtProfileIssuer.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileAudience == null + ? 43 + : this.jwtProfileAudience.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileRoleClaimName == null + ? 43 + : this.jwtProfileRoleClaimName.hashCode()); + result = + (result * PRIME) + + (this.databaseActionsStatus == null + ? 43 + : this.databaseActionsStatus.hashCode()); + result = + (result * PRIME) + + (this.restEnabledSqlStatus == null + ? 43 + : this.restEnabledSqlStatus.hashCode()); + result = + (result * PRIME) + + (this.advancedProperties == null + ? 43 + : this.advancedProperties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/Credential.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/Credential.java new file mode 100644 index 00000000000..b3703b01bdf --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/Credential.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Credential information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Credential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Credential extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "userName", + "windowsDomain", + "enabled", + "keyType", + "owner", + "relatedResource" + }) + public Credential( + String key, + String userName, + String windowsDomain, + String enabled, + CredentialKeyType keyType, + String owner, + CredentialRelatedResource relatedResource) { + super(); + this.key = key; + this.userName = userName; + this.windowsDomain = windowsDomain; + this.enabled = enabled; + this.keyType = keyType; + this.owner = owner; + this.relatedResource = relatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * Name of the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @param userName the value to set + * @return this builder + **/ + public Builder userName(String userName) { + this.userName = userName; + this.__explicitlySet__.add("userName"); + return this; + } + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @param windowsDomain the value to set + * @return this builder + **/ + public Builder windowsDomain(String windowsDomain) { + this.windowsDomain = windowsDomain; + this.__explicitlySet__.add("windowsDomain"); + return this; + } + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @param enabled the value to set + * @return this builder + **/ + public Builder enabled(String enabled) { + this.enabled = enabled; + this.__explicitlySet__.add("enabled"); + return this; + } + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @param keyType the value to set + * @return this builder + **/ + public Builder keyType(CredentialKeyType keyType) { + this.keyType = keyType; + this.__explicitlySet__.add("keyType"); + return this; + } + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + /** + * Owner of the credential + * @param owner the value to set + * @return this builder + **/ + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private CredentialRelatedResource relatedResource; + + public Builder relatedResource(CredentialRelatedResource relatedResource) { + this.relatedResource = relatedResource; + this.__explicitlySet__.add("relatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Credential build() { + Credential model = + new Credential( + this.key, + this.userName, + this.windowsDomain, + this.enabled, + this.keyType, + this.owner, + this.relatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Credential model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("windowsDomain")) { + this.windowsDomain(model.getWindowsDomain()); + } + if (model.wasPropertyExplicitlySet("enabled")) { + this.enabled(model.getEnabled()); + } + if (model.wasPropertyExplicitlySet("keyType")) { + this.keyType(model.getKeyType()); + } + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("relatedResource")) { + this.relatedResource(model.getRelatedResource()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * Name of the credential + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @return the value + **/ + public String getUserName() { + return userName; + } + + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private final String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @return the value + **/ + public String getWindowsDomain() { + return windowsDomain; + } + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private final String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @return the value + **/ + public String getEnabled() { + return enabled; + } + + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private final CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @return the value + **/ + public CredentialKeyType getKeyType() { + return keyType; + } + + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private final String owner; + + /** + * Owner of the credential + * @return the value + **/ + public String getOwner() { + return owner; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private final CredentialRelatedResource relatedResource; + + public CredentialRelatedResource getRelatedResource() { + return relatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Credential("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", windowsDomain=").append(String.valueOf(this.windowsDomain)); + sb.append(", enabled=").append(String.valueOf(this.enabled)); + sb.append(", keyType=").append(String.valueOf(this.keyType)); + sb.append(", owner=").append(String.valueOf(this.owner)); + sb.append(", relatedResource=").append(String.valueOf(this.relatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Credential)) { + return false; + } + + Credential other = (Credential) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.windowsDomain, other.windowsDomain) + && java.util.Objects.equals(this.enabled, other.enabled) + && java.util.Objects.equals(this.keyType, other.keyType) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.relatedResource, other.relatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = + (result * PRIME) + + (this.windowsDomain == null ? 43 : this.windowsDomain.hashCode()); + result = (result * PRIME) + (this.enabled == null ? 43 : this.enabled.hashCode()); + result = (result * PRIME) + (this.keyType == null ? 43 : this.keyType.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = + (result * PRIME) + + (this.relatedResource == null ? 43 : this.relatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialCollection.java new file mode 100644 index 00000000000..54dc6ea0425 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of {@code CredentialSummary} items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CredentialCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of {@code CredentialSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of {@code CredentialSummary} items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialCollection build() { + CredentialCollection model = new CredentialCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of {@code CredentialSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of {@code CredentialSummary} items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialCollection("); + 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 CredentialCollection)) { + return false; + } + + CredentialCollection other = (CredentialCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGrantee.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGrantee.java new file mode 100644 index 00000000000..32b9182a135 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGrantee.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Specifies the database user, the grantee, who is granted the execute privilege on the credential. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialExecuteGrantee.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialExecuteGrantee + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + public CredentialExecuteGrantee(String key) { + super(); + this.key = key; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user to grant the EXECUTE privilege on the credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialExecuteGrantee build() { + CredentialExecuteGrantee model = new CredentialExecuteGrantee(this.key); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialExecuteGrantee model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialExecuteGrantee("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialExecuteGrantee)) { + return false; + } + + CredentialExecuteGrantee other = (CredentialExecuteGrantee) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeCollection.java new file mode 100644 index 00000000000..c3d8b3c8ccd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of {@code CredentialExecuteGranteeSummary} items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialExecuteGranteeCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialExecuteGranteeCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CredentialExecuteGranteeCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of {@code CredentialExecuteGranteeSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of {@code CredentialExecuteGranteeSummary} items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialExecuteGranteeCollection build() { + CredentialExecuteGranteeCollection model = + new CredentialExecuteGranteeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialExecuteGranteeCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of {@code CredentialExecuteGranteeSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of {@code CredentialExecuteGranteeSummary} items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialExecuteGranteeCollection("); + 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 CredentialExecuteGranteeCollection)) { + return false; + } + + CredentialExecuteGranteeCollection other = (CredentialExecuteGranteeCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeSummary.java new file mode 100644 index 00000000000..e8c1f9851a2 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeSummary.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Specifies the database user, the grantee, who is granted the execute privilege on the credential. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialExecuteGranteeSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialExecuteGranteeSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + public CredentialExecuteGranteeSummary(String key) { + super(); + this.key = key; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user to grant the EXECUTE privilege on the credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialExecuteGranteeSummary build() { + CredentialExecuteGranteeSummary model = new CredentialExecuteGranteeSummary(this.key); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialExecuteGranteeSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The name of the user to grant the EXECUTE privilege on the credential. + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialExecuteGranteeSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialExecuteGranteeSummary)) { + return false; + } + + CredentialExecuteGranteeSummary other = (CredentialExecuteGranteeSummary) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialKeyType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialKeyType.java new file mode 100644 index 00000000000..3e8bddaa28e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialKeyType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The credential key type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum CredentialKeyType { + CredentialName("CREDENTIAL_NAME"), + PublicSynonym("PUBLIC_SYNONYM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CredentialKeyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CredentialKeyType v : CredentialKeyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CredentialKeyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialKeyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CredentialKeyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonym.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonym.java new file mode 100644 index 00000000000..38e716f8455 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonym.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The public synonym information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialPublicSynonym.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialPublicSynonym + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + public CredentialPublicSynonym(String key) { + super(); + this.key = key; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the public synonym for the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The name of the public synonym for the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialPublicSynonym build() { + CredentialPublicSynonym model = new CredentialPublicSynonym(this.key); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialPublicSynonym model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + 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 public synonym for the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The name of the public synonym for the credential + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialPublicSynonym("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialPublicSynonym)) { + return false; + } + + CredentialPublicSynonym other = (CredentialPublicSynonym) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymCollection.java new file mode 100644 index 00000000000..d4c5c5cba87 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of {@code CredentialPublicSynonymSummary} items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialPublicSynonymCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialPublicSynonymCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CredentialPublicSynonymCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of {@code CredentialPublicSynonymSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of {@code CredentialPublicSynonymSummary} items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialPublicSynonymCollection build() { + CredentialPublicSynonymCollection model = + new CredentialPublicSynonymCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialPublicSynonymCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of {@code CredentialPublicSynonymSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of {@code CredentialPublicSynonymSummary} items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialPublicSynonymCollection("); + 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 CredentialPublicSynonymCollection)) { + return false; + } + + CredentialPublicSynonymCollection other = (CredentialPublicSynonymCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymSummary.java new file mode 100644 index 00000000000..74654fb07cd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymSummary.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The public synonym information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialPublicSynonymSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialPublicSynonymSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key"}) + public CredentialPublicSynonymSummary(String key) { + super(); + this.key = key; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the public synonym for the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The name of the public synonym for the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialPublicSynonymSummary build() { + CredentialPublicSynonymSummary model = new CredentialPublicSynonymSummary(this.key); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialPublicSynonymSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + 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 public synonym for the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The name of the public synonym for the credential + * @return the value + **/ + public String getKey() { + return key; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialPublicSynonymSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialPublicSynonymSummary)) { + return false; + } + + CredentialPublicSynonymSummary other = (CredentialPublicSynonymSummary) o; + return java.util.Objects.equals(this.key, other.key) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResource.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResource.java new file mode 100644 index 00000000000..18f6fd6e5dc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResource.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A related resource for a credential. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialRelatedResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialRelatedResource + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "identifier"}) + public CredentialRelatedResource(CredentialRelatedResourceType type, String identifier) { + super(); + this.type = type; + this.identifier = identifier; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The related resource type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private CredentialRelatedResourceType type; + + /** + * The related resource type. + * @param type the value to set + * @return this builder + **/ + public Builder type(CredentialRelatedResourceType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + * @param identifier the value to set + * @return this builder + **/ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialRelatedResource build() { + CredentialRelatedResource model = + new CredentialRelatedResource(this.type, this.identifier); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialRelatedResource model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The related resource type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final CredentialRelatedResourceType type; + + /** + * The related resource type. + * @return the value + **/ + public CredentialRelatedResourceType getType() { + return type; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related resource. + * @return the value + **/ + public String getIdentifier() { + return identifier; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialRelatedResource("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialRelatedResource)) { + return false; + } + + CredentialRelatedResource other = (CredentialRelatedResource) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.identifier, other.identifier) + && 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.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResourceType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResourceType.java new file mode 100644 index 00000000000..72044463075 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResourceType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The related resource type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum CredentialRelatedResourceType { + DatabaseToolsIdentity("DATABASE_TOOLS_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(CredentialRelatedResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CredentialRelatedResourceType v : CredentialRelatedResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CredentialRelatedResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialRelatedResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CredentialRelatedResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialSummary.java new file mode 100644 index 00000000000..98cad022926 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialSummary.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Credential information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CredentialSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "userName", + "windowsDomain", + "enabled", + "keyType", + "owner", + "relatedResource" + }) + public CredentialSummary( + String key, + String userName, + String windowsDomain, + String enabled, + CredentialKeyType keyType, + String owner, + CredentialRelatedResource relatedResource) { + super(); + this.key = key; + this.userName = userName; + this.windowsDomain = windowsDomain; + this.enabled = enabled; + this.keyType = keyType; + this.owner = owner; + this.relatedResource = relatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * Name of the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @param userName the value to set + * @return this builder + **/ + public Builder userName(String userName) { + this.userName = userName; + this.__explicitlySet__.add("userName"); + return this; + } + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @param windowsDomain the value to set + * @return this builder + **/ + public Builder windowsDomain(String windowsDomain) { + this.windowsDomain = windowsDomain; + this.__explicitlySet__.add("windowsDomain"); + return this; + } + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @param enabled the value to set + * @return this builder + **/ + public Builder enabled(String enabled) { + this.enabled = enabled; + this.__explicitlySet__.add("enabled"); + return this; + } + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @param keyType the value to set + * @return this builder + **/ + public Builder keyType(CredentialKeyType keyType) { + this.keyType = keyType; + this.__explicitlySet__.add("keyType"); + return this; + } + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + /** + * Owner of the credential + * @param owner the value to set + * @return this builder + **/ + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private CredentialRelatedResource relatedResource; + + public Builder relatedResource(CredentialRelatedResource relatedResource) { + this.relatedResource = relatedResource; + this.__explicitlySet__.add("relatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CredentialSummary build() { + CredentialSummary model = + new CredentialSummary( + this.key, + this.userName, + this.windowsDomain, + this.enabled, + this.keyType, + this.owner, + this.relatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CredentialSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("windowsDomain")) { + this.windowsDomain(model.getWindowsDomain()); + } + if (model.wasPropertyExplicitlySet("enabled")) { + this.enabled(model.getEnabled()); + } + if (model.wasPropertyExplicitlySet("keyType")) { + this.keyType(model.getKeyType()); + } + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("relatedResource")) { + this.relatedResource(model.getRelatedResource()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * Name of the credential + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @return the value + **/ + public String getUserName() { + return userName; + } + + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private final String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @return the value + **/ + public String getWindowsDomain() { + return windowsDomain; + } + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private final String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @return the value + **/ + public String getEnabled() { + return enabled; + } + + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private final CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @return the value + **/ + public CredentialKeyType getKeyType() { + return keyType; + } + + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private final String owner; + + /** + * Owner of the credential + * @return the value + **/ + public String getOwner() { + return owner; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private final CredentialRelatedResource relatedResource; + + public CredentialRelatedResource getRelatedResource() { + return relatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", windowsDomain=").append(String.valueOf(this.windowsDomain)); + sb.append(", enabled=").append(String.valueOf(this.enabled)); + sb.append(", keyType=").append(String.valueOf(this.keyType)); + sb.append(", owner=").append(String.valueOf(this.owner)); + sb.append(", relatedResource=").append(String.valueOf(this.relatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialSummary)) { + return false; + } + + CredentialSummary other = (CredentialSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.windowsDomain, other.windowsDomain) + && java.util.Objects.equals(this.enabled, other.enabled) + && java.util.Objects.equals(this.keyType, other.keyType) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.relatedResource, other.relatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = + (result * PRIME) + + (this.windowsDomain == null ? 43 : this.windowsDomain.hashCode()); + result = (result * PRIME) + (this.enabled == null ? 43 : this.enabled.hashCode()); + result = (result * PRIME) + (this.keyType == null ? 43 : this.keyType.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = + (result * PRIME) + + (this.relatedResource == null ? 43 : this.relatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialType.java new file mode 100644 index 00000000000..f4df65c6d43 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialType.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The credential type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum CredentialType { + Basic("BASIC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CredentialType v : CredentialType.values()) { + map.put(v.getValue(), v); + } + } + + CredentialType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CredentialType: " + key); + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigAdvancedPropertyConfigType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigAdvancedPropertyConfigType.java new file mode 100644 index 00000000000..c25a03a9591 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigAdvancedPropertyConfigType.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The database API gateway config advanced property config type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseApiGatewayConfigAdvancedPropertyConfigType { + Global("GLOBAL"), + Pool("POOL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + DatabaseApiGatewayConfigAdvancedPropertyConfigType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiGatewayConfigAdvancedPropertyConfigType v : + DatabaseApiGatewayConfigAdvancedPropertyConfigType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseApiGatewayConfigAdvancedPropertyConfigType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiGatewayConfigAdvancedPropertyConfigType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseApiGatewayConfigAdvancedPropertyConfigType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundle.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundle.java new file mode 100644 index 00000000000..a841af6a346 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundle.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The certificate bundle that describes the SSL certicicate. Ignored if the httpsPort is 0. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseApiGatewayConfigCertificateBundle.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseApiGatewayConfigCertificateBundleFileName.class, + name = "FILENAME" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseApiGatewayConfigCertificateBundleSelfSigned.class, + name = "SELF_SIGNED" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseApiGatewayConfigCertificateBundle + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected DatabaseApiGatewayConfigCertificateBundle() { + 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("DatabaseApiGatewayConfigCertificateBundle("); + 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 DatabaseApiGatewayConfigCertificateBundle)) { + return false; + } + + DatabaseApiGatewayConfigCertificateBundle other = + (DatabaseApiGatewayConfigCertificateBundle) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of the certificate. + **/ + public enum Type { + Filename("FILENAME"), + SelfSigned("SELF_SIGNED"), + + /** + * This value is used if a service returns a value for this 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleFileName.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleFileName.java new file mode 100644 index 00000000000..4d486e8445a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleFileName.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The certificate bundle that describes the SSL certicicate files. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseApiGatewayConfigCertificateBundleFileName.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 DatabaseApiGatewayConfigCertificateBundleFileName + extends DatabaseApiGatewayConfigCertificateBundle { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("certificatePublic") + private DatabaseApiGatewayConfigCertificatePublicFileName certificatePublic; + + public Builder certificatePublic( + DatabaseApiGatewayConfigCertificatePublicFileName certificatePublic) { + this.certificatePublic = certificatePublic; + this.__explicitlySet__.add("certificatePublic"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificatePrivateKey") + private DatabaseApiGatewayConfigCertificatePrivateKeyFileName certificatePrivateKey; + + public Builder certificatePrivateKey( + DatabaseApiGatewayConfigCertificatePrivateKeyFileName certificatePrivateKey) { + this.certificatePrivateKey = certificatePrivateKey; + this.__explicitlySet__.add("certificatePrivateKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseApiGatewayConfigCertificateBundleFileName build() { + DatabaseApiGatewayConfigCertificateBundleFileName model = + new DatabaseApiGatewayConfigCertificateBundleFileName( + this.certificatePublic, this.certificatePrivateKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseApiGatewayConfigCertificateBundleFileName model) { + if (model.wasPropertyExplicitlySet("certificatePublic")) { + this.certificatePublic(model.getCertificatePublic()); + } + if (model.wasPropertyExplicitlySet("certificatePrivateKey")) { + this.certificatePrivateKey(model.getCertificatePrivateKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseApiGatewayConfigCertificateBundleFileName( + DatabaseApiGatewayConfigCertificatePublicFileName certificatePublic, + DatabaseApiGatewayConfigCertificatePrivateKeyFileName certificatePrivateKey) { + super(); + this.certificatePublic = certificatePublic; + this.certificatePrivateKey = certificatePrivateKey; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificatePublic") + private final DatabaseApiGatewayConfigCertificatePublicFileName certificatePublic; + + public DatabaseApiGatewayConfigCertificatePublicFileName getCertificatePublic() { + return certificatePublic; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificatePrivateKey") + private final DatabaseApiGatewayConfigCertificatePrivateKeyFileName certificatePrivateKey; + + public DatabaseApiGatewayConfigCertificatePrivateKeyFileName getCertificatePrivateKey() { + return certificatePrivateKey; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseApiGatewayConfigCertificateBundleFileName("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", certificatePublic=").append(String.valueOf(this.certificatePublic)); + sb.append(", certificatePrivateKey=").append(String.valueOf(this.certificatePrivateKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseApiGatewayConfigCertificateBundleFileName)) { + return false; + } + + DatabaseApiGatewayConfigCertificateBundleFileName other = + (DatabaseApiGatewayConfigCertificateBundleFileName) o; + return java.util.Objects.equals(this.certificatePublic, other.certificatePublic) + && java.util.Objects.equals(this.certificatePrivateKey, other.certificatePrivateKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.certificatePublic == null ? 43 : this.certificatePublic.hashCode()); + result = + (result * PRIME) + + (this.certificatePrivateKey == null + ? 43 + : this.certificatePrivateKey.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleSelfSigned.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleSelfSigned.java new file mode 100644 index 00000000000..8882124e0b6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleSelfSigned.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The certificate bundle that denotes the use of a self signed certificate. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseApiGatewayConfigCertificateBundleSelfSigned.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 DatabaseApiGatewayConfigCertificateBundleSelfSigned + extends DatabaseApiGatewayConfigCertificateBundle { + @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 DatabaseApiGatewayConfigCertificateBundleSelfSigned build() { + DatabaseApiGatewayConfigCertificateBundleSelfSigned model = + new DatabaseApiGatewayConfigCertificateBundleSelfSigned(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseApiGatewayConfigCertificateBundleSelfSigned model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseApiGatewayConfigCertificateBundleSelfSigned() { + 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("DatabaseApiGatewayConfigCertificateBundleSelfSigned("); + 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 DatabaseApiGatewayConfigCertificateBundleSelfSigned)) { + return false; + } + + DatabaseApiGatewayConfigCertificateBundleSelfSigned other = + (DatabaseApiGatewayConfigCertificateBundleSelfSigned) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePrivateKeyFileName.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePrivateKeyFileName.java new file mode 100644 index 00000000000..231c2ac9ef8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePrivateKeyFileName.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Describes a certificate private key file to be used with SSL + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseApiGatewayConfigCertificatePrivateKeyFileName.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseApiGatewayConfigCertificatePrivateKeyFileName + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"format", "path"}) + public DatabaseApiGatewayConfigCertificatePrivateKeyFileName(Format format, String path) { + super(); + this.format = format; + this.path = path; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The format of the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private Format format; + + /** + * The format of the file + * @param format the value to set + * @return this builder + **/ + public Builder format(Format format) { + this.format = format; + this.__explicitlySet__.add("format"); + return this; + } + /** + * The path to the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + /** + * The path to the file + * @param path the value to set + * @return this builder + **/ + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseApiGatewayConfigCertificatePrivateKeyFileName build() { + DatabaseApiGatewayConfigCertificatePrivateKeyFileName model = + new DatabaseApiGatewayConfigCertificatePrivateKeyFileName( + this.format, this.path); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseApiGatewayConfigCertificatePrivateKeyFileName model) { + if (model.wasPropertyExplicitlySet("format")) { + this.format(model.getFormat()); + } + if (model.wasPropertyExplicitlySet("path")) { + this.path(model.getPath()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The format of the file + **/ + public enum Format { + Der("DER"), + Pem("PEM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Format.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Format v : Format.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Format(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Format create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Format', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The format of the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private final Format format; + + /** + * The format of the file + * @return the value + **/ + public Format getFormat() { + return format; + } + + /** + * The path to the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + private final String path; + + /** + * The path to the file + * @return the value + **/ + public String getPath() { + return path; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseApiGatewayConfigCertificatePrivateKeyFileName("); + sb.append("super=").append(super.toString()); + sb.append("format=").append(String.valueOf(this.format)); + sb.append(", path=").append(String.valueOf(this.path)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseApiGatewayConfigCertificatePrivateKeyFileName)) { + return false; + } + + DatabaseApiGatewayConfigCertificatePrivateKeyFileName other = + (DatabaseApiGatewayConfigCertificatePrivateKeyFileName) o; + return java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.path, other.path) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = (result * PRIME) + (this.path == null ? 43 : this.path.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePublicFileName.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePublicFileName.java new file mode 100644 index 00000000000..e0ae439dd90 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePublicFileName.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Describes a certificate file to be used with SSL. Ignored if the httpsPort is 0. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseApiGatewayConfigCertificatePublicFileName.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseApiGatewayConfigCertificatePublicFileName + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"format", "path"}) + public DatabaseApiGatewayConfigCertificatePublicFileName(Format format, String path) { + super(); + this.format = format; + this.path = path; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The format of the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private Format format; + + /** + * The format of the file + * @param format the value to set + * @return this builder + **/ + public Builder format(Format format) { + this.format = format; + this.__explicitlySet__.add("format"); + return this; + } + /** + * The path to the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + /** + * The path to the file + * @param path the value to set + * @return this builder + **/ + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseApiGatewayConfigCertificatePublicFileName build() { + DatabaseApiGatewayConfigCertificatePublicFileName model = + new DatabaseApiGatewayConfigCertificatePublicFileName(this.format, this.path); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseApiGatewayConfigCertificatePublicFileName model) { + if (model.wasPropertyExplicitlySet("format")) { + this.format(model.getFormat()); + } + if (model.wasPropertyExplicitlySet("path")) { + this.path(model.getPath()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The format of the file + **/ + public enum Format { + Pem("PEM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Format.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Format v : Format.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Format(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Format create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Format', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The format of the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private final Format format; + + /** + * The format of the file + * @return the value + **/ + public Format getFormat() { + return format; + } + + /** + * The path to the file + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + private final String path; + + /** + * The path to the file + * @return the value + **/ + public String getPath() { + return path; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseApiGatewayConfigCertificatePublicFileName("); + sb.append("super=").append(super.toString()); + sb.append("format=").append(String.valueOf(this.format)); + sb.append(", path=").append(String.valueOf(this.path)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseApiGatewayConfigCertificatePublicFileName)) { + return false; + } + + DatabaseApiGatewayConfigCertificatePublicFileName other = + (DatabaseApiGatewayConfigCertificatePublicFileName) o; + return java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.path, other.path) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = (result * PRIME) + (this.path == null ? 43 : this.path.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigGlobalKey.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigGlobalKey.java new file mode 100644 index 00000000000..37d0a17a096 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigGlobalKey.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The Database Tools database API gateway config global key. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseApiGatewayConfigGlobalKey { + Settings("SETTINGS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiGatewayConfigGlobalKey v : DatabaseApiGatewayConfigGlobalKey.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseApiGatewayConfigGlobalKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiGatewayConfigGlobalKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseApiGatewayConfigGlobalKey: " + key); + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigType.java new file mode 100644 index 00000000000..17bad63855b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The Database Tools database API gateway config type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseApiGatewayConfigType { + Default("DEFAULT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseApiGatewayConfigType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiGatewayConfigType v : DatabaseApiGatewayConfigType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseApiGatewayConfigType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiGatewayConfigType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseApiGatewayConfigType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsConnection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsConnection.java new file mode 100644 index 00000000000..df0a5a87363 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsConnection.java @@ -0,0 +1,612 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Simplified DatabaseToolsConnection representation for splat usage 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsConnection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsConnection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags", + "type" + }) + public DatabaseToolsConnection( + String id, + String displayName, + String compartmentId, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + ConnectionType type) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools connection. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The current state of the Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Database Tools connection. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time the Database Tools connection was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Database Tools connection was created. An RFC3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * 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; + } + /** + * 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; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The Database Tools connection type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private ConnectionType type; + + /** + * The Database Tools connection type. + * @param type the value to set + * @return this builder + **/ + public Builder type(ConnectionType 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 DatabaseToolsConnection build() { + DatabaseToolsConnection model = + new DatabaseToolsConnection( + this.id, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsConnection model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + 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); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools connection. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The current state of the Database Tools connection. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current state of the Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Database Tools connection. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools connection was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools connection was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The Database Tools connection type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final ConnectionType type; + + /** + * The Database Tools connection type. + * @return the value + **/ + public ConnectionType 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("DatabaseToolsConnection("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", 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 DatabaseToolsConnection)) { + return false; + } + + DatabaseToolsConnection other = (DatabaseToolsConnection) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && 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.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfig.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfig.java new file mode 100644 index 00000000000..bc1129d88af --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfig.java @@ -0,0 +1,607 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Simplified DatabaseToolsDatabaseApiGatewayConfig representation for splat usage 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "type", + "compartmentId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags" + }) + public DatabaseToolsDatabaseApiGatewayConfig( + String id, + DatabaseApiGatewayConfigType type, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.type = type; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The Database Tools database API gateway config type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private DatabaseApiGatewayConfigType type; + + /** + * The Database Tools database API gateway config type. + * @param type the value to set + * @return this builder + **/ + public Builder type(DatabaseApiGatewayConfigType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The current state of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Database Tools database API gateway config. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * 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; + } + /** + * 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; + } + /** + * 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 DatabaseToolsDatabaseApiGatewayConfig build() { + DatabaseToolsDatabaseApiGatewayConfig model = + new DatabaseToolsDatabaseApiGatewayConfig( + this.id, + this.type, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfig model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools database API gateway config. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The Database Tools database API gateway config type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final DatabaseApiGatewayConfigType type; + + /** + * The Database Tools database API gateway config type. + * @return the value + **/ + public DatabaseApiGatewayConfigType getType() { + return type; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools database API gateway config. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The current state of the Database Tools database API gateway config. + **/ + public enum LifecycleState { + Active("ACTIVE"), + Deleted("DELETED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current state of the Database Tools database API gateway config. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Database Tools database API gateway config. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools database API gateway config was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools database API gateway config was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfig("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfig)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfig other = (DatabaseToolsDatabaseApiGatewayConfig) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary.java new file mode 100644 index 00000000000..3178cfa06b6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary.java @@ -0,0 +1,789 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Description of a database API gateway config setting to be provided as an advanced property. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "dataType", + "configTypes", + "categoryKey", + "categoryDisplayName", + "databaseToolsConnectionTypes", + "documentationUrl", + "description", + "defaultValue", + "minValue", + "maxValue", + "listOfValues", + "hintText" + }) + public DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary( + String key, + String displayName, + DataType dataType, + java.util.List configTypes, + String categoryKey, + String categoryDisplayName, + java.util.List databaseToolsConnectionTypes, + String documentationUrl, + String description, + String defaultValue, + Integer minValue, + Integer maxValue, + java.util.List listOfValues, + String hintText) { + super(); + this.key = key; + this.displayName = displayName; + this.dataType = dataType; + this.configTypes = configTypes; + this.categoryKey = categoryKey; + this.categoryDisplayName = categoryDisplayName; + this.databaseToolsConnectionTypes = databaseToolsConnectionTypes; + this.documentationUrl = documentationUrl; + this.description = description; + this.defaultValue = defaultValue; + this.minValue = minValue; + this.maxValue = maxValue; + this.listOfValues = listOfValues; + this.hintText = hintText; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A string that uniquely identifies a Database Tools database API gateway config global settings resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * A string that uniquely identifies a Database Tools database API gateway config global settings resource. + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * A user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly 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 data type of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataType") + private DataType dataType; + + /** + * The data type of a database API gateway config setting. + * @param dataType the value to set + * @return this builder + **/ + public Builder dataType(DataType dataType) { + this.dataType = dataType; + this.__explicitlySet__.add("dataType"); + return this; + } + /** + * The config types that support this advanced property. The supported types are GLOBAL and POOL. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configTypes") + private java.util.List configTypes; + + /** + * The config types that support this advanced property. The supported types are GLOBAL and POOL. + * + * @param configTypes the value to set + * @return this builder + **/ + public Builder configTypes( + java.util.List configTypes) { + this.configTypes = configTypes; + this.__explicitlySet__.add("configTypes"); + return this; + } + /** + * The category of the Database Tools database API gateway config global setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("categoryKey") + private String categoryKey; + + /** + * The category of the Database Tools database API gateway config global setting. + * @param categoryKey the value to set + * @return this builder + **/ + public Builder categoryKey(String categoryKey) { + this.categoryKey = categoryKey; + this.__explicitlySet__.add("categoryKey"); + return this; + } + /** + * A user-friendly name of a category. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("categoryDisplayName") + private String categoryDisplayName; + + /** + * A user-friendly name of a category. + * @param categoryDisplayName the value to set + * @return this builder + **/ + public Builder categoryDisplayName(String categoryDisplayName) { + this.categoryDisplayName = categoryDisplayName; + this.__explicitlySet__.add("categoryDisplayName"); + return this; + } + /** + * The type of database (as determined by a type of Database Tools connection) to which this setting applies. + * The advancedProperty applies to all types of Database Tools connection when null. This is only applicable + * when configTypes includes POOL. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionTypes") + private java.util.List databaseToolsConnectionTypes; + + /** + * The type of database (as determined by a type of Database Tools connection) to which this setting applies. + * The advancedProperty applies to all types of Database Tools connection when null. This is only applicable + * when configTypes includes POOL. + * + * @param databaseToolsConnectionTypes the value to set + * @return this builder + **/ + public Builder databaseToolsConnectionTypes( + java.util.List databaseToolsConnectionTypes) { + this.databaseToolsConnectionTypes = databaseToolsConnectionTypes; + this.__explicitlySet__.add("databaseToolsConnectionTypes"); + return this; + } + /** + * Uniform resource locator (URL) of documentation related to this setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentationUrl") + private String documentationUrl; + + /** + * Uniform resource locator (URL) of documentation related to this setting. + * @param documentationUrl the value to set + * @return this builder + **/ + public Builder documentationUrl(String documentationUrl) { + this.documentationUrl = documentationUrl; + this.__explicitlySet__.add("documentationUrl"); + return this; + } + /** + * A user-friendly description of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description of a database API gateway config setting. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The default value (if applicable) of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultValue") + private String defaultValue; + + /** + * The default value (if applicable) of a database API gateway config setting. + * @param defaultValue the value to set + * @return this builder + **/ + public Builder defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + this.__explicitlySet__.add("defaultValue"); + return this; + } + /** + * A minimum numeric value (if applicable) of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minValue") + private Integer minValue; + + /** + * A minimum numeric value (if applicable) of a database API gateway config setting. + * @param minValue the value to set + * @return this builder + **/ + public Builder minValue(Integer minValue) { + this.minValue = minValue; + this.__explicitlySet__.add("minValue"); + return this; + } + /** + * A maximum numeric value (if applicable) of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxValue") + private Integer maxValue; + + /** + * A maximum numeric value (if applicable) of a database API gateway config setting. + * @param maxValue the value to set + * @return this builder + **/ + public Builder maxValue(Integer maxValue) { + this.maxValue = maxValue; + this.__explicitlySet__.add("maxValue"); + return this; + } + /** + * A list of string values (if applicable) supported by this database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listOfValues") + private java.util.List listOfValues; + + /** + * A list of string values (if applicable) supported by this database API gateway config setting. + * @param listOfValues the value to set + * @return this builder + **/ + public Builder listOfValues(java.util.List listOfValues) { + this.listOfValues = listOfValues; + this.__explicitlySet__.add("listOfValues"); + return this; + } + /** + * Hint text for a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hintText") + private String hintText; + + /** + * Hint text for a database API gateway config setting. + * @param hintText the value to set + * @return this builder + **/ + public Builder hintText(String hintText) { + this.hintText = hintText; + this.__explicitlySet__.add("hintText"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary build() { + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary model = + new DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary( + this.key, + this.displayName, + this.dataType, + this.configTypes, + this.categoryKey, + this.categoryDisplayName, + this.databaseToolsConnectionTypes, + this.documentationUrl, + this.description, + this.defaultValue, + this.minValue, + this.maxValue, + this.listOfValues, + this.hintText); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("dataType")) { + this.dataType(model.getDataType()); + } + if (model.wasPropertyExplicitlySet("configTypes")) { + this.configTypes(model.getConfigTypes()); + } + if (model.wasPropertyExplicitlySet("categoryKey")) { + this.categoryKey(model.getCategoryKey()); + } + if (model.wasPropertyExplicitlySet("categoryDisplayName")) { + this.categoryDisplayName(model.getCategoryDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionTypes")) { + this.databaseToolsConnectionTypes(model.getDatabaseToolsConnectionTypes()); + } + if (model.wasPropertyExplicitlySet("documentationUrl")) { + this.documentationUrl(model.getDocumentationUrl()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("defaultValue")) { + this.defaultValue(model.getDefaultValue()); + } + if (model.wasPropertyExplicitlySet("minValue")) { + this.minValue(model.getMinValue()); + } + if (model.wasPropertyExplicitlySet("maxValue")) { + this.maxValue(model.getMaxValue()); + } + if (model.wasPropertyExplicitlySet("listOfValues")) { + this.listOfValues(model.getListOfValues()); + } + if (model.wasPropertyExplicitlySet("hintText")) { + this.hintText(model.getHintText()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A string that uniquely identifies a Database Tools database API gateway config global settings resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A string that uniquely identifies a Database Tools database API gateway config global settings resource. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The data type of a database API gateway config setting. + **/ + public enum DataType { + String("STRING"), + Number("NUMBER"), + Duration("DURATION"), + Boolean("BOOLEAN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DataType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DataType v : DataType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DataType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DataType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DataType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The data type of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataType") + private final DataType dataType; + + /** + * The data type of a database API gateway config setting. + * @return the value + **/ + public DataType getDataType() { + return dataType; + } + + /** + * The config types that support this advanced property. The supported types are GLOBAL and POOL. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configTypes") + private final java.util.List configTypes; + + /** + * The config types that support this advanced property. The supported types are GLOBAL and POOL. + * + * @return the value + **/ + public java.util.List getConfigTypes() { + return configTypes; + } + + /** + * The category of the Database Tools database API gateway config global setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("categoryKey") + private final String categoryKey; + + /** + * The category of the Database Tools database API gateway config global setting. + * @return the value + **/ + public String getCategoryKey() { + return categoryKey; + } + + /** + * A user-friendly name of a category. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("categoryDisplayName") + private final String categoryDisplayName; + + /** + * A user-friendly name of a category. + * @return the value + **/ + public String getCategoryDisplayName() { + return categoryDisplayName; + } + + /** + **/ + public enum DatabaseToolsConnectionTypes { + OracleDatabase("ORACLE_DATABASE"), + Mysql("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(DatabaseToolsConnectionTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsConnectionTypes v : DatabaseToolsConnectionTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsConnectionTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsConnectionTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsConnectionTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of database (as determined by a type of Database Tools connection) to which this setting applies. + * The advancedProperty applies to all types of Database Tools connection when null. This is only applicable + * when configTypes includes POOL. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionTypes") + private final java.util.List databaseToolsConnectionTypes; + + /** + * The type of database (as determined by a type of Database Tools connection) to which this setting applies. + * The advancedProperty applies to all types of Database Tools connection when null. This is only applicable + * when configTypes includes POOL. + * + * @return the value + **/ + public java.util.List getDatabaseToolsConnectionTypes() { + return databaseToolsConnectionTypes; + } + + /** + * Uniform resource locator (URL) of documentation related to this setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentationUrl") + private final String documentationUrl; + + /** + * Uniform resource locator (URL) of documentation related to this setting. + * @return the value + **/ + public String getDocumentationUrl() { + return documentationUrl; + } + + /** + * A user-friendly description of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description of a database API gateway config setting. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The default value (if applicable) of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultValue") + private final String defaultValue; + + /** + * The default value (if applicable) of a database API gateway config setting. + * @return the value + **/ + public String getDefaultValue() { + return defaultValue; + } + + /** + * A minimum numeric value (if applicable) of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minValue") + private final Integer minValue; + + /** + * A minimum numeric value (if applicable) of a database API gateway config setting. + * @return the value + **/ + public Integer getMinValue() { + return minValue; + } + + /** + * A maximum numeric value (if applicable) of a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxValue") + private final Integer maxValue; + + /** + * A maximum numeric value (if applicable) of a database API gateway config setting. + * @return the value + **/ + public Integer getMaxValue() { + return maxValue; + } + + /** + * A list of string values (if applicable) supported by this database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listOfValues") + private final java.util.List listOfValues; + + /** + * A list of string values (if applicable) supported by this database API gateway config setting. + * @return the value + **/ + public java.util.List getListOfValues() { + return listOfValues; + } + + /** + * Hint text for a database API gateway config setting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hintText") + private final String hintText; + + /** + * Hint text for a database API gateway config setting. + * @return the value + **/ + public String getHintText() { + return hintText; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", dataType=").append(String.valueOf(this.dataType)); + sb.append(", configTypes=").append(String.valueOf(this.configTypes)); + sb.append(", categoryKey=").append(String.valueOf(this.categoryKey)); + sb.append(", categoryDisplayName=").append(String.valueOf(this.categoryDisplayName)); + sb.append(", databaseToolsConnectionTypes=") + .append(String.valueOf(this.databaseToolsConnectionTypes)); + sb.append(", documentationUrl=").append(String.valueOf(this.documentationUrl)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", defaultValue=").append(String.valueOf(this.defaultValue)); + sb.append(", minValue=").append(String.valueOf(this.minValue)); + sb.append(", maxValue=").append(String.valueOf(this.maxValue)); + sb.append(", listOfValues=").append(String.valueOf(this.listOfValues)); + sb.append(", hintText=").append(String.valueOf(this.hintText)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary other = + (DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dataType, other.dataType) + && java.util.Objects.equals(this.configTypes, other.configTypes) + && java.util.Objects.equals(this.categoryKey, other.categoryKey) + && java.util.Objects.equals(this.categoryDisplayName, other.categoryDisplayName) + && java.util.Objects.equals( + this.databaseToolsConnectionTypes, other.databaseToolsConnectionTypes) + && java.util.Objects.equals(this.documentationUrl, other.documentationUrl) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.defaultValue, other.defaultValue) + && java.util.Objects.equals(this.minValue, other.minValue) + && java.util.Objects.equals(this.maxValue, other.maxValue) + && java.util.Objects.equals(this.listOfValues, other.listOfValues) + && java.util.Objects.equals(this.hintText, other.hintText) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.dataType == null ? 43 : this.dataType.hashCode()); + result = (result * PRIME) + (this.configTypes == null ? 43 : this.configTypes.hashCode()); + result = (result * PRIME) + (this.categoryKey == null ? 43 : this.categoryKey.hashCode()); + result = + (result * PRIME) + + (this.categoryDisplayName == null + ? 43 + : this.categoryDisplayName.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionTypes == null + ? 43 + : this.databaseToolsConnectionTypes.hashCode()); + result = + (result * PRIME) + + (this.documentationUrl == null ? 43 : this.documentationUrl.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.defaultValue == null ? 43 : this.defaultValue.hashCode()); + result = (result * PRIME) + (this.minValue == null ? 43 : this.minValue.hashCode()); + result = (result * PRIME) + (this.maxValue == null ? 43 : this.maxValue.hashCode()); + result = (result * PRIME) + (this.listOfValues == null ? 43 : this.listOfValues.hashCode()); + result = (result * PRIME) + (this.hintText == null ? 43 : this.hintText.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection.java new file mode 100644 index 00000000000..5b94bb32a03 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of database API gateway config setting descriptions to be provided as advanced properties. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of database API gateway config setting descriptions to be provided as advanced properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of database API gateway config setting descriptions to be provided as advanced properties. + * @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 DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection build() { + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection model = + new DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection( + this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection 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 database API gateway config setting descriptions to be provided as advanced properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List + items; + + /** + * List of database API gateway config setting descriptions to be provided as advanced properties. + * @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("DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection("); + 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 + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection other = + (DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigContent.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigContent.java new file mode 100644 index 00000000000..bbfceddfe4c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigContent.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config global 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigContent.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigContent + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"global", "pools"}) + public DatabaseToolsDatabaseApiGatewayConfigContent( + DatabaseToolsDatabaseApiGatewayConfigGlobal global, + java.util.List pools) { + super(); + this.global = global; + this.pools = pools; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("global") + private DatabaseToolsDatabaseApiGatewayConfigGlobal global; + + public Builder global(DatabaseToolsDatabaseApiGatewayConfigGlobal global) { + this.global = global; + this.__explicitlySet__.add("global"); + return this; + } + /** + * The content of the Database Tools database API gateway config pools each with API spec and auto API spec definitions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pools") + private java.util.List pools; + + /** + * The content of the Database Tools database API gateway config pools each with API spec and auto API spec definitions. + * @param pools the value to set + * @return this builder + **/ + public Builder pools( + java.util.List pools) { + this.pools = pools; + this.__explicitlySet__.add("pools"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigContent build() { + DatabaseToolsDatabaseApiGatewayConfigContent model = + new DatabaseToolsDatabaseApiGatewayConfigContent(this.global, this.pools); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigContent model) { + if (model.wasPropertyExplicitlySet("global")) { + this.global(model.getGlobal()); + } + if (model.wasPropertyExplicitlySet("pools")) { + this.pools(model.getPools()); + } + 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("global") + private final DatabaseToolsDatabaseApiGatewayConfigGlobal global; + + public DatabaseToolsDatabaseApiGatewayConfigGlobal getGlobal() { + return global; + } + + /** + * The content of the Database Tools database API gateway config pools each with API spec and auto API spec definitions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pools") + private final java.util.List pools; + + /** + * The content of the Database Tools database API gateway config pools each with API spec and auto API spec definitions. + * @return the value + **/ + public java.util.List getPools() { + return pools; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigContent("); + sb.append("super=").append(super.toString()); + sb.append("global=").append(String.valueOf(this.global)); + sb.append(", pools=").append(String.valueOf(this.pools)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigContent)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigContent other = + (DatabaseToolsDatabaseApiGatewayConfigContent) o; + return java.util.Objects.equals(this.global, other.global) + && java.util.Objects.equals(this.pools, other.pools) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.global == null ? 43 : this.global.hashCode()); + result = (result * PRIME) + (this.pools == null ? 43 : this.pools.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobal.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobal.java new file mode 100644 index 00000000000..5a5f5db0c1c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobal.java @@ -0,0 +1,468 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config global 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigGlobal.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigGlobalDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigGlobal + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "poolRoute", + "poolRoutingHeader", + "databaseApiStatus", + "metadataSource", + "httpPort", + "httpsPort", + "certificateBundle", + "documentRoot", + "advancedProperties", + "timeCreated", + "timeUpdated" + }) + protected DatabaseToolsDatabaseApiGatewayConfigGlobal( + String key, + PoolRoute poolRoute, + String poolRoutingHeader, + DatabaseApiStatus databaseApiStatus, + MetadataSource metadataSource, + Integer httpPort, + Integer httpsPort, + DatabaseApiGatewayConfigCertificateBundle certificateBundle, + String documentRoot, + java.util.Map advancedProperties, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.poolRoute = poolRoute; + this.poolRoutingHeader = poolRoutingHeader; + this.databaseApiStatus = databaseApiStatus; + this.metadataSource = metadataSource; + this.httpPort = httpPort; + this.httpsPort = httpsPort; + this.certificateBundle = certificateBundle; + this.documentRoot = documentRoot; + this.advancedProperties = advancedProperties; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A string that uniquely identifies a Database Tools database API gateway config global settings resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A string that uniquely identifies a Database Tools database API gateway config global settings resource. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * How the target pool route value is determined for a HTTP request. + **/ + public enum PoolRoute { + Path("PATH"), + Header("HEADER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PoolRoute.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PoolRoute v : PoolRoute.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PoolRoute(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PoolRoute create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PoolRoute', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * How the target pool route value is determined for a HTTP request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRoute") + private final PoolRoute poolRoute; + + /** + * How the target pool route value is determined for a HTTP request. + * @return the value + **/ + public PoolRoute getPoolRoute() { + return poolRoute; + } + + /** + * The request header name providing the pool route value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRoutingHeader") + private final String poolRoutingHeader; + + /** + * The request header name providing the pool route value. + * @return the value + **/ + public String getPoolRoutingHeader() { + return poolRoutingHeader; + } + + /** + * ORDS database API is a database management and monitoring REST API. Database Actions requires this feature. + **/ + public enum DatabaseApiStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseApiStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiStatus v : DatabaseApiStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseApiStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseApiStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * ORDS database API is a database management and monitoring REST API. Database Actions requires this feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseApiStatus") + private final DatabaseApiStatus databaseApiStatus; + + /** + * ORDS database API is a database management and monitoring REST API. Database Actions requires this feature. + * @return the value + **/ + public DatabaseApiStatus getDatabaseApiStatus() { + return databaseApiStatus; + } + + /** + * The RESTful service definition location. + **/ + public enum MetadataSource { + Database("DATABASE"), + Cloud("CLOUD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MetadataSource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetadataSource v : MetadataSource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetadataSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetadataSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetadataSource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The RESTful service definition location. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private final MetadataSource metadataSource; + + /** + * The RESTful service definition location. + * @return the value + **/ + public MetadataSource getMetadataSource() { + return metadataSource; + } + + /** + * Specifies the HTTP listen port. 0 disables HTTP. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("httpPort") + private final Integer httpPort; + + /** + * Specifies the HTTP listen port. 0 disables HTTP. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. + * @return the value + **/ + public Integer getHttpPort() { + return httpPort; + } + + /** + * Specifies the HTTPS listen port. 0 disables HTTPS. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. ORDS will use a self-signed certificate if a certificate bundle is not provided. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("httpsPort") + private final Integer httpsPort; + + /** + * Specifies the HTTPS listen port. 0 disables HTTPS. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. ORDS will use a self-signed certificate if a certificate bundle is not provided. + * @return the value + **/ + public Integer getHttpsPort() { + return httpsPort; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateBundle") + private final DatabaseApiGatewayConfigCertificateBundle certificateBundle; + + public DatabaseApiGatewayConfigCertificateBundle getCertificateBundle() { + return certificateBundle; + } + + /** + * The location of the static resources to be served under the / root server path. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentRoot") + private final String documentRoot; + + /** + * The location of the static resources to be served under the / root server path. + * @return the value + **/ + public String getDocumentRoot() { + return documentRoot; + } + + /** + * Advanced global properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private final java.util.Map advancedProperties; + + /** + * Advanced global properties. + * @return the value + **/ + public java.util.Map getAdvancedProperties() { + return advancedProperties; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigGlobal("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", poolRoute=").append(String.valueOf(this.poolRoute)); + sb.append(", poolRoutingHeader=").append(String.valueOf(this.poolRoutingHeader)); + sb.append(", databaseApiStatus=").append(String.valueOf(this.databaseApiStatus)); + sb.append(", metadataSource=").append(String.valueOf(this.metadataSource)); + sb.append(", httpPort=").append(String.valueOf(this.httpPort)); + sb.append(", httpsPort=").append(String.valueOf(this.httpsPort)); + sb.append(", certificateBundle=").append(String.valueOf(this.certificateBundle)); + sb.append(", documentRoot=").append(String.valueOf(this.documentRoot)); + sb.append(", advancedProperties=").append(String.valueOf(this.advancedProperties)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigGlobal)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigGlobal other = + (DatabaseToolsDatabaseApiGatewayConfigGlobal) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.poolRoute, other.poolRoute) + && java.util.Objects.equals(this.poolRoutingHeader, other.poolRoutingHeader) + && java.util.Objects.equals(this.databaseApiStatus, other.databaseApiStatus) + && java.util.Objects.equals(this.metadataSource, other.metadataSource) + && java.util.Objects.equals(this.httpPort, other.httpPort) + && java.util.Objects.equals(this.httpsPort, other.httpsPort) + && java.util.Objects.equals(this.certificateBundle, other.certificateBundle) + && java.util.Objects.equals(this.documentRoot, other.documentRoot) + && java.util.Objects.equals(this.advancedProperties, other.advancedProperties) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.poolRoute == null ? 43 : this.poolRoute.hashCode()); + result = + (result * PRIME) + + (this.poolRoutingHeader == null ? 43 : this.poolRoutingHeader.hashCode()); + result = + (result * PRIME) + + (this.databaseApiStatus == null ? 43 : this.databaseApiStatus.hashCode()); + result = + (result * PRIME) + + (this.metadataSource == null ? 43 : this.metadataSource.hashCode()); + result = (result * PRIME) + (this.httpPort == null ? 43 : this.httpPort.hashCode()); + result = (result * PRIME) + (this.httpsPort == null ? 43 : this.httpsPort.hashCode()); + result = + (result * PRIME) + + (this.certificateBundle == null ? 43 : this.certificateBundle.hashCode()); + result = (result * PRIME) + (this.documentRoot == null ? 43 : this.documentRoot.hashCode()); + result = + (result * PRIME) + + (this.advancedProperties == null + ? 43 + : this.advancedProperties.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobalDefault.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobalDefault.java new file mode 100644 index 00000000000..51889a73739 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobalDefault.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config global 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigGlobalDefault.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 DatabaseToolsDatabaseApiGatewayConfigGlobalDefault + extends DatabaseToolsDatabaseApiGatewayConfigGlobal { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("poolRoute") + private PoolRoute poolRoute; + + public Builder poolRoute(PoolRoute poolRoute) { + this.poolRoute = poolRoute; + this.__explicitlySet__.add("poolRoute"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("poolRoutingHeader") + private String poolRoutingHeader; + + public Builder poolRoutingHeader(String poolRoutingHeader) { + this.poolRoutingHeader = poolRoutingHeader; + this.__explicitlySet__.add("poolRoutingHeader"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseApiStatus") + private DatabaseApiStatus databaseApiStatus; + + public Builder databaseApiStatus(DatabaseApiStatus databaseApiStatus) { + this.databaseApiStatus = databaseApiStatus; + this.__explicitlySet__.add("databaseApiStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataSource") + private MetadataSource metadataSource; + + public Builder metadataSource(MetadataSource metadataSource) { + this.metadataSource = metadataSource; + this.__explicitlySet__.add("metadataSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("httpPort") + private Integer httpPort; + + public Builder httpPort(Integer httpPort) { + this.httpPort = httpPort; + this.__explicitlySet__.add("httpPort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("httpsPort") + private Integer httpsPort; + + public Builder httpsPort(Integer httpsPort) { + this.httpsPort = httpsPort; + this.__explicitlySet__.add("httpsPort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateBundle") + private DatabaseApiGatewayConfigCertificateBundle certificateBundle; + + public Builder certificateBundle( + DatabaseApiGatewayConfigCertificateBundle certificateBundle) { + this.certificateBundle = certificateBundle; + this.__explicitlySet__.add("certificateBundle"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("documentRoot") + private String documentRoot; + + public Builder documentRoot(String documentRoot) { + this.documentRoot = documentRoot; + this.__explicitlySet__.add("documentRoot"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private java.util.Map advancedProperties; + + public Builder advancedProperties(java.util.Map advancedProperties) { + this.advancedProperties = advancedProperties; + this.__explicitlySet__.add("advancedProperties"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigGlobalDefault build() { + DatabaseToolsDatabaseApiGatewayConfigGlobalDefault model = + new DatabaseToolsDatabaseApiGatewayConfigGlobalDefault( + this.key, + this.poolRoute, + this.poolRoutingHeader, + this.databaseApiStatus, + this.metadataSource, + this.httpPort, + this.httpsPort, + this.certificateBundle, + this.documentRoot, + this.advancedProperties, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigGlobalDefault model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("poolRoute")) { + this.poolRoute(model.getPoolRoute()); + } + if (model.wasPropertyExplicitlySet("poolRoutingHeader")) { + this.poolRoutingHeader(model.getPoolRoutingHeader()); + } + if (model.wasPropertyExplicitlySet("databaseApiStatus")) { + this.databaseApiStatus(model.getDatabaseApiStatus()); + } + if (model.wasPropertyExplicitlySet("metadataSource")) { + this.metadataSource(model.getMetadataSource()); + } + if (model.wasPropertyExplicitlySet("httpPort")) { + this.httpPort(model.getHttpPort()); + } + if (model.wasPropertyExplicitlySet("httpsPort")) { + this.httpsPort(model.getHttpsPort()); + } + if (model.wasPropertyExplicitlySet("certificateBundle")) { + this.certificateBundle(model.getCertificateBundle()); + } + if (model.wasPropertyExplicitlySet("documentRoot")) { + this.documentRoot(model.getDocumentRoot()); + } + if (model.wasPropertyExplicitlySet("advancedProperties")) { + this.advancedProperties(model.getAdvancedProperties()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigGlobalDefault( + String key, + PoolRoute poolRoute, + String poolRoutingHeader, + DatabaseApiStatus databaseApiStatus, + MetadataSource metadataSource, + Integer httpPort, + Integer httpsPort, + DatabaseApiGatewayConfigCertificateBundle certificateBundle, + String documentRoot, + java.util.Map advancedProperties, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super( + key, + poolRoute, + poolRoutingHeader, + databaseApiStatus, + metadataSource, + httpPort, + httpsPort, + certificateBundle, + documentRoot, + advancedProperties, + timeCreated, + timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigGlobalDefault("); + 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 DatabaseToolsDatabaseApiGatewayConfigGlobalDefault)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigGlobalDefault other = + (DatabaseToolsDatabaseApiGatewayConfigGlobalDefault) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPool.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPool.java new file mode 100644 index 00000000000..62d810d2314 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPool.java @@ -0,0 +1,531 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPool.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPool + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "poolRouteValue", + "databaseToolsConnectionId", + "maxPoolSize", + "minPoolSize", + "initialPoolSize", + "jwtProfileJwkUrl", + "jwtProfileIssuer", + "jwtProfileAudience", + "jwtProfileRoleClaimName", + "databaseActionsStatus", + "restEnabledSqlStatus", + "advancedProperties", + "timeCreated", + "timeUpdated" + }) + protected DatabaseToolsDatabaseApiGatewayConfigPool( + String key, + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.poolRouteValue = poolRouteValue; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.maxPoolSize = maxPoolSize; + this.minPoolSize = minPoolSize; + this.initialPoolSize = initialPoolSize; + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.jwtProfileIssuer = jwtProfileIssuer; + this.jwtProfileAudience = jwtProfileAudience; + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.databaseActionsStatus = databaseActionsStatus; + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.advancedProperties = advancedProperties; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies a pool sub resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies a pool sub resource. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The pool route value provided in requests to target this pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRouteValue") + private final String poolRouteValue; + + /** + * The pool route value provided in requests to target this pool. + * @return the value + **/ + public String getPoolRouteValue() { + return poolRouteValue; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Specifies the maximum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private final Integer maxPoolSize; + + /** + * Specifies the maximum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMaxPoolSize() { + return maxPoolSize; + } + + /** + * Specifies the minimum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private final Integer minPoolSize; + + /** + * Specifies the minimum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMinPoolSize() { + return minPoolSize; + } + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private final Integer initialPoolSize; + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + * @return the value + **/ + public Integer getInitialPoolSize() { + return initialPoolSize; + } + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private final String jwtProfileJwkUrl; + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + * @return the value + **/ + public String getJwtProfileJwkUrl() { + return jwtProfileJwkUrl; + } + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private final String jwtProfileIssuer; + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + * @return the value + **/ + public String getJwtProfileIssuer() { + return jwtProfileIssuer; + } + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private final String jwtProfileAudience; + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + * @return the value + **/ + public String getJwtProfileAudience() { + return jwtProfileAudience; + } + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private final String jwtProfileRoleClaimName; + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + * @return the value + **/ + public String getJwtProfileRoleClaimName() { + return jwtProfileRoleClaimName; + } + + /** + * Specifies to enable the Database Actions feature. + **/ + public enum DatabaseActionsStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseActionsStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseActionsStatus v : DatabaseActionsStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseActionsStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseActionsStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseActionsStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies to enable the Database Actions feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private final DatabaseActionsStatus databaseActionsStatus; + + /** + * Specifies to enable the Database Actions feature. + * @return the value + **/ + public DatabaseActionsStatus getDatabaseActionsStatus() { + return databaseActionsStatus; + } + + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + public enum RestEnabledSqlStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RestEnabledSqlStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RestEnabledSqlStatus v : RestEnabledSqlStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RestEnabledSqlStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RestEnabledSqlStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RestEnabledSqlStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private final RestEnabledSqlStatus restEnabledSqlStatus; + + /** + * Specifies whether the REST-Enabled SQL service is active. + * @return the value + **/ + public RestEnabledSqlStatus getRestEnabledSqlStatus() { + return restEnabledSqlStatus; + } + + /** + * Advanced pool properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private final java.util.Map advancedProperties; + + /** + * Advanced pool properties. + * @return the value + **/ + public java.util.Map getAdvancedProperties() { + return advancedProperties; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPool("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", poolRouteValue=").append(String.valueOf(this.poolRouteValue)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", maxPoolSize=").append(String.valueOf(this.maxPoolSize)); + sb.append(", minPoolSize=").append(String.valueOf(this.minPoolSize)); + sb.append(", initialPoolSize=").append(String.valueOf(this.initialPoolSize)); + sb.append(", jwtProfileJwkUrl=").append(String.valueOf(this.jwtProfileJwkUrl)); + sb.append(", jwtProfileIssuer=").append(String.valueOf(this.jwtProfileIssuer)); + sb.append(", jwtProfileAudience=").append(String.valueOf(this.jwtProfileAudience)); + sb.append(", jwtProfileRoleClaimName=") + .append(String.valueOf(this.jwtProfileRoleClaimName)); + sb.append(", databaseActionsStatus=").append(String.valueOf(this.databaseActionsStatus)); + sb.append(", restEnabledSqlStatus=").append(String.valueOf(this.restEnabledSqlStatus)); + sb.append(", advancedProperties=").append(String.valueOf(this.advancedProperties)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPool)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPool other = + (DatabaseToolsDatabaseApiGatewayConfigPool) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.poolRouteValue, other.poolRouteValue) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.maxPoolSize, other.maxPoolSize) + && java.util.Objects.equals(this.minPoolSize, other.minPoolSize) + && java.util.Objects.equals(this.initialPoolSize, other.initialPoolSize) + && java.util.Objects.equals(this.jwtProfileJwkUrl, other.jwtProfileJwkUrl) + && java.util.Objects.equals(this.jwtProfileIssuer, other.jwtProfileIssuer) + && java.util.Objects.equals(this.jwtProfileAudience, other.jwtProfileAudience) + && java.util.Objects.equals( + this.jwtProfileRoleClaimName, other.jwtProfileRoleClaimName) + && java.util.Objects.equals(this.databaseActionsStatus, other.databaseActionsStatus) + && java.util.Objects.equals(this.restEnabledSqlStatus, other.restEnabledSqlStatus) + && java.util.Objects.equals(this.advancedProperties, other.advancedProperties) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.poolRouteValue == null ? 43 : this.poolRouteValue.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.maxPoolSize == null ? 43 : this.maxPoolSize.hashCode()); + result = (result * PRIME) + (this.minPoolSize == null ? 43 : this.minPoolSize.hashCode()); + result = + (result * PRIME) + + (this.initialPoolSize == null ? 43 : this.initialPoolSize.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileJwkUrl == null ? 43 : this.jwtProfileJwkUrl.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileIssuer == null ? 43 : this.jwtProfileIssuer.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileAudience == null + ? 43 + : this.jwtProfileAudience.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileRoleClaimName == null + ? 43 + : this.jwtProfileRoleClaimName.hashCode()); + result = + (result * PRIME) + + (this.databaseActionsStatus == null + ? 43 + : this.databaseActionsStatus.hashCode()); + result = + (result * PRIME) + + (this.restEnabledSqlStatus == null + ? 43 + : this.restEnabledSqlStatus.hashCode()); + result = + (result * PRIME) + + (this.advancedProperties == null + ? 43 + : this.advancedProperties.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.java new file mode 100644 index 00000000000..75166ca23c3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config API spec sub resource defined within a pool. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "content", + "timeCreated", + "timeUpdated" + }) + protected DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + String key, + String displayName, + String content, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.content = content; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies an API spec sub resource within a given pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies an API spec sub resource within a given pool. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The content of a string-escaped Open API spec in JSON format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final String content; + + /** + * The content of a string-escaped Open API spec in JSON format. + * @return the value + **/ + public String getContent() { + return content; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec other = + (DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.java new file mode 100644 index 00000000000..82ff76e919a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of Database Tools database API gateway config API spec summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools database API gateway config API spec summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools database API gateway config API spec summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items( + java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection build() { + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection model = + new DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools database API gateway config API spec summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools database API gateway config API spec summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection other = + (DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault.java new file mode 100644 index 00000000000..21d0cd9face --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config API spec sub resource defined within a pool. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault.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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault + extends DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("content") + private String content; + + public Builder content(String content) { + this.content = content; + this.__explicitlySet__.add("content"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault build() { + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault model = + new DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault( + this.key, + this.displayName, + this.content, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault( + String key, + String displayName, + String content, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(key, displayName, content, timeCreated, timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault other = + (DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary.java new file mode 100644 index 00000000000..c9b5ceef4a4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Summary of the Database Tools database API gateway config API spec 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary.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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary + extends DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary build() { + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary model = + new DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary( + this.key, this.displayName, this.timeCreated, this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary( + String key, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(key, displayName, timeCreated, timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary other = + (DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary.java new file mode 100644 index 00000000000..f7a8ce8c52f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Summary of the Database Tools database API gateway config API spec 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "displayName", "timeCreated", "timeUpdated"}) + protected DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary( + String key, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies an API spec sub resource within a pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies an API spec sub resource within a pool. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary other = + (DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.java new file mode 100644 index 00000000000..7fa7d3f77ea --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.java @@ -0,0 +1,476 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config auto API spec sub resource defined within a pool. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "databaseObjectName", + "databaseObjectType", + "description", + "alias", + "operations", + "securitySchemes", + "scope", + "roles", + "timeCreated", + "timeUpdated" + }) + protected DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + String key, + String displayName, + String databaseObjectName, + DatabaseObjectType databaseObjectType, + String description, + String alias, + java.util.List operations, + java.util.List securitySchemes, + String scope, + java.util.List roles, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.databaseObjectName = databaseObjectName; + this.databaseObjectType = databaseObjectType; + this.description = description; + this.alias = alias; + this.operations = operations; + this.securitySchemes = securitySchemes; + this.scope = scope; + this.roles = roles; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies an auto API spec sub resource within a given pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies an auto API spec sub resource within a given pool. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The name of the database object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectName") + private final String databaseObjectName; + + /** + * The name of the database object. + * @return the value + **/ + public String getDatabaseObjectName() { + return databaseObjectName; + } + + /** + * The type of the database object. + **/ + public enum DatabaseObjectType { + Function("FUNCTION"), + Mview("MVIEW"), + Package("PACKAGE"), + Procedure("PROCEDURE"), + Table("TABLE"), + View("VIEW"), + Dualityview("DUALITYVIEW"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseObjectType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseObjectType v : DatabaseObjectType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseObjectType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseObjectType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseObjectType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of the database object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectType") + private final DatabaseObjectType databaseObjectType; + + /** + * The type of the database object. + * @return the value + **/ + public DatabaseObjectType getDatabaseObjectType() { + return databaseObjectType; + } + + /** + * Description of the autoApiSpec. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the autoApiSpec. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Used as the URI path element for this object. When not specified the objectName lowercase is the default value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alias") + private final String alias; + + /** + * Used as the URI path element for this object. When not specified the objectName lowercase is the default value. + * @return the value + **/ + public String getAlias() { + return alias; + } + + /** + **/ + public enum Operations { + Read("READ"), + Write("WRITE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Operations.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operations v : Operations.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Operations(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operations create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Operations', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The operations to limit access to this resource. If not specified then the default is ["READ","WRITE"]. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operations") + private final java.util.List operations; + + /** + * The operations to limit access to this resource. If not specified then the default is ["READ","WRITE"]. + * @return the value + **/ + public java.util.List getOperations() { + return operations; + } + + /** + **/ + public enum SecuritySchemes { + Basic("BASIC"), + Bearer("BEARER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SecuritySchemes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SecuritySchemes v : SecuritySchemes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SecuritySchemes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SecuritySchemes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SecuritySchemes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The security schemes that can access this resource. If not specified then the resource is public. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securitySchemes") + private final java.util.List securitySchemes; + + /** + * The security schemes that can access this resource. If not specified then the resource is public. + * @return the value + **/ + public java.util.List getSecuritySchemes() { + return securitySchemes; + } + + /** + * The name of the database API gateway config privilege protecting the resource. Only valid for SCOPE JWT Profile pools and BEARER securitySchemes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * The name of the database API gateway config privilege protecting the resource. Only valid for SCOPE JWT Profile pools and BEARER securitySchemes. + * @return the value + **/ + public String getScope() { + return scope; + } + + /** + * The name of the database API gateway config roles protecting the resource. Only valid for RBAC JWT Profile pools and BEARER securitySchemes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private final java.util.List roles; + + /** + * The name of the database API gateway config roles protecting the resource. Only valid for RBAC JWT Profile pools and BEARER securitySchemes. + * @return the value + **/ + public java.util.List getRoles() { + return roles; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseObjectName=").append(String.valueOf(this.databaseObjectName)); + sb.append(", databaseObjectType=").append(String.valueOf(this.databaseObjectType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", alias=").append(String.valueOf(this.alias)); + sb.append(", operations=").append(String.valueOf(this.operations)); + sb.append(", securitySchemes=").append(String.valueOf(this.securitySchemes)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", roles=").append(String.valueOf(this.roles)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec other = + (DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.databaseObjectName, other.databaseObjectName) + && java.util.Objects.equals(this.databaseObjectType, other.databaseObjectType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.alias, other.alias) + && java.util.Objects.equals(this.operations, other.operations) + && java.util.Objects.equals(this.securitySchemes, other.securitySchemes) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.roles, other.roles) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseObjectName == null + ? 43 + : this.databaseObjectName.hashCode()); + result = + (result * PRIME) + + (this.databaseObjectType == null + ? 43 + : this.databaseObjectType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode()); + result = (result * PRIME) + (this.operations == null ? 43 : this.operations.hashCode()); + result = + (result * PRIME) + + (this.securitySchemes == null ? 43 : this.securitySchemes.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.roles == null ? 43 : this.roles.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection.java new file mode 100644 index 00000000000..4444fa27177 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of Database Tools database API gateway config auto API spec summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools database API gateway config auto API spec summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools database API gateway config auto API spec summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items( + java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection build() { + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection model = + new DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools database API gateway config auto API spec summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools database API gateway config auto API spec summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection other = + (DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.java new file mode 100644 index 00000000000..d2a1b63a116 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config auto API spec sub resource defined within a pool. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault.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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault + extends DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("databaseObjectName") + private String databaseObjectName; + + public Builder databaseObjectName(String databaseObjectName) { + this.databaseObjectName = databaseObjectName; + this.__explicitlySet__.add("databaseObjectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectType") + private DatabaseObjectType databaseObjectType; + + public Builder databaseObjectType(DatabaseObjectType databaseObjectType) { + this.databaseObjectType = databaseObjectType; + this.__explicitlySet__.add("databaseObjectType"); + 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("alias") + private String alias; + + public Builder alias(String alias) { + this.alias = alias; + this.__explicitlySet__.add("alias"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("operations") + private java.util.List operations; + + public Builder operations(java.util.List operations) { + this.operations = operations; + this.__explicitlySet__.add("operations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securitySchemes") + private java.util.List securitySchemes; + + public Builder securitySchemes(java.util.List securitySchemes) { + this.securitySchemes = securitySchemes; + this.__explicitlySet__.add("securitySchemes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private java.util.List roles; + + public Builder roles(java.util.List roles) { + this.roles = roles; + this.__explicitlySet__.add("roles"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault build() { + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault model = + new DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault( + this.key, + this.displayName, + this.databaseObjectName, + this.databaseObjectType, + this.description, + this.alias, + this.operations, + this.securitySchemes, + this.scope, + this.roles, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseObjectName")) { + this.databaseObjectName(model.getDatabaseObjectName()); + } + if (model.wasPropertyExplicitlySet("databaseObjectType")) { + this.databaseObjectType(model.getDatabaseObjectType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("alias")) { + this.alias(model.getAlias()); + } + if (model.wasPropertyExplicitlySet("operations")) { + this.operations(model.getOperations()); + } + if (model.wasPropertyExplicitlySet("securitySchemes")) { + this.securitySchemes(model.getSecuritySchemes()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("roles")) { + this.roles(model.getRoles()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault( + String key, + String displayName, + String databaseObjectName, + DatabaseObjectType databaseObjectType, + String description, + String alias, + java.util.List operations, + java.util.List securitySchemes, + String scope, + java.util.List roles, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super( + key, + displayName, + databaseObjectName, + databaseObjectType, + description, + alias, + operations, + securitySchemes, + scope, + roles, + timeCreated, + timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault other = + (DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary.java new file mode 100644 index 00000000000..eda17c3ba82 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Summary of the Database Tools database API gateway config auto API spec 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary.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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary + extends DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary build() { + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary model = + new DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary( + this.key, this.displayName, this.timeCreated, this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary( + String key, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(key, displayName, timeCreated, timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary other = + (DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary.java new file mode 100644 index 00000000000..a117e9f4793 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Summary of the Database Tools database API gateway config auto API spec 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "displayName", "timeCreated", "timeUpdated"}) + protected DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary( + String key, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies an auto API spec sub resource within a pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies an auto API spec sub resource within a pool. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary other = + (DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolCollection.java new file mode 100644 index 00000000000..93af1e41cdd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolCollection.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of Database Tools database API gateway config pool summary items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigPoolCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DatabaseToolsDatabaseApiGatewayConfigPoolCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Database Tools database API gateway config pool summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Database Tools database API gateway config pool summary items. + * @param items the value to set + * @return this builder + **/ + public Builder items( + java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolCollection build() { + DatabaseToolsDatabaseApiGatewayConfigPoolCollection model = + new DatabaseToolsDatabaseApiGatewayConfigPoolCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Database Tools database API gateway config pool summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Database Tools database API gateway config pool summary items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolCollection("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolCollection)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolCollection other = + (DatabaseToolsDatabaseApiGatewayConfigPoolCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContent.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContent.java new file mode 100644 index 00000000000..abb0d15e9f7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContent.java @@ -0,0 +1,545 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPoolContent.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolContent + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "poolRouteValue", + "databaseToolsConnectionId", + "maxPoolSize", + "minPoolSize", + "initialPoolSize", + "jwtProfileJwkUrl", + "jwtProfileIssuer", + "jwtProfileAudience", + "jwtProfileRoleClaimName", + "databaseActionsStatus", + "restEnabledSqlStatus", + "advancedProperties", + "apiSpecs", + "autoApiSpecs", + "timeCreated", + "timeUpdated" + }) + protected DatabaseToolsDatabaseApiGatewayConfigPoolContent( + String key, + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties, + java.util.List apiSpecs, + java.util.List autoApiSpecs, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.poolRouteValue = poolRouteValue; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.maxPoolSize = maxPoolSize; + this.minPoolSize = minPoolSize; + this.initialPoolSize = initialPoolSize; + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.jwtProfileIssuer = jwtProfileIssuer; + this.jwtProfileAudience = jwtProfileAudience; + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.databaseActionsStatus = databaseActionsStatus; + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.advancedProperties = advancedProperties; + this.apiSpecs = apiSpecs; + this.autoApiSpecs = autoApiSpecs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies a pool sub resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies a pool sub resource. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The pool route value provided in requests to target this pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRouteValue") + private final String poolRouteValue; + + /** + * The pool route value provided in requests to target this pool. + * @return the value + **/ + public String getPoolRouteValue() { + return poolRouteValue; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Specifies the maximum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private final Integer maxPoolSize; + + /** + * Specifies the maximum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMaxPoolSize() { + return maxPoolSize; + } + + /** + * Specifies the minimum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private final Integer minPoolSize; + + /** + * Specifies the minimum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMinPoolSize() { + return minPoolSize; + } + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private final Integer initialPoolSize; + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + * @return the value + **/ + public Integer getInitialPoolSize() { + return initialPoolSize; + } + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private final String jwtProfileJwkUrl; + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + * @return the value + **/ + public String getJwtProfileJwkUrl() { + return jwtProfileJwkUrl; + } + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private final String jwtProfileIssuer; + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + * @return the value + **/ + public String getJwtProfileIssuer() { + return jwtProfileIssuer; + } + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private final String jwtProfileAudience; + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + * @return the value + **/ + public String getJwtProfileAudience() { + return jwtProfileAudience; + } + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private final String jwtProfileRoleClaimName; + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + * @return the value + **/ + public String getJwtProfileRoleClaimName() { + return jwtProfileRoleClaimName; + } + + /** + * Specifies to enable the Database Actions feature. + **/ + public enum DatabaseActionsStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseActionsStatus v : DatabaseActionsStatus.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseActionsStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseActionsStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseActionsStatus: " + key); + } + }; + /** + * Specifies to enable the Database Actions feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private final DatabaseActionsStatus databaseActionsStatus; + + /** + * Specifies to enable the Database Actions feature. + * @return the value + **/ + public DatabaseActionsStatus getDatabaseActionsStatus() { + return databaseActionsStatus; + } + + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + public enum RestEnabledSqlStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RestEnabledSqlStatus v : RestEnabledSqlStatus.values()) { + map.put(v.getValue(), v); + } + } + + RestEnabledSqlStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RestEnabledSqlStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RestEnabledSqlStatus: " + key); + } + }; + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private final RestEnabledSqlStatus restEnabledSqlStatus; + + /** + * Specifies whether the REST-Enabled SQL service is active. + * @return the value + **/ + public RestEnabledSqlStatus getRestEnabledSqlStatus() { + return restEnabledSqlStatus; + } + + /** + * Advanced pool properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private final java.util.Map advancedProperties; + + /** + * Advanced pool properties. + * @return the value + **/ + public java.util.Map getAdvancedProperties() { + return advancedProperties; + } + + /** + * Array of Database Tools database API gateway config API spec items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiSpecs") + private final java.util.List apiSpecs; + + /** + * Array of Database Tools database API gateway config API spec items. + * @return the value + **/ + public java.util.List getApiSpecs() { + return apiSpecs; + } + + /** + * Array of Database Tools database API gateway config auto API spec items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoApiSpecs") + private final java.util.List autoApiSpecs; + + /** + * Array of Database Tools database API gateway config auto API spec items. + * @return the value + **/ + public java.util.List getAutoApiSpecs() { + return autoApiSpecs; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolContent("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", poolRouteValue=").append(String.valueOf(this.poolRouteValue)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", maxPoolSize=").append(String.valueOf(this.maxPoolSize)); + sb.append(", minPoolSize=").append(String.valueOf(this.minPoolSize)); + sb.append(", initialPoolSize=").append(String.valueOf(this.initialPoolSize)); + sb.append(", jwtProfileJwkUrl=").append(String.valueOf(this.jwtProfileJwkUrl)); + sb.append(", jwtProfileIssuer=").append(String.valueOf(this.jwtProfileIssuer)); + sb.append(", jwtProfileAudience=").append(String.valueOf(this.jwtProfileAudience)); + sb.append(", jwtProfileRoleClaimName=") + .append(String.valueOf(this.jwtProfileRoleClaimName)); + sb.append(", databaseActionsStatus=").append(String.valueOf(this.databaseActionsStatus)); + sb.append(", restEnabledSqlStatus=").append(String.valueOf(this.restEnabledSqlStatus)); + sb.append(", advancedProperties=").append(String.valueOf(this.advancedProperties)); + sb.append(", apiSpecs=").append(String.valueOf(this.apiSpecs)); + sb.append(", autoApiSpecs=").append(String.valueOf(this.autoApiSpecs)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPoolContent)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolContent other = + (DatabaseToolsDatabaseApiGatewayConfigPoolContent) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.poolRouteValue, other.poolRouteValue) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.maxPoolSize, other.maxPoolSize) + && java.util.Objects.equals(this.minPoolSize, other.minPoolSize) + && java.util.Objects.equals(this.initialPoolSize, other.initialPoolSize) + && java.util.Objects.equals(this.jwtProfileJwkUrl, other.jwtProfileJwkUrl) + && java.util.Objects.equals(this.jwtProfileIssuer, other.jwtProfileIssuer) + && java.util.Objects.equals(this.jwtProfileAudience, other.jwtProfileAudience) + && java.util.Objects.equals( + this.jwtProfileRoleClaimName, other.jwtProfileRoleClaimName) + && java.util.Objects.equals(this.databaseActionsStatus, other.databaseActionsStatus) + && java.util.Objects.equals(this.restEnabledSqlStatus, other.restEnabledSqlStatus) + && java.util.Objects.equals(this.advancedProperties, other.advancedProperties) + && java.util.Objects.equals(this.apiSpecs, other.apiSpecs) + && java.util.Objects.equals(this.autoApiSpecs, other.autoApiSpecs) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.poolRouteValue == null ? 43 : this.poolRouteValue.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.maxPoolSize == null ? 43 : this.maxPoolSize.hashCode()); + result = (result * PRIME) + (this.minPoolSize == null ? 43 : this.minPoolSize.hashCode()); + result = + (result * PRIME) + + (this.initialPoolSize == null ? 43 : this.initialPoolSize.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileJwkUrl == null ? 43 : this.jwtProfileJwkUrl.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileIssuer == null ? 43 : this.jwtProfileIssuer.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileAudience == null + ? 43 + : this.jwtProfileAudience.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileRoleClaimName == null + ? 43 + : this.jwtProfileRoleClaimName.hashCode()); + result = + (result * PRIME) + + (this.databaseActionsStatus == null + ? 43 + : this.databaseActionsStatus.hashCode()); + result = + (result * PRIME) + + (this.restEnabledSqlStatus == null + ? 43 + : this.restEnabledSqlStatus.hashCode()); + result = + (result * PRIME) + + (this.advancedProperties == null + ? 43 + : this.advancedProperties.hashCode()); + result = (result * PRIME) + (this.apiSpecs == null ? 43 : this.apiSpecs.hashCode()); + result = (result * PRIME) + (this.autoApiSpecs == null ? 43 : this.autoApiSpecs.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault.java new file mode 100644 index 00000000000..5f52fe3cc27 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault.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 DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault + extends DatabaseToolsDatabaseApiGatewayConfigPoolContent { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("poolRouteValue") + private String poolRouteValue; + + public Builder poolRouteValue(String poolRouteValue) { + this.poolRouteValue = poolRouteValue; + this.__explicitlySet__.add("poolRouteValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private Integer maxPoolSize; + + public Builder maxPoolSize(Integer maxPoolSize) { + this.maxPoolSize = maxPoolSize; + this.__explicitlySet__.add("maxPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private Integer minPoolSize; + + public Builder minPoolSize(Integer minPoolSize) { + this.minPoolSize = minPoolSize; + this.__explicitlySet__.add("minPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private Integer initialPoolSize; + + public Builder initialPoolSize(Integer initialPoolSize) { + this.initialPoolSize = initialPoolSize; + this.__explicitlySet__.add("initialPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private String jwtProfileJwkUrl; + + public Builder jwtProfileJwkUrl(String jwtProfileJwkUrl) { + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.__explicitlySet__.add("jwtProfileJwkUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private String jwtProfileIssuer; + + public Builder jwtProfileIssuer(String jwtProfileIssuer) { + this.jwtProfileIssuer = jwtProfileIssuer; + this.__explicitlySet__.add("jwtProfileIssuer"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private String jwtProfileAudience; + + public Builder jwtProfileAudience(String jwtProfileAudience) { + this.jwtProfileAudience = jwtProfileAudience; + this.__explicitlySet__.add("jwtProfileAudience"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private String jwtProfileRoleClaimName; + + public Builder jwtProfileRoleClaimName(String jwtProfileRoleClaimName) { + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.__explicitlySet__.add("jwtProfileRoleClaimName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private DatabaseActionsStatus databaseActionsStatus; + + public Builder databaseActionsStatus(DatabaseActionsStatus databaseActionsStatus) { + this.databaseActionsStatus = databaseActionsStatus; + this.__explicitlySet__.add("databaseActionsStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private RestEnabledSqlStatus restEnabledSqlStatus; + + public Builder restEnabledSqlStatus(RestEnabledSqlStatus restEnabledSqlStatus) { + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.__explicitlySet__.add("restEnabledSqlStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private java.util.Map advancedProperties; + + public Builder advancedProperties(java.util.Map advancedProperties) { + this.advancedProperties = advancedProperties; + this.__explicitlySet__.add("advancedProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("apiSpecs") + private java.util.List apiSpecs; + + public Builder apiSpecs( + java.util.List apiSpecs) { + this.apiSpecs = apiSpecs; + this.__explicitlySet__.add("apiSpecs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoApiSpecs") + private java.util.List autoApiSpecs; + + public Builder autoApiSpecs( + java.util.List autoApiSpecs) { + this.autoApiSpecs = autoApiSpecs; + this.__explicitlySet__.add("autoApiSpecs"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault build() { + DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault model = + new DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault( + this.key, + this.displayName, + this.poolRouteValue, + this.databaseToolsConnectionId, + this.maxPoolSize, + this.minPoolSize, + this.initialPoolSize, + this.jwtProfileJwkUrl, + this.jwtProfileIssuer, + this.jwtProfileAudience, + this.jwtProfileRoleClaimName, + this.databaseActionsStatus, + this.restEnabledSqlStatus, + this.advancedProperties, + this.apiSpecs, + this.autoApiSpecs, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("poolRouteValue")) { + this.poolRouteValue(model.getPoolRouteValue()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("maxPoolSize")) { + this.maxPoolSize(model.getMaxPoolSize()); + } + if (model.wasPropertyExplicitlySet("minPoolSize")) { + this.minPoolSize(model.getMinPoolSize()); + } + if (model.wasPropertyExplicitlySet("initialPoolSize")) { + this.initialPoolSize(model.getInitialPoolSize()); + } + if (model.wasPropertyExplicitlySet("jwtProfileJwkUrl")) { + this.jwtProfileJwkUrl(model.getJwtProfileJwkUrl()); + } + if (model.wasPropertyExplicitlySet("jwtProfileIssuer")) { + this.jwtProfileIssuer(model.getJwtProfileIssuer()); + } + if (model.wasPropertyExplicitlySet("jwtProfileAudience")) { + this.jwtProfileAudience(model.getJwtProfileAudience()); + } + if (model.wasPropertyExplicitlySet("jwtProfileRoleClaimName")) { + this.jwtProfileRoleClaimName(model.getJwtProfileRoleClaimName()); + } + if (model.wasPropertyExplicitlySet("databaseActionsStatus")) { + this.databaseActionsStatus(model.getDatabaseActionsStatus()); + } + if (model.wasPropertyExplicitlySet("restEnabledSqlStatus")) { + this.restEnabledSqlStatus(model.getRestEnabledSqlStatus()); + } + if (model.wasPropertyExplicitlySet("advancedProperties")) { + this.advancedProperties(model.getAdvancedProperties()); + } + if (model.wasPropertyExplicitlySet("apiSpecs")) { + this.apiSpecs(model.getApiSpecs()); + } + if (model.wasPropertyExplicitlySet("autoApiSpecs")) { + this.autoApiSpecs(model.getAutoApiSpecs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault( + String key, + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties, + java.util.List apiSpecs, + java.util.List autoApiSpecs, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super( + key, + displayName, + poolRouteValue, + databaseToolsConnectionId, + maxPoolSize, + minPoolSize, + initialPoolSize, + jwtProfileJwkUrl, + jwtProfileIssuer, + jwtProfileAudience, + jwtProfileRoleClaimName, + databaseActionsStatus, + restEnabledSqlStatus, + advancedProperties, + apiSpecs, + autoApiSpecs, + timeCreated, + timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault other = + (DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefault.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefault.java new file mode 100644 index 00000000000..a4009f7a18b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefault.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolDefault.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 DatabaseToolsDatabaseApiGatewayConfigPoolDefault + extends DatabaseToolsDatabaseApiGatewayConfigPool { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("poolRouteValue") + private String poolRouteValue; + + public Builder poolRouteValue(String poolRouteValue) { + this.poolRouteValue = poolRouteValue; + this.__explicitlySet__.add("poolRouteValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private Integer maxPoolSize; + + public Builder maxPoolSize(Integer maxPoolSize) { + this.maxPoolSize = maxPoolSize; + this.__explicitlySet__.add("maxPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private Integer minPoolSize; + + public Builder minPoolSize(Integer minPoolSize) { + this.minPoolSize = minPoolSize; + this.__explicitlySet__.add("minPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private Integer initialPoolSize; + + public Builder initialPoolSize(Integer initialPoolSize) { + this.initialPoolSize = initialPoolSize; + this.__explicitlySet__.add("initialPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private String jwtProfileJwkUrl; + + public Builder jwtProfileJwkUrl(String jwtProfileJwkUrl) { + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.__explicitlySet__.add("jwtProfileJwkUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private String jwtProfileIssuer; + + public Builder jwtProfileIssuer(String jwtProfileIssuer) { + this.jwtProfileIssuer = jwtProfileIssuer; + this.__explicitlySet__.add("jwtProfileIssuer"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private String jwtProfileAudience; + + public Builder jwtProfileAudience(String jwtProfileAudience) { + this.jwtProfileAudience = jwtProfileAudience; + this.__explicitlySet__.add("jwtProfileAudience"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private String jwtProfileRoleClaimName; + + public Builder jwtProfileRoleClaimName(String jwtProfileRoleClaimName) { + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.__explicitlySet__.add("jwtProfileRoleClaimName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private DatabaseActionsStatus databaseActionsStatus; + + public Builder databaseActionsStatus(DatabaseActionsStatus databaseActionsStatus) { + this.databaseActionsStatus = databaseActionsStatus; + this.__explicitlySet__.add("databaseActionsStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private RestEnabledSqlStatus restEnabledSqlStatus; + + public Builder restEnabledSqlStatus(RestEnabledSqlStatus restEnabledSqlStatus) { + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.__explicitlySet__.add("restEnabledSqlStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private java.util.Map advancedProperties; + + public Builder advancedProperties(java.util.Map advancedProperties) { + this.advancedProperties = advancedProperties; + this.__explicitlySet__.add("advancedProperties"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolDefault build() { + DatabaseToolsDatabaseApiGatewayConfigPoolDefault model = + new DatabaseToolsDatabaseApiGatewayConfigPoolDefault( + this.key, + this.displayName, + this.poolRouteValue, + this.databaseToolsConnectionId, + this.maxPoolSize, + this.minPoolSize, + this.initialPoolSize, + this.jwtProfileJwkUrl, + this.jwtProfileIssuer, + this.jwtProfileAudience, + this.jwtProfileRoleClaimName, + this.databaseActionsStatus, + this.restEnabledSqlStatus, + this.advancedProperties, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolDefault model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("poolRouteValue")) { + this.poolRouteValue(model.getPoolRouteValue()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("maxPoolSize")) { + this.maxPoolSize(model.getMaxPoolSize()); + } + if (model.wasPropertyExplicitlySet("minPoolSize")) { + this.minPoolSize(model.getMinPoolSize()); + } + if (model.wasPropertyExplicitlySet("initialPoolSize")) { + this.initialPoolSize(model.getInitialPoolSize()); + } + if (model.wasPropertyExplicitlySet("jwtProfileJwkUrl")) { + this.jwtProfileJwkUrl(model.getJwtProfileJwkUrl()); + } + if (model.wasPropertyExplicitlySet("jwtProfileIssuer")) { + this.jwtProfileIssuer(model.getJwtProfileIssuer()); + } + if (model.wasPropertyExplicitlySet("jwtProfileAudience")) { + this.jwtProfileAudience(model.getJwtProfileAudience()); + } + if (model.wasPropertyExplicitlySet("jwtProfileRoleClaimName")) { + this.jwtProfileRoleClaimName(model.getJwtProfileRoleClaimName()); + } + if (model.wasPropertyExplicitlySet("databaseActionsStatus")) { + this.databaseActionsStatus(model.getDatabaseActionsStatus()); + } + if (model.wasPropertyExplicitlySet("restEnabledSqlStatus")) { + this.restEnabledSqlStatus(model.getRestEnabledSqlStatus()); + } + if (model.wasPropertyExplicitlySet("advancedProperties")) { + this.advancedProperties(model.getAdvancedProperties()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolDefault( + String key, + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super( + key, + displayName, + poolRouteValue, + databaseToolsConnectionId, + maxPoolSize, + minPoolSize, + initialPoolSize, + jwtProfileJwkUrl, + jwtProfileIssuer, + jwtProfileAudience, + jwtProfileRoleClaimName, + databaseActionsStatus, + restEnabledSqlStatus, + advancedProperties, + timeCreated, + timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolDefault("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolDefault)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolDefault other = + (DatabaseToolsDatabaseApiGatewayConfigPoolDefault) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary.java new file mode 100644 index 00000000000..745640c2b57 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Summary of the Database Tools database API gateway config pool 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary.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 DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary + extends DatabaseToolsDatabaseApiGatewayConfigPoolSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary build() { + DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary model = + new DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary( + this.key, + this.displayName, + this.databaseToolsConnectionId, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary( + String key, + String displayName, + String databaseToolsConnectionId, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(key, displayName, databaseToolsConnectionId, timeCreated, timeUpdated); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary("); + 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 DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary other = + (DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolSummary.java new file mode 100644 index 00000000000..f26d9084068 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolSummary.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Summary of the Database Tools database API gateway config pool 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsDatabaseApiGatewayConfigPoolSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "databaseToolsConnectionId", + "timeCreated", + "timeUpdated" + }) + protected DatabaseToolsDatabaseApiGatewayConfigPoolSummary( + String key, + String displayName, + String databaseToolsConnectionId, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.displayName = displayName; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * A system generated string that uniquely identifies a pool sub resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * A system generated string that uniquely identifies a pool sub resource. + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsDatabaseApiGatewayConfigPoolSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsDatabaseApiGatewayConfigPoolSummary)) { + return false; + } + + DatabaseToolsDatabaseApiGatewayConfigPoolSummary other = + (DatabaseToolsDatabaseApiGatewayConfigPoolSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsExternalAuthenticationStatus.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsExternalAuthenticationStatus.java new file mode 100644 index 00000000000..e5b141c6132 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsExternalAuthenticationStatus.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. UNKNOWN if the user has insufficient privilege. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseToolsExternalAuthenticationStatus { + Available("AVAILABLE"), + Unavailable("UNAVAILABLE"), + Enabled("ENABLED"), + Unknown("UNKNOWN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsExternalAuthenticationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsExternalAuthenticationStatus v : + DatabaseToolsExternalAuthenticationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsExternalAuthenticationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsExternalAuthenticationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsExternalAuthenticationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentity.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentity.java new file mode 100644 index 00000000000..a2bef042f54 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentity.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Manages credentials in a database to access service resources. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = DatabaseToolsIdentity.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseToolsIdentityOracleDatabaseResourcePrincipal.class, + name = "ORACLE_DATABASE_RESOURCE_PRINCIPAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseToolsIdentity extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "databaseToolsConnectionId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "definedTags", + "freeformTags", + "systemTags" + }) + protected DatabaseToolsIdentity( + String id, + String compartmentId, + String displayName, + String databaseToolsConnectionId, + DatabaseToolsIdentityLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools identity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools identity. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools identity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools identity. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique and can be updated. 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 can be updated. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * The current state of the Database Tools identity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DatabaseToolsIdentityLifecycleState lifecycleState; + + /** + * The current state of the Database Tools identity. + * @return the value + **/ + public DatabaseToolsIdentityLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, this message 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, this message can be used to provide actionable information for a resource in the Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the Database Tools identity was created. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Database Tools identity was created. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Database Tools identity was updated. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Database Tools identity was updated. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsIdentity("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + 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(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsIdentity)) { + return false; + } + + DatabaseToolsIdentity other = (DatabaseToolsIdentity) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && 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.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityLifecycleState.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityLifecycleState.java new file mode 100644 index 00000000000..acdf653d64f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityLifecycleState.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The lifecycle state. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseToolsIdentityLifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsIdentityLifecycleState v : DatabaseToolsIdentityLifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseToolsIdentityLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsIdentityLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseToolsIdentityLifecycleState: " + key); + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityOracleDatabaseResourcePrincipal.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityOracleDatabaseResourcePrincipal.java new file mode 100644 index 00000000000..df15fc1b783 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityOracleDatabaseResourcePrincipal.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Manages credentials in a database to access service resources. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsIdentityOracleDatabaseResourcePrincipal.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 DatabaseToolsIdentityOracleDatabaseResourcePrincipal + extends DatabaseToolsIdentity { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DatabaseToolsIdentityLifecycleState lifecycleState; + + public Builder lifecycleState(DatabaseToolsIdentityLifecycleState 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("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("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("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The name of the credential object created in the Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialKey") + private String credentialKey; + + /** + * The name of the credential object created in the Oracle Database. + * @param credentialKey the value to set + * @return this builder + **/ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + this.__explicitlySet__.add("credentialKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseToolsIdentityOracleDatabaseResourcePrincipal build() { + DatabaseToolsIdentityOracleDatabaseResourcePrincipal model = + new DatabaseToolsIdentityOracleDatabaseResourcePrincipal( + this.id, + this.compartmentId, + this.displayName, + this.databaseToolsConnectionId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.definedTags, + this.freeformTags, + this.systemTags, + this.credentialKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseToolsIdentityOracleDatabaseResourcePrincipal 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("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + 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("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("credentialKey")) { + this.credentialKey(model.getCredentialKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseToolsIdentityOracleDatabaseResourcePrincipal( + String id, + String compartmentId, + String displayName, + String databaseToolsConnectionId, + DatabaseToolsIdentityLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + String credentialKey) { + super( + id, + compartmentId, + displayName, + databaseToolsConnectionId, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + definedTags, + freeformTags, + systemTags); + this.credentialKey = credentialKey; + } + + /** + * The name of the credential object created in the Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialKey") + private final String credentialKey; + + /** + * The name of the credential object created in the Oracle Database. + * @return the value + **/ + public String getCredentialKey() { + return credentialKey; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseToolsIdentityOracleDatabaseResourcePrincipal("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseToolsIdentityOracleDatabaseResourcePrincipal)) { + return false; + } + + DatabaseToolsIdentityOracleDatabaseResourcePrincipal other = + (DatabaseToolsIdentityOracleDatabaseResourcePrincipal) o; + return java.util.Objects.equals(this.credentialKey, other.credentialKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityStatus.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityStatus.java new file mode 100644 index 00000000000..84a4b37ba72 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityStatus.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The status of the identity. AVAILABLE if the identity type can be used with this connection. UNAVAILABLE if not. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseToolsIdentityStatus { + Available("AVAILABLE"), + Unavailable("UNAVAILABLE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsIdentityStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseToolsIdentityStatus v : DatabaseToolsIdentityStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseToolsIdentityStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseToolsIdentityStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseToolsIdentityStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DbmsCloudStatus.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DbmsCloudStatus.java new file mode 100644 index 00000000000..98ebbd7e590 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DbmsCloudStatus.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The DBMS_CLOUD package installation status. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DbmsCloudStatus { + Available("AVAILABLE"), + Unavailable("UNAVAILABLE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DbmsCloudStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbmsCloudStatus v : DbmsCloudStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbmsCloudStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbmsCloudStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbmsCloudStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputDetails.java new file mode 100644 index 00000000000..24c10251b03 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputDetails.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Async request script input 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ExecuteSqlAsynchronousInputDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlAsynchronousInputObjectStorageDetails.class, + name = "OBJECT_STORAGE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlAsynchronousInputInlineDetails.class, + name = "INLINE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExecuteSqlAsynchronousInputDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ExecuteSqlAsynchronousInputDetails() { + 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("ExecuteSqlAsynchronousInputDetails("); + 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 ExecuteSqlAsynchronousInputDetails)) { + return false; + } + + ExecuteSqlAsynchronousInputDetails other = (ExecuteSqlAsynchronousInputDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The request input type. + **/ + public enum Type { + ObjectStorage("OBJECT_STORAGE"), + Inline("INLINE"), + ; + + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputInlineDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputInlineDetails.java new file mode 100644 index 00000000000..e0db3c7e504 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputInlineDetails.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Inline scipt input. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlAsynchronousInputInlineDetails.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 ExecuteSqlAsynchronousInputInlineDetails + extends ExecuteSqlAsynchronousInputDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private ExecuteSqlInputDetails content; + + public Builder content(ExecuteSqlInputDetails 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 ExecuteSqlAsynchronousInputInlineDetails build() { + ExecuteSqlAsynchronousInputInlineDetails model = + new ExecuteSqlAsynchronousInputInlineDetails(this.content); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlAsynchronousInputInlineDetails model) { + 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); + } + + @Deprecated + public ExecuteSqlAsynchronousInputInlineDetails(ExecuteSqlInputDetails content) { + super(); + this.content = content; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final ExecuteSqlInputDetails content; + + public ExecuteSqlInputDetails getContent() { + return content; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlAsynchronousInputInlineDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlAsynchronousInputInlineDetails)) { + return false; + } + + ExecuteSqlAsynchronousInputInlineDetails other = + (ExecuteSqlAsynchronousInputInlineDetails) o; + return java.util.Objects.equals(this.content, other.content) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputObjectStorageDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputObjectStorageDetails.java new file mode 100644 index 00000000000..3171a7e2178 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputObjectStorageDetails.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Object Storage script input. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlAsynchronousInputObjectStorageDetails.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 ExecuteSqlAsynchronousInputObjectStorageDetails + extends ExecuteSqlAsynchronousInputDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("object") + private ExecuteSqlObjectStorageLocation object; + + public Builder object(ExecuteSqlObjectStorageLocation object) { + this.object = object; + this.__explicitlySet__.add("object"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlAsynchronousInputObjectStorageDetails build() { + ExecuteSqlAsynchronousInputObjectStorageDetails model = + new ExecuteSqlAsynchronousInputObjectStorageDetails(this.object); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlAsynchronousInputObjectStorageDetails model) { + if (model.wasPropertyExplicitlySet("object")) { + this.object(model.getObject()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlAsynchronousInputObjectStorageDetails(ExecuteSqlObjectStorageLocation object) { + super(); + this.object = object; + } + + @com.fasterxml.jackson.annotation.JsonProperty("object") + private final ExecuteSqlObjectStorageLocation object; + + public ExecuteSqlObjectStorageLocation getObject() { + return object; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlAsynchronousInputObjectStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", object=").append(String.valueOf(this.object)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlAsynchronousInputObjectStorageDetails)) { + return false; + } + + ExecuteSqlAsynchronousInputObjectStorageDetails other = + (ExecuteSqlAsynchronousInputObjectStorageDetails) o; + return java.util.Objects.equals(this.object, other.object) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.object == null ? 43 : this.object.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBind.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBind.java new file mode 100644 index 00000000000..cb09ce50af6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBind.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Bind information. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ExecuteSqlBind.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlBind extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "dataType", + "name", + "index", + "mode", + "values", + "results", + "plsqlTableTypeDetails" + }) + public ExecuteSqlBind( + String dataType, + String name, + Integer index, + Mode mode, + java.util.List values, + java.util.List results, + ExecuteSqlBindPlsqlTable plsqlTableTypeDetails) { + super(); + this.dataType = dataType; + this.name = name; + this.index = index; + this.mode = mode; + this.values = values; + this.results = results; + this.plsqlTableTypeDetails = plsqlTableTypeDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataType") + private String dataType; + + /** + * The data type. + * @param dataType the value to set + * @return this builder + **/ + public Builder dataType(String dataType) { + this.dataType = dataType; + this.__explicitlySet__.add("dataType"); + return this; + } + /** + * Name of the bind. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the bind. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Index of the bind. Index of the first bind is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("index") + private Integer index; + + /** + * Index of the bind. Index of the first bind is 1. + * @param index the value to set + * @return this builder + **/ + public Builder index(Integer index) { + this.index = index; + this.__explicitlySet__.add("index"); + return this; + } + /** + * The mode in which the bind is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * The mode in which the bind is used. + * @param mode the value to set + * @return this builder + **/ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** + * values + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * values + * @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; + } + /** + * results + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private java.util.List results; + + /** + * results + * @param results the value to set + * @return this builder + **/ + public Builder results(java.util.List results) { + this.results = results; + this.__explicitlySet__.add("results"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("plsqlTableTypeDetails") + private ExecuteSqlBindPlsqlTable plsqlTableTypeDetails; + + public Builder plsqlTableTypeDetails(ExecuteSqlBindPlsqlTable plsqlTableTypeDetails) { + this.plsqlTableTypeDetails = plsqlTableTypeDetails; + this.__explicitlySet__.add("plsqlTableTypeDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlBind build() { + ExecuteSqlBind model = + new ExecuteSqlBind( + this.dataType, + this.name, + this.index, + this.mode, + this.values, + this.results, + this.plsqlTableTypeDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlBind model) { + if (model.wasPropertyExplicitlySet("dataType")) { + this.dataType(model.getDataType()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("index")) { + this.index(model.getIndex()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("results")) { + this.results(model.getResults()); + } + if (model.wasPropertyExplicitlySet("plsqlTableTypeDetails")) { + this.plsqlTableTypeDetails(model.getPlsqlTableTypeDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataType") + private final String dataType; + + /** + * The data type. + * @return the value + **/ + public String getDataType() { + return dataType; + } + + /** + * Name of the bind. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the bind. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Index of the bind. Index of the first bind is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("index") + private final Integer index; + + /** + * Index of the bind. Index of the first bind is 1. + * @return the value + **/ + public Integer getIndex() { + return index; + } + + /** + * The mode in which the bind is used. + **/ + public enum Mode { + In("IN"), + Inout("INOUT"), + Out("OUT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Mode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** + * The mode in which the bind is used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * The mode in which the bind is used. + * @return the value + **/ + public Mode getMode() { + return mode; + } + + /** + * values + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * values + * @return the value + **/ + public java.util.List getValues() { + return values; + } + + /** + * results + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private final java.util.List results; + + /** + * results + * @return the value + **/ + public java.util.List getResults() { + return results; + } + + @com.fasterxml.jackson.annotation.JsonProperty("plsqlTableTypeDetails") + private final ExecuteSqlBindPlsqlTable plsqlTableTypeDetails; + + public ExecuteSqlBindPlsqlTable getPlsqlTableTypeDetails() { + return plsqlTableTypeDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlBind("); + sb.append("super=").append(super.toString()); + sb.append("dataType=").append(String.valueOf(this.dataType)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", index=").append(String.valueOf(this.index)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", results=").append(String.valueOf(this.results)); + sb.append(", plsqlTableTypeDetails=").append(String.valueOf(this.plsqlTableTypeDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlBind)) { + return false; + } + + ExecuteSqlBind other = (ExecuteSqlBind) o; + return java.util.Objects.equals(this.dataType, other.dataType) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.index, other.index) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.results, other.results) + && java.util.Objects.equals(this.plsqlTableTypeDetails, other.plsqlTableTypeDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dataType == null ? 43 : this.dataType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.index == null ? 43 : this.index.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + (this.results == null ? 43 : this.results.hashCode()); + result = + (result * PRIME) + + (this.plsqlTableTypeDetails == null + ? 43 + : this.plsqlTableTypeDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindPlsqlTable.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindPlsqlTable.java new file mode 100644 index 00000000000..b4705b40100 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindPlsqlTable.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * PL/SQL table type 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlBindPlsqlTable.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlBindPlsqlTable + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"typeName", "typeSubname", "typeComponents"}) + public ExecuteSqlBindPlsqlTable( + String typeName, + String typeSubname, + java.util.List typeComponents) { + super(); + this.typeName = typeName; + this.typeSubname = typeSubname; + this.typeComponents = typeComponents; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Only an empty string is accepted as the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + private String typeName; + + /** + * Only an empty string is accepted as the value. + * @param typeName the value to set + * @return this builder + **/ + public Builder typeName(String typeName) { + this.typeName = typeName; + this.__explicitlySet__.add("typeName"); + return this; + } + /** + * Only an empty string is accepted as the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeSubname") + private String typeSubname; + + /** + * Only an empty string is accepted as the value. + * @param typeSubname the value to set + * @return this builder + **/ + public Builder typeSubname(String typeSubname) { + this.typeSubname = typeSubname; + this.__explicitlySet__.add("typeSubname"); + return this; + } + /** + * Specifies an array of data types in the PL/SQL table. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeComponents") + private java.util.List typeComponents; + + /** + * Specifies an array of data types in the PL/SQL table. + * @param typeComponents the value to set + * @return this builder + **/ + public Builder typeComponents(java.util.List typeComponents) { + this.typeComponents = typeComponents; + this.__explicitlySet__.add("typeComponents"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlBindPlsqlTable build() { + ExecuteSqlBindPlsqlTable model = + new ExecuteSqlBindPlsqlTable( + this.typeName, this.typeSubname, this.typeComponents); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlBindPlsqlTable model) { + if (model.wasPropertyExplicitlySet("typeName")) { + this.typeName(model.getTypeName()); + } + if (model.wasPropertyExplicitlySet("typeSubname")) { + this.typeSubname(model.getTypeSubname()); + } + if (model.wasPropertyExplicitlySet("typeComponents")) { + this.typeComponents(model.getTypeComponents()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Only an empty string is accepted as the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + private final String typeName; + + /** + * Only an empty string is accepted as the value. + * @return the value + **/ + public String getTypeName() { + return typeName; + } + + /** + * Only an empty string is accepted as the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeSubname") + private final String typeSubname; + + /** + * Only an empty string is accepted as the value. + * @return the value + **/ + public String getTypeSubname() { + return typeSubname; + } + + /** + * Specifies an array of data types in the PL/SQL table. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeComponents") + private final java.util.List typeComponents; + + /** + * Specifies an array of data types in the PL/SQL table. + * @return the value + **/ + public java.util.List getTypeComponents() { + return typeComponents; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlBindPlsqlTable("); + sb.append("super=").append(super.toString()); + sb.append("typeName=").append(String.valueOf(this.typeName)); + sb.append(", typeSubname=").append(String.valueOf(this.typeSubname)); + sb.append(", typeComponents=").append(String.valueOf(this.typeComponents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlBindPlsqlTable)) { + return false; + } + + ExecuteSqlBindPlsqlTable other = (ExecuteSqlBindPlsqlTable) o; + return java.util.Objects.equals(this.typeName, other.typeName) + && java.util.Objects.equals(this.typeSubname, other.typeSubname) + && java.util.Objects.equals(this.typeComponents, other.typeComponents) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.typeName == null ? 43 : this.typeName.hashCode()); + result = (result * PRIME) + (this.typeSubname == null ? 43 : this.typeSubname.hashCode()); + result = + (result * PRIME) + + (this.typeComponents == null ? 43 : this.typeComponents.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindTypeComponent.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindTypeComponent.java new file mode 100644 index 00000000000..f4a0a051dbc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindTypeComponent.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Data type component. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlBindTypeComponent.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlBindTypeComponent + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dataType"}) + public ExecuteSqlBindTypeComponent(String dataType) { + super(); + this.dataType = dataType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Oracle Database data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataType") + private String dataType; + + /** + * Oracle Database data type. + * @param dataType the value to set + * @return this builder + **/ + public Builder dataType(String dataType) { + this.dataType = dataType; + this.__explicitlySet__.add("dataType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlBindTypeComponent build() { + ExecuteSqlBindTypeComponent model = new ExecuteSqlBindTypeComponent(this.dataType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlBindTypeComponent model) { + if (model.wasPropertyExplicitlySet("dataType")) { + this.dataType(model.getDataType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Oracle Database data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataType") + private final String dataType; + + /** + * Oracle Database data type. + * @return the value + **/ + public String getDataType() { + return dataType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlBindTypeComponent("); + sb.append("super=").append(super.toString()); + sb.append("dataType=").append(String.valueOf(this.dataType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlBindTypeComponent)) { + return false; + } + + ExecuteSqlBindTypeComponent other = (ExecuteSqlBindTypeComponent) o; + return java.util.Objects.equals(this.dataType, other.dataType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dataType == null ? 43 : this.dataType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionAsynchronousDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionAsynchronousDetails.java new file mode 100644 index 00000000000..96204e41d06 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionAsynchronousDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Asynchronous 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlDatabaseToolsConnectionAsynchronousDetails.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 ExecuteSqlDatabaseToolsConnectionAsynchronousDetails + extends ExecuteSqlDatabaseToolsConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("output") + private ExecuteSqlOutputDetails output; + + public Builder output(ExecuteSqlOutputDetails output) { + this.output = output; + this.__explicitlySet__.add("output"); + return this; + } + /** + * Maximum time in seconds allowed for the request to complete, measured from submission. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeoutInSeconds") + private Integer timeoutInSeconds; + + /** + * Maximum time in seconds allowed for the request to complete, measured from submission. + * @param timeoutInSeconds the value to set + * @return this builder + **/ + public Builder timeoutInSeconds(Integer timeoutInSeconds) { + this.timeoutInSeconds = timeoutInSeconds; + this.__explicitlySet__.add("timeoutInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("input") + private ExecuteSqlAsynchronousInputDetails input; + + public Builder input(ExecuteSqlAsynchronousInputDetails input) { + this.input = input; + this.__explicitlySet__.add("input"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlDatabaseToolsConnectionAsynchronousDetails build() { + ExecuteSqlDatabaseToolsConnectionAsynchronousDetails model = + new ExecuteSqlDatabaseToolsConnectionAsynchronousDetails( + this.output, this.timeoutInSeconds, this.input); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlDatabaseToolsConnectionAsynchronousDetails model) { + if (model.wasPropertyExplicitlySet("output")) { + this.output(model.getOutput()); + } + if (model.wasPropertyExplicitlySet("timeoutInSeconds")) { + this.timeoutInSeconds(model.getTimeoutInSeconds()); + } + if (model.wasPropertyExplicitlySet("input")) { + this.input(model.getInput()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlDatabaseToolsConnectionAsynchronousDetails( + ExecuteSqlOutputDetails output, + Integer timeoutInSeconds, + ExecuteSqlAsynchronousInputDetails input) { + super(output); + this.timeoutInSeconds = timeoutInSeconds; + this.input = input; + } + + /** + * Maximum time in seconds allowed for the request to complete, measured from submission. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeoutInSeconds") + private final Integer timeoutInSeconds; + + /** + * Maximum time in seconds allowed for the request to complete, measured from submission. + * @return the value + **/ + public Integer getTimeoutInSeconds() { + return timeoutInSeconds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("input") + private final ExecuteSqlAsynchronousInputDetails input; + + public ExecuteSqlAsynchronousInputDetails getInput() { + return input; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlDatabaseToolsConnectionAsynchronousDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", timeoutInSeconds=").append(String.valueOf(this.timeoutInSeconds)); + sb.append(", input=").append(String.valueOf(this.input)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlDatabaseToolsConnectionAsynchronousDetails)) { + return false; + } + + ExecuteSqlDatabaseToolsConnectionAsynchronousDetails other = + (ExecuteSqlDatabaseToolsConnectionAsynchronousDetails) o; + return java.util.Objects.equals(this.timeoutInSeconds, other.timeoutInSeconds) + && java.util.Objects.equals(this.input, other.input) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.timeoutInSeconds == null ? 43 : this.timeoutInSeconds.hashCode()); + result = (result * PRIME) + (this.input == null ? 43 : this.input.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionDetails.java new file mode 100644 index 00000000000..8e9d07ba213 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionDetails.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ExecuteSqlDatabaseToolsConnectionDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlDatabaseToolsConnectionAsynchronousDetails.class, + name = "ASYNCHRONOUS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlDatabaseToolsConnectionSynchronousDetails.class, + name = "SYNCHRONOUS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExecuteSqlDatabaseToolsConnectionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"output"}) + protected ExecuteSqlDatabaseToolsConnectionDetails(ExecuteSqlOutputDetails output) { + super(); + this.output = output; + } + + @com.fasterxml.jackson.annotation.JsonProperty("output") + private final ExecuteSqlOutputDetails output; + + public ExecuteSqlOutputDetails getOutput() { + return output; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlDatabaseToolsConnectionDetails("); + sb.append("super=").append(super.toString()); + sb.append("output=").append(String.valueOf(this.output)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlDatabaseToolsConnectionDetails)) { + return false; + } + + ExecuteSqlDatabaseToolsConnectionDetails other = + (ExecuteSqlDatabaseToolsConnectionDetails) o; + return java.util.Objects.equals(this.output, other.output) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.output == null ? 43 : this.output.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The request execution type. + **/ + public enum Type { + Synchronous("SYNCHRONOUS"), + Asynchronous("ASYNCHRONOUS"), + ; + + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionSynchronousDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionSynchronousDetails.java new file mode 100644 index 00000000000..b1566f57687 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionSynchronousDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Synchronous 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlDatabaseToolsConnectionSynchronousDetails.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 ExecuteSqlDatabaseToolsConnectionSynchronousDetails + extends ExecuteSqlDatabaseToolsConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("output") + private ExecuteSqlOutputDetails output; + + public Builder output(ExecuteSqlOutputDetails output) { + this.output = output; + this.__explicitlySet__.add("output"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("input") + private ExecuteSqlInputDetails input; + + public Builder input(ExecuteSqlInputDetails input) { + this.input = input; + this.__explicitlySet__.add("input"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlDatabaseToolsConnectionSynchronousDetails build() { + ExecuteSqlDatabaseToolsConnectionSynchronousDetails model = + new ExecuteSqlDatabaseToolsConnectionSynchronousDetails( + this.output, this.input); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlDatabaseToolsConnectionSynchronousDetails model) { + if (model.wasPropertyExplicitlySet("output")) { + this.output(model.getOutput()); + } + if (model.wasPropertyExplicitlySet("input")) { + this.input(model.getInput()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlDatabaseToolsConnectionSynchronousDetails( + ExecuteSqlOutputDetails output, ExecuteSqlInputDetails input) { + super(output); + this.input = input; + } + + @com.fasterxml.jackson.annotation.JsonProperty("input") + private final ExecuteSqlInputDetails input; + + public ExecuteSqlInputDetails getInput() { + return input; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlDatabaseToolsConnectionSynchronousDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", input=").append(String.valueOf(this.input)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlDatabaseToolsConnectionSynchronousDetails)) { + return false; + } + + ExecuteSqlDatabaseToolsConnectionSynchronousDetails other = + (ExecuteSqlDatabaseToolsConnectionSynchronousDetails) o; + return java.util.Objects.equals(this.input, other.input) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.input == null ? 43 : this.input.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputBatchDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputBatchDetails.java new file mode 100644 index 00000000000..1117de422c9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputBatchDetails.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Batch SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlInputBatchDetails.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 ExecuteSqlInputBatchDetails extends ExecuteSqlInputDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * DML statements to execute in jdbc batch mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchStatementTexts") + private java.util.List batchStatementTexts; + + /** + * DML statements to execute in jdbc batch mode + * @param batchStatementTexts the value to set + * @return this builder + **/ + public Builder batchStatementTexts(java.util.List batchStatementTexts) { + this.batchStatementTexts = batchStatementTexts; + this.__explicitlySet__.add("batchStatementTexts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("responseFormat") + private ExecuteSqlResponseFormat responseFormat; + + public Builder responseFormat(ExecuteSqlResponseFormat responseFormat) { + this.responseFormat = responseFormat; + this.__explicitlySet__.add("responseFormat"); + return this; + } + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private Object properties; + + /** + * Client properties returned as-is in the response + * @param properties the value to set + * @return this builder + **/ + public Builder properties(Object properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlInputBatchDetails build() { + ExecuteSqlInputBatchDetails model = + new ExecuteSqlInputBatchDetails( + this.batchStatementTexts, this.responseFormat, this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlInputBatchDetails model) { + if (model.wasPropertyExplicitlySet("batchStatementTexts")) { + this.batchStatementTexts(model.getBatchStatementTexts()); + } + if (model.wasPropertyExplicitlySet("responseFormat")) { + this.responseFormat(model.getResponseFormat()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlInputBatchDetails( + java.util.List batchStatementTexts, + ExecuteSqlResponseFormat responseFormat, + Object properties) { + super(); + this.batchStatementTexts = batchStatementTexts; + this.responseFormat = responseFormat; + this.properties = properties; + } + + /** + * DML statements to execute in jdbc batch mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchStatementTexts") + private final java.util.List batchStatementTexts; + + /** + * DML statements to execute in jdbc batch mode + * @return the value + **/ + public java.util.List getBatchStatementTexts() { + return batchStatementTexts; + } + + @com.fasterxml.jackson.annotation.JsonProperty("responseFormat") + private final ExecuteSqlResponseFormat responseFormat; + + public ExecuteSqlResponseFormat getResponseFormat() { + return responseFormat; + } + + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final Object properties; + + /** + * Client properties returned as-is in the response + * @return the value + **/ + public Object getProperties() { + return properties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlInputBatchDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", batchStatementTexts=").append(String.valueOf(this.batchStatementTexts)); + sb.append(", responseFormat=").append(String.valueOf(this.responseFormat)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlInputBatchDetails)) { + return false; + } + + ExecuteSqlInputBatchDetails other = (ExecuteSqlInputBatchDetails) o; + return java.util.Objects.equals(this.batchStatementTexts, other.batchStatementTexts) + && java.util.Objects.equals(this.responseFormat, other.responseFormat) + && java.util.Objects.equals(this.properties, other.properties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.batchStatementTexts == null + ? 43 + : this.batchStatementTexts.hashCode()); + result = + (result * PRIME) + + (this.responseFormat == null ? 43 : this.responseFormat.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputDetails.java new file mode 100644 index 00000000000..c6ad66c08ba --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ExecuteSqlInputDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlInputStandardDetails.class, + name = "STANDARD" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlInputBatchDetails.class, + name = "BATCH" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlInputScriptDetails.class, + name = "SCRIPT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExecuteSqlInputDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ExecuteSqlInputDetails() { + 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("ExecuteSqlInputDetails("); + 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 ExecuteSqlInputDetails)) { + return false; + } + + ExecuteSqlInputDetails other = (ExecuteSqlInputDetails) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptDetails.java new file mode 100644 index 00000000000..c6e9914430e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Script SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlInputScriptDetails.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 ExecuteSqlInputScriptDetails extends ExecuteSqlInputDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Request payload version, returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Request payload version, returned as-is in the response + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.List> properties; + + /** + * Client properties returned as-is in the response + * @param properties the value to set + * @return this builder + **/ + public Builder properties(java.util.List> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** + * The collection of scripts to execute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scripts") + private java.util.List scripts; + + /** + * The collection of scripts to execute. + * @param scripts the value to set + * @return this builder + **/ + public Builder scripts(java.util.List scripts) { + this.scripts = scripts; + this.__explicitlySet__.add("scripts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlInputScriptDetails build() { + ExecuteSqlInputScriptDetails model = + new ExecuteSqlInputScriptDetails(this.version, this.properties, this.scripts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlInputScriptDetails model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("scripts")) { + this.scripts(model.getScripts()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlInputScriptDetails( + String version, + java.util.List> properties, + java.util.List scripts) { + super(); + this.version = version; + this.properties = properties; + this.scripts = scripts; + } + + /** + * Request payload version, returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Request payload version, returned as-is in the response + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final java.util.List> properties; + + /** + * Client properties returned as-is in the response + * @return the value + **/ + public java.util.List> getProperties() { + return properties; + } + + /** + * The collection of scripts to execute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scripts") + private final java.util.List scripts; + + /** + * The collection of scripts to execute. + * @return the value + **/ + public java.util.List getScripts() { + return scripts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlInputScriptDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", scripts=").append(String.valueOf(this.scripts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlInputScriptDetails)) { + return false; + } + + ExecuteSqlInputScriptDetails other = (ExecuteSqlInputScriptDetails) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.scripts, other.scripts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.scripts == null ? 43 : this.scripts.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptSqlRequestDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptSqlRequestDetails.java new file mode 100644 index 00000000000..bef1793e167 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptSqlRequestDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Script SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlInputScriptSqlRequestDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlInputScriptSqlRequestDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"properties", "sqlRequests"}) + public ExecuteSqlInputScriptSqlRequestDetails( + Object properties, java.util.List sqlRequests) { + super(); + this.properties = properties; + this.sqlRequests = sqlRequests; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private Object properties; + + /** + * Client properties returned as-is in the response + * @param properties the value to set + * @return this builder + **/ + public Builder properties(Object properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** + * The SQL statements to execute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sqlRequests") + private java.util.List sqlRequests; + + /** + * The SQL statements to execute. + * @param sqlRequests the value to set + * @return this builder + **/ + public Builder sqlRequests(java.util.List sqlRequests) { + this.sqlRequests = sqlRequests; + this.__explicitlySet__.add("sqlRequests"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlInputScriptSqlRequestDetails build() { + ExecuteSqlInputScriptSqlRequestDetails model = + new ExecuteSqlInputScriptSqlRequestDetails(this.properties, this.sqlRequests); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlInputScriptSqlRequestDetails model) { + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("sqlRequests")) { + this.sqlRequests(model.getSqlRequests()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final Object properties; + + /** + * Client properties returned as-is in the response + * @return the value + **/ + public Object getProperties() { + return properties; + } + + /** + * The SQL statements to execute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sqlRequests") + private final java.util.List sqlRequests; + + /** + * The SQL statements to execute. + * @return the value + **/ + public java.util.List getSqlRequests() { + return sqlRequests; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlInputScriptSqlRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("properties=").append(String.valueOf(this.properties)); + sb.append(", sqlRequests=").append(String.valueOf(this.sqlRequests)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlInputScriptSqlRequestDetails)) { + return false; + } + + ExecuteSqlInputScriptSqlRequestDetails other = (ExecuteSqlInputScriptSqlRequestDetails) o; + return java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.sqlRequests, other.sqlRequests) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.sqlRequests == null ? 43 : this.sqlRequests.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputStandardDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputStandardDetails.java new file mode 100644 index 00000000000..b0d181517e3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputStandardDetails.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Standard SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlInputStandardDetails.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 ExecuteSqlInputStandardDetails extends ExecuteSqlInputDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Statements to execute (Can be more than one). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private String statementText; + + /** + * Statements to execute (Can be more than one). + * @param statementText the value to set + * @return this builder + **/ + public Builder statementText(String statementText) { + this.statementText = statementText; + this.__explicitlySet__.add("statementText"); + return this; + } + /** + * The maximum number of rows to return from the query (-1 disables pagination). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("limit") + private Integer limit; + + /** + * The maximum number of rows to return from the query (-1 disables pagination). + * @param limit the value to set + * @return this builder + **/ + public Builder limit(Integer limit) { + this.limit = limit; + this.__explicitlySet__.add("limit"); + return this; + } + /** + * The first row to return in the result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("offset") + private Integer offset; + + /** + * The first row to return in the result set. + * @param offset the value to set + * @return this builder + **/ + public Builder offset(Integer offset) { + this.offset = offset; + this.__explicitlySet__.add("offset"); + return this; + } + /** + * Array of objects specifying the bind information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private java.util.List binds; + + /** + * Array of objects specifying the bind information. + * @param binds the value to set + * @return this builder + **/ + public Builder binds(java.util.List binds) { + this.binds = binds; + this.__explicitlySet__.add("binds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("responseFormat") + private ExecuteSqlResponseFormat responseFormat; + + public Builder responseFormat(ExecuteSqlResponseFormat responseFormat) { + this.responseFormat = responseFormat; + this.__explicitlySet__.add("responseFormat"); + return this; + } + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private Object properties; + + /** + * Client properties returned as-is in the response + * @param properties the value to set + * @return this builder + **/ + public Builder properties(Object properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlInputStandardDetails build() { + ExecuteSqlInputStandardDetails model = + new ExecuteSqlInputStandardDetails( + this.statementText, + this.limit, + this.offset, + this.binds, + this.responseFormat, + this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlInputStandardDetails model) { + if (model.wasPropertyExplicitlySet("statementText")) { + this.statementText(model.getStatementText()); + } + if (model.wasPropertyExplicitlySet("limit")) { + this.limit(model.getLimit()); + } + if (model.wasPropertyExplicitlySet("offset")) { + this.offset(model.getOffset()); + } + if (model.wasPropertyExplicitlySet("binds")) { + this.binds(model.getBinds()); + } + if (model.wasPropertyExplicitlySet("responseFormat")) { + this.responseFormat(model.getResponseFormat()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlInputStandardDetails( + String statementText, + Integer limit, + Integer offset, + java.util.List binds, + ExecuteSqlResponseFormat responseFormat, + Object properties) { + super(); + this.statementText = statementText; + this.limit = limit; + this.offset = offset; + this.binds = binds; + this.responseFormat = responseFormat; + this.properties = properties; + } + + /** + * Statements to execute (Can be more than one). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private final String statementText; + + /** + * Statements to execute (Can be more than one). + * @return the value + **/ + public String getStatementText() { + return statementText; + } + + /** + * The maximum number of rows to return from the query (-1 disables pagination). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("limit") + private final Integer limit; + + /** + * The maximum number of rows to return from the query (-1 disables pagination). + * @return the value + **/ + public Integer getLimit() { + return limit; + } + + /** + * The first row to return in the result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("offset") + private final Integer offset; + + /** + * The first row to return in the result set. + * @return the value + **/ + public Integer getOffset() { + return offset; + } + + /** + * Array of objects specifying the bind information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private final java.util.List binds; + + /** + * Array of objects specifying the bind information. + * @return the value + **/ + public java.util.List getBinds() { + return binds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("responseFormat") + private final ExecuteSqlResponseFormat responseFormat; + + public ExecuteSqlResponseFormat getResponseFormat() { + return responseFormat; + } + + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final Object properties; + + /** + * Client properties returned as-is in the response + * @return the value + **/ + public Object getProperties() { + return properties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlInputStandardDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", statementText=").append(String.valueOf(this.statementText)); + sb.append(", limit=").append(String.valueOf(this.limit)); + sb.append(", offset=").append(String.valueOf(this.offset)); + sb.append(", binds=").append(String.valueOf(this.binds)); + sb.append(", responseFormat=").append(String.valueOf(this.responseFormat)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlInputStandardDetails)) { + return false; + } + + ExecuteSqlInputStandardDetails other = (ExecuteSqlInputStandardDetails) o; + return java.util.Objects.equals(this.statementText, other.statementText) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.offset, other.offset) + && java.util.Objects.equals(this.binds, other.binds) + && java.util.Objects.equals(this.responseFormat, other.responseFormat) + && java.util.Objects.equals(this.properties, other.properties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.statementText == null ? 43 : this.statementText.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.offset == null ? 43 : this.offset.hashCode()); + result = (result * PRIME) + (this.binds == null ? 43 : this.binds.hashCode()); + result = + (result * PRIME) + + (this.responseFormat == null ? 43 : this.responseFormat.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlObjectStorageLocation.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlObjectStorageLocation.java new file mode 100644 index 00000000000..e38f448b47d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlObjectStorageLocation.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Object Storage location. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlObjectStorageLocation.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlObjectStorageLocation + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "bucketName", "objectName"}) + public ExecuteSqlObjectStorageLocation(String namespace, String bucketName, String objectName) { + super(); + this.namespace = namespace; + this.bucketName = bucketName; + this.objectName = objectName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the object storage namespace + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The name of the object storage namespace + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The name of the object storage bucket + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The name of the object storage bucket + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * The name of the object + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the object + * @param objectName the value to set + * @return this builder + **/ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlObjectStorageLocation build() { + ExecuteSqlObjectStorageLocation model = + new ExecuteSqlObjectStorageLocation( + this.namespace, this.bucketName, this.objectName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlObjectStorageLocation model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + 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 object storage namespace + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The name of the object storage namespace + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * The name of the object storage bucket + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The name of the object storage bucket + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * The name of the object + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the object + * @return the value + **/ + public String getObjectName() { + return objectName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlObjectStorageLocation("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlObjectStorageLocation)) { + return false; + } + + ExecuteSqlObjectStorageLocation other = (ExecuteSqlObjectStorageLocation) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.objectName, other.objectName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDetails.java new file mode 100644 index 00000000000..e8eec004d5c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDetails.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Defines how the script result should be stored + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ExecuteSqlOutputDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlOutputObjectStorageDetails.class, + name = "OBJECT_STORAGE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExecuteSqlOutputDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resultDispositionTemplates"}) + protected ExecuteSqlOutputDetails( + java.util.List resultDispositionTemplates) { + super(); + this.resultDispositionTemplates = resultDispositionTemplates; + } + + /** + * Defines how the result of commands in a script should be stored. + * If the command does not match any template filter, the result will be inline. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resultDispositionTemplates") + private final java.util.List + resultDispositionTemplates; + + /** + * Defines how the result of commands in a script should be stored. + * If the command does not match any template filter, the result will be inline. + * + * @return the value + **/ + public java.util.List + getResultDispositionTemplates() { + return resultDispositionTemplates; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlOutputDetails("); + sb.append("super=").append(super.toString()); + sb.append("resultDispositionTemplates=") + .append(String.valueOf(this.resultDispositionTemplates)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlOutputDetails)) { + return false; + } + + ExecuteSqlOutputDetails other = (ExecuteSqlOutputDetails) o; + return java.util.Objects.equals( + this.resultDispositionTemplates, other.resultDispositionTemplates) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.resultDispositionTemplates == null + ? 43 + : this.resultDispositionTemplates.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The response disposition type. + **/ + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionDetails.java new file mode 100644 index 00000000000..8768a8c7d81 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionDetails.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Describes how the response of a command is to be stored + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ExecuteSqlOutputDispositionDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlOutputDispositionObjectStorageDetails.class, + name = "OBJECT_STORAGE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExecuteSqlOutputDispositionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ExecuteSqlOutputDispositionDetails() { + 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("ExecuteSqlOutputDispositionDetails("); + 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 ExecuteSqlOutputDispositionDetails)) { + return false; + } + + ExecuteSqlOutputDispositionDetails other = (ExecuteSqlOutputDispositionDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The location resource type. + **/ + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionObjectStorageDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionObjectStorageDetails.java new file mode 100644 index 00000000000..8657130aba6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionObjectStorageDetails.java @@ -0,0 +1,723 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Describes how the result of a statement is stored in Object Storage + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlOutputDispositionObjectStorageDetails.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 ExecuteSqlOutputDispositionObjectStorageDetails + extends ExecuteSqlOutputDispositionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the object storage namespace + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The name of the object storage namespace + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The name of the object storage bucket + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The name of the object storage bucket + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * The name of the object template (can contain statementId placeholder, for example; query_{statementId}.csv ) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the object template (can contain statementId placeholder, for example; query_{statementId}.csv ) + * @param objectName the value to set + * @return this builder + **/ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** + * The content type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentType") + private String contentType; + + /** + * The content type + * @param contentType the value to set + * @return this builder + **/ + public Builder contentType(String contentType) { + this.contentType = contentType; + this.__explicitlySet__.add("contentType"); + return this; + } + /** + * The content disposition + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentDisposition") + private String contentDisposition; + + /** + * The content disposition + * @param contentDisposition the value to set + * @return this builder + **/ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + this.__explicitlySet__.add("contentDisposition"); + return this; + } + /** + * The content encoding + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentEncoding") + private String contentEncoding; + + /** + * The content encoding + * @param contentEncoding the value to set + * @return this builder + **/ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + this.__explicitlySet__.add("contentEncoding"); + return this; + } + /** + * The Cache-Control header + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cacheControl") + private String cacheControl; + + /** + * The Cache-Control header + * @param cacheControl the value to set + * @return this builder + **/ + public Builder cacheControl(String cacheControl) { + this.cacheControl = cacheControl; + this.__explicitlySet__.add("cacheControl"); + return this; + } + /** + * The content language + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentLanguage") + private String contentLanguage; + + /** + * The content language + * @param contentLanguage the value to set + * @return this builder + **/ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + this.__explicitlySet__.add("contentLanguage"); + return this; + } + /** + * The object metadata + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcMeta") + private java.util.Map opcMeta; + + /** + * The object metadata + * @param opcMeta the value to set + * @return this builder + **/ + public Builder opcMeta(java.util.Map opcMeta) { + this.opcMeta = opcMeta; + this.__explicitlySet__.add("opcMeta"); + return this; + } + /** + * The Encryption Algorithm + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseCustomerAlgorithm") + private String opcSseCustomerAlgorithm; + + /** + * The Encryption Algorithm + * @param opcSseCustomerAlgorithm the value to set + * @return this builder + **/ + public Builder opcSseCustomerAlgorithm(String opcSseCustomerAlgorithm) { + this.opcSseCustomerAlgorithm = opcSseCustomerAlgorithm; + this.__explicitlySet__.add("opcSseCustomerAlgorithm"); + return this; + } + /** + * The base64-encoded 256-bit encryption key to use + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseCustomerKey") + private String opcSseCustomerKey; + + /** + * The base64-encoded 256-bit encryption key to use + * @param opcSseCustomerKey the value to set + * @return this builder + **/ + public Builder opcSseCustomerKey(String opcSseCustomerKey) { + this.opcSseCustomerKey = opcSseCustomerKey; + this.__explicitlySet__.add("opcSseCustomerKey"); + return this; + } + /** + * The base64-encoded SHA256 hash of the encryption key + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseCustomerKeySha256") + private String opcSseCustomerKeySha256; + + /** + * The base64-encoded SHA256 hash of the encryption key + * @param opcSseCustomerKeySha256 the value to set + * @return this builder + **/ + public Builder opcSseCustomerKeySha256(String opcSseCustomerKeySha256) { + this.opcSseCustomerKeySha256 = opcSseCustomerKeySha256; + this.__explicitlySet__.add("opcSseCustomerKeySha256"); + return this; + } + /** + * The OCID of a master encryption key + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseKmsKeyId") + private String opcSseKmsKeyId; + + /** + * The OCID of a master encryption key + * @param opcSseKmsKeyId the value to set + * @return this builder + **/ + public Builder opcSseKmsKeyId(String opcSseKmsKeyId) { + this.opcSseKmsKeyId = opcSseKmsKeyId; + this.__explicitlySet__.add("opcSseKmsKeyId"); + return this; + } + /** + * The storage tier that the object should be stored in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private StorageTier storageTier; + + /** + * The storage tier that the object should be stored in + * @param storageTier the value to set + * @return this builder + **/ + public Builder storageTier(StorageTier storageTier) { + this.storageTier = storageTier; + this.__explicitlySet__.add("storageTier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlOutputDispositionObjectStorageDetails build() { + ExecuteSqlOutputDispositionObjectStorageDetails model = + new ExecuteSqlOutputDispositionObjectStorageDetails( + this.namespace, + this.bucketName, + this.objectName, + this.contentType, + this.contentDisposition, + this.contentEncoding, + this.cacheControl, + this.contentLanguage, + this.opcMeta, + this.opcSseCustomerAlgorithm, + this.opcSseCustomerKey, + this.opcSseCustomerKeySha256, + this.opcSseKmsKeyId, + this.storageTier); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlOutputDispositionObjectStorageDetails model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("contentType")) { + this.contentType(model.getContentType()); + } + if (model.wasPropertyExplicitlySet("contentDisposition")) { + this.contentDisposition(model.getContentDisposition()); + } + if (model.wasPropertyExplicitlySet("contentEncoding")) { + this.contentEncoding(model.getContentEncoding()); + } + if (model.wasPropertyExplicitlySet("cacheControl")) { + this.cacheControl(model.getCacheControl()); + } + if (model.wasPropertyExplicitlySet("contentLanguage")) { + this.contentLanguage(model.getContentLanguage()); + } + if (model.wasPropertyExplicitlySet("opcMeta")) { + this.opcMeta(model.getOpcMeta()); + } + if (model.wasPropertyExplicitlySet("opcSseCustomerAlgorithm")) { + this.opcSseCustomerAlgorithm(model.getOpcSseCustomerAlgorithm()); + } + if (model.wasPropertyExplicitlySet("opcSseCustomerKey")) { + this.opcSseCustomerKey(model.getOpcSseCustomerKey()); + } + if (model.wasPropertyExplicitlySet("opcSseCustomerKeySha256")) { + this.opcSseCustomerKeySha256(model.getOpcSseCustomerKeySha256()); + } + if (model.wasPropertyExplicitlySet("opcSseKmsKeyId")) { + this.opcSseKmsKeyId(model.getOpcSseKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("storageTier")) { + this.storageTier(model.getStorageTier()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlOutputDispositionObjectStorageDetails( + String namespace, + String bucketName, + String objectName, + String contentType, + String contentDisposition, + String contentEncoding, + String cacheControl, + String contentLanguage, + java.util.Map opcMeta, + String opcSseCustomerAlgorithm, + String opcSseCustomerKey, + String opcSseCustomerKeySha256, + String opcSseKmsKeyId, + StorageTier storageTier) { + super(); + this.namespace = namespace; + this.bucketName = bucketName; + this.objectName = objectName; + this.contentType = contentType; + this.contentDisposition = contentDisposition; + this.contentEncoding = contentEncoding; + this.cacheControl = cacheControl; + this.contentLanguage = contentLanguage; + this.opcMeta = opcMeta; + this.opcSseCustomerAlgorithm = opcSseCustomerAlgorithm; + this.opcSseCustomerKey = opcSseCustomerKey; + this.opcSseCustomerKeySha256 = opcSseCustomerKeySha256; + this.opcSseKmsKeyId = opcSseKmsKeyId; + this.storageTier = storageTier; + } + + /** + * The name of the object storage namespace + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The name of the object storage namespace + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * The name of the object storage bucket + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The name of the object storage bucket + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * The name of the object template (can contain statementId placeholder, for example; query_{statementId}.csv ) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the object template (can contain statementId placeholder, for example; query_{statementId}.csv ) + * @return the value + **/ + public String getObjectName() { + return objectName; + } + + /** + * The content type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentType") + private final String contentType; + + /** + * The content type + * @return the value + **/ + public String getContentType() { + return contentType; + } + + /** + * The content disposition + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentDisposition") + private final String contentDisposition; + + /** + * The content disposition + * @return the value + **/ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * The content encoding + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentEncoding") + private final String contentEncoding; + + /** + * The content encoding + * @return the value + **/ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * The Cache-Control header + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cacheControl") + private final String cacheControl; + + /** + * The Cache-Control header + * @return the value + **/ + public String getCacheControl() { + return cacheControl; + } + + /** + * The content language + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentLanguage") + private final String contentLanguage; + + /** + * The content language + * @return the value + **/ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * The object metadata + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcMeta") + private final java.util.Map opcMeta; + + /** + * The object metadata + * @return the value + **/ + public java.util.Map getOpcMeta() { + return opcMeta; + } + + /** + * The Encryption Algorithm + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseCustomerAlgorithm") + private final String opcSseCustomerAlgorithm; + + /** + * The Encryption Algorithm + * @return the value + **/ + public String getOpcSseCustomerAlgorithm() { + return opcSseCustomerAlgorithm; + } + + /** + * The base64-encoded 256-bit encryption key to use + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseCustomerKey") + private final String opcSseCustomerKey; + + /** + * The base64-encoded 256-bit encryption key to use + * @return the value + **/ + public String getOpcSseCustomerKey() { + return opcSseCustomerKey; + } + + /** + * The base64-encoded SHA256 hash of the encryption key + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseCustomerKeySha256") + private final String opcSseCustomerKeySha256; + + /** + * The base64-encoded SHA256 hash of the encryption key + * @return the value + **/ + public String getOpcSseCustomerKeySha256() { + return opcSseCustomerKeySha256; + } + + /** + * The OCID of a master encryption key + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcSseKmsKeyId") + private final String opcSseKmsKeyId; + + /** + * The OCID of a master encryption key + * @return the value + **/ + public String getOpcSseKmsKeyId() { + return opcSseKmsKeyId; + } + + /** + * The storage tier that the object should be stored in + **/ + public enum StorageTier { + Standard("STANDARD"), + InfrequentAccess("INFREQUENT_ACCESS"), + Archive("ARCHIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StorageTier.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageTier v : StorageTier.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StorageTier(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageTier create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StorageTier', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The storage tier that the object should be stored in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private final StorageTier storageTier; + + /** + * The storage tier that the object should be stored in + * @return the value + **/ + public StorageTier getStorageTier() { + return storageTier; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlOutputDispositionObjectStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", contentType=").append(String.valueOf(this.contentType)); + sb.append(", contentDisposition=").append(String.valueOf(this.contentDisposition)); + sb.append(", contentEncoding=").append(String.valueOf(this.contentEncoding)); + sb.append(", cacheControl=").append(String.valueOf(this.cacheControl)); + sb.append(", contentLanguage=").append(String.valueOf(this.contentLanguage)); + sb.append(", opcMeta=").append(String.valueOf(this.opcMeta)); + sb.append(", opcSseCustomerAlgorithm=") + .append(String.valueOf(this.opcSseCustomerAlgorithm)); + sb.append(", opcSseCustomerKey=").append(String.valueOf(this.opcSseCustomerKey)); + sb.append(", opcSseCustomerKeySha256=") + .append(String.valueOf(this.opcSseCustomerKeySha256)); + sb.append(", opcSseKmsKeyId=").append(String.valueOf(this.opcSseKmsKeyId)); + sb.append(", storageTier=").append(String.valueOf(this.storageTier)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlOutputDispositionObjectStorageDetails)) { + return false; + } + + ExecuteSqlOutputDispositionObjectStorageDetails other = + (ExecuteSqlOutputDispositionObjectStorageDetails) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.cacheControl, other.cacheControl) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.opcMeta, other.opcMeta) + && java.util.Objects.equals( + this.opcSseCustomerAlgorithm, other.opcSseCustomerAlgorithm) + && java.util.Objects.equals(this.opcSseCustomerKey, other.opcSseCustomerKey) + && java.util.Objects.equals( + this.opcSseCustomerKeySha256, other.opcSseCustomerKeySha256) + && java.util.Objects.equals(this.opcSseKmsKeyId, other.opcSseKmsKeyId) + && java.util.Objects.equals(this.storageTier, other.storageTier) + && super.equals(other); + } + + @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.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = (result * PRIME) + (this.cacheControl == null ? 43 : this.cacheControl.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = (result * PRIME) + (this.opcMeta == null ? 43 : this.opcMeta.hashCode()); + result = + (result * PRIME) + + (this.opcSseCustomerAlgorithm == null + ? 43 + : this.opcSseCustomerAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.opcSseCustomerKey == null ? 43 : this.opcSseCustomerKey.hashCode()); + result = + (result * PRIME) + + (this.opcSseCustomerKeySha256 == null + ? 43 + : this.opcSseCustomerKeySha256.hashCode()); + result = + (result * PRIME) + + (this.opcSseKmsKeyId == null ? 43 : this.opcSseKmsKeyId.hashCode()); + result = (result * PRIME) + (this.storageTier == null ? 43 : this.storageTier.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputObjectStorageDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputObjectStorageDetails.java new file mode 100644 index 00000000000..bc524b5d466 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputObjectStorageDetails.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Object Storage resource output 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlOutputObjectStorageDetails.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 ExecuteSqlOutputObjectStorageDetails extends ExecuteSqlOutputDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("resultDispositionTemplates") + private java.util.List + resultDispositionTemplates; + + public Builder resultDispositionTemplates( + java.util.List + resultDispositionTemplates) { + this.resultDispositionTemplates = resultDispositionTemplates; + this.__explicitlySet__.add("resultDispositionTemplates"); + return this; + } + /** + * The time when the object becomes eligible for deletion, expressed as an RFC 3339 date-time string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfDeletion") + private java.util.Date timeOfDeletion; + + /** + * The time when the object becomes eligible for deletion, expressed as an RFC 3339 date-time string. + * @param timeOfDeletion the value to set + * @return this builder + **/ + public Builder timeOfDeletion(java.util.Date timeOfDeletion) { + this.timeOfDeletion = timeOfDeletion; + this.__explicitlySet__.add("timeOfDeletion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("object") + private ExecuteSqlObjectStorageLocation object; + + public Builder object(ExecuteSqlObjectStorageLocation object) { + this.object = object; + this.__explicitlySet__.add("object"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlOutputObjectStorageDetails build() { + ExecuteSqlOutputObjectStorageDetails model = + new ExecuteSqlOutputObjectStorageDetails( + this.resultDispositionTemplates, this.timeOfDeletion, this.object); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlOutputObjectStorageDetails model) { + if (model.wasPropertyExplicitlySet("resultDispositionTemplates")) { + this.resultDispositionTemplates(model.getResultDispositionTemplates()); + } + if (model.wasPropertyExplicitlySet("timeOfDeletion")) { + this.timeOfDeletion(model.getTimeOfDeletion()); + } + if (model.wasPropertyExplicitlySet("object")) { + this.object(model.getObject()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExecuteSqlOutputObjectStorageDetails( + java.util.List resultDispositionTemplates, + java.util.Date timeOfDeletion, + ExecuteSqlObjectStorageLocation object) { + super(resultDispositionTemplates); + this.timeOfDeletion = timeOfDeletion; + this.object = object; + } + + /** + * The time when the object becomes eligible for deletion, expressed as an RFC 3339 date-time string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfDeletion") + private final java.util.Date timeOfDeletion; + + /** + * The time when the object becomes eligible for deletion, expressed as an RFC 3339 date-time string. + * @return the value + **/ + public java.util.Date getTimeOfDeletion() { + return timeOfDeletion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("object") + private final ExecuteSqlObjectStorageLocation object; + + public ExecuteSqlObjectStorageLocation getObject() { + return object; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlOutputObjectStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", timeOfDeletion=").append(String.valueOf(this.timeOfDeletion)); + sb.append(", object=").append(String.valueOf(this.object)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlOutputObjectStorageDetails)) { + return false; + } + + ExecuteSqlOutputObjectStorageDetails other = (ExecuteSqlOutputObjectStorageDetails) o; + return java.util.Objects.equals(this.timeOfDeletion, other.timeOfDeletion) + && java.util.Objects.equals(this.object, other.object) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.timeOfDeletion == null ? 43 : this.timeOfDeletion.hashCode()); + result = (result * PRIME) + (this.object == null ? 43 : this.object.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputResultDispositionTemplate.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputResultDispositionTemplate.java new file mode 100644 index 00000000000..0f24d0bb5cd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputResultDispositionTemplate.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Template defining how the result of a command should be stored. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlOutputResultDispositionTemplate.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlOutputResultDispositionTemplate + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"statementType", "objectTemplate"}) + public ExecuteSqlOutputResultDispositionTemplate( + StatementType statementType, ExecuteSqlOutputDispositionDetails objectTemplate) { + super(); + this.statementType = statementType; + this.objectTemplate = objectTemplate; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Commands matching this statement type will use this result disposition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private StatementType statementType; + + /** + * Commands matching this statement type will use this result disposition. + * @param statementType the value to set + * @return this builder + **/ + public Builder statementType(StatementType statementType) { + this.statementType = statementType; + this.__explicitlySet__.add("statementType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectTemplate") + private ExecuteSqlOutputDispositionDetails objectTemplate; + + public Builder objectTemplate(ExecuteSqlOutputDispositionDetails objectTemplate) { + this.objectTemplate = objectTemplate; + this.__explicitlySet__.add("objectTemplate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlOutputResultDispositionTemplate build() { + ExecuteSqlOutputResultDispositionTemplate model = + new ExecuteSqlOutputResultDispositionTemplate( + this.statementType, this.objectTemplate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlOutputResultDispositionTemplate model) { + if (model.wasPropertyExplicitlySet("statementType")) { + this.statementType(model.getStatementType()); + } + if (model.wasPropertyExplicitlySet("objectTemplate")) { + this.objectTemplate(model.getObjectTemplate()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Commands matching this statement type will use this result disposition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private final StatementType statementType; + + /** + * Commands matching this statement type will use this result disposition. + * @return the value + **/ + public StatementType getStatementType() { + return statementType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectTemplate") + private final ExecuteSqlOutputDispositionDetails objectTemplate; + + public ExecuteSqlOutputDispositionDetails getObjectTemplate() { + return objectTemplate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlOutputResultDispositionTemplate("); + sb.append("super=").append(super.toString()); + sb.append("statementType=").append(String.valueOf(this.statementType)); + sb.append(", objectTemplate=").append(String.valueOf(this.objectTemplate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlOutputResultDispositionTemplate)) { + return false; + } + + ExecuteSqlOutputResultDispositionTemplate other = + (ExecuteSqlOutputResultDispositionTemplate) o; + return java.util.Objects.equals(this.statementType, other.statementType) + && java.util.Objects.equals(this.objectTemplate, other.objectTemplate) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.statementType == null ? 43 : this.statementType.hashCode()); + result = + (result * PRIME) + + (this.objectTemplate == null ? 43 : this.objectTemplate.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponse.java new file mode 100644 index 00000000000..19423de40c2 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponse.java @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ExecuteSqlResponse.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlResponseStandard.class, + name = "STANDARD" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlResponseScript.class, + name = "SCRIPT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExecuteSqlResponseBatch.class, + name = "BATCH" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExecuteSqlResponse extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"env", "version"}) + protected ExecuteSqlResponse(ExecuteSqlResponseEnv env, String version) { + super(); + this.env = env; + this.version = version; + } + + @com.fasterxml.jackson.annotation.JsonProperty("env") + private final ExecuteSqlResponseEnv env; + + public ExecuteSqlResponseEnv getEnv() { + return env; + } + + /** + * Script version + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Script version + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponse("); + sb.append("super=").append(super.toString()); + sb.append("env=").append(String.valueOf(this.env)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponse)) { + return false; + } + + ExecuteSqlResponse other = (ExecuteSqlResponse) o; + return java.util.Objects.equals(this.env, other.env) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.env == null ? 43 : this.env.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseBatch.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseBatch.java new file mode 100644 index 00000000000..f587c430969 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseBatch.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Batch SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseBatch.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 ExecuteSqlResponseBatch extends ExecuteSqlResponse { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("env") + private ExecuteSqlResponseEnv env; + + public Builder env(ExecuteSqlResponseEnv env) { + this.env = env; + this.__explicitlySet__.add("env"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The execution result of a statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The execution result of a statement. + * @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 ExecuteSqlResponseBatch build() { + ExecuteSqlResponseBatch model = + new ExecuteSqlResponseBatch(this.env, this.version, this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseBatch model) { + if (model.wasPropertyExplicitlySet("env")) { + this.env(model.getEnv()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + 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); + } + + @Deprecated + public ExecuteSqlResponseBatch( + ExecuteSqlResponseEnv env, + String version, + java.util.List items) { + super(env, version); + this.items = items; + } + + /** + * The execution result of a statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The execution result of a statement. + * @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("ExecuteSqlResponseBatch("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 ExecuteSqlResponseBatch)) { + return false; + } + + ExecuteSqlResponseBatch other = (ExecuteSqlResponseBatch) o; + return java.util.Objects.equals(this.items, other.items) && 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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseEnv.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseEnv.java new file mode 100644 index 00000000000..c64e4926d23 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseEnv.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Database session environment. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseEnv.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseEnv + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"defaultTimeZone"}) + public ExecuteSqlResponseEnv(String defaultTimeZone) { + super(); + this.defaultTimeZone = defaultTimeZone; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The database default time zone. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultTimeZone") + private String defaultTimeZone; + + /** + * The database default time zone. + * @param defaultTimeZone the value to set + * @return this builder + **/ + public Builder defaultTimeZone(String defaultTimeZone) { + this.defaultTimeZone = defaultTimeZone; + this.__explicitlySet__.add("defaultTimeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseEnv build() { + ExecuteSqlResponseEnv model = new ExecuteSqlResponseEnv(this.defaultTimeZone); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseEnv model) { + if (model.wasPropertyExplicitlySet("defaultTimeZone")) { + this.defaultTimeZone(model.getDefaultTimeZone()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The database default time zone. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultTimeZone") + private final String defaultTimeZone; + + /** + * The database default time zone. + * @return the value + **/ + public String getDefaultTimeZone() { + return defaultTimeZone; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseEnv("); + sb.append("super=").append(super.toString()); + sb.append("defaultTimeZone=").append(String.valueOf(this.defaultTimeZone)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseEnv)) { + return false; + } + + ExecuteSqlResponseEnv other = (ExecuteSqlResponseEnv) o; + return java.util.Objects.equals(this.defaultTimeZone, other.defaultTimeZone) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.defaultTimeZone == null ? 43 : this.defaultTimeZone.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseFormat.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseFormat.java new file mode 100644 index 00000000000..97ab9b1a75e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseFormat.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Specifies which major elements of the response are returned + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseFormat.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseFormat + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resultSetMetaData", + "statementInformation", + "statementText", + "binds", + "result", + "response" + }) + public ExecuteSqlResponseFormat( + Boolean resultSetMetaData, + Boolean statementInformation, + Boolean statementText, + Boolean binds, + Boolean result, + Boolean response) { + super(); + this.resultSetMetaData = resultSetMetaData; + this.statementInformation = statementInformation; + this.statementText = statementText; + this.binds = binds; + this.result = result; + this.response = response; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Set to false to exclude result set metadata from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resultSetMetaData") + private Boolean resultSetMetaData; + + /** + * Set to false to exclude result set metadata from response + * @param resultSetMetaData the value to set + * @return this builder + **/ + public Builder resultSetMetaData(Boolean resultSetMetaData) { + this.resultSetMetaData = resultSetMetaData; + this.__explicitlySet__.add("resultSetMetaData"); + return this; + } + /** + * Set to false to exclude statement information from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementInformation") + private Boolean statementInformation; + + /** + * Set to false to exclude statement information from response + * @param statementInformation the value to set + * @return this builder + **/ + public Builder statementInformation(Boolean statementInformation) { + this.statementInformation = statementInformation; + this.__explicitlySet__.add("statementInformation"); + return this; + } + /** + * Set to false to exclude statement text from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private Boolean statementText; + + /** + * Set to false to exclude statement text from response + * @param statementText the value to set + * @return this builder + **/ + public Builder statementText(Boolean statementText) { + this.statementText = statementText; + this.__explicitlySet__.add("statementText"); + return this; + } + /** + * Set to false to exclude binds from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private Boolean binds; + + /** + * Set to false to exclude binds from response + * @param binds the value to set + * @return this builder + **/ + public Builder binds(Boolean binds) { + this.binds = binds; + this.__explicitlySet__.add("binds"); + return this; + } + /** + * Set to false to exclude result from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("result") + private Boolean result; + + /** + * Set to false to exclude result from response + * @param result the value to set + * @return this builder + **/ + public Builder result(Boolean result) { + this.result = result; + this.__explicitlySet__.add("result"); + return this; + } + /** + * Set to false to exclude response from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("response") + private Boolean response; + + /** + * Set to false to exclude response from response + * @param response the value to set + * @return this builder + **/ + public Builder response(Boolean response) { + this.response = response; + this.__explicitlySet__.add("response"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseFormat build() { + ExecuteSqlResponseFormat model = + new ExecuteSqlResponseFormat( + this.resultSetMetaData, + this.statementInformation, + this.statementText, + this.binds, + this.result, + this.response); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseFormat model) { + if (model.wasPropertyExplicitlySet("resultSetMetaData")) { + this.resultSetMetaData(model.getResultSetMetaData()); + } + if (model.wasPropertyExplicitlySet("statementInformation")) { + this.statementInformation(model.getStatementInformation()); + } + if (model.wasPropertyExplicitlySet("statementText")) { + this.statementText(model.getStatementText()); + } + if (model.wasPropertyExplicitlySet("binds")) { + this.binds(model.getBinds()); + } + if (model.wasPropertyExplicitlySet("result")) { + this.result(model.getResult()); + } + if (model.wasPropertyExplicitlySet("response")) { + this.response(model.getResponse()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Set to false to exclude result set metadata from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resultSetMetaData") + private final Boolean resultSetMetaData; + + /** + * Set to false to exclude result set metadata from response + * @return the value + **/ + public Boolean getResultSetMetaData() { + return resultSetMetaData; + } + + /** + * Set to false to exclude statement information from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementInformation") + private final Boolean statementInformation; + + /** + * Set to false to exclude statement information from response + * @return the value + **/ + public Boolean getStatementInformation() { + return statementInformation; + } + + /** + * Set to false to exclude statement text from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private final Boolean statementText; + + /** + * Set to false to exclude statement text from response + * @return the value + **/ + public Boolean getStatementText() { + return statementText; + } + + /** + * Set to false to exclude binds from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private final Boolean binds; + + /** + * Set to false to exclude binds from response + * @return the value + **/ + public Boolean getBinds() { + return binds; + } + + /** + * Set to false to exclude result from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("result") + private final Boolean result; + + /** + * Set to false to exclude result from response + * @return the value + **/ + public Boolean getResult() { + return result; + } + + /** + * Set to false to exclude response from response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("response") + private final Boolean response; + + /** + * Set to false to exclude response from response + * @return the value + **/ + public Boolean getResponse() { + return response; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseFormat("); + sb.append("super=").append(super.toString()); + sb.append("resultSetMetaData=").append(String.valueOf(this.resultSetMetaData)); + sb.append(", statementInformation=").append(String.valueOf(this.statementInformation)); + sb.append(", statementText=").append(String.valueOf(this.statementText)); + sb.append(", binds=").append(String.valueOf(this.binds)); + sb.append(", result=").append(String.valueOf(this.result)); + sb.append(", response=").append(String.valueOf(this.response)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseFormat)) { + return false; + } + + ExecuteSqlResponseFormat other = (ExecuteSqlResponseFormat) o; + return java.util.Objects.equals(this.resultSetMetaData, other.resultSetMetaData) + && java.util.Objects.equals(this.statementInformation, other.statementInformation) + && java.util.Objects.equals(this.statementText, other.statementText) + && java.util.Objects.equals(this.binds, other.binds) + && java.util.Objects.equals(this.result, other.result) + && java.util.Objects.equals(this.response, other.response) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.resultSetMetaData == null ? 43 : this.resultSetMetaData.hashCode()); + result = + (result * PRIME) + + (this.statementInformation == null + ? 43 + : this.statementInformation.hashCode()); + result = + (result * PRIME) + + (this.statementText == null ? 43 : this.statementText.hashCode()); + result = (result * PRIME) + (this.binds == null ? 43 : this.binds.hashCode()); + result = (result * PRIME) + (this.result == null ? 43 : this.result.hashCode()); + result = (result * PRIME) + (this.response == null ? 43 : this.response.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemBatch.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemBatch.java new file mode 100644 index 00000000000..fbd621b8462 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemBatch.java @@ -0,0 +1,425 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A statement execution response for batched type 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemBatch.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemBatch + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "statementId", + "statementType", + "statementPos", + "batchStatementTexts", + "error", + "dbmsOutput", + "properties", + "responses", + "results" + }) + public ExecuteSqlResponseItemBatch( + Integer statementId, + StatementType statementType, + ExecuteSqlResponseItemStatementPos statementPos, + java.util.List batchStatementTexts, + ExecuteSqlResponseItemError error, + String dbmsOutput, + ExecuteSqlResponseItemProperties properties, + java.util.List responses, + java.util.List results) { + super(); + this.statementId = statementId; + this.statementType = statementType; + this.statementPos = statementPos; + this.batchStatementTexts = batchStatementTexts; + this.error = error; + this.dbmsOutput = dbmsOutput; + this.properties = properties; + this.responses = responses; + this.results = results; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementId") + private Integer statementId; + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + * @param statementId the value to set + * @return this builder + **/ + public Builder statementId(Integer statementId) { + this.statementId = statementId; + this.__explicitlySet__.add("statementId"); + return this; + } + /** + * The Statement type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private StatementType statementType; + + /** + * The Statement type. + * @param statementType the value to set + * @return this builder + **/ + public Builder statementType(StatementType statementType) { + this.statementType = statementType; + this.__explicitlySet__.add("statementType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statementPos") + private ExecuteSqlResponseItemStatementPos statementPos; + + public Builder statementPos(ExecuteSqlResponseItemStatementPos statementPos) { + this.statementPos = statementPos; + this.__explicitlySet__.add("statementPos"); + return this; + } + /** + * DML statements to execute in jdbc batch mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchStatementTexts") + private java.util.List batchStatementTexts; + + /** + * DML statements to execute in jdbc batch mode + * @param batchStatementTexts the value to set + * @return this builder + **/ + public Builder batchStatementTexts(java.util.List batchStatementTexts) { + this.batchStatementTexts = batchStatementTexts; + this.__explicitlySet__.add("batchStatementTexts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private ExecuteSqlResponseItemError error; + + public Builder error(ExecuteSqlResponseItemError error) { + this.error = error; + this.__explicitlySet__.add("error"); + return this; + } + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsOutput") + private String dbmsOutput; + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + * @param dbmsOutput the value to set + * @return this builder + **/ + public Builder dbmsOutput(String dbmsOutput) { + this.dbmsOutput = dbmsOutput; + this.__explicitlySet__.add("dbmsOutput"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private ExecuteSqlResponseItemProperties properties; + + public Builder properties(ExecuteSqlResponseItemProperties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** + * Responses generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("responses") + private java.util.List responses; + + /** + * Responses generated when executing the statements. + * @param responses the value to set + * @return this builder + **/ + public Builder responses(java.util.List responses) { + this.responses = responses; + this.__explicitlySet__.add("responses"); + return this; + } + /** + * Results generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private java.util.List results; + + /** + * Results generated when executing the statements. + * @param results the value to set + * @return this builder + **/ + public Builder results(java.util.List results) { + this.results = results; + this.__explicitlySet__.add("results"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemBatch build() { + ExecuteSqlResponseItemBatch model = + new ExecuteSqlResponseItemBatch( + this.statementId, + this.statementType, + this.statementPos, + this.batchStatementTexts, + this.error, + this.dbmsOutput, + this.properties, + this.responses, + this.results); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemBatch model) { + if (model.wasPropertyExplicitlySet("statementId")) { + this.statementId(model.getStatementId()); + } + if (model.wasPropertyExplicitlySet("statementType")) { + this.statementType(model.getStatementType()); + } + if (model.wasPropertyExplicitlySet("statementPos")) { + this.statementPos(model.getStatementPos()); + } + if (model.wasPropertyExplicitlySet("batchStatementTexts")) { + this.batchStatementTexts(model.getBatchStatementTexts()); + } + if (model.wasPropertyExplicitlySet("error")) { + this.error(model.getError()); + } + if (model.wasPropertyExplicitlySet("dbmsOutput")) { + this.dbmsOutput(model.getDbmsOutput()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("responses")) { + this.responses(model.getResponses()); + } + if (model.wasPropertyExplicitlySet("results")) { + this.results(model.getResults()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementId") + private final Integer statementId; + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + * @return the value + **/ + public Integer getStatementId() { + return statementId; + } + + /** + * The Statement type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private final StatementType statementType; + + /** + * The Statement type. + * @return the value + **/ + public StatementType getStatementType() { + return statementType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statementPos") + private final ExecuteSqlResponseItemStatementPos statementPos; + + public ExecuteSqlResponseItemStatementPos getStatementPos() { + return statementPos; + } + + /** + * DML statements to execute in jdbc batch mode + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchStatementTexts") + private final java.util.List batchStatementTexts; + + /** + * DML statements to execute in jdbc batch mode + * @return the value + **/ + public java.util.List getBatchStatementTexts() { + return batchStatementTexts; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private final ExecuteSqlResponseItemError error; + + public ExecuteSqlResponseItemError getError() { + return error; + } + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsOutput") + private final String dbmsOutput; + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + * @return the value + **/ + public String getDbmsOutput() { + return dbmsOutput; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final ExecuteSqlResponseItemProperties properties; + + public ExecuteSqlResponseItemProperties getProperties() { + return properties; + } + + /** + * Responses generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("responses") + private final java.util.List responses; + + /** + * Responses generated when executing the statements. + * @return the value + **/ + public java.util.List getResponses() { + return responses; + } + + /** + * Results generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private final java.util.List results; + + /** + * Results generated when executing the statements. + * @return the value + **/ + public java.util.List getResults() { + return results; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemBatch("); + sb.append("super=").append(super.toString()); + sb.append("statementId=").append(String.valueOf(this.statementId)); + sb.append(", statementType=").append(String.valueOf(this.statementType)); + sb.append(", statementPos=").append(String.valueOf(this.statementPos)); + sb.append(", batchStatementTexts=").append(String.valueOf(this.batchStatementTexts)); + sb.append(", error=").append(String.valueOf(this.error)); + sb.append(", dbmsOutput=").append(String.valueOf(this.dbmsOutput)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", responses=").append(String.valueOf(this.responses)); + sb.append(", results=").append(String.valueOf(this.results)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemBatch)) { + return false; + } + + ExecuteSqlResponseItemBatch other = (ExecuteSqlResponseItemBatch) o; + return java.util.Objects.equals(this.statementId, other.statementId) + && java.util.Objects.equals(this.statementType, other.statementType) + && java.util.Objects.equals(this.statementPos, other.statementPos) + && java.util.Objects.equals(this.batchStatementTexts, other.batchStatementTexts) + && java.util.Objects.equals(this.error, other.error) + && java.util.Objects.equals(this.dbmsOutput, other.dbmsOutput) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.responses, other.responses) + && java.util.Objects.equals(this.results, other.results) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.statementId == null ? 43 : this.statementId.hashCode()); + result = + (result * PRIME) + + (this.statementType == null ? 43 : this.statementType.hashCode()); + result = (result * PRIME) + (this.statementPos == null ? 43 : this.statementPos.hashCode()); + result = + (result * PRIME) + + (this.batchStatementTexts == null + ? 43 + : this.batchStatementTexts.hashCode()); + result = (result * PRIME) + (this.error == null ? 43 : this.error.hashCode()); + result = (result * PRIME) + (this.dbmsOutput == null ? 43 : this.dbmsOutput.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.responses == null ? 43 : this.responses.hashCode()); + result = (result * PRIME) + (this.results == null ? 43 : this.results.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemError.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemError.java new file mode 100644 index 00000000000..7299e74350c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemError.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Error 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemError.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemError + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "errorCode", + "errorLine", + "errorColumn", + "errorMessage", + "errorDetails" + }) + public ExecuteSqlResponseItemError( + Integer errorCode, + Integer errorLine, + Integer errorColumn, + String errorMessage, + String errorDetails) { + super(); + this.errorCode = errorCode; + this.errorLine = errorLine; + this.errorColumn = errorColumn; + this.errorMessage = errorMessage; + this.errorDetails = errorDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Error code. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + private Integer errorCode; + + /** + * Error code. + * @param errorCode the value to set + * @return this builder + **/ + public Builder errorCode(Integer errorCode) { + this.errorCode = errorCode; + this.__explicitlySet__.add("errorCode"); + return this; + } + /** + * Error line number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorLine") + private Integer errorLine; + + /** + * Error line number. + * @param errorLine the value to set + * @return this builder + **/ + public Builder errorLine(Integer errorLine) { + this.errorLine = errorLine; + this.__explicitlySet__.add("errorLine"); + return this; + } + /** + * Error column number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorColumn") + private Integer errorColumn; + + /** + * Error column number. + * @param errorColumn the value to set + * @return this builder + **/ + public Builder errorColumn(Integer errorColumn) { + this.errorColumn = errorColumn; + this.__explicitlySet__.add("errorColumn"); + return this; + } + /** + * Error message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private String errorMessage; + + /** + * Error message. + * @param errorMessage the value to set + * @return this builder + **/ + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + this.__explicitlySet__.add("errorMessage"); + return this; + } + /** + * Error details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorDetails") + private String errorDetails; + + /** + * Error details. + * @param errorDetails the value to set + * @return this builder + **/ + public Builder errorDetails(String errorDetails) { + this.errorDetails = errorDetails; + this.__explicitlySet__.add("errorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemError build() { + ExecuteSqlResponseItemError model = + new ExecuteSqlResponseItemError( + this.errorCode, + this.errorLine, + this.errorColumn, + this.errorMessage, + this.errorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemError model) { + if (model.wasPropertyExplicitlySet("errorCode")) { + this.errorCode(model.getErrorCode()); + } + if (model.wasPropertyExplicitlySet("errorLine")) { + this.errorLine(model.getErrorLine()); + } + if (model.wasPropertyExplicitlySet("errorColumn")) { + this.errorColumn(model.getErrorColumn()); + } + if (model.wasPropertyExplicitlySet("errorMessage")) { + this.errorMessage(model.getErrorMessage()); + } + if (model.wasPropertyExplicitlySet("errorDetails")) { + this.errorDetails(model.getErrorDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Error code. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + private final Integer errorCode; + + /** + * Error code. + * @return the value + **/ + public Integer getErrorCode() { + return errorCode; + } + + /** + * Error line number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorLine") + private final Integer errorLine; + + /** + * Error line number. + * @return the value + **/ + public Integer getErrorLine() { + return errorLine; + } + + /** + * Error column number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorColumn") + private final Integer errorColumn; + + /** + * Error column number. + * @return the value + **/ + public Integer getErrorColumn() { + return errorColumn; + } + + /** + * Error message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private final String errorMessage; + + /** + * Error message. + * @return the value + **/ + public String getErrorMessage() { + return errorMessage; + } + + /** + * Error details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorDetails") + private final String errorDetails; + + /** + * Error details. + * @return the value + **/ + public String getErrorDetails() { + return errorDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemError("); + sb.append("super=").append(super.toString()); + sb.append("errorCode=").append(String.valueOf(this.errorCode)); + sb.append(", errorLine=").append(String.valueOf(this.errorLine)); + sb.append(", errorColumn=").append(String.valueOf(this.errorColumn)); + sb.append(", errorMessage=").append(String.valueOf(this.errorMessage)); + sb.append(", errorDetails=").append(String.valueOf(this.errorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemError)) { + return false; + } + + ExecuteSqlResponseItemError other = (ExecuteSqlResponseItemError) o; + return java.util.Objects.equals(this.errorCode, other.errorCode) + && java.util.Objects.equals(this.errorLine, other.errorLine) + && java.util.Objects.equals(this.errorColumn, other.errorColumn) + && java.util.Objects.equals(this.errorMessage, other.errorMessage) + && java.util.Objects.equals(this.errorDetails, other.errorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.errorCode == null ? 43 : this.errorCode.hashCode()); + result = (result * PRIME) + (this.errorLine == null ? 43 : this.errorLine.hashCode()); + result = (result * PRIME) + (this.errorColumn == null ? 43 : this.errorColumn.hashCode()); + result = (result * PRIME) + (this.errorMessage == null ? 43 : this.errorMessage.hashCode()); + result = (result * PRIME) + (this.errorDetails == null ? 43 : this.errorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemProperties.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemProperties.java new file mode 100644 index 00000000000..b623a4c843c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemProperties.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Property information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemProperties.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemProperties + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"query", "statement", "displayName"}) + public ExecuteSqlResponseItemProperties(Object query, Object statement, Object displayName) { + super(); + this.query = query; + this.statement = statement; + this.displayName = displayName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + private Object query; + + /** + * Client properties returned as-is in the response + * @param query the value to set + * @return this builder + **/ + public Builder query(Object query) { + this.query = query; + this.__explicitlySet__.add("query"); + return this; + } + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statement") + private Object statement; + + /** + * Client properties returned as-is in the response + * @param statement the value to set + * @return this builder + **/ + public Builder statement(Object statement) { + this.statement = statement; + this.__explicitlySet__.add("statement"); + return this; + } + /** + * Client properties returned as-is in the response. + * For asynchronous requests, the "displayName" property can be set to provide a user-friendly name that will propagate to the resulting Work Request to allow for easier identification and tracking of the operation's progress and outcome. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private Object displayName; + + /** + * Client properties returned as-is in the response. + * For asynchronous requests, the "displayName" property can be set to provide a user-friendly name that will propagate to the resulting Work Request to allow for easier identification and tracking of the operation's progress and outcome. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(Object displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemProperties build() { + ExecuteSqlResponseItemProperties model = + new ExecuteSqlResponseItemProperties( + this.query, this.statement, this.displayName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemProperties model) { + if (model.wasPropertyExplicitlySet("query")) { + this.query(model.getQuery()); + } + if (model.wasPropertyExplicitlySet("statement")) { + this.statement(model.getStatement()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + private final Object query; + + /** + * Client properties returned as-is in the response + * @return the value + **/ + public Object getQuery() { + return query; + } + + /** + * Client properties returned as-is in the response + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statement") + private final Object statement; + + /** + * Client properties returned as-is in the response + * @return the value + **/ + public Object getStatement() { + return statement; + } + + /** + * Client properties returned as-is in the response. + * For asynchronous requests, the "displayName" property can be set to provide a user-friendly name that will propagate to the resulting Work Request to allow for easier identification and tracking of the operation's progress and outcome. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final Object displayName; + + /** + * Client properties returned as-is in the response. + * For asynchronous requests, the "displayName" property can be set to provide a user-friendly name that will propagate to the resulting Work Request to allow for easier identification and tracking of the operation's progress and outcome. + * + * @return the value + **/ + public Object getDisplayName() { + return displayName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemProperties("); + sb.append("super=").append(super.toString()); + sb.append("query=").append(String.valueOf(this.query)); + sb.append(", statement=").append(String.valueOf(this.statement)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemProperties)) { + return false; + } + + ExecuteSqlResponseItemProperties other = (ExecuteSqlResponseItemProperties) o; + return java.util.Objects.equals(this.query, other.query) + && java.util.Objects.equals(this.statement, other.statement) + && java.util.Objects.equals(this.displayName, other.displayName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.query == null ? 43 : this.query.hashCode()); + result = (result * PRIME) + (this.statement == null ? 43 : this.statement.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSet.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSet.java new file mode 100644 index 00000000000..0d0a3a84b48 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSet.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Result set generated from the query. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemResultSet.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemResultSet + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"metadata", "items", "hasMore", "count", "offset", "limit"}) + public ExecuteSqlResponseItemResultSet( + java.util.List metadata, + java.util.List> items, + Boolean hasMore, + Integer count, + Integer offset, + Integer limit) { + super(); + this.metadata = metadata; + this.items = items; + this.hasMore = hasMore; + this.count = count; + this.offset = offset; + this.limit = limit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Metadata of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.List metadata; + + /** + * Metadata of the column. + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.List metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * All rows in the result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List> items; + + /** + * All rows in the result set. + * @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 whether the result set has more rows. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hasMore") + private Boolean hasMore; + + /** + * Specifies whether the result set has more rows. + * @param hasMore the value to set + * @return this builder + **/ + public Builder hasMore(Boolean hasMore) { + this.hasMore = hasMore; + this.__explicitlySet__.add("hasMore"); + return this; + } + /** + * The number of rows returned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private Integer count; + + /** + * The number of rows returned. + * @param count the value to set + * @return this builder + **/ + public Builder count(Integer count) { + this.count = count; + this.__explicitlySet__.add("count"); + return this; + } + /** + * The first row returned in the result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("offset") + private Integer offset; + + /** + * The first row returned in the result set. + * @param offset the value to set + * @return this builder + **/ + public Builder offset(Integer offset) { + this.offset = offset; + this.__explicitlySet__.add("offset"); + return this; + } + /** + * Maximum number of rows returned from the query. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("limit") + private Integer limit; + + /** + * Maximum number of rows returned from the query. + * @param limit the value to set + * @return this builder + **/ + public Builder limit(Integer limit) { + this.limit = limit; + this.__explicitlySet__.add("limit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemResultSet build() { + ExecuteSqlResponseItemResultSet model = + new ExecuteSqlResponseItemResultSet( + this.metadata, + this.items, + this.hasMore, + this.count, + this.offset, + this.limit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemResultSet model) { + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + if (model.wasPropertyExplicitlySet("hasMore")) { + this.hasMore(model.getHasMore()); + } + if (model.wasPropertyExplicitlySet("count")) { + this.count(model.getCount()); + } + if (model.wasPropertyExplicitlySet("offset")) { + this.offset(model.getOffset()); + } + if (model.wasPropertyExplicitlySet("limit")) { + this.limit(model.getLimit()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Metadata of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.List metadata; + + /** + * Metadata of the column. + * @return the value + **/ + public java.util.List getMetadata() { + return metadata; + } + + /** + * All rows in the result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List> items; + + /** + * All rows in the result set. + * @return the value + **/ + public java.util.List> getItems() { + return items; + } + + /** + * Specifies whether the result set has more rows. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hasMore") + private final Boolean hasMore; + + /** + * Specifies whether the result set has more rows. + * @return the value + **/ + public Boolean getHasMore() { + return hasMore; + } + + /** + * The number of rows returned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private final Integer count; + + /** + * The number of rows returned. + * @return the value + **/ + public Integer getCount() { + return count; + } + + /** + * The first row returned in the result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("offset") + private final Integer offset; + + /** + * The first row returned in the result set. + * @return the value + **/ + public Integer getOffset() { + return offset; + } + + /** + * Maximum number of rows returned from the query. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("limit") + private final Integer limit; + + /** + * Maximum number of rows returned from the query. + * @return the value + **/ + public Integer getLimit() { + return limit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemResultSet("); + sb.append("super=").append(super.toString()); + sb.append("metadata=").append(String.valueOf(this.metadata)); + sb.append(", items=").append(String.valueOf(this.items)); + sb.append(", hasMore=").append(String.valueOf(this.hasMore)); + sb.append(", count=").append(String.valueOf(this.count)); + sb.append(", offset=").append(String.valueOf(this.offset)); + sb.append(", limit=").append(String.valueOf(this.limit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemResultSet)) { + return false; + } + + ExecuteSqlResponseItemResultSet other = (ExecuteSqlResponseItemResultSet) o; + return java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.items, other.items) + && java.util.Objects.equals(this.hasMore, other.hasMore) + && java.util.Objects.equals(this.count, other.count) + && java.util.Objects.equals(this.offset, other.offset) + && java.util.Objects.equals(this.limit, other.limit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + (this.hasMore == null ? 43 : this.hasMore.hashCode()); + result = (result * PRIME) + (this.count == null ? 43 : this.count.hashCode()); + result = (result * PRIME) + (this.offset == null ? 43 : this.offset.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSetMetadata.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSetMetadata.java new file mode 100644 index 00000000000..2c63cb2ff9b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSetMetadata.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Metadata of the column + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemResultSetMetadata.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemResultSetMetadata + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "databaseColumnName", + "uniqueColumnName", + "columnTypeName", + "precision", + "scale", + "isNullable" + }) + public ExecuteSqlResponseItemResultSetMetadata( + String databaseColumnName, + String uniqueColumnName, + String columnTypeName, + Integer precision, + Integer scale, + Boolean isNullable) { + super(); + this.databaseColumnName = databaseColumnName; + this.uniqueColumnName = uniqueColumnName; + this.columnTypeName = columnTypeName; + this.precision = precision; + this.scale = scale; + this.isNullable = isNullable; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the column in the Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseColumnName") + private String databaseColumnName; + + /** + * Name of the column in the Oracle Database. + * @param databaseColumnName the value to set + * @return this builder + **/ + public Builder databaseColumnName(String databaseColumnName) { + this.databaseColumnName = databaseColumnName; + this.__explicitlySet__.add("databaseColumnName"); + return this; + } + /** + * Name of the column in the response Result Set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uniqueColumnName") + private String uniqueColumnName; + + /** + * Name of the column in the response Result Set. + * @param uniqueColumnName the value to set + * @return this builder + **/ + public Builder uniqueColumnName(String uniqueColumnName) { + this.uniqueColumnName = uniqueColumnName; + this.__explicitlySet__.add("uniqueColumnName"); + return this; + } + /** + * Oracle Database data type of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("columnTypeName") + private String columnTypeName; + + /** + * Oracle Database data type of the column. + * @param columnTypeName the value to set + * @return this builder + **/ + public Builder columnTypeName(String columnTypeName) { + this.columnTypeName = columnTypeName; + this.__explicitlySet__.add("columnTypeName"); + return this; + } + /** + * Precision of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precision") + private Integer precision; + + /** + * Precision of the column. + * @param precision the value to set + * @return this builder + **/ + public Builder precision(Integer precision) { + this.precision = precision; + this.__explicitlySet__.add("precision"); + return this; + } + /** + * Scale of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Integer scale; + + /** + * Scale of the column. + * @param scale the value to set + * @return this builder + **/ + public Builder scale(Integer scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + /** + * Specifies if the column is nullable (0 if the column is not nullable) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + private Boolean isNullable; + + /** + * Specifies if the column is nullable (0 if the column is not nullable) + * @param isNullable the value to set + * @return this builder + **/ + public Builder isNullable(Boolean isNullable) { + this.isNullable = isNullable; + this.__explicitlySet__.add("isNullable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemResultSetMetadata build() { + ExecuteSqlResponseItemResultSetMetadata model = + new ExecuteSqlResponseItemResultSetMetadata( + this.databaseColumnName, + this.uniqueColumnName, + this.columnTypeName, + this.precision, + this.scale, + this.isNullable); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemResultSetMetadata model) { + if (model.wasPropertyExplicitlySet("databaseColumnName")) { + this.databaseColumnName(model.getDatabaseColumnName()); + } + if (model.wasPropertyExplicitlySet("uniqueColumnName")) { + this.uniqueColumnName(model.getUniqueColumnName()); + } + if (model.wasPropertyExplicitlySet("columnTypeName")) { + this.columnTypeName(model.getColumnTypeName()); + } + if (model.wasPropertyExplicitlySet("precision")) { + this.precision(model.getPrecision()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("isNullable")) { + this.isNullable(model.getIsNullable()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the column in the Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseColumnName") + private final String databaseColumnName; + + /** + * Name of the column in the Oracle Database. + * @return the value + **/ + public String getDatabaseColumnName() { + return databaseColumnName; + } + + /** + * Name of the column in the response Result Set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uniqueColumnName") + private final String uniqueColumnName; + + /** + * Name of the column in the response Result Set. + * @return the value + **/ + public String getUniqueColumnName() { + return uniqueColumnName; + } + + /** + * Oracle Database data type of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("columnTypeName") + private final String columnTypeName; + + /** + * Oracle Database data type of the column. + * @return the value + **/ + public String getColumnTypeName() { + return columnTypeName; + } + + /** + * Precision of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precision") + private final Integer precision; + + /** + * Precision of the column. + * @return the value + **/ + public Integer getPrecision() { + return precision; + } + + /** + * Scale of the column. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Integer scale; + + /** + * Scale of the column. + * @return the value + **/ + public Integer getScale() { + return scale; + } + + /** + * Specifies if the column is nullable (0 if the column is not nullable) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + private final Boolean isNullable; + + /** + * Specifies if the column is nullable (0 if the column is not nullable) + * @return the value + **/ + public Boolean getIsNullable() { + return isNullable; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemResultSetMetadata("); + sb.append("super=").append(super.toString()); + sb.append("databaseColumnName=").append(String.valueOf(this.databaseColumnName)); + sb.append(", uniqueColumnName=").append(String.valueOf(this.uniqueColumnName)); + sb.append(", columnTypeName=").append(String.valueOf(this.columnTypeName)); + sb.append(", precision=").append(String.valueOf(this.precision)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", isNullable=").append(String.valueOf(this.isNullable)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemResultSetMetadata)) { + return false; + } + + ExecuteSqlResponseItemResultSetMetadata other = (ExecuteSqlResponseItemResultSetMetadata) o; + return java.util.Objects.equals(this.databaseColumnName, other.databaseColumnName) + && java.util.Objects.equals(this.uniqueColumnName, other.uniqueColumnName) + && java.util.Objects.equals(this.columnTypeName, other.columnTypeName) + && java.util.Objects.equals(this.precision, other.precision) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.isNullable, other.isNullable) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseColumnName == null + ? 43 + : this.databaseColumnName.hashCode()); + result = + (result * PRIME) + + (this.uniqueColumnName == null ? 43 : this.uniqueColumnName.hashCode()); + result = + (result * PRIME) + + (this.columnTypeName == null ? 43 : this.columnTypeName.hashCode()); + result = (result * PRIME) + (this.precision == null ? 43 : this.precision.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.hashCode()); + result = (result * PRIME) + (this.isNullable == null ? 43 : this.isNullable.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemScript.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemScript.java new file mode 100644 index 00000000000..f801540871f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemScript.java @@ -0,0 +1,517 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A statement execution response for script type 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemScript.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemScript + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "statementId", + "statementType", + "statementPos", + "statementText", + "error", + "dbmsOutput", + "properties", + "responses", + "results", + "resultSetObject", + "resultSet", + "binds" + }) + public ExecuteSqlResponseItemScript( + Integer statementId, + StatementType statementType, + ExecuteSqlResponseItemStatementPos statementPos, + String statementText, + ExecuteSqlResponseItemError error, + String dbmsOutput, + ExecuteSqlResponseItemProperties properties, + java.util.List responses, + java.util.List results, + ExecuteSqlOutputDispositionDetails resultSetObject, + ExecuteSqlResponseItemResultSet resultSet, + java.util.List binds) { + super(); + this.statementId = statementId; + this.statementType = statementType; + this.statementPos = statementPos; + this.statementText = statementText; + this.error = error; + this.dbmsOutput = dbmsOutput; + this.properties = properties; + this.responses = responses; + this.results = results; + this.resultSetObject = resultSetObject; + this.resultSet = resultSet; + this.binds = binds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementId") + private Integer statementId; + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + * @param statementId the value to set + * @return this builder + **/ + public Builder statementId(Integer statementId) { + this.statementId = statementId; + this.__explicitlySet__.add("statementId"); + return this; + } + /** + * The Statement type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private StatementType statementType; + + /** + * The Statement type. + * @param statementType the value to set + * @return this builder + **/ + public Builder statementType(StatementType statementType) { + this.statementType = statementType; + this.__explicitlySet__.add("statementType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statementPos") + private ExecuteSqlResponseItemStatementPos statementPos; + + public Builder statementPos(ExecuteSqlResponseItemStatementPos statementPos) { + this.statementPos = statementPos; + this.__explicitlySet__.add("statementPos"); + return this; + } + /** + * Text of statements executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private String statementText; + + /** + * Text of statements executed. + * @param statementText the value to set + * @return this builder + **/ + public Builder statementText(String statementText) { + this.statementText = statementText; + this.__explicitlySet__.add("statementText"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private ExecuteSqlResponseItemError error; + + public Builder error(ExecuteSqlResponseItemError error) { + this.error = error; + this.__explicitlySet__.add("error"); + return this; + } + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsOutput") + private String dbmsOutput; + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + * @param dbmsOutput the value to set + * @return this builder + **/ + public Builder dbmsOutput(String dbmsOutput) { + this.dbmsOutput = dbmsOutput; + this.__explicitlySet__.add("dbmsOutput"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private ExecuteSqlResponseItemProperties properties; + + public Builder properties(ExecuteSqlResponseItemProperties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** + * Responses generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("responses") + private java.util.List responses; + + /** + * Responses generated when executing the statements. + * @param responses the value to set + * @return this builder + **/ + public Builder responses(java.util.List responses) { + this.responses = responses; + this.__explicitlySet__.add("responses"); + return this; + } + /** + * Results generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private java.util.List results; + + /** + * Results generated when executing the statements. + * @param results the value to set + * @return this builder + **/ + public Builder results(java.util.List results) { + this.results = results; + this.__explicitlySet__.add("results"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSetObject") + private ExecuteSqlOutputDispositionDetails resultSetObject; + + public Builder resultSetObject(ExecuteSqlOutputDispositionDetails resultSetObject) { + this.resultSetObject = resultSetObject; + this.__explicitlySet__.add("resultSetObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSet") + private ExecuteSqlResponseItemResultSet resultSet; + + public Builder resultSet(ExecuteSqlResponseItemResultSet resultSet) { + this.resultSet = resultSet; + this.__explicitlySet__.add("resultSet"); + return this; + } + /** + * Array of objects specifying the bind information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private java.util.List binds; + + /** + * Array of objects specifying the bind information. + * @param binds the value to set + * @return this builder + **/ + public Builder binds(java.util.List binds) { + this.binds = binds; + this.__explicitlySet__.add("binds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemScript build() { + ExecuteSqlResponseItemScript model = + new ExecuteSqlResponseItemScript( + this.statementId, + this.statementType, + this.statementPos, + this.statementText, + this.error, + this.dbmsOutput, + this.properties, + this.responses, + this.results, + this.resultSetObject, + this.resultSet, + this.binds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemScript model) { + if (model.wasPropertyExplicitlySet("statementId")) { + this.statementId(model.getStatementId()); + } + if (model.wasPropertyExplicitlySet("statementType")) { + this.statementType(model.getStatementType()); + } + if (model.wasPropertyExplicitlySet("statementPos")) { + this.statementPos(model.getStatementPos()); + } + if (model.wasPropertyExplicitlySet("statementText")) { + this.statementText(model.getStatementText()); + } + if (model.wasPropertyExplicitlySet("error")) { + this.error(model.getError()); + } + if (model.wasPropertyExplicitlySet("dbmsOutput")) { + this.dbmsOutput(model.getDbmsOutput()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("responses")) { + this.responses(model.getResponses()); + } + if (model.wasPropertyExplicitlySet("results")) { + this.results(model.getResults()); + } + if (model.wasPropertyExplicitlySet("resultSetObject")) { + this.resultSetObject(model.getResultSetObject()); + } + if (model.wasPropertyExplicitlySet("resultSet")) { + this.resultSet(model.getResultSet()); + } + if (model.wasPropertyExplicitlySet("binds")) { + this.binds(model.getBinds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementId") + private final Integer statementId; + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + * @return the value + **/ + public Integer getStatementId() { + return statementId; + } + + /** + * The Statement type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private final StatementType statementType; + + /** + * The Statement type. + * @return the value + **/ + public StatementType getStatementType() { + return statementType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statementPos") + private final ExecuteSqlResponseItemStatementPos statementPos; + + public ExecuteSqlResponseItemStatementPos getStatementPos() { + return statementPos; + } + + /** + * Text of statements executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private final String statementText; + + /** + * Text of statements executed. + * @return the value + **/ + public String getStatementText() { + return statementText; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private final ExecuteSqlResponseItemError error; + + public ExecuteSqlResponseItemError getError() { + return error; + } + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsOutput") + private final String dbmsOutput; + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + * @return the value + **/ + public String getDbmsOutput() { + return dbmsOutput; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final ExecuteSqlResponseItemProperties properties; + + public ExecuteSqlResponseItemProperties getProperties() { + return properties; + } + + /** + * Responses generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("responses") + private final java.util.List responses; + + /** + * Responses generated when executing the statements. + * @return the value + **/ + public java.util.List getResponses() { + return responses; + } + + /** + * Results generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private final java.util.List results; + + /** + * Results generated when executing the statements. + * @return the value + **/ + public java.util.List getResults() { + return results; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSetObject") + private final ExecuteSqlOutputDispositionDetails resultSetObject; + + public ExecuteSqlOutputDispositionDetails getResultSetObject() { + return resultSetObject; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSet") + private final ExecuteSqlResponseItemResultSet resultSet; + + public ExecuteSqlResponseItemResultSet getResultSet() { + return resultSet; + } + + /** + * Array of objects specifying the bind information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private final java.util.List binds; + + /** + * Array of objects specifying the bind information. + * @return the value + **/ + public java.util.List getBinds() { + return binds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemScript("); + sb.append("super=").append(super.toString()); + sb.append("statementId=").append(String.valueOf(this.statementId)); + sb.append(", statementType=").append(String.valueOf(this.statementType)); + sb.append(", statementPos=").append(String.valueOf(this.statementPos)); + sb.append(", statementText=").append(String.valueOf(this.statementText)); + sb.append(", error=").append(String.valueOf(this.error)); + sb.append(", dbmsOutput=").append(String.valueOf(this.dbmsOutput)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", responses=").append(String.valueOf(this.responses)); + sb.append(", results=").append(String.valueOf(this.results)); + sb.append(", resultSetObject=").append(String.valueOf(this.resultSetObject)); + sb.append(", resultSet=").append(String.valueOf(this.resultSet)); + sb.append(", binds=").append(String.valueOf(this.binds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemScript)) { + return false; + } + + ExecuteSqlResponseItemScript other = (ExecuteSqlResponseItemScript) o; + return java.util.Objects.equals(this.statementId, other.statementId) + && java.util.Objects.equals(this.statementType, other.statementType) + && java.util.Objects.equals(this.statementPos, other.statementPos) + && java.util.Objects.equals(this.statementText, other.statementText) + && java.util.Objects.equals(this.error, other.error) + && java.util.Objects.equals(this.dbmsOutput, other.dbmsOutput) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.responses, other.responses) + && java.util.Objects.equals(this.results, other.results) + && java.util.Objects.equals(this.resultSetObject, other.resultSetObject) + && java.util.Objects.equals(this.resultSet, other.resultSet) + && java.util.Objects.equals(this.binds, other.binds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.statementId == null ? 43 : this.statementId.hashCode()); + result = + (result * PRIME) + + (this.statementType == null ? 43 : this.statementType.hashCode()); + result = (result * PRIME) + (this.statementPos == null ? 43 : this.statementPos.hashCode()); + result = + (result * PRIME) + + (this.statementText == null ? 43 : this.statementText.hashCode()); + result = (result * PRIME) + (this.error == null ? 43 : this.error.hashCode()); + result = (result * PRIME) + (this.dbmsOutput == null ? 43 : this.dbmsOutput.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.responses == null ? 43 : this.responses.hashCode()); + result = (result * PRIME) + (this.results == null ? 43 : this.results.hashCode()); + result = + (result * PRIME) + + (this.resultSetObject == null ? 43 : this.resultSetObject.hashCode()); + result = (result * PRIME) + (this.resultSet == null ? 43 : this.resultSet.hashCode()); + result = (result * PRIME) + (this.binds == null ? 43 : this.binds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStandard.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStandard.java new file mode 100644 index 00000000000..7f1a970f448 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStandard.java @@ -0,0 +1,517 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A statement execution response for Standard type 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemStandard.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemStandard + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "statementId", + "statementType", + "statementPos", + "statementText", + "error", + "dbmsOutput", + "properties", + "responses", + "results", + "resultSetObject", + "resultSet", + "binds" + }) + public ExecuteSqlResponseItemStandard( + Integer statementId, + StatementType statementType, + ExecuteSqlResponseItemStatementPos statementPos, + String statementText, + ExecuteSqlResponseItemError error, + String dbmsOutput, + ExecuteSqlResponseItemProperties properties, + java.util.List responses, + java.util.List results, + ExecuteSqlOutputDispositionDetails resultSetObject, + ExecuteSqlResponseItemResultSet resultSet, + java.util.List binds) { + super(); + this.statementId = statementId; + this.statementType = statementType; + this.statementPos = statementPos; + this.statementText = statementText; + this.error = error; + this.dbmsOutput = dbmsOutput; + this.properties = properties; + this.responses = responses; + this.results = results; + this.resultSetObject = resultSetObject; + this.resultSet = resultSet; + this.binds = binds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementId") + private Integer statementId; + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + * @param statementId the value to set + * @return this builder + **/ + public Builder statementId(Integer statementId) { + this.statementId = statementId; + this.__explicitlySet__.add("statementId"); + return this; + } + /** + * The Statement type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private StatementType statementType; + + /** + * The Statement type. + * @param statementType the value to set + * @return this builder + **/ + public Builder statementType(StatementType statementType) { + this.statementType = statementType; + this.__explicitlySet__.add("statementType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statementPos") + private ExecuteSqlResponseItemStatementPos statementPos; + + public Builder statementPos(ExecuteSqlResponseItemStatementPos statementPos) { + this.statementPos = statementPos; + this.__explicitlySet__.add("statementPos"); + return this; + } + /** + * Text of statements executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private String statementText; + + /** + * Text of statements executed. + * @param statementText the value to set + * @return this builder + **/ + public Builder statementText(String statementText) { + this.statementText = statementText; + this.__explicitlySet__.add("statementText"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private ExecuteSqlResponseItemError error; + + public Builder error(ExecuteSqlResponseItemError error) { + this.error = error; + this.__explicitlySet__.add("error"); + return this; + } + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsOutput") + private String dbmsOutput; + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + * @param dbmsOutput the value to set + * @return this builder + **/ + public Builder dbmsOutput(String dbmsOutput) { + this.dbmsOutput = dbmsOutput; + this.__explicitlySet__.add("dbmsOutput"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private ExecuteSqlResponseItemProperties properties; + + public Builder properties(ExecuteSqlResponseItemProperties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** + * Responses generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("responses") + private java.util.List responses; + + /** + * Responses generated when executing the statements. + * @param responses the value to set + * @return this builder + **/ + public Builder responses(java.util.List responses) { + this.responses = responses; + this.__explicitlySet__.add("responses"); + return this; + } + /** + * Results generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private java.util.List results; + + /** + * Results generated when executing the statements. + * @param results the value to set + * @return this builder + **/ + public Builder results(java.util.List results) { + this.results = results; + this.__explicitlySet__.add("results"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSetObject") + private ExecuteSqlOutputDispositionDetails resultSetObject; + + public Builder resultSetObject(ExecuteSqlOutputDispositionDetails resultSetObject) { + this.resultSetObject = resultSetObject; + this.__explicitlySet__.add("resultSetObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSet") + private ExecuteSqlResponseItemResultSet resultSet; + + public Builder resultSet(ExecuteSqlResponseItemResultSet resultSet) { + this.resultSet = resultSet; + this.__explicitlySet__.add("resultSet"); + return this; + } + /** + * Array of objects specifying the bind information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private java.util.List binds; + + /** + * Array of objects specifying the bind information. + * @param binds the value to set + * @return this builder + **/ + public Builder binds(java.util.List binds) { + this.binds = binds; + this.__explicitlySet__.add("binds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemStandard build() { + ExecuteSqlResponseItemStandard model = + new ExecuteSqlResponseItemStandard( + this.statementId, + this.statementType, + this.statementPos, + this.statementText, + this.error, + this.dbmsOutput, + this.properties, + this.responses, + this.results, + this.resultSetObject, + this.resultSet, + this.binds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemStandard model) { + if (model.wasPropertyExplicitlySet("statementId")) { + this.statementId(model.getStatementId()); + } + if (model.wasPropertyExplicitlySet("statementType")) { + this.statementType(model.getStatementType()); + } + if (model.wasPropertyExplicitlySet("statementPos")) { + this.statementPos(model.getStatementPos()); + } + if (model.wasPropertyExplicitlySet("statementText")) { + this.statementText(model.getStatementText()); + } + if (model.wasPropertyExplicitlySet("error")) { + this.error(model.getError()); + } + if (model.wasPropertyExplicitlySet("dbmsOutput")) { + this.dbmsOutput(model.getDbmsOutput()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("responses")) { + this.responses(model.getResponses()); + } + if (model.wasPropertyExplicitlySet("results")) { + this.results(model.getResults()); + } + if (model.wasPropertyExplicitlySet("resultSetObject")) { + this.resultSetObject(model.getResultSetObject()); + } + if (model.wasPropertyExplicitlySet("resultSet")) { + this.resultSet(model.getResultSet()); + } + if (model.wasPropertyExplicitlySet("binds")) { + this.binds(model.getBinds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementId") + private final Integer statementId; + + /** + * The sequence number of the statement. Sequence number of the first statement is 1. + * @return the value + **/ + public Integer getStatementId() { + return statementId; + } + + /** + * The Statement type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementType") + private final StatementType statementType; + + /** + * The Statement type. + * @return the value + **/ + public StatementType getStatementType() { + return statementType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statementPos") + private final ExecuteSqlResponseItemStatementPos statementPos; + + public ExecuteSqlResponseItemStatementPos getStatementPos() { + return statementPos; + } + + /** + * Text of statements executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statementText") + private final String statementText; + + /** + * Text of statements executed. + * @return the value + **/ + public String getStatementText() { + return statementText; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private final ExecuteSqlResponseItemError error; + + public ExecuteSqlResponseItemError getError() { + return error; + } + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsOutput") + private final String dbmsOutput; + + /** + * Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON). + * @return the value + **/ + public String getDbmsOutput() { + return dbmsOutput; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final ExecuteSqlResponseItemProperties properties; + + public ExecuteSqlResponseItemProperties getProperties() { + return properties; + } + + /** + * Responses generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("responses") + private final java.util.List responses; + + /** + * Responses generated when executing the statements. + * @return the value + **/ + public java.util.List getResponses() { + return responses; + } + + /** + * Results generated when executing the statements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("results") + private final java.util.List results; + + /** + * Results generated when executing the statements. + * @return the value + **/ + public java.util.List getResults() { + return results; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSetObject") + private final ExecuteSqlOutputDispositionDetails resultSetObject; + + public ExecuteSqlOutputDispositionDetails getResultSetObject() { + return resultSetObject; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resultSet") + private final ExecuteSqlResponseItemResultSet resultSet; + + public ExecuteSqlResponseItemResultSet getResultSet() { + return resultSet; + } + + /** + * Array of objects specifying the bind information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("binds") + private final java.util.List binds; + + /** + * Array of objects specifying the bind information. + * @return the value + **/ + public java.util.List getBinds() { + return binds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemStandard("); + sb.append("super=").append(super.toString()); + sb.append("statementId=").append(String.valueOf(this.statementId)); + sb.append(", statementType=").append(String.valueOf(this.statementType)); + sb.append(", statementPos=").append(String.valueOf(this.statementPos)); + sb.append(", statementText=").append(String.valueOf(this.statementText)); + sb.append(", error=").append(String.valueOf(this.error)); + sb.append(", dbmsOutput=").append(String.valueOf(this.dbmsOutput)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", responses=").append(String.valueOf(this.responses)); + sb.append(", results=").append(String.valueOf(this.results)); + sb.append(", resultSetObject=").append(String.valueOf(this.resultSetObject)); + sb.append(", resultSet=").append(String.valueOf(this.resultSet)); + sb.append(", binds=").append(String.valueOf(this.binds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemStandard)) { + return false; + } + + ExecuteSqlResponseItemStandard other = (ExecuteSqlResponseItemStandard) o; + return java.util.Objects.equals(this.statementId, other.statementId) + && java.util.Objects.equals(this.statementType, other.statementType) + && java.util.Objects.equals(this.statementPos, other.statementPos) + && java.util.Objects.equals(this.statementText, other.statementText) + && java.util.Objects.equals(this.error, other.error) + && java.util.Objects.equals(this.dbmsOutput, other.dbmsOutput) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.responses, other.responses) + && java.util.Objects.equals(this.results, other.results) + && java.util.Objects.equals(this.resultSetObject, other.resultSetObject) + && java.util.Objects.equals(this.resultSet, other.resultSet) + && java.util.Objects.equals(this.binds, other.binds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.statementId == null ? 43 : this.statementId.hashCode()); + result = + (result * PRIME) + + (this.statementType == null ? 43 : this.statementType.hashCode()); + result = (result * PRIME) + (this.statementPos == null ? 43 : this.statementPos.hashCode()); + result = + (result * PRIME) + + (this.statementText == null ? 43 : this.statementText.hashCode()); + result = (result * PRIME) + (this.error == null ? 43 : this.error.hashCode()); + result = (result * PRIME) + (this.dbmsOutput == null ? 43 : this.dbmsOutput.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.responses == null ? 43 : this.responses.hashCode()); + result = (result * PRIME) + (this.results == null ? 43 : this.results.hashCode()); + result = + (result * PRIME) + + (this.resultSetObject == null ? 43 : this.resultSetObject.hashCode()); + result = (result * PRIME) + (this.resultSet == null ? 43 : this.resultSet.hashCode()); + result = (result * PRIME) + (this.binds == null ? 43 : this.binds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStatementPos.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStatementPos.java new file mode 100644 index 00000000000..9fd72311c29 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStatementPos.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Position of the statement. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemStatementPos.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExecuteSqlResponseItemStatementPos + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"startLine", "endLine"}) + public ExecuteSqlResponseItemStatementPos(Integer startLine, Integer endLine) { + super(); + this.startLine = startLine; + this.endLine = endLine; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Start line of the statement. First start line is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("startLine") + private Integer startLine; + + /** + * Start line of the statement. First start line is 1. + * @param startLine the value to set + * @return this builder + **/ + public Builder startLine(Integer startLine) { + this.startLine = startLine; + this.__explicitlySet__.add("startLine"); + return this; + } + /** + * End line of the statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endLine") + private Integer endLine; + + /** + * End line of the statement. + * @param endLine the value to set + * @return this builder + **/ + public Builder endLine(Integer endLine) { + this.endLine = endLine; + this.__explicitlySet__.add("endLine"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecuteSqlResponseItemStatementPos build() { + ExecuteSqlResponseItemStatementPos model = + new ExecuteSqlResponseItemStatementPos(this.startLine, this.endLine); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseItemStatementPos model) { + if (model.wasPropertyExplicitlySet("startLine")) { + this.startLine(model.getStartLine()); + } + if (model.wasPropertyExplicitlySet("endLine")) { + this.endLine(model.getEndLine()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Start line of the statement. First start line is 1. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("startLine") + private final Integer startLine; + + /** + * Start line of the statement. First start line is 1. + * @return the value + **/ + public Integer getStartLine() { + return startLine; + } + + /** + * End line of the statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endLine") + private final Integer endLine; + + /** + * End line of the statement. + * @return the value + **/ + public Integer getEndLine() { + return endLine; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecuteSqlResponseItemStatementPos("); + sb.append("super=").append(super.toString()); + sb.append("startLine=").append(String.valueOf(this.startLine)); + sb.append(", endLine=").append(String.valueOf(this.endLine)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlResponseItemStatementPos)) { + return false; + } + + ExecuteSqlResponseItemStatementPos other = (ExecuteSqlResponseItemStatementPos) o; + return java.util.Objects.equals(this.startLine, other.startLine) + && java.util.Objects.equals(this.endLine, other.endLine) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.startLine == null ? 43 : this.startLine.hashCode()); + result = (result * PRIME) + (this.endLine == null ? 43 : this.endLine.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseScript.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseScript.java new file mode 100644 index 00000000000..aa6472f3cc4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseScript.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Script SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseScript.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 ExecuteSqlResponseScript extends ExecuteSqlResponse { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("env") + private ExecuteSqlResponseEnv env; + + public Builder env(ExecuteSqlResponseEnv env) { + this.env = env; + this.__explicitlySet__.add("env"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The execution result of a statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The execution result of a statement. + * @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 ExecuteSqlResponseScript build() { + ExecuteSqlResponseScript model = + new ExecuteSqlResponseScript(this.env, this.version, this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseScript model) { + if (model.wasPropertyExplicitlySet("env")) { + this.env(model.getEnv()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + 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); + } + + @Deprecated + public ExecuteSqlResponseScript( + ExecuteSqlResponseEnv env, + String version, + java.util.List items) { + super(env, version); + this.items = items; + } + + /** + * The execution result of a statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The execution result of a statement. + * @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("ExecuteSqlResponseScript("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 ExecuteSqlResponseScript)) { + return false; + } + + ExecuteSqlResponseScript other = (ExecuteSqlResponseScript) o; + return java.util.Objects.equals(this.items, other.items) && 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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseStandard.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseStandard.java new file mode 100644 index 00000000000..7870900da28 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseStandard.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details for the Standard SQL statements to execute on the 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseStandard.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 ExecuteSqlResponseStandard extends ExecuteSqlResponse { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("env") + private ExecuteSqlResponseEnv env; + + public Builder env(ExecuteSqlResponseEnv env) { + this.env = env; + this.__explicitlySet__.add("env"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The execution result of a statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The execution result of a statement. + * @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 ExecuteSqlResponseStandard build() { + ExecuteSqlResponseStandard model = + new ExecuteSqlResponseStandard(this.env, this.version, this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecuteSqlResponseStandard model) { + if (model.wasPropertyExplicitlySet("env")) { + this.env(model.getEnv()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + 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); + } + + @Deprecated + public ExecuteSqlResponseStandard( + ExecuteSqlResponseEnv env, + String version, + java.util.List items) { + super(env, version); + this.items = items; + } + + /** + * The execution result of a statement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The execution result of a statement. + * @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("ExecuteSqlResponseStandard("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 ExecuteSqlResponseStandard)) { + return false; + } + + ExecuteSqlResponseStandard other = (ExecuteSqlResponseStandard) o; + return java.util.Objects.equals(this.items, other.items) && 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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityProviderType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityProviderType.java new file mode 100644 index 00000000000..c12dfec13ae --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityProviderType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The identity provider type + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum IdentityProviderType { + OciIam("OCI_IAM"), + AzureAd("AZURE_AD"), + None("NONE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(IdentityProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IdentityProviderType v : IdentityProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IdentityProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IdentityProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IdentityProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityType.java new file mode 100644 index 00000000000..c723057e57f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The Database Tools identity type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum IdentityType { + OracleDatabaseResourcePrincipal("ORACLE_DATABASE_RESOURCE_PRINCIPAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(IdentityType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IdentityType v : IdentityType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IdentityType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IdentityType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IdentityType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationStatus.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationStatus.java new file mode 100644 index 00000000000..e605580af35 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationStatus.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The state of the work request operation. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum OperationStatus { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + Waiting("WAITING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationType.java new file mode 100644 index 00000000000..18ebc5d1c1e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The work request operation type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum OperationType { + ExecuteSql("EXECUTE_SQL"), + ExecuteSqlScheduledDeletion("EXECUTE_SQL_SCHEDULED_DELETION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PayloadType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PayloadType.java new file mode 100644 index 00000000000..cc05af1936f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PayloadType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The payload type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum PayloadType { + Standard("STANDARD"), + Batch("BATCH"), + Script("SCRIPT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PayloadType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PayloadType v : PayloadType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PayloadType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PayloadType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PayloadType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySet.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySet.java new file mode 100644 index 00000000000..9a5a12a8dbc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySet.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The base definition for a property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key", + defaultImpl = PropertySet.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetApex.class, + name = "APEX" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetApexFaIntegration.class, + name = "APEX_FA_INTEGRATION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetApexDocumentGenerator.class, + name = "APEX_DOCUMENT_GENERATOR" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetOracleDatabaseExternalAuthentication.class, + name = "ORACLE_DATABASE_EXTERNAL_AUTHENTICATION" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PropertySet extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isMutable"}) + protected PropertySet(Boolean isMutable) { + super(); + this.isMutable = isMutable; + } + + /** + * Indicates whether the property set is mutable or not + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMutable") + private final Boolean isMutable; + + /** + * Indicates whether the property set is mutable or not + * @return the value + **/ + public Boolean getIsMutable() { + return isMutable; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySet("); + sb.append("super=").append(super.toString()); + sb.append("isMutable=").append(String.valueOf(this.isMutable)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertySet)) { + return false; + } + + PropertySet other = (PropertySet) o; + return java.util.Objects.equals(this.isMutable, other.isMutable) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isMutable == null ? 43 : this.isMutable.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApex.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApex.java new file mode 100644 index 00000000000..333ba4adbe1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApex.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details of an APEX property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PropertySetApex.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PropertySetApex extends PropertySet { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isMutable") + private Boolean isMutable; + + public Builder isMutable(Boolean isMutable) { + this.isMutable = isMutable; + this.__explicitlySet__.add("isMutable"); + return this; + } + /** + * The version of APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of APEX + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The APEX engine schema name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userKey") + private String userKey; + + /** + * The APEX engine schema name + * @param userKey the value to set + * @return this builder + **/ + public Builder userKey(String userKey) { + this.userKey = userKey; + this.__explicitlySet__.add("userKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertySetApex build() { + PropertySetApex model = new PropertySetApex(this.isMutable, this.version, this.userKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertySetApex model) { + if (model.wasPropertyExplicitlySet("isMutable")) { + this.isMutable(model.getIsMutable()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("userKey")) { + this.userKey(model.getUserKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetApex(Boolean isMutable, String version, String userKey) { + super(isMutable); + this.version = version; + this.userKey = userKey; + } + + /** + * The version of APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of APEX + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * The APEX engine schema name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userKey") + private final String userKey; + + /** + * The APEX engine schema name + * @return the value + **/ + public String getUserKey() { + return userKey; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySetApex("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", userKey=").append(String.valueOf(this.userKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertySetApex)) { + return false; + } + + PropertySetApex other = (PropertySetApex) o; + return java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.userKey, other.userKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.userKey == null ? 43 : this.userKey.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexDocumentGenerator.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexDocumentGenerator.java new file mode 100644 index 00000000000..07a54ae06e3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexDocumentGenerator.java @@ -0,0 +1,563 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details of an APEX Document Generator property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertySetApexDocumentGenerator.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PropertySetApexDocumentGenerator extends PropertySet { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isMutable") + private Boolean isMutable; + + public Builder isMutable(Boolean isMutable) { + this.isMutable = isMutable; + this.__explicitlySet__.add("isMutable"); + return this; + } + /** + * The print server type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("printServerType") + private PrintServerType printServerType; + + /** + * The print server type + * @param printServerType the value to set + * @return this builder + **/ + public Builder printServerType(PrintServerType printServerType) { + this.printServerType = printServerType; + this.__explicitlySet__.add("printServerType"); + return this; + } + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialKey") + private String credentialKey; + + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function + * @param credentialKey the value to set + * @return this builder + **/ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + this.__explicitlySet__.add("credentialKey"); + return this; + } + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseResourcePrincipalStatus") + private AutonomousDatabaseResourcePrincipalStatus autonomousDatabaseResourcePrincipalStatus; + + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + * @param autonomousDatabaseResourcePrincipalStatus the value to set + * @return this builder + **/ + public Builder autonomousDatabaseResourcePrincipalStatus( + AutonomousDatabaseResourcePrincipalStatus + autonomousDatabaseResourcePrincipalStatus) { + this.autonomousDatabaseResourcePrincipalStatus = + autonomousDatabaseResourcePrincipalStatus; + this.__explicitlySet__.add("autonomousDatabaseResourcePrincipalStatus"); + return this; + } + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageNamespace") + private String objectStorageNamespace; + + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + * @param objectStorageNamespace the value to set + * @return this builder + **/ + public Builder objectStorageNamespace(String objectStorageNamespace) { + this.objectStorageNamespace = objectStorageNamespace; + this.__explicitlySet__.add("objectStorageNamespace"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucketCompartmentId") + private String objectStorageBucketCompartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + * @param objectStorageBucketCompartmentId the value to set + * @return this builder + **/ + public Builder objectStorageBucketCompartmentId(String objectStorageBucketCompartmentId) { + this.objectStorageBucketCompartmentId = objectStorageBucketCompartmentId; + this.__explicitlySet__.add("objectStorageBucketCompartmentId"); + return this; + } + /** + * Object Storage Endpoint + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageEndpoint") + private String objectStorageEndpoint; + + /** + * Object Storage Endpoint + * @param objectStorageEndpoint the value to set + * @return this builder + **/ + public Builder objectStorageEndpoint(String objectStorageEndpoint) { + this.objectStorageEndpoint = objectStorageEndpoint; + this.__explicitlySet__.add("objectStorageEndpoint"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("functionId") + private String functionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + * @param functionId the value to set + * @return this builder + **/ + public Builder functionId(String functionId) { + this.functionId = functionId; + this.__explicitlySet__.add("functionId"); + return this; + } + /** + * The base endpoint URL to use to invoke the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invokeEndpoint") + private String invokeEndpoint; + + /** + * The base endpoint URL to use to invoke the Document Generator function + * @param invokeEndpoint the value to set + * @return this builder + **/ + public Builder invokeEndpoint(String invokeEndpoint) { + this.invokeEndpoint = invokeEndpoint; + this.__explicitlySet__.add("invokeEndpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertySetApexDocumentGenerator build() { + PropertySetApexDocumentGenerator model = + new PropertySetApexDocumentGenerator( + this.isMutable, + this.printServerType, + this.credentialKey, + this.autonomousDatabaseResourcePrincipalStatus, + this.objectStorageNamespace, + this.objectStorageBucketCompartmentId, + this.objectStorageEndpoint, + this.functionId, + this.invokeEndpoint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertySetApexDocumentGenerator model) { + if (model.wasPropertyExplicitlySet("isMutable")) { + this.isMutable(model.getIsMutable()); + } + if (model.wasPropertyExplicitlySet("printServerType")) { + this.printServerType(model.getPrintServerType()); + } + if (model.wasPropertyExplicitlySet("credentialKey")) { + this.credentialKey(model.getCredentialKey()); + } + if (model.wasPropertyExplicitlySet("autonomousDatabaseResourcePrincipalStatus")) { + this.autonomousDatabaseResourcePrincipalStatus( + model.getAutonomousDatabaseResourcePrincipalStatus()); + } + if (model.wasPropertyExplicitlySet("objectStorageNamespace")) { + this.objectStorageNamespace(model.getObjectStorageNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStorageBucketCompartmentId")) { + this.objectStorageBucketCompartmentId(model.getObjectStorageBucketCompartmentId()); + } + if (model.wasPropertyExplicitlySet("objectStorageEndpoint")) { + this.objectStorageEndpoint(model.getObjectStorageEndpoint()); + } + if (model.wasPropertyExplicitlySet("functionId")) { + this.functionId(model.getFunctionId()); + } + if (model.wasPropertyExplicitlySet("invokeEndpoint")) { + this.invokeEndpoint(model.getInvokeEndpoint()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetApexDocumentGenerator( + Boolean isMutable, + PrintServerType printServerType, + String credentialKey, + AutonomousDatabaseResourcePrincipalStatus autonomousDatabaseResourcePrincipalStatus, + String objectStorageNamespace, + String objectStorageBucketCompartmentId, + String objectStorageEndpoint, + String functionId, + String invokeEndpoint) { + super(isMutable); + this.printServerType = printServerType; + this.credentialKey = credentialKey; + this.autonomousDatabaseResourcePrincipalStatus = autonomousDatabaseResourcePrincipalStatus; + this.objectStorageNamespace = objectStorageNamespace; + this.objectStorageBucketCompartmentId = objectStorageBucketCompartmentId; + this.objectStorageEndpoint = objectStorageEndpoint; + this.functionId = functionId; + this.invokeEndpoint = invokeEndpoint; + } + + /** + * The print server type + **/ + public enum PrintServerType { + DocumentGenerator("DOCUMENT_GENERATOR"), + None("NONE"), + Standard("STANDARD"), + Advanced("ADVANCED"), + Aop("AOP"), + Other("OTHER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PrintServerType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PrintServerType v : PrintServerType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PrintServerType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PrintServerType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PrintServerType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The print server type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("printServerType") + private final PrintServerType printServerType; + + /** + * The print server type + * @return the value + **/ + public PrintServerType getPrintServerType() { + return printServerType; + } + + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialKey") + private final String credentialKey; + + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function + * @return the value + **/ + public String getCredentialKey() { + return credentialKey; + } + + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + **/ + public enum AutonomousDatabaseResourcePrincipalStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AutonomousDatabaseResourcePrincipalStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutonomousDatabaseResourcePrincipalStatus v : + AutonomousDatabaseResourcePrincipalStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutonomousDatabaseResourcePrincipalStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutonomousDatabaseResourcePrincipalStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutonomousDatabaseResourcePrincipalStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseResourcePrincipalStatus") + private final AutonomousDatabaseResourcePrincipalStatus + autonomousDatabaseResourcePrincipalStatus; + + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + * @return the value + **/ + public AutonomousDatabaseResourcePrincipalStatus + getAutonomousDatabaseResourcePrincipalStatus() { + return autonomousDatabaseResourcePrincipalStatus; + } + + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageNamespace") + private final String objectStorageNamespace; + + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + * @return the value + **/ + public String getObjectStorageNamespace() { + return objectStorageNamespace; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucketCompartmentId") + private final String objectStorageBucketCompartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + * @return the value + **/ + public String getObjectStorageBucketCompartmentId() { + return objectStorageBucketCompartmentId; + } + + /** + * Object Storage Endpoint + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageEndpoint") + private final String objectStorageEndpoint; + + /** + * Object Storage Endpoint + * @return the value + **/ + public String getObjectStorageEndpoint() { + return objectStorageEndpoint; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("functionId") + private final String functionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + * @return the value + **/ + public String getFunctionId() { + return functionId; + } + + /** + * The base endpoint URL to use to invoke the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invokeEndpoint") + private final String invokeEndpoint; + + /** + * The base endpoint URL to use to invoke the Document Generator function + * @return the value + **/ + public String getInvokeEndpoint() { + return invokeEndpoint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySetApexDocumentGenerator("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", printServerType=").append(String.valueOf(this.printServerType)); + sb.append(", credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(", autonomousDatabaseResourcePrincipalStatus=") + .append(String.valueOf(this.autonomousDatabaseResourcePrincipalStatus)); + sb.append(", objectStorageNamespace=").append(String.valueOf(this.objectStorageNamespace)); + sb.append(", objectStorageBucketCompartmentId=") + .append(String.valueOf(this.objectStorageBucketCompartmentId)); + sb.append(", objectStorageEndpoint=").append(String.valueOf(this.objectStorageEndpoint)); + sb.append(", functionId=").append(String.valueOf(this.functionId)); + sb.append(", invokeEndpoint=").append(String.valueOf(this.invokeEndpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertySetApexDocumentGenerator)) { + return false; + } + + PropertySetApexDocumentGenerator other = (PropertySetApexDocumentGenerator) o; + return java.util.Objects.equals(this.printServerType, other.printServerType) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals( + this.autonomousDatabaseResourcePrincipalStatus, + other.autonomousDatabaseResourcePrincipalStatus) + && java.util.Objects.equals( + this.objectStorageNamespace, other.objectStorageNamespace) + && java.util.Objects.equals( + this.objectStorageBucketCompartmentId, + other.objectStorageBucketCompartmentId) + && java.util.Objects.equals(this.objectStorageEndpoint, other.objectStorageEndpoint) + && java.util.Objects.equals(this.functionId, other.functionId) + && java.util.Objects.equals(this.invokeEndpoint, other.invokeEndpoint) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.printServerType == null ? 43 : this.printServerType.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.autonomousDatabaseResourcePrincipalStatus == null + ? 43 + : this.autonomousDatabaseResourcePrincipalStatus.hashCode()); + result = + (result * PRIME) + + (this.objectStorageNamespace == null + ? 43 + : this.objectStorageNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStorageBucketCompartmentId == null + ? 43 + : this.objectStorageBucketCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.objectStorageEndpoint == null + ? 43 + : this.objectStorageEndpoint.hashCode()); + result = (result * PRIME) + (this.functionId == null ? 43 : this.functionId.hashCode()); + result = + (result * PRIME) + + (this.invokeEndpoint == null ? 43 : this.invokeEndpoint.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexFaIntegration.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexFaIntegration.java new file mode 100644 index 00000000000..89a2cb3a809 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexFaIntegration.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details of an APEX FA Integration property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertySetApexFaIntegration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PropertySetApexFaIntegration extends PropertySet { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isMutable") + private Boolean isMutable; + + public Builder isMutable(Boolean isMutable) { + this.isMutable = isMutable; + this.__explicitlySet__.add("isMutable"); + return this; + } + /** + * APEX FA Integration key-value pairs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationSubstitutions") + private java.util.Map authenticationSubstitutions; + + /** + * APEX FA Integration key-value pairs. + * @param authenticationSubstitutions the value to set + * @return this builder + **/ + public Builder authenticationSubstitutions( + java.util.Map authenticationSubstitutions) { + this.authenticationSubstitutions = authenticationSubstitutions; + this.__explicitlySet__.add("authenticationSubstitutions"); + return this; + } + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceDbmsCredentialEnabled") + private String instanceDbmsCredentialEnabled; + + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + * @param instanceDbmsCredentialEnabled the value to set + * @return this builder + **/ + public Builder instanceDbmsCredentialEnabled(String instanceDbmsCredentialEnabled) { + this.instanceDbmsCredentialEnabled = instanceDbmsCredentialEnabled; + this.__explicitlySet__.add("instanceDbmsCredentialEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("prerequisitesCheck") + private ApexFaIntegrationPrerequisitesCheck prerequisitesCheck; + + public Builder prerequisitesCheck(ApexFaIntegrationPrerequisitesCheck prerequisitesCheck) { + this.prerequisitesCheck = prerequisitesCheck; + this.__explicitlySet__.add("prerequisitesCheck"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertySetApexFaIntegration build() { + PropertySetApexFaIntegration model = + new PropertySetApexFaIntegration( + this.isMutable, + this.authenticationSubstitutions, + this.instanceDbmsCredentialEnabled, + this.prerequisitesCheck); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertySetApexFaIntegration model) { + if (model.wasPropertyExplicitlySet("isMutable")) { + this.isMutable(model.getIsMutable()); + } + if (model.wasPropertyExplicitlySet("authenticationSubstitutions")) { + this.authenticationSubstitutions(model.getAuthenticationSubstitutions()); + } + if (model.wasPropertyExplicitlySet("instanceDbmsCredentialEnabled")) { + this.instanceDbmsCredentialEnabled(model.getInstanceDbmsCredentialEnabled()); + } + if (model.wasPropertyExplicitlySet("prerequisitesCheck")) { + this.prerequisitesCheck(model.getPrerequisitesCheck()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetApexFaIntegration( + Boolean isMutable, + java.util.Map authenticationSubstitutions, + String instanceDbmsCredentialEnabled, + ApexFaIntegrationPrerequisitesCheck prerequisitesCheck) { + super(isMutable); + this.authenticationSubstitutions = authenticationSubstitutions; + this.instanceDbmsCredentialEnabled = instanceDbmsCredentialEnabled; + this.prerequisitesCheck = prerequisitesCheck; + } + + /** + * APEX FA Integration key-value pairs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationSubstitutions") + private final java.util.Map authenticationSubstitutions; + + /** + * APEX FA Integration key-value pairs. + * @return the value + **/ + public java.util.Map getAuthenticationSubstitutions() { + return authenticationSubstitutions; + } + + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceDbmsCredentialEnabled") + private final String instanceDbmsCredentialEnabled; + + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + * @return the value + **/ + public String getInstanceDbmsCredentialEnabled() { + return instanceDbmsCredentialEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("prerequisitesCheck") + private final ApexFaIntegrationPrerequisitesCheck prerequisitesCheck; + + public ApexFaIntegrationPrerequisitesCheck getPrerequisitesCheck() { + return prerequisitesCheck; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySetApexFaIntegration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", authenticationSubstitutions=") + .append(String.valueOf(this.authenticationSubstitutions)); + sb.append(", instanceDbmsCredentialEnabled=") + .append(String.valueOf(this.instanceDbmsCredentialEnabled)); + sb.append(", prerequisitesCheck=").append(String.valueOf(this.prerequisitesCheck)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertySetApexFaIntegration)) { + return false; + } + + PropertySetApexFaIntegration other = (PropertySetApexFaIntegration) o; + return java.util.Objects.equals( + this.authenticationSubstitutions, other.authenticationSubstitutions) + && java.util.Objects.equals( + this.instanceDbmsCredentialEnabled, other.instanceDbmsCredentialEnabled) + && java.util.Objects.equals(this.prerequisitesCheck, other.prerequisitesCheck) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.authenticationSubstitutions == null + ? 43 + : this.authenticationSubstitutions.hashCode()); + result = + (result * PRIME) + + (this.instanceDbmsCredentialEnabled == null + ? 43 + : this.instanceDbmsCredentialEnabled.hashCode()); + result = + (result * PRIME) + + (this.prerequisitesCheck == null + ? 43 + : this.prerequisitesCheck.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetKey.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetKey.java new file mode 100644 index 00000000000..d960599fe61 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetKey.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The property set key + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum PropertySetKey { + ApexDocumentGenerator("APEX_DOCUMENT_GENERATOR"), + Apex("APEX"), + ApexFaIntegration("APEX_FA_INTEGRATION"), + OracleDatabaseExternalAuthentication("ORACLE_DATABASE_EXTERNAL_AUTHENTICATION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PropertySetKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PropertySetKey v : PropertySetKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PropertySetKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PropertySetKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PropertySetKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthentication.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthentication.java new file mode 100644 index 00000000000..8d3f6be9dc3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthentication.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the details of Oracle Database External Authentication property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertySetOracleDatabaseExternalAuthentication.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PropertySetOracleDatabaseExternalAuthentication extends PropertySet { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isMutable") + private Boolean isMutable; + + public Builder isMutable(Boolean isMutable) { + this.isMutable = isMutable; + this.__explicitlySet__.add("isMutable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identityProvider") + private PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider; + + public Builder identityProvider( + PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider) { + this.identityProvider = identityProvider; + this.__explicitlySet__.add("identityProvider"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertySetOracleDatabaseExternalAuthentication build() { + PropertySetOracleDatabaseExternalAuthentication model = + new PropertySetOracleDatabaseExternalAuthentication( + this.isMutable, this.identityProvider); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertySetOracleDatabaseExternalAuthentication model) { + if (model.wasPropertyExplicitlySet("isMutable")) { + this.isMutable(model.getIsMutable()); + } + if (model.wasPropertyExplicitlySet("identityProvider")) { + this.identityProvider(model.getIdentityProvider()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetOracleDatabaseExternalAuthentication( + Boolean isMutable, + PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider) { + super(isMutable); + this.identityProvider = identityProvider; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identityProvider") + private final PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider; + + public PropertySetOracleDatabaseExternalAuthenticationIdentityProvider getIdentityProvider() { + return identityProvider; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySetOracleDatabaseExternalAuthentication("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", identityProvider=").append(String.valueOf(this.identityProvider)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertySetOracleDatabaseExternalAuthentication)) { + return false; + } + + PropertySetOracleDatabaseExternalAuthentication other = + (PropertySetOracleDatabaseExternalAuthentication) o; + return java.util.Objects.equals(this.identityProvider, other.identityProvider) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.identityProvider == null ? 43 : this.identityProvider.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProvider.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProvider.java new file mode 100644 index 00000000000..f85a768397c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProvider.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * External identity type provider + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = PropertySetOracleDatabaseExternalAuthenticationIdentityProvider.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam.class, + name = "OCI_IAM" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd.class, + name = "AZURE_AD" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone.class, + name = "NONE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PropertySetOracleDatabaseExternalAuthenticationIdentityProvider + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected PropertySetOracleDatabaseExternalAuthenticationIdentityProvider() { + 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("PropertySetOracleDatabaseExternalAuthenticationIdentityProvider("); + 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 PropertySetOracleDatabaseExternalAuthenticationIdentityProvider)) { + return false; + } + + PropertySetOracleDatabaseExternalAuthenticationIdentityProvider other = + (PropertySetOracleDatabaseExternalAuthenticationIdentityProvider) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd.java new file mode 100644 index 00000000000..da112cf1376 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * External identity provider for AZURE_AD + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd.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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd + extends PropertySetOracleDatabaseExternalAuthenticationIdentityProvider { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * External identity provider configuration parameters. Simple key-value pair + * Example: { "tenant_id": "...", "application_id_uri": "...", ... } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configs") + private java.util.Map configs; + + /** + * External identity provider configuration parameters. Simple key-value pair + * Example: { "tenant_id": "...", "application_id_uri": "...", ... } + * + * @param configs the value to set + * @return this builder + **/ + public Builder configs(java.util.Map configs) { + this.configs = configs; + this.__explicitlySet__.add("configs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd build() { + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd model = + new PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd( + this.configs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd model) { + if (model.wasPropertyExplicitlySet("configs")) { + this.configs(model.getConfigs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd( + java.util.Map configs) { + super(); + this.configs = configs; + } + + /** + * External identity provider configuration parameters. Simple key-value pair + * Example: { "tenant_id": "...", "application_id_uri": "...", ... } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configs") + private final java.util.Map configs; + + /** + * External identity provider configuration parameters. Simple key-value pair + * Example: { "tenant_id": "...", "application_id_uri": "...", ... } + * + * @return the value + **/ + public java.util.Map getConfigs() { + return configs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", configs=").append(String.valueOf(this.configs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o + instanceof + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd)) { + return false; + } + + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd other = + (PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd) o; + return java.util.Objects.equals(this.configs, other.configs) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.configs == null ? 43 : this.configs.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone.java new file mode 100644 index 00000000000..2300b6063b5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * External identity provider value used to disable external authentication + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone.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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone + extends PropertySetOracleDatabaseExternalAuthenticationIdentityProvider { + @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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone build() { + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone model = + new PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone() { + 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("PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone("); + 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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone)) { + return false; + } + + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone other = + (PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam.java new file mode 100644 index 00000000000..83e2af43d39 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * External identity provider for OCI_IAM + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam.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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam + extends PropertySetOracleDatabaseExternalAuthenticationIdentityProvider { + @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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam build() { + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam model = + new PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam() { + 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("PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam("); + 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 PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam)) { + return false; + } + + PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam other = + (PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/SortOrder.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/SortOrder.java new file mode 100644 index 00000000000..912d1d80925 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/SortOrder.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/StatementType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/StatementType.java new file mode 100644 index 00000000000..48246134624 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/StatementType.java @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The statement type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum StatementType { + Query("QUERY"), + Dml("DML"), + Ddl("DDL"), + Plsql("PLSQL"), + Sqlplus("SQLPLUS"), + Ignore("IGNORE"), + TransactionControl("TRANSACTION_CONTROL"), + SessionControl("SESSION_CONTROL"), + SystemControl("SYSTEM_CONTROL"), + Jdbc("JDBC"), + Other("OTHER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StatementType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StatementType v : StatementType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StatementType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StatementType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StatementType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialBasicDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialBasicDetails.java new file mode 100644 index 00000000000..da5a3a1d435 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialBasicDetails.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Credential information to be updated for the BASIC type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCredentialBasicDetails.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 UpdateCredentialBasicDetails extends UpdateCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The username for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * The username for the new credential. + * @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 for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private char[] password; + + /** + * The password for the new credential. + * @param password the value to set + * @return this builder + **/ + public Builder password(char[] password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateCredentialBasicDetails build() { + UpdateCredentialBasicDetails model = + new UpdateCredentialBasicDetails(this.userName, this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCredentialBasicDetails model) { + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateCredentialBasicDetails(String userName, String password) { + super(); + this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateCredentialBasicDetails(String userName, char[] password) { + super(); + this.userName = userName; + this.password = password; + } + + /** + * The username for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * The username for the new credential. + * @return the value + **/ + public String getUserName() { + return userName; + } + + /** + * The password for the new credential. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final char[] password; + + /** + * The password for the new credential. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the new credential. + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateCredentialBasicDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", password=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCredentialBasicDetails)) { + return false; + } + + UpdateCredentialBasicDetails other = (UpdateCredentialBasicDetails) o; + return java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.password, other.password) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialDetails.java new file mode 100644 index 00000000000..97878ba2640 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialDetails.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Credential information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateCredentialDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateCredentialBasicDetails.class, + name = "BASIC" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateCredentialDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateCredentialDetails() { + 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("UpdateCredentialDetails("); + 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 UpdateCredentialDetails)) { + return false; + } + + UpdateCredentialDetails other = (UpdateCredentialDetails) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.java new file mode 100644 index 00000000000..3030d1e6e78 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of the Database Tools database API gateway config global sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails + extends UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("poolRoute") + private PoolRoute poolRoute; + + public Builder poolRoute(PoolRoute poolRoute) { + this.poolRoute = poolRoute; + this.__explicitlySet__.add("poolRoute"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("poolRoutingHeader") + private String poolRoutingHeader; + + public Builder poolRoutingHeader(String poolRoutingHeader) { + this.poolRoutingHeader = poolRoutingHeader; + this.__explicitlySet__.add("poolRoutingHeader"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseApiStatus") + private DatabaseApiStatus databaseApiStatus; + + public Builder databaseApiStatus(DatabaseApiStatus databaseApiStatus) { + this.databaseApiStatus = databaseApiStatus; + this.__explicitlySet__.add("databaseApiStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("httpPort") + private Integer httpPort; + + public Builder httpPort(Integer httpPort) { + this.httpPort = httpPort; + this.__explicitlySet__.add("httpPort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("httpsPort") + private Integer httpsPort; + + public Builder httpsPort(Integer httpsPort) { + this.httpsPort = httpsPort; + this.__explicitlySet__.add("httpsPort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateBundle") + private DatabaseApiGatewayConfigCertificateBundle certificateBundle; + + public Builder certificateBundle( + DatabaseApiGatewayConfigCertificateBundle certificateBundle) { + this.certificateBundle = certificateBundle; + this.__explicitlySet__.add("certificateBundle"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("documentRoot") + private String documentRoot; + + public Builder documentRoot(String documentRoot) { + this.documentRoot = documentRoot; + this.__explicitlySet__.add("documentRoot"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private java.util.Map advancedProperties; + + public Builder advancedProperties(java.util.Map advancedProperties) { + this.advancedProperties = advancedProperties; + this.__explicitlySet__.add("advancedProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails model = + new UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails( + this.poolRoute, + this.poolRoutingHeader, + this.databaseApiStatus, + this.httpPort, + this.httpsPort, + this.certificateBundle, + this.documentRoot, + this.advancedProperties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails model) { + if (model.wasPropertyExplicitlySet("poolRoute")) { + this.poolRoute(model.getPoolRoute()); + } + if (model.wasPropertyExplicitlySet("poolRoutingHeader")) { + this.poolRoutingHeader(model.getPoolRoutingHeader()); + } + if (model.wasPropertyExplicitlySet("databaseApiStatus")) { + this.databaseApiStatus(model.getDatabaseApiStatus()); + } + if (model.wasPropertyExplicitlySet("httpPort")) { + this.httpPort(model.getHttpPort()); + } + if (model.wasPropertyExplicitlySet("httpsPort")) { + this.httpsPort(model.getHttpsPort()); + } + if (model.wasPropertyExplicitlySet("certificateBundle")) { + this.certificateBundle(model.getCertificateBundle()); + } + if (model.wasPropertyExplicitlySet("documentRoot")) { + this.documentRoot(model.getDocumentRoot()); + } + if (model.wasPropertyExplicitlySet("advancedProperties")) { + this.advancedProperties(model.getAdvancedProperties()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails( + PoolRoute poolRoute, + String poolRoutingHeader, + DatabaseApiStatus databaseApiStatus, + Integer httpPort, + Integer httpsPort, + DatabaseApiGatewayConfigCertificateBundle certificateBundle, + String documentRoot, + java.util.Map advancedProperties) { + super( + poolRoute, + poolRoutingHeader, + databaseApiStatus, + httpPort, + httpsPort, + certificateBundle, + documentRoot, + advancedProperties); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails("); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails.java new file mode 100644 index 00000000000..97da4b2965d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of the Database Tools database API gateway config global sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "poolRoute", + "poolRoutingHeader", + "databaseApiStatus", + "httpPort", + "httpsPort", + "certificateBundle", + "documentRoot", + "advancedProperties" + }) + protected UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails( + PoolRoute poolRoute, + String poolRoutingHeader, + DatabaseApiStatus databaseApiStatus, + Integer httpPort, + Integer httpsPort, + DatabaseApiGatewayConfigCertificateBundle certificateBundle, + String documentRoot, + java.util.Map advancedProperties) { + super(); + this.poolRoute = poolRoute; + this.poolRoutingHeader = poolRoutingHeader; + this.databaseApiStatus = databaseApiStatus; + this.httpPort = httpPort; + this.httpsPort = httpsPort; + this.certificateBundle = certificateBundle; + this.documentRoot = documentRoot; + this.advancedProperties = advancedProperties; + } + + /** + * How the target pool route value is determined for a HTTP request. + **/ + public enum PoolRoute { + Path("PATH"), + Header("HEADER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PoolRoute v : PoolRoute.values()) { + map.put(v.getValue(), v); + } + } + + PoolRoute(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PoolRoute create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PoolRoute: " + key); + } + }; + /** + * How the target pool route value is determined for a HTTP request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRoute") + private final PoolRoute poolRoute; + + /** + * How the target pool route value is determined for a HTTP request. + * @return the value + **/ + public PoolRoute getPoolRoute() { + return poolRoute; + } + + /** + * The request header name providing the pool route value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRoutingHeader") + private final String poolRoutingHeader; + + /** + * The request header name providing the pool route value. + * @return the value + **/ + public String getPoolRoutingHeader() { + return poolRoutingHeader; + } + + /** + * ORDS database API is a database management and monitoring REST API. Database Actions requires this feature. + **/ + public enum DatabaseApiStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseApiStatus v : DatabaseApiStatus.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseApiStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseApiStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseApiStatus: " + key); + } + }; + /** + * ORDS database API is a database management and monitoring REST API. Database Actions requires this feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseApiStatus") + private final DatabaseApiStatus databaseApiStatus; + + /** + * ORDS database API is a database management and monitoring REST API. Database Actions requires this feature. + * @return the value + **/ + public DatabaseApiStatus getDatabaseApiStatus() { + return databaseApiStatus; + } + + /** + * Specifies the HTTP listen port. 0 disables HTTP. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("httpPort") + private final Integer httpPort; + + /** + * Specifies the HTTP listen port. 0 disables HTTP. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. + * @return the value + **/ + public Integer getHttpPort() { + return httpPort; + } + + /** + * Specifies the HTTPS listen port. 0 disables HTTPS. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. ORDS will use a self-signed certificate if a certificate bundle is not provided. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("httpsPort") + private final Integer httpsPort; + + /** + * Specifies the HTTPS listen port. 0 disables HTTPS. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024\u201365535) is recommended. ORDS will use a self-signed certificate if a certificate bundle is not provided. + * @return the value + **/ + public Integer getHttpsPort() { + return httpsPort; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateBundle") + private final DatabaseApiGatewayConfigCertificateBundle certificateBundle; + + public DatabaseApiGatewayConfigCertificateBundle getCertificateBundle() { + return certificateBundle; + } + + /** + * The location of the static resources to be served under the / root server path. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("documentRoot") + private final String documentRoot; + + /** + * The location of the static resources to be served under the / root server path. + * @return the value + **/ + public String getDocumentRoot() { + return documentRoot; + } + + /** + * Advanced global properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private final java.util.Map advancedProperties; + + /** + * Advanced global properties. + * @return the value + **/ + public java.util.Map getAdvancedProperties() { + return advancedProperties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails("); + sb.append("super=").append(super.toString()); + sb.append("poolRoute=").append(String.valueOf(this.poolRoute)); + sb.append(", poolRoutingHeader=").append(String.valueOf(this.poolRoutingHeader)); + sb.append(", databaseApiStatus=").append(String.valueOf(this.databaseApiStatus)); + sb.append(", httpPort=").append(String.valueOf(this.httpPort)); + sb.append(", httpsPort=").append(String.valueOf(this.httpsPort)); + sb.append(", certificateBundle=").append(String.valueOf(this.certificateBundle)); + sb.append(", documentRoot=").append(String.valueOf(this.documentRoot)); + sb.append(", advancedProperties=").append(String.valueOf(this.advancedProperties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails) o; + return java.util.Objects.equals(this.poolRoute, other.poolRoute) + && java.util.Objects.equals(this.poolRoutingHeader, other.poolRoutingHeader) + && java.util.Objects.equals(this.databaseApiStatus, other.databaseApiStatus) + && java.util.Objects.equals(this.httpPort, other.httpPort) + && java.util.Objects.equals(this.httpsPort, other.httpsPort) + && java.util.Objects.equals(this.certificateBundle, other.certificateBundle) + && java.util.Objects.equals(this.documentRoot, other.documentRoot) + && java.util.Objects.equals(this.advancedProperties, other.advancedProperties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.poolRoute == null ? 43 : this.poolRoute.hashCode()); + result = + (result * PRIME) + + (this.poolRoutingHeader == null ? 43 : this.poolRoutingHeader.hashCode()); + result = + (result * PRIME) + + (this.databaseApiStatus == null ? 43 : this.databaseApiStatus.hashCode()); + result = (result * PRIME) + (this.httpPort == null ? 43 : this.httpPort.hashCode()); + result = (result * PRIME) + (this.httpsPort == null ? 43 : this.httpsPort.hashCode()); + result = + (result * PRIME) + + (this.certificateBundle == null ? 43 : this.certificateBundle.hashCode()); + result = (result * PRIME) + (this.documentRoot == null ? 43 : this.documentRoot.hashCode()); + result = + (result * PRIME) + + (this.advancedProperties == null + ? 43 + : this.advancedProperties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.java new file mode 100644 index 00000000000..42fc0adfbe8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config API spec sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails + extends UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails { + @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("content") + private String content; + + public Builder content(String 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails model = + new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails( + this.displayName, this.content); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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); + } + + @Deprecated + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails( + String displayName, String content) { + super(displayName, content); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails("); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java new file mode 100644 index 00000000000..4c1ad36e7f6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config API spec sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "content"}) + protected UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + String displayName, String content) { + super(); + this.displayName = displayName; + this.content = content; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The content of a string-escaped Open API spec in JSON format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final String content; + + /** + * The content of a string-escaped Open API spec in JSON format. + * @return the value + **/ + public String getContent() { + return content; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && 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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.java new file mode 100644 index 00000000000..f27f5fb46a0 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config auto API spec sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails + extends UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails { + @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("databaseObjectName") + private String databaseObjectName; + + public Builder databaseObjectName(String databaseObjectName) { + this.databaseObjectName = databaseObjectName; + this.__explicitlySet__.add("databaseObjectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectType") + private DatabaseObjectType databaseObjectType; + + public Builder databaseObjectType(DatabaseObjectType databaseObjectType) { + this.databaseObjectType = databaseObjectType; + this.__explicitlySet__.add("databaseObjectType"); + 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("alias") + private String alias; + + public Builder alias(String alias) { + this.alias = alias; + this.__explicitlySet__.add("alias"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("operations") + private java.util.List operations; + + public Builder operations(java.util.List operations) { + this.operations = operations; + this.__explicitlySet__.add("operations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securitySchemes") + private java.util.List securitySchemes; + + public Builder securitySchemes(java.util.List securitySchemes) { + this.securitySchemes = securitySchemes; + this.__explicitlySet__.add("securitySchemes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private java.util.List roles; + + public Builder roles(java.util.List roles) { + this.roles = roles; + this.__explicitlySet__.add("roles"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails model = + new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails( + this.displayName, + this.databaseObjectName, + this.databaseObjectType, + this.description, + this.alias, + this.operations, + this.securitySchemes, + this.scope, + this.roles); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseObjectName")) { + this.databaseObjectName(model.getDatabaseObjectName()); + } + if (model.wasPropertyExplicitlySet("databaseObjectType")) { + this.databaseObjectType(model.getDatabaseObjectType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("alias")) { + this.alias(model.getAlias()); + } + if (model.wasPropertyExplicitlySet("operations")) { + this.operations(model.getOperations()); + } + if (model.wasPropertyExplicitlySet("securitySchemes")) { + this.securitySchemes(model.getSecuritySchemes()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("roles")) { + this.roles(model.getRoles()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails( + String displayName, + String databaseObjectName, + DatabaseObjectType databaseObjectType, + String description, + String alias, + java.util.List operations, + java.util.List securitySchemes, + String scope, + java.util.List roles) { + super( + displayName, + databaseObjectName, + databaseObjectType, + description, + alias, + operations, + securitySchemes, + scope, + roles); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails("); + 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 + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.java new file mode 100644 index 00000000000..315c9782a8c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.java @@ -0,0 +1,377 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config auto API spec sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "databaseObjectName", + "databaseObjectType", + "description", + "alias", + "operations", + "securitySchemes", + "scope", + "roles" + }) + protected UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + String displayName, + String databaseObjectName, + DatabaseObjectType databaseObjectType, + String description, + String alias, + java.util.List operations, + java.util.List securitySchemes, + String scope, + java.util.List roles) { + super(); + this.displayName = displayName; + this.databaseObjectName = databaseObjectName; + this.databaseObjectType = databaseObjectType; + this.description = description; + this.alias = alias; + this.operations = operations; + this.securitySchemes = securitySchemes; + this.scope = scope; + this.roles = roles; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The name of the database object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectName") + private final String databaseObjectName; + + /** + * The name of the database object. + * @return the value + **/ + public String getDatabaseObjectName() { + return databaseObjectName; + } + + /** + * The type of the database object. + **/ + public enum DatabaseObjectType { + Function("FUNCTION"), + Mview("MVIEW"), + Package("PACKAGE"), + Procedure("PROCEDURE"), + Table("TABLE"), + View("VIEW"), + Dualityview("DUALITYVIEW"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseObjectType v : DatabaseObjectType.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseObjectType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseObjectType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseObjectType: " + key); + } + }; + /** + * The type of the database object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseObjectType") + private final DatabaseObjectType databaseObjectType; + + /** + * The type of the database object. + * @return the value + **/ + public DatabaseObjectType getDatabaseObjectType() { + return databaseObjectType; + } + + /** + * Description of the autoApiSpec. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the autoApiSpec. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Used as the URI path element for this object. When not specified the objectName lowercase is the default value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alias") + private final String alias; + + /** + * Used as the URI path element for this object. When not specified the objectName lowercase is the default value. + * @return the value + **/ + public String getAlias() { + return alias; + } + + /** + **/ + public enum Operations { + Read("READ"), + Write("WRITE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operations v : Operations.values()) { + map.put(v.getValue(), v); + } + } + + Operations(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operations create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Operations: " + key); + } + }; + /** + * The operations to limit access to this resource. If not specified then the default is ["READ","WRITE"]. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operations") + private final java.util.List operations; + + /** + * The operations to limit access to this resource. If not specified then the default is ["READ","WRITE"]. + * @return the value + **/ + public java.util.List getOperations() { + return operations; + } + + /** + **/ + public enum SecuritySchemes { + Basic("BASIC"), + Bearer("BEARER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SecuritySchemes v : SecuritySchemes.values()) { + map.put(v.getValue(), v); + } + } + + SecuritySchemes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SecuritySchemes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SecuritySchemes: " + key); + } + }; + /** + * The security schemes that can access this resource. If not specified then the resource is public. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securitySchemes") + private final java.util.List securitySchemes; + + /** + * The security schemes that can access this resource. If not specified then the resource is public. + * @return the value + **/ + public java.util.List getSecuritySchemes() { + return securitySchemes; + } + + /** + * The name of the database API gateway config privilege protecting the resource. Only valid for SCOPE JWT Profile pools and BEARER securitySchemes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * The name of the database API gateway config privilege protecting the resource. Only valid for SCOPE JWT Profile pools and BEARER securitySchemes. + * @return the value + **/ + public String getScope() { + return scope; + } + + /** + * The name of the database API gateway config roles protecting the resource. Only valid for RBAC JWT Profile pools and BEARER securitySchemes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("roles") + private final java.util.List roles; + + /** + * The name of the database API gateway config roles protecting the resource. Only valid for RBAC JWT Profile pools and BEARER securitySchemes. + * @return the value + **/ + public java.util.List getRoles() { + return roles; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseObjectName=").append(String.valueOf(this.databaseObjectName)); + sb.append(", databaseObjectType=").append(String.valueOf(this.databaseObjectType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", alias=").append(String.valueOf(this.alias)); + sb.append(", operations=").append(String.valueOf(this.operations)); + sb.append(", securitySchemes=").append(String.valueOf(this.securitySchemes)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", roles=").append(String.valueOf(this.roles)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.databaseObjectName, other.databaseObjectName) + && java.util.Objects.equals(this.databaseObjectType, other.databaseObjectType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.alias, other.alias) + && java.util.Objects.equals(this.operations, other.operations) + && java.util.Objects.equals(this.securitySchemes, other.securitySchemes) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.roles, other.roles) + && 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.databaseObjectName == null + ? 43 + : this.databaseObjectName.hashCode()); + result = + (result * PRIME) + + (this.databaseObjectType == null + ? 43 + : this.databaseObjectType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode()); + result = (result * PRIME) + (this.operations == null ? 43 : this.operations.hashCode()); + result = + (result * PRIME) + + (this.securitySchemes == null ? 43 : this.securitySchemes.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.roles == null ? 43 : this.roles.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java new file mode 100644 index 00000000000..9900c16e508 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails + extends UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails { + @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("poolRouteValue") + private String poolRouteValue; + + public Builder poolRouteValue(String poolRouteValue) { + this.poolRouteValue = poolRouteValue; + this.__explicitlySet__.add("poolRouteValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private String databaseToolsConnectionId; + + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.__explicitlySet__.add("databaseToolsConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private Integer maxPoolSize; + + public Builder maxPoolSize(Integer maxPoolSize) { + this.maxPoolSize = maxPoolSize; + this.__explicitlySet__.add("maxPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private Integer minPoolSize; + + public Builder minPoolSize(Integer minPoolSize) { + this.minPoolSize = minPoolSize; + this.__explicitlySet__.add("minPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private Integer initialPoolSize; + + public Builder initialPoolSize(Integer initialPoolSize) { + this.initialPoolSize = initialPoolSize; + this.__explicitlySet__.add("initialPoolSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private String jwtProfileJwkUrl; + + public Builder jwtProfileJwkUrl(String jwtProfileJwkUrl) { + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.__explicitlySet__.add("jwtProfileJwkUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private String jwtProfileIssuer; + + public Builder jwtProfileIssuer(String jwtProfileIssuer) { + this.jwtProfileIssuer = jwtProfileIssuer; + this.__explicitlySet__.add("jwtProfileIssuer"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private String jwtProfileAudience; + + public Builder jwtProfileAudience(String jwtProfileAudience) { + this.jwtProfileAudience = jwtProfileAudience; + this.__explicitlySet__.add("jwtProfileAudience"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private String jwtProfileRoleClaimName; + + public Builder jwtProfileRoleClaimName(String jwtProfileRoleClaimName) { + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.__explicitlySet__.add("jwtProfileRoleClaimName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private DatabaseActionsStatus databaseActionsStatus; + + public Builder databaseActionsStatus(DatabaseActionsStatus databaseActionsStatus) { + this.databaseActionsStatus = databaseActionsStatus; + this.__explicitlySet__.add("databaseActionsStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private RestEnabledSqlStatus restEnabledSqlStatus; + + public Builder restEnabledSqlStatus(RestEnabledSqlStatus restEnabledSqlStatus) { + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.__explicitlySet__.add("restEnabledSqlStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private java.util.Map advancedProperties; + + public Builder advancedProperties(java.util.Map advancedProperties) { + this.advancedProperties = advancedProperties; + this.__explicitlySet__.add("advancedProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails model = + new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails( + this.displayName, + this.poolRouteValue, + this.databaseToolsConnectionId, + this.maxPoolSize, + this.minPoolSize, + this.initialPoolSize, + this.jwtProfileJwkUrl, + this.jwtProfileIssuer, + this.jwtProfileAudience, + this.jwtProfileRoleClaimName, + this.databaseActionsStatus, + this.restEnabledSqlStatus, + this.advancedProperties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("poolRouteValue")) { + this.poolRouteValue(model.getPoolRouteValue()); + } + if (model.wasPropertyExplicitlySet("databaseToolsConnectionId")) { + this.databaseToolsConnectionId(model.getDatabaseToolsConnectionId()); + } + if (model.wasPropertyExplicitlySet("maxPoolSize")) { + this.maxPoolSize(model.getMaxPoolSize()); + } + if (model.wasPropertyExplicitlySet("minPoolSize")) { + this.minPoolSize(model.getMinPoolSize()); + } + if (model.wasPropertyExplicitlySet("initialPoolSize")) { + this.initialPoolSize(model.getInitialPoolSize()); + } + if (model.wasPropertyExplicitlySet("jwtProfileJwkUrl")) { + this.jwtProfileJwkUrl(model.getJwtProfileJwkUrl()); + } + if (model.wasPropertyExplicitlySet("jwtProfileIssuer")) { + this.jwtProfileIssuer(model.getJwtProfileIssuer()); + } + if (model.wasPropertyExplicitlySet("jwtProfileAudience")) { + this.jwtProfileAudience(model.getJwtProfileAudience()); + } + if (model.wasPropertyExplicitlySet("jwtProfileRoleClaimName")) { + this.jwtProfileRoleClaimName(model.getJwtProfileRoleClaimName()); + } + if (model.wasPropertyExplicitlySet("databaseActionsStatus")) { + this.databaseActionsStatus(model.getDatabaseActionsStatus()); + } + if (model.wasPropertyExplicitlySet("restEnabledSqlStatus")) { + this.restEnabledSqlStatus(model.getRestEnabledSqlStatus()); + } + if (model.wasPropertyExplicitlySet("advancedProperties")) { + this.advancedProperties(model.getAdvancedProperties()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails( + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties) { + super( + displayName, + poolRouteValue, + databaseToolsConnectionId, + maxPoolSize, + minPoolSize, + initialPoolSize, + jwtProfileJwkUrl, + jwtProfileIssuer, + jwtProfileAudience, + jwtProfileRoleClaimName, + databaseActionsStatus, + restEnabledSqlStatus, + advancedProperties); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails("); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java new file mode 100644 index 00000000000..86cdc9004c1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java @@ -0,0 +1,445 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The content of a Database Tools database API gateway config pool sub resource to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "poolRouteValue", + "databaseToolsConnectionId", + "maxPoolSize", + "minPoolSize", + "initialPoolSize", + "jwtProfileJwkUrl", + "jwtProfileIssuer", + "jwtProfileAudience", + "jwtProfileRoleClaimName", + "databaseActionsStatus", + "restEnabledSqlStatus", + "advancedProperties" + }) + protected UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + String displayName, + String poolRouteValue, + String databaseToolsConnectionId, + Integer maxPoolSize, + Integer minPoolSize, + Integer initialPoolSize, + String jwtProfileJwkUrl, + String jwtProfileIssuer, + String jwtProfileAudience, + String jwtProfileRoleClaimName, + DatabaseActionsStatus databaseActionsStatus, + RestEnabledSqlStatus restEnabledSqlStatus, + java.util.Map advancedProperties) { + super(); + this.displayName = displayName; + this.poolRouteValue = poolRouteValue; + this.databaseToolsConnectionId = databaseToolsConnectionId; + this.maxPoolSize = maxPoolSize; + this.minPoolSize = minPoolSize; + this.initialPoolSize = initialPoolSize; + this.jwtProfileJwkUrl = jwtProfileJwkUrl; + this.jwtProfileIssuer = jwtProfileIssuer; + this.jwtProfileAudience = jwtProfileAudience; + this.jwtProfileRoleClaimName = jwtProfileRoleClaimName; + this.databaseActionsStatus = databaseActionsStatus; + this.restEnabledSqlStatus = restEnabledSqlStatus; + this.advancedProperties = advancedProperties; + } + + /** + * A user-friendly name. Does not have to be unique, and it\u2019s 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\u2019s changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The pool route value provided in requests to target this pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolRouteValue") + private final String poolRouteValue; + + /** + * The pool route value provided in requests to target this pool. + * @return the value + **/ + public String getPoolRouteValue() { + return poolRouteValue; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsConnectionId") + private final String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from. + * @return the value + **/ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + + /** + * Specifies the maximum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxPoolSize") + private final Integer maxPoolSize; + + /** + * Specifies the maximum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMaxPoolSize() { + return maxPoolSize; + } + + /** + * Specifies the minimum number of database connections allowed for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minPoolSize") + private final Integer minPoolSize; + + /** + * Specifies the minimum number of database connections allowed for the pool. + * @return the value + **/ + public Integer getMinPoolSize() { + return minPoolSize; + } + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialPoolSize") + private final Integer initialPoolSize; + + /** + * Specifies the initial size for the number of database connections that will be created for the pool. + * @return the value + **/ + public Integer getInitialPoolSize() { + return initialPoolSize; + } + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileJwkUrl") + private final String jwtProfileJwkUrl; + + /** + * Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token. + * @return the value + **/ + public String getJwtProfileJwkUrl() { + return jwtProfileJwkUrl; + } + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileIssuer") + private final String jwtProfileIssuer; + + /** + * Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token. + * @return the value + **/ + public String getJwtProfileIssuer() { + return jwtProfileIssuer; + } + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileAudience") + private final String jwtProfileAudience; + + /** + * Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token. + * @return the value + **/ + public String getJwtProfileAudience() { + return jwtProfileAudience; + } + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jwtProfileRoleClaimName") + private final String jwtProfileRoleClaimName; + + /** + * Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users. + * @return the value + **/ + public String getJwtProfileRoleClaimName() { + return jwtProfileRoleClaimName; + } + + /** + * Specifies to enable the Database Actions feature. + **/ + public enum DatabaseActionsStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseActionsStatus v : DatabaseActionsStatus.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseActionsStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseActionsStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseActionsStatus: " + key); + } + }; + /** + * Specifies to enable the Database Actions feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseActionsStatus") + private final DatabaseActionsStatus databaseActionsStatus; + + /** + * Specifies to enable the Database Actions feature. + * @return the value + **/ + public DatabaseActionsStatus getDatabaseActionsStatus() { + return databaseActionsStatus; + } + + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + public enum RestEnabledSqlStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RestEnabledSqlStatus v : RestEnabledSqlStatus.values()) { + map.put(v.getValue(), v); + } + } + + RestEnabledSqlStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RestEnabledSqlStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RestEnabledSqlStatus: " + key); + } + }; + /** + * Specifies whether the REST-Enabled SQL service is active. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("restEnabledSqlStatus") + private final RestEnabledSqlStatus restEnabledSqlStatus; + + /** + * Specifies whether the REST-Enabled SQL service is active. + * @return the value + **/ + public RestEnabledSqlStatus getRestEnabledSqlStatus() { + return restEnabledSqlStatus; + } + + /** + * Advanced pool properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedProperties") + private final java.util.Map advancedProperties; + + /** + * Advanced pool properties. + * @return the value + **/ + public java.util.Map getAdvancedProperties() { + return advancedProperties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", poolRouteValue=").append(String.valueOf(this.poolRouteValue)); + sb.append(", databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(", maxPoolSize=").append(String.valueOf(this.maxPoolSize)); + sb.append(", minPoolSize=").append(String.valueOf(this.minPoolSize)); + sb.append(", initialPoolSize=").append(String.valueOf(this.initialPoolSize)); + sb.append(", jwtProfileJwkUrl=").append(String.valueOf(this.jwtProfileJwkUrl)); + sb.append(", jwtProfileIssuer=").append(String.valueOf(this.jwtProfileIssuer)); + sb.append(", jwtProfileAudience=").append(String.valueOf(this.jwtProfileAudience)); + sb.append(", jwtProfileRoleClaimName=") + .append(String.valueOf(this.jwtProfileRoleClaimName)); + sb.append(", databaseActionsStatus=").append(String.valueOf(this.databaseActionsStatus)); + sb.append(", restEnabledSqlStatus=").append(String.valueOf(this.restEnabledSqlStatus)); + sb.append(", advancedProperties=").append(String.valueOf(this.advancedProperties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.poolRouteValue, other.poolRouteValue) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.maxPoolSize, other.maxPoolSize) + && java.util.Objects.equals(this.minPoolSize, other.minPoolSize) + && java.util.Objects.equals(this.initialPoolSize, other.initialPoolSize) + && java.util.Objects.equals(this.jwtProfileJwkUrl, other.jwtProfileJwkUrl) + && java.util.Objects.equals(this.jwtProfileIssuer, other.jwtProfileIssuer) + && java.util.Objects.equals(this.jwtProfileAudience, other.jwtProfileAudience) + && java.util.Objects.equals( + this.jwtProfileRoleClaimName, other.jwtProfileRoleClaimName) + && java.util.Objects.equals(this.databaseActionsStatus, other.databaseActionsStatus) + && java.util.Objects.equals(this.restEnabledSqlStatus, other.restEnabledSqlStatus) + && java.util.Objects.equals(this.advancedProperties, other.advancedProperties) + && 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.poolRouteValue == null ? 43 : this.poolRouteValue.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.maxPoolSize == null ? 43 : this.maxPoolSize.hashCode()); + result = (result * PRIME) + (this.minPoolSize == null ? 43 : this.minPoolSize.hashCode()); + result = + (result * PRIME) + + (this.initialPoolSize == null ? 43 : this.initialPoolSize.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileJwkUrl == null ? 43 : this.jwtProfileJwkUrl.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileIssuer == null ? 43 : this.jwtProfileIssuer.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileAudience == null + ? 43 + : this.jwtProfileAudience.hashCode()); + result = + (result * PRIME) + + (this.jwtProfileRoleClaimName == null + ? 43 + : this.jwtProfileRoleClaimName.hashCode()); + result = + (result * PRIME) + + (this.databaseActionsStatus == null + ? 43 + : this.databaseActionsStatus.hashCode()); + result = + (result * PRIME) + + (this.restEnabledSqlStatus == null + ? 43 + : this.restEnabledSqlStatus.hashCode()); + result = + (result * PRIME) + + (this.advancedProperties == null + ? 43 + : this.advancedProperties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexDocumentGeneratorDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexDocumentGeneratorDetails.java new file mode 100644 index 00000000000..af1aba3a48d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexDocumentGeneratorDetails.java @@ -0,0 +1,453 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the update details of an APEX document generator property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePropertySetApexDocumentGeneratorDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdatePropertySetApexDocumentGeneratorDetails extends UpdatePropertySetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The print server type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("printServerType") + private PropertySetApexDocumentGenerator.PrintServerType printServerType; + + /** + * The print server type + * @param printServerType the value to set + * @return this builder + **/ + public Builder printServerType( + PropertySetApexDocumentGenerator.PrintServerType printServerType) { + this.printServerType = printServerType; + this.__explicitlySet__.add("printServerType"); + return this; + } + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialKey") + private String credentialKey; + + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function. + * @param credentialKey the value to set + * @return this builder + **/ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + this.__explicitlySet__.add("credentialKey"); + return this; + } + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseResourcePrincipalStatus") + private PropertySetApexDocumentGenerator.AutonomousDatabaseResourcePrincipalStatus + autonomousDatabaseResourcePrincipalStatus; + + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + * @param autonomousDatabaseResourcePrincipalStatus the value to set + * @return this builder + **/ + public Builder autonomousDatabaseResourcePrincipalStatus( + PropertySetApexDocumentGenerator.AutonomousDatabaseResourcePrincipalStatus + autonomousDatabaseResourcePrincipalStatus) { + this.autonomousDatabaseResourcePrincipalStatus = + autonomousDatabaseResourcePrincipalStatus; + this.__explicitlySet__.add("autonomousDatabaseResourcePrincipalStatus"); + return this; + } + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageNamespace") + private String objectStorageNamespace; + + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + * @param objectStorageNamespace the value to set + * @return this builder + **/ + public Builder objectStorageNamespace(String objectStorageNamespace) { + this.objectStorageNamespace = objectStorageNamespace; + this.__explicitlySet__.add("objectStorageNamespace"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucketCompartmentId") + private String objectStorageBucketCompartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + * @param objectStorageBucketCompartmentId the value to set + * @return this builder + **/ + public Builder objectStorageBucketCompartmentId(String objectStorageBucketCompartmentId) { + this.objectStorageBucketCompartmentId = objectStorageBucketCompartmentId; + this.__explicitlySet__.add("objectStorageBucketCompartmentId"); + return this; + } + /** + * Object Storage Endpoint + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageEndpoint") + private String objectStorageEndpoint; + + /** + * Object Storage Endpoint + * @param objectStorageEndpoint the value to set + * @return this builder + **/ + public Builder objectStorageEndpoint(String objectStorageEndpoint) { + this.objectStorageEndpoint = objectStorageEndpoint; + this.__explicitlySet__.add("objectStorageEndpoint"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("functionId") + private String functionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + * @param functionId the value to set + * @return this builder + **/ + public Builder functionId(String functionId) { + this.functionId = functionId; + this.__explicitlySet__.add("functionId"); + return this; + } + /** + * The base endpoint URL to use to invoke the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invokeEndpoint") + private String invokeEndpoint; + + /** + * The base endpoint URL to use to invoke the Document Generator function + * @param invokeEndpoint the value to set + * @return this builder + **/ + public Builder invokeEndpoint(String invokeEndpoint) { + this.invokeEndpoint = invokeEndpoint; + this.__explicitlySet__.add("invokeEndpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePropertySetApexDocumentGeneratorDetails build() { + UpdatePropertySetApexDocumentGeneratorDetails model = + new UpdatePropertySetApexDocumentGeneratorDetails( + this.printServerType, + this.credentialKey, + this.autonomousDatabaseResourcePrincipalStatus, + this.objectStorageNamespace, + this.objectStorageBucketCompartmentId, + this.objectStorageEndpoint, + this.functionId, + this.invokeEndpoint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePropertySetApexDocumentGeneratorDetails model) { + if (model.wasPropertyExplicitlySet("printServerType")) { + this.printServerType(model.getPrintServerType()); + } + if (model.wasPropertyExplicitlySet("credentialKey")) { + this.credentialKey(model.getCredentialKey()); + } + if (model.wasPropertyExplicitlySet("autonomousDatabaseResourcePrincipalStatus")) { + this.autonomousDatabaseResourcePrincipalStatus( + model.getAutonomousDatabaseResourcePrincipalStatus()); + } + if (model.wasPropertyExplicitlySet("objectStorageNamespace")) { + this.objectStorageNamespace(model.getObjectStorageNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStorageBucketCompartmentId")) { + this.objectStorageBucketCompartmentId(model.getObjectStorageBucketCompartmentId()); + } + if (model.wasPropertyExplicitlySet("objectStorageEndpoint")) { + this.objectStorageEndpoint(model.getObjectStorageEndpoint()); + } + if (model.wasPropertyExplicitlySet("functionId")) { + this.functionId(model.getFunctionId()); + } + if (model.wasPropertyExplicitlySet("invokeEndpoint")) { + this.invokeEndpoint(model.getInvokeEndpoint()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdatePropertySetApexDocumentGeneratorDetails( + PropertySetApexDocumentGenerator.PrintServerType printServerType, + String credentialKey, + PropertySetApexDocumentGenerator.AutonomousDatabaseResourcePrincipalStatus + autonomousDatabaseResourcePrincipalStatus, + String objectStorageNamespace, + String objectStorageBucketCompartmentId, + String objectStorageEndpoint, + String functionId, + String invokeEndpoint) { + super(); + this.printServerType = printServerType; + this.credentialKey = credentialKey; + this.autonomousDatabaseResourcePrincipalStatus = autonomousDatabaseResourcePrincipalStatus; + this.objectStorageNamespace = objectStorageNamespace; + this.objectStorageBucketCompartmentId = objectStorageBucketCompartmentId; + this.objectStorageEndpoint = objectStorageEndpoint; + this.functionId = functionId; + this.invokeEndpoint = invokeEndpoint; + } + + /** + * The print server type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("printServerType") + private final PropertySetApexDocumentGenerator.PrintServerType printServerType; + + /** + * The print server type + * @return the value + **/ + public PropertySetApexDocumentGenerator.PrintServerType getPrintServerType() { + return printServerType; + } + + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialKey") + private final String credentialKey; + + /** + * The name of the credential used by APEX to manage Object Storage Buckets and Objects as well as invoke the Document Generator function. + * @return the value + **/ + public String getCredentialKey() { + return credentialKey; + } + + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseResourcePrincipalStatus") + private final PropertySetApexDocumentGenerator.AutonomousDatabaseResourcePrincipalStatus + autonomousDatabaseResourcePrincipalStatus; + + /** + * The status of the Autonomous Database Serverless Resource Principal (OCI$RESOURCE_PRINCIPAL) + * @return the value + **/ + public PropertySetApexDocumentGenerator.AutonomousDatabaseResourcePrincipalStatus + getAutonomousDatabaseResourcePrincipalStatus() { + return autonomousDatabaseResourcePrincipalStatus; + } + + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageNamespace") + private final String objectStorageNamespace; + + /** + * The Object Storage Namespace containing the Object Storage Buckets managed by APEX + * @return the value + **/ + public String getObjectStorageNamespace() { + return objectStorageNamespace; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucketCompartmentId") + private final String objectStorageBucketCompartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Object Storage Buckets managed by APEX + * @return the value + **/ + public String getObjectStorageBucketCompartmentId() { + return objectStorageBucketCompartmentId; + } + + /** + * Object Storage Endpoint + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageEndpoint") + private final String objectStorageEndpoint; + + /** + * Object Storage Endpoint + * @return the value + **/ + public String getObjectStorageEndpoint() { + return objectStorageEndpoint; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("functionId") + private final String functionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Document Generator function + * @return the value + **/ + public String getFunctionId() { + return functionId; + } + + /** + * The base endpoint URL to use to invoke the Document Generator function + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invokeEndpoint") + private final String invokeEndpoint; + + /** + * The base endpoint URL to use to invoke the Document Generator function + * @return the value + **/ + public String getInvokeEndpoint() { + return invokeEndpoint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePropertySetApexDocumentGeneratorDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", printServerType=").append(String.valueOf(this.printServerType)); + sb.append(", credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(", autonomousDatabaseResourcePrincipalStatus=") + .append(String.valueOf(this.autonomousDatabaseResourcePrincipalStatus)); + sb.append(", objectStorageNamespace=").append(String.valueOf(this.objectStorageNamespace)); + sb.append(", objectStorageBucketCompartmentId=") + .append(String.valueOf(this.objectStorageBucketCompartmentId)); + sb.append(", objectStorageEndpoint=").append(String.valueOf(this.objectStorageEndpoint)); + sb.append(", functionId=").append(String.valueOf(this.functionId)); + sb.append(", invokeEndpoint=").append(String.valueOf(this.invokeEndpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertySetApexDocumentGeneratorDetails)) { + return false; + } + + UpdatePropertySetApexDocumentGeneratorDetails other = + (UpdatePropertySetApexDocumentGeneratorDetails) o; + return java.util.Objects.equals(this.printServerType, other.printServerType) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals( + this.autonomousDatabaseResourcePrincipalStatus, + other.autonomousDatabaseResourcePrincipalStatus) + && java.util.Objects.equals( + this.objectStorageNamespace, other.objectStorageNamespace) + && java.util.Objects.equals( + this.objectStorageBucketCompartmentId, + other.objectStorageBucketCompartmentId) + && java.util.Objects.equals(this.objectStorageEndpoint, other.objectStorageEndpoint) + && java.util.Objects.equals(this.functionId, other.functionId) + && java.util.Objects.equals(this.invokeEndpoint, other.invokeEndpoint) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.printServerType == null ? 43 : this.printServerType.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.autonomousDatabaseResourcePrincipalStatus == null + ? 43 + : this.autonomousDatabaseResourcePrincipalStatus.hashCode()); + result = + (result * PRIME) + + (this.objectStorageNamespace == null + ? 43 + : this.objectStorageNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStorageBucketCompartmentId == null + ? 43 + : this.objectStorageBucketCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.objectStorageEndpoint == null + ? 43 + : this.objectStorageEndpoint.hashCode()); + result = (result * PRIME) + (this.functionId == null ? 43 : this.functionId.hashCode()); + result = + (result * PRIME) + + (this.invokeEndpoint == null ? 43 : this.invokeEndpoint.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexFaIntegrationDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexFaIntegrationDetails.java new file mode 100644 index 00000000000..dff48a53ada --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexFaIntegrationDetails.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the update details of an APEX FA Integration property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePropertySetApexFaIntegrationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdatePropertySetApexFaIntegrationDetails extends UpdatePropertySetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * APEX FA Integration key-value pairs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationSubstitutions") + private java.util.Map authenticationSubstitutions; + + /** + * APEX FA Integration key-value pairs. + * @param authenticationSubstitutions the value to set + * @return this builder + **/ + public Builder authenticationSubstitutions( + java.util.Map authenticationSubstitutions) { + this.authenticationSubstitutions = authenticationSubstitutions; + this.__explicitlySet__.add("authenticationSubstitutions"); + return this; + } + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceDbmsCredentialEnabled") + private String instanceDbmsCredentialEnabled; + + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + * @param instanceDbmsCredentialEnabled the value to set + * @return this builder + **/ + public Builder instanceDbmsCredentialEnabled(String instanceDbmsCredentialEnabled) { + this.instanceDbmsCredentialEnabled = instanceDbmsCredentialEnabled; + this.__explicitlySet__.add("instanceDbmsCredentialEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePropertySetApexFaIntegrationDetails build() { + UpdatePropertySetApexFaIntegrationDetails model = + new UpdatePropertySetApexFaIntegrationDetails( + this.authenticationSubstitutions, this.instanceDbmsCredentialEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePropertySetApexFaIntegrationDetails model) { + if (model.wasPropertyExplicitlySet("authenticationSubstitutions")) { + this.authenticationSubstitutions(model.getAuthenticationSubstitutions()); + } + if (model.wasPropertyExplicitlySet("instanceDbmsCredentialEnabled")) { + this.instanceDbmsCredentialEnabled(model.getInstanceDbmsCredentialEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdatePropertySetApexFaIntegrationDetails( + java.util.Map authenticationSubstitutions, + String instanceDbmsCredentialEnabled) { + super(); + this.authenticationSubstitutions = authenticationSubstitutions; + this.instanceDbmsCredentialEnabled = instanceDbmsCredentialEnabled; + } + + /** + * APEX FA Integration key-value pairs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationSubstitutions") + private final java.util.Map authenticationSubstitutions; + + /** + * APEX FA Integration key-value pairs. + * @return the value + **/ + public java.util.Map getAuthenticationSubstitutions() { + return authenticationSubstitutions; + } + + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceDbmsCredentialEnabled") + private final String instanceDbmsCredentialEnabled; + + /** + * Specifies whether database credentials can be used in all workspaces on the APEX instance. Supported values include: "Y", "N" and empty string. + * @return the value + **/ + public String getInstanceDbmsCredentialEnabled() { + return instanceDbmsCredentialEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePropertySetApexFaIntegrationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", authenticationSubstitutions=") + .append(String.valueOf(this.authenticationSubstitutions)); + sb.append(", instanceDbmsCredentialEnabled=") + .append(String.valueOf(this.instanceDbmsCredentialEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertySetApexFaIntegrationDetails)) { + return false; + } + + UpdatePropertySetApexFaIntegrationDetails other = + (UpdatePropertySetApexFaIntegrationDetails) o; + return java.util.Objects.equals( + this.authenticationSubstitutions, other.authenticationSubstitutions) + && java.util.Objects.equals( + this.instanceDbmsCredentialEnabled, other.instanceDbmsCredentialEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.authenticationSubstitutions == null + ? 43 + : this.authenticationSubstitutions.hashCode()); + result = + (result * PRIME) + + (this.instanceDbmsCredentialEnabled == null + ? 43 + : this.instanceDbmsCredentialEnabled.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetDetails.java new file mode 100644 index 00000000000..789d2bd47ed --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The base definition for a property set update + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key", + defaultImpl = UpdatePropertySetDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdatePropertySetApexDocumentGeneratorDetails.class, + name = "APEX_DOCUMENT_GENERATOR" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdatePropertySetOracleDatabaseExternalAuthenticationDetails.class, + name = "ORACLE_DATABASE_EXTERNAL_AUTHENTICATION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdatePropertySetApexFaIntegrationDetails.class, + name = "APEX_FA_INTEGRATION" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdatePropertySetDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdatePropertySetDetails() { + 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("UpdatePropertySetDetails("); + 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 UpdatePropertySetDetails)) { + return false; + } + + UpdatePropertySetDetails other = (UpdatePropertySetDetails) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetOracleDatabaseExternalAuthenticationDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetOracleDatabaseExternalAuthenticationDetails.java new file mode 100644 index 00000000000..c662ab3f4a9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetOracleDatabaseExternalAuthenticationDetails.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Contains the update details of an Oracle Database External Authentication property set + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePropertySetOracleDatabaseExternalAuthenticationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "key" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdatePropertySetOracleDatabaseExternalAuthenticationDetails + extends UpdatePropertySetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("identityProvider") + private PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider; + + public Builder identityProvider( + PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider) { + this.identityProvider = identityProvider; + this.__explicitlySet__.add("identityProvider"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePropertySetOracleDatabaseExternalAuthenticationDetails build() { + UpdatePropertySetOracleDatabaseExternalAuthenticationDetails model = + new UpdatePropertySetOracleDatabaseExternalAuthenticationDetails( + this.identityProvider); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePropertySetOracleDatabaseExternalAuthenticationDetails model) { + if (model.wasPropertyExplicitlySet("identityProvider")) { + this.identityProvider(model.getIdentityProvider()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdatePropertySetOracleDatabaseExternalAuthenticationDetails( + PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider) { + super(); + this.identityProvider = identityProvider; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identityProvider") + private final PropertySetOracleDatabaseExternalAuthenticationIdentityProvider identityProvider; + + public PropertySetOracleDatabaseExternalAuthenticationIdentityProvider getIdentityProvider() { + return identityProvider; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePropertySetOracleDatabaseExternalAuthenticationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", identityProvider=").append(String.valueOf(this.identityProvider)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertySetOracleDatabaseExternalAuthenticationDetails)) { + return false; + } + + UpdatePropertySetOracleDatabaseExternalAuthenticationDetails other = + (UpdatePropertySetOracleDatabaseExternalAuthenticationDetails) o; + return java.util.Objects.equals(this.identityProvider, other.identityProvider) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.identityProvider == null ? 43 : this.identityProvider.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredential.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredential.java new file mode 100644 index 00000000000..5efa596ed57 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredential.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Credential information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UserCredential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UserCredential extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "userName", + "windowsDomain", + "enabled", + "keyType", + "owner", + "relatedResource" + }) + public UserCredential( + String key, + String userName, + String windowsDomain, + String enabled, + CredentialKeyType keyType, + String owner, + CredentialRelatedResource relatedResource) { + super(); + this.key = key; + this.userName = userName; + this.windowsDomain = windowsDomain; + this.enabled = enabled; + this.keyType = keyType; + this.owner = owner; + this.relatedResource = relatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * Name of the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @param userName the value to set + * @return this builder + **/ + public Builder userName(String userName) { + this.userName = userName; + this.__explicitlySet__.add("userName"); + return this; + } + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @param windowsDomain the value to set + * @return this builder + **/ + public Builder windowsDomain(String windowsDomain) { + this.windowsDomain = windowsDomain; + this.__explicitlySet__.add("windowsDomain"); + return this; + } + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @param enabled the value to set + * @return this builder + **/ + public Builder enabled(String enabled) { + this.enabled = enabled; + this.__explicitlySet__.add("enabled"); + return this; + } + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @param keyType the value to set + * @return this builder + **/ + public Builder keyType(CredentialKeyType keyType) { + this.keyType = keyType; + this.__explicitlySet__.add("keyType"); + return this; + } + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + /** + * Owner of the credential + * @param owner the value to set + * @return this builder + **/ + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private CredentialRelatedResource relatedResource; + + public Builder relatedResource(CredentialRelatedResource relatedResource) { + this.relatedResource = relatedResource; + this.__explicitlySet__.add("relatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UserCredential build() { + UserCredential model = + new UserCredential( + this.key, + this.userName, + this.windowsDomain, + this.enabled, + this.keyType, + this.owner, + this.relatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UserCredential model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("windowsDomain")) { + this.windowsDomain(model.getWindowsDomain()); + } + if (model.wasPropertyExplicitlySet("enabled")) { + this.enabled(model.getEnabled()); + } + if (model.wasPropertyExplicitlySet("keyType")) { + this.keyType(model.getKeyType()); + } + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("relatedResource")) { + this.relatedResource(model.getRelatedResource()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * Name of the credential + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @return the value + **/ + public String getUserName() { + return userName; + } + + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private final String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @return the value + **/ + public String getWindowsDomain() { + return windowsDomain; + } + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private final String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @return the value + **/ + public String getEnabled() { + return enabled; + } + + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private final CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @return the value + **/ + public CredentialKeyType getKeyType() { + return keyType; + } + + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private final String owner; + + /** + * Owner of the credential + * @return the value + **/ + public String getOwner() { + return owner; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private final CredentialRelatedResource relatedResource; + + public CredentialRelatedResource getRelatedResource() { + return relatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UserCredential("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", windowsDomain=").append(String.valueOf(this.windowsDomain)); + sb.append(", enabled=").append(String.valueOf(this.enabled)); + sb.append(", keyType=").append(String.valueOf(this.keyType)); + sb.append(", owner=").append(String.valueOf(this.owner)); + sb.append(", relatedResource=").append(String.valueOf(this.relatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UserCredential)) { + return false; + } + + UserCredential other = (UserCredential) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.windowsDomain, other.windowsDomain) + && java.util.Objects.equals(this.enabled, other.enabled) + && java.util.Objects.equals(this.keyType, other.keyType) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.relatedResource, other.relatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = + (result * PRIME) + + (this.windowsDomain == null ? 43 : this.windowsDomain.hashCode()); + result = (result * PRIME) + (this.enabled == null ? 43 : this.enabled.hashCode()); + result = (result * PRIME) + (this.keyType == null ? 43 : this.keyType.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = + (result * PRIME) + + (this.relatedResource == null ? 43 : this.relatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialCollection.java new file mode 100644 index 00000000000..d061edfe2c7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of {@code UserCredentialSummary} items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UserCredentialCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UserCredentialCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public UserCredentialCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of {@code UserCredentialSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of {@code UserCredentialSummary} items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UserCredentialCollection build() { + UserCredentialCollection model = new UserCredentialCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UserCredentialCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of {@code UserCredentialSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of {@code UserCredentialSummary} items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UserCredentialCollection("); + 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 UserCredentialCollection)) { + return false; + } + + UserCredentialCollection other = (UserCredentialCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialSummary.java new file mode 100644 index 00000000000..af2ebd1fa7b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialSummary.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * User Credential information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UserCredentialSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UserCredentialSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "userName", + "windowsDomain", + "enabled", + "keyType", + "owner", + "relatedResource" + }) + public UserCredentialSummary( + String key, + String userName, + String windowsDomain, + String enabled, + CredentialKeyType keyType, + String owner, + CredentialRelatedResource relatedResource) { + super(); + this.key = key; + this.userName = userName; + this.windowsDomain = windowsDomain; + this.enabled = enabled; + this.keyType = keyType; + this.owner = owner; + this.relatedResource = relatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * Name of the credential + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @param userName the value to set + * @return this builder + **/ + public Builder userName(String userName) { + this.userName = userName; + this.__explicitlySet__.add("userName"); + return this; + } + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @param windowsDomain the value to set + * @return this builder + **/ + public Builder windowsDomain(String windowsDomain) { + this.windowsDomain = windowsDomain; + this.__explicitlySet__.add("windowsDomain"); + return this; + } + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @param enabled the value to set + * @return this builder + **/ + public Builder enabled(String enabled) { + this.enabled = enabled; + this.__explicitlySet__.add("enabled"); + return this; + } + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @param keyType the value to set + * @return this builder + **/ + public Builder keyType(CredentialKeyType keyType) { + this.keyType = keyType; + this.__explicitlySet__.add("keyType"); + return this; + } + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + /** + * Owner of the credential + * @param owner the value to set + * @return this builder + **/ + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private CredentialRelatedResource relatedResource; + + public Builder relatedResource(CredentialRelatedResource relatedResource) { + this.relatedResource = relatedResource; + this.__explicitlySet__.add("relatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UserCredentialSummary build() { + UserCredentialSummary model = + new UserCredentialSummary( + this.key, + this.userName, + this.windowsDomain, + this.enabled, + this.keyType, + this.owner, + this.relatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UserCredentialSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("windowsDomain")) { + this.windowsDomain(model.getWindowsDomain()); + } + if (model.wasPropertyExplicitlySet("enabled")) { + this.enabled(model.getEnabled()); + } + if (model.wasPropertyExplicitlySet("keyType")) { + this.keyType(model.getKeyType()); + } + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("relatedResource")) { + this.relatedResource(model.getRelatedResource()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * Name of the credential + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * Name of the user that will be used to log in to the remote database or the remote or local operating system + * @return the value + **/ + public String getUserName() { + return userName; + } + + /** + * For a Windows target, the Windows domain to use when logging in + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsDomain") + private final String windowsDomain; + + /** + * For a Windows target, the Windows domain to use when logging in + * @return the value + **/ + public String getWindowsDomain() { + return windowsDomain; + } + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enabled") + private final String enabled; + + /** + * Indicates whether this credential is enabled (TRUE) or not (FALSE) + * @return the value + **/ + public String getEnabled() { + return enabled; + } + + /** + * Indicates whether this refers to a public synonym or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private final CredentialKeyType keyType; + + /** + * Indicates whether this refers to a public synonym or not. + * @return the value + **/ + public CredentialKeyType getKeyType() { + return keyType; + } + + /** + * Owner of the credential + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private final String owner; + + /** + * Owner of the credential + * @return the value + **/ + public String getOwner() { + return owner; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") + private final CredentialRelatedResource relatedResource; + + public CredentialRelatedResource getRelatedResource() { + return relatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UserCredentialSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", windowsDomain=").append(String.valueOf(this.windowsDomain)); + sb.append(", enabled=").append(String.valueOf(this.enabled)); + sb.append(", keyType=").append(String.valueOf(this.keyType)); + sb.append(", owner=").append(String.valueOf(this.owner)); + sb.append(", relatedResource=").append(String.valueOf(this.relatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UserCredentialSummary)) { + return false; + } + + UserCredentialSummary other = (UserCredentialSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.windowsDomain, other.windowsDomain) + && java.util.Objects.equals(this.enabled, other.enabled) + && java.util.Objects.equals(this.keyType, other.keyType) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.relatedResource, other.relatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = + (result * PRIME) + + (this.windowsDomain == null ? 43 : this.windowsDomain.hashCode()); + result = (result * PRIME) + (this.enabled == null ? 43 : this.enabled.hashCode()); + result = (result * PRIME) + (this.keyType == null ? 43 : this.keyType.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = + (result * PRIME) + + (this.relatedResource == null ? 43 : this.relatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionDetails.java new file mode 100644 index 00000000000..7f513b70258 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionDetails.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ValidateDatabaseToolsConnectionDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsConnectionPostgresqlDetails.class, + name = "POSTGRESQL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsConnectionMySqlDetails.class, + name = "MYSQL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsConnectionOracleDatabaseDetails.class, + name = "ORACLE_DATABASE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ValidateDatabaseToolsConnectionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ValidateDatabaseToolsConnectionDetails() { + 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("ValidateDatabaseToolsConnectionDetails("); + 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 ValidateDatabaseToolsConnectionDetails)) { + return false; + } + + ValidateDatabaseToolsConnectionDetails other = (ValidateDatabaseToolsConnectionDetails) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlDetails.java new file mode 100644 index 00000000000..5c99d01b065 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlDetails.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation details for the MySQL Server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateDatabaseToolsConnectionMySqlDetails.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 ValidateDatabaseToolsConnectionMySqlDetails + extends ValidateDatabaseToolsConnectionDetails { + @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 ValidateDatabaseToolsConnectionMySqlDetails build() { + ValidateDatabaseToolsConnectionMySqlDetails model = + new ValidateDatabaseToolsConnectionMySqlDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateDatabaseToolsConnectionMySqlDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsConnectionMySqlDetails() { + 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("ValidateDatabaseToolsConnectionMySqlDetails("); + 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 ValidateDatabaseToolsConnectionMySqlDetails)) { + return false; + } + + ValidateDatabaseToolsConnectionMySqlDetails other = + (ValidateDatabaseToolsConnectionMySqlDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlResult.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlResult.java new file mode 100644 index 00000000000..142fa2987d3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlResult.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation result for the MySQL Server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateDatabaseToolsConnectionMySqlResult.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 ValidateDatabaseToolsConnectionMySqlResult + extends ValidateDatabaseToolsConnectionResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cause") + private String cause; + + public Builder cause(String cause) { + this.cause = cause; + this.__explicitlySet__.add("cause"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + public Builder action(String action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** + * The database name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The database name. + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The database version. + * @param databaseVersion the value to set + * @return this builder + **/ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateDatabaseToolsConnectionMySqlResult build() { + ValidateDatabaseToolsConnectionMySqlResult model = + new ValidateDatabaseToolsConnectionMySqlResult( + this.code, + this.message, + this.cause, + this.action, + this.databaseName, + this.databaseVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateDatabaseToolsConnectionMySqlResult model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("cause")) { + this.cause(model.getCause()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsConnectionMySqlResult( + String code, + String message, + String cause, + String action, + String databaseName, + String databaseVersion) { + super(code, message, cause, action); + this.databaseName = databaseName; + this.databaseVersion = databaseVersion; + } + + /** + * The database name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The database name. + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The database version. + * @return the value + **/ + public String getDatabaseVersion() { + return databaseVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateDatabaseToolsConnectionMySqlResult("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsConnectionMySqlResult)) { + return false; + } + + ValidateDatabaseToolsConnectionMySqlResult other = + (ValidateDatabaseToolsConnectionMySqlResult) o; + return java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && 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.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseDetails.java new file mode 100644 index 00000000000..0a0bc8b988f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseDetails.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation details for the Oracle 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateDatabaseToolsConnectionOracleDatabaseDetails.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 ValidateDatabaseToolsConnectionOracleDatabaseDetails + extends ValidateDatabaseToolsConnectionDetails { + @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 ValidateDatabaseToolsConnectionOracleDatabaseDetails build() { + ValidateDatabaseToolsConnectionOracleDatabaseDetails model = + new ValidateDatabaseToolsConnectionOracleDatabaseDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateDatabaseToolsConnectionOracleDatabaseDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsConnectionOracleDatabaseDetails() { + 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("ValidateDatabaseToolsConnectionOracleDatabaseDetails("); + 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 ValidateDatabaseToolsConnectionOracleDatabaseDetails)) { + return false; + } + + ValidateDatabaseToolsConnectionOracleDatabaseDetails other = + (ValidateDatabaseToolsConnectionOracleDatabaseDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java new file mode 100644 index 00000000000..4a9bd19e5ef --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java @@ -0,0 +1,708 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation result for the Oracle 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: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateDatabaseToolsConnectionOracleDatabaseResult.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 ValidateDatabaseToolsConnectionOracleDatabaseResult + extends ValidateDatabaseToolsConnectionResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cause") + private String cause; + + public Builder cause(String cause) { + this.cause = cause; + this.__explicitlySet__.add("cause"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + public Builder action(String action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** + * The database name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The database name. + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The database version. + * @param databaseVersion the value to set + * @return this builder + **/ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** + * The name of the currently active default schema. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSchema") + private String currentSchema; + + /** + * The name of the currently active default schema. + * @param currentSchema the value to set + * @return this builder + **/ + public Builder currentSchema(String currentSchema) { + this.currentSchema = currentSchema; + this.__explicitlySet__.add("currentSchema"); + return this; + } + /** + * The name of the session user (the user who logged on). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sessionUser") + private String sessionUser; + + /** + * The name of the session user (the user who logged on). + * @param sessionUser the value to set + * @return this builder + **/ + public Builder sessionUser(String sessionUser) { + this.sessionUser = sessionUser; + this.__explicitlySet__.add("sessionUser"); + return this; + } + /** + * Name of the database user who opened the current session on behalf of sessionUser. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyUser") + private String proxyUser; + + /** + * Name of the database user who opened the current session on behalf of sessionUser. + * @param proxyUser the value to set + * @return this builder + **/ + public Builder proxyUser(String proxyUser) { + this.proxyUser = proxyUser; + this.__explicitlySet__.add("proxyUser"); + return this; + } + /** + * Returns the identity used in authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticatedIdentity") + private String authenticatedIdentity; + + /** + * Returns the identity used in authentication. + * @param authenticatedIdentity the value to set + * @return this builder + **/ + public Builder authenticatedIdentity(String authenticatedIdentity) { + this.authenticatedIdentity = authenticatedIdentity; + this.__explicitlySet__.add("authenticatedIdentity"); + return this; + } + /** + * Returns the method of authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMethod") + private String authenticationMethod; + + /** + * Returns the method of authentication. + * @param authenticationMethod the value to set + * @return this builder + **/ + public Builder authenticationMethod(String authenticationMethod) { + this.authenticationMethod = authenticationMethod; + this.__explicitlySet__.add("authenticationMethod"); + return this; + } + /** + * The DBMS_CLOUD package installation status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsCloudStatus") + private DbmsCloudStatus dbmsCloudStatus; + + /** + * The DBMS_CLOUD package installation status. + * @param dbmsCloudStatus the value to set + * @return this builder + **/ + public Builder dbmsCloudStatus(DbmsCloudStatus dbmsCloudStatus) { + this.dbmsCloudStatus = dbmsCloudStatus; + this.__explicitlySet__.add("dbmsCloudStatus"); + return this; + } + /** + * Displays the CLOUD_SERVICE value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudService") + private String cloudService; + + /** + * Displays the CLOUD_SERVICE value within the USERENV context + * @param cloudService the value to set + * @return this builder + **/ + public Builder cloudService(String cloudService) { + this.cloudService = cloudService; + this.__explicitlySet__.add("cloudService"); + return this; + } + /** + * Status on whether an identity type can be used with this connection or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsIdentityStatuses") + private java.util.List databaseToolsIdentityStatuses; + + /** + * Status on whether an identity type can be used with this connection or not. + * @param databaseToolsIdentityStatuses the value to set + * @return this builder + **/ + public Builder databaseToolsIdentityStatuses( + java.util.List databaseToolsIdentityStatuses) { + this.databaseToolsIdentityStatuses = databaseToolsIdentityStatuses; + this.__explicitlySet__.add("databaseToolsIdentityStatuses"); + return this; + } + /** + * Displays the enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enterpriseIdentity") + private String enterpriseIdentity; + + /** + * Displays the enterprise identity value within the USERENV context + * @param enterpriseIdentity the value to set + * @return this builder + **/ + public Builder enterpriseIdentity(String enterpriseIdentity) { + this.enterpriseIdentity = enterpriseIdentity; + this.__explicitlySet__.add("enterpriseIdentity"); + return this; + } + /** + * Displays the proxy enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyEnterpriseIdentity") + private String proxyEnterpriseIdentity; + + /** + * Displays the proxy enterprise identity value within the USERENV context + * @param proxyEnterpriseIdentity the value to set + * @return this builder + **/ + public Builder proxyEnterpriseIdentity(String proxyEnterpriseIdentity) { + this.proxyEnterpriseIdentity = proxyEnterpriseIdentity; + this.__explicitlySet__.add("proxyEnterpriseIdentity"); + return this; + } + /** + * Status on whether an external authentication can be used with this connection or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalAuthenticationStatuses") + private java.util.List + externalAuthenticationStatuses; + + /** + * Status on whether an external authentication can be used with this connection or not. + * @param externalAuthenticationStatuses the value to set + * @return this builder + **/ + public Builder externalAuthenticationStatuses( + java.util.List + externalAuthenticationStatuses) { + this.externalAuthenticationStatuses = externalAuthenticationStatuses; + this.__explicitlySet__.add("externalAuthenticationStatuses"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateDatabaseToolsConnectionOracleDatabaseResult build() { + ValidateDatabaseToolsConnectionOracleDatabaseResult model = + new ValidateDatabaseToolsConnectionOracleDatabaseResult( + this.code, + this.message, + this.cause, + this.action, + this.databaseName, + this.databaseVersion, + this.currentSchema, + this.sessionUser, + this.proxyUser, + this.authenticatedIdentity, + this.authenticationMethod, + this.dbmsCloudStatus, + this.cloudService, + this.databaseToolsIdentityStatuses, + this.enterpriseIdentity, + this.proxyEnterpriseIdentity, + this.externalAuthenticationStatuses); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateDatabaseToolsConnectionOracleDatabaseResult model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("cause")) { + this.cause(model.getCause()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("currentSchema")) { + this.currentSchema(model.getCurrentSchema()); + } + if (model.wasPropertyExplicitlySet("sessionUser")) { + this.sessionUser(model.getSessionUser()); + } + if (model.wasPropertyExplicitlySet("proxyUser")) { + this.proxyUser(model.getProxyUser()); + } + if (model.wasPropertyExplicitlySet("authenticatedIdentity")) { + this.authenticatedIdentity(model.getAuthenticatedIdentity()); + } + if (model.wasPropertyExplicitlySet("authenticationMethod")) { + this.authenticationMethod(model.getAuthenticationMethod()); + } + if (model.wasPropertyExplicitlySet("dbmsCloudStatus")) { + this.dbmsCloudStatus(model.getDbmsCloudStatus()); + } + if (model.wasPropertyExplicitlySet("cloudService")) { + this.cloudService(model.getCloudService()); + } + if (model.wasPropertyExplicitlySet("databaseToolsIdentityStatuses")) { + this.databaseToolsIdentityStatuses(model.getDatabaseToolsIdentityStatuses()); + } + if (model.wasPropertyExplicitlySet("enterpriseIdentity")) { + this.enterpriseIdentity(model.getEnterpriseIdentity()); + } + if (model.wasPropertyExplicitlySet("proxyEnterpriseIdentity")) { + this.proxyEnterpriseIdentity(model.getProxyEnterpriseIdentity()); + } + if (model.wasPropertyExplicitlySet("externalAuthenticationStatuses")) { + this.externalAuthenticationStatuses(model.getExternalAuthenticationStatuses()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsConnectionOracleDatabaseResult( + String code, + String message, + String cause, + String action, + String databaseName, + String databaseVersion, + String currentSchema, + String sessionUser, + String proxyUser, + String authenticatedIdentity, + String authenticationMethod, + DbmsCloudStatus dbmsCloudStatus, + String cloudService, + java.util.List databaseToolsIdentityStatuses, + String enterpriseIdentity, + String proxyEnterpriseIdentity, + java.util.List externalAuthenticationStatuses) { + super(code, message, cause, action); + this.databaseName = databaseName; + this.databaseVersion = databaseVersion; + this.currentSchema = currentSchema; + this.sessionUser = sessionUser; + this.proxyUser = proxyUser; + this.authenticatedIdentity = authenticatedIdentity; + this.authenticationMethod = authenticationMethod; + this.dbmsCloudStatus = dbmsCloudStatus; + this.cloudService = cloudService; + this.databaseToolsIdentityStatuses = databaseToolsIdentityStatuses; + this.enterpriseIdentity = enterpriseIdentity; + this.proxyEnterpriseIdentity = proxyEnterpriseIdentity; + this.externalAuthenticationStatuses = externalAuthenticationStatuses; + } + + /** + * The database name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The database name. + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The database version. + * @return the value + **/ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** + * The name of the currently active default schema. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentSchema") + private final String currentSchema; + + /** + * The name of the currently active default schema. + * @return the value + **/ + public String getCurrentSchema() { + return currentSchema; + } + + /** + * The name of the session user (the user who logged on). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sessionUser") + private final String sessionUser; + + /** + * The name of the session user (the user who logged on). + * @return the value + **/ + public String getSessionUser() { + return sessionUser; + } + + /** + * Name of the database user who opened the current session on behalf of sessionUser. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyUser") + private final String proxyUser; + + /** + * Name of the database user who opened the current session on behalf of sessionUser. + * @return the value + **/ + public String getProxyUser() { + return proxyUser; + } + + /** + * Returns the identity used in authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticatedIdentity") + private final String authenticatedIdentity; + + /** + * Returns the identity used in authentication. + * @return the value + **/ + public String getAuthenticatedIdentity() { + return authenticatedIdentity; + } + + /** + * Returns the method of authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMethod") + private final String authenticationMethod; + + /** + * Returns the method of authentication. + * @return the value + **/ + public String getAuthenticationMethod() { + return authenticationMethod; + } + + /** + * The DBMS_CLOUD package installation status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbmsCloudStatus") + private final DbmsCloudStatus dbmsCloudStatus; + + /** + * The DBMS_CLOUD package installation status. + * @return the value + **/ + public DbmsCloudStatus getDbmsCloudStatus() { + return dbmsCloudStatus; + } + + /** + * Displays the CLOUD_SERVICE value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudService") + private final String cloudService; + + /** + * Displays the CLOUD_SERVICE value within the USERENV context + * @return the value + **/ + public String getCloudService() { + return cloudService; + } + + /** + * Status on whether an identity type can be used with this connection or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseToolsIdentityStatuses") + private final java.util.List databaseToolsIdentityStatuses; + + /** + * Status on whether an identity type can be used with this connection or not. + * @return the value + **/ + public java.util.List getDatabaseToolsIdentityStatuses() { + return databaseToolsIdentityStatuses; + } + + /** + * Displays the enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("enterpriseIdentity") + private final String enterpriseIdentity; + + /** + * Displays the enterprise identity value within the USERENV context + * @return the value + **/ + public String getEnterpriseIdentity() { + return enterpriseIdentity; + } + + /** + * Displays the proxy enterprise identity value within the USERENV context + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyEnterpriseIdentity") + private final String proxyEnterpriseIdentity; + + /** + * Displays the proxy enterprise identity value within the USERENV context + * @return the value + **/ + public String getProxyEnterpriseIdentity() { + return proxyEnterpriseIdentity; + } + + /** + * Status on whether an external authentication can be used with this connection or not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalAuthenticationStatuses") + private final java.util.List + externalAuthenticationStatuses; + + /** + * Status on whether an external authentication can be used with this connection or not. + * @return the value + **/ + public java.util.List + getExternalAuthenticationStatuses() { + return externalAuthenticationStatuses; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateDatabaseToolsConnectionOracleDatabaseResult("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", currentSchema=").append(String.valueOf(this.currentSchema)); + sb.append(", sessionUser=").append(String.valueOf(this.sessionUser)); + sb.append(", proxyUser=").append(String.valueOf(this.proxyUser)); + sb.append(", authenticatedIdentity=").append(String.valueOf(this.authenticatedIdentity)); + sb.append(", authenticationMethod=").append(String.valueOf(this.authenticationMethod)); + sb.append(", dbmsCloudStatus=").append(String.valueOf(this.dbmsCloudStatus)); + sb.append(", cloudService=").append(String.valueOf(this.cloudService)); + sb.append(", databaseToolsIdentityStatuses=") + .append(String.valueOf(this.databaseToolsIdentityStatuses)); + sb.append(", enterpriseIdentity=").append(String.valueOf(this.enterpriseIdentity)); + sb.append(", proxyEnterpriseIdentity=") + .append(String.valueOf(this.proxyEnterpriseIdentity)); + sb.append(", externalAuthenticationStatuses=") + .append(String.valueOf(this.externalAuthenticationStatuses)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsConnectionOracleDatabaseResult)) { + return false; + } + + ValidateDatabaseToolsConnectionOracleDatabaseResult other = + (ValidateDatabaseToolsConnectionOracleDatabaseResult) o; + return java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.currentSchema, other.currentSchema) + && java.util.Objects.equals(this.sessionUser, other.sessionUser) + && java.util.Objects.equals(this.proxyUser, other.proxyUser) + && java.util.Objects.equals(this.authenticatedIdentity, other.authenticatedIdentity) + && java.util.Objects.equals(this.authenticationMethod, other.authenticationMethod) + && java.util.Objects.equals(this.dbmsCloudStatus, other.dbmsCloudStatus) + && java.util.Objects.equals(this.cloudService, other.cloudService) + && java.util.Objects.equals( + this.databaseToolsIdentityStatuses, other.databaseToolsIdentityStatuses) + && java.util.Objects.equals(this.enterpriseIdentity, other.enterpriseIdentity) + && java.util.Objects.equals( + this.proxyEnterpriseIdentity, other.proxyEnterpriseIdentity) + && java.util.Objects.equals( + this.externalAuthenticationStatuses, other.externalAuthenticationStatuses) + && 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.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.currentSchema == null ? 43 : this.currentSchema.hashCode()); + result = (result * PRIME) + (this.sessionUser == null ? 43 : this.sessionUser.hashCode()); + result = (result * PRIME) + (this.proxyUser == null ? 43 : this.proxyUser.hashCode()); + result = + (result * PRIME) + + (this.authenticatedIdentity == null + ? 43 + : this.authenticatedIdentity.hashCode()); + result = + (result * PRIME) + + (this.authenticationMethod == null + ? 43 + : this.authenticationMethod.hashCode()); + result = + (result * PRIME) + + (this.dbmsCloudStatus == null ? 43 : this.dbmsCloudStatus.hashCode()); + result = (result * PRIME) + (this.cloudService == null ? 43 : this.cloudService.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsIdentityStatuses == null + ? 43 + : this.databaseToolsIdentityStatuses.hashCode()); + result = + (result * PRIME) + + (this.enterpriseIdentity == null + ? 43 + : this.enterpriseIdentity.hashCode()); + result = + (result * PRIME) + + (this.proxyEnterpriseIdentity == null + ? 43 + : this.proxyEnterpriseIdentity.hashCode()); + result = + (result * PRIME) + + (this.externalAuthenticationStatuses == null + ? 43 + : this.externalAuthenticationStatuses.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlDetails.java new file mode 100644 index 00000000000..f6aee8c4663 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlDetails.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation details for the Postgresql Server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateDatabaseToolsConnectionPostgresqlDetails.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 ValidateDatabaseToolsConnectionPostgresqlDetails + extends ValidateDatabaseToolsConnectionDetails { + @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 ValidateDatabaseToolsConnectionPostgresqlDetails build() { + ValidateDatabaseToolsConnectionPostgresqlDetails model = + new ValidateDatabaseToolsConnectionPostgresqlDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateDatabaseToolsConnectionPostgresqlDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsConnectionPostgresqlDetails() { + 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("ValidateDatabaseToolsConnectionPostgresqlDetails("); + 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 ValidateDatabaseToolsConnectionPostgresqlDetails)) { + return false; + } + + ValidateDatabaseToolsConnectionPostgresqlDetails other = + (ValidateDatabaseToolsConnectionPostgresqlDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlResult.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlResult.java new file mode 100644 index 00000000000..45663cdfa49 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlResult.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation result for the PostgreSQL Server. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateDatabaseToolsConnectionPostgresqlResult.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 ValidateDatabaseToolsConnectionPostgresqlResult + extends ValidateDatabaseToolsConnectionResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cause") + private String cause; + + public Builder cause(String cause) { + this.cause = cause; + this.__explicitlySet__.add("cause"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + public Builder action(String action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** + * The database name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The database name. + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The database version. + * @param databaseVersion the value to set + * @return this builder + **/ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateDatabaseToolsConnectionPostgresqlResult build() { + ValidateDatabaseToolsConnectionPostgresqlResult model = + new ValidateDatabaseToolsConnectionPostgresqlResult( + this.code, + this.message, + this.cause, + this.action, + this.databaseName, + this.databaseVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateDatabaseToolsConnectionPostgresqlResult model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("cause")) { + this.cause(model.getCause()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsConnectionPostgresqlResult( + String code, + String message, + String cause, + String action, + String databaseName, + String databaseVersion) { + super(code, message, cause, action); + this.databaseName = databaseName; + this.databaseVersion = databaseVersion; + } + + /** + * The database name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The database name. + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The database version. + * @return the value + **/ + public String getDatabaseVersion() { + return databaseVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateDatabaseToolsConnectionPostgresqlResult("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsConnectionPostgresqlResult)) { + return false; + } + + ValidateDatabaseToolsConnectionPostgresqlResult other = + (ValidateDatabaseToolsConnectionPostgresqlResult) o; + return java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && 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.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionResult.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionResult.java new file mode 100644 index 00000000000..ad0ddc674f1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionResult.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Connection validation 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ValidateDatabaseToolsConnectionResult.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsConnectionOracleDatabaseResult.class, + name = "ORACLE_DATABASE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsConnectionMySqlResult.class, + name = "MYSQL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsConnectionPostgresqlResult.class, + name = "POSTGRESQL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ValidateDatabaseToolsConnectionResult + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "cause", "action"}) + protected ValidateDatabaseToolsConnectionResult( + String code, String message, String cause, String action) { + super(); + this.code = code; + this.message = message; + this.cause = cause; + this.action = action; + } + + /** + * A short code that defines the result of the validation, meant for programmatic parsing. The value OK indicates that the validation was successful. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A short code that defines the result of the validation, meant for programmatic parsing. The value OK indicates that the validation was successful. + * @return the value + **/ + public String getCode() { + return code; + } + + /** + * A human-readable message that describes the result of the validation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable message that describes the result of the validation. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * A human-readable message that describes possible causes for the validation error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cause") + private final String cause; + + /** + * A human-readable message that describes possible causes for the validation error. + * @return the value + **/ + public String getCause() { + return cause; + } + + /** + * A human-readable message that suggests a remedial action to resolve the validation error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final String action; + + /** + * A human-readable message that suggests a remedial action to resolve the validation error. + * @return the value + **/ + public String getAction() { + return action; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateDatabaseToolsConnectionResult("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", cause=").append(String.valueOf(this.cause)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsConnectionResult)) { + return false; + } + + ValidateDatabaseToolsConnectionResult other = (ValidateDatabaseToolsConnectionResult) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.cause, other.cause) + && java.util.Objects.equals(this.action, other.action) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.cause == null ? 43 : this.cause.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialDetails.java new file mode 100644 index 00000000000..2b61ded4c21 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialDetails.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Identity Credential validation 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ValidateDatabaseToolsIdentityCredentialDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails.class, + name = "ORACLE_DATABASE_RESOURCE_PRINCIPAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ValidateDatabaseToolsIdentityCredentialDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ValidateDatabaseToolsIdentityCredentialDetails() { + 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("ValidateDatabaseToolsIdentityCredentialDetails("); + 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 ValidateDatabaseToolsIdentityCredentialDetails)) { + return false; + } + + ValidateDatabaseToolsIdentityCredentialDetails other = + (ValidateDatabaseToolsIdentityCredentialDetails) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails.java new file mode 100644 index 00000000000..ca1314fe6ad --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The Database Tools identity validate credential details for the Oracle Database resource principal identity type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails.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 ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails + extends ValidateDatabaseToolsIdentityCredentialDetails { + @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 ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails + build() { + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails model = + new ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails + model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails() { + 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("ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails("); + 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 + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails)) { + return false; + } + + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails other = + (ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult.java new file mode 100644 index 00000000000..f259e13388f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * The Database Tools identity validate credentials result for the Oracle Database resource principal identity type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult.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 ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult + extends ValidateDatabaseToolsIdentityCredentialResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cause") + private String cause; + + public Builder cause(String cause) { + this.cause = cause; + this.__explicitlySet__.add("cause"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + public Builder action(String action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult + build() { + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult model = + new ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult( + this.code, this.message, this.cause, this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult + model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("cause")) { + this.cause(model.getCause()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult( + String code, String message, String cause, String action) { + super(code, message, cause, action); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult("); + 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 + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult)) { + return false; + } + + ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult other = + (ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialResult.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialResult.java new file mode 100644 index 00000000000..eb4994ee561 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialResult.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Identity validation 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: 20230222") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = ValidateDatabaseToolsIdentityCredentialResult.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult.class, + name = "ORACLE_DATABASE_RESOURCE_PRINCIPAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ValidateDatabaseToolsIdentityCredentialResult + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "cause", "action"}) + protected ValidateDatabaseToolsIdentityCredentialResult( + String code, String message, String cause, String action) { + super(); + this.code = code; + this.message = message; + this.cause = cause; + this.action = action; + } + + /** + * A short code that defines the result of the validation, meant for programmatic parsing. The value OK indicates that the validation was successful. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A short code that defines the result of the validation, meant for programmatic parsing. The value OK indicates that the validation was successful. + * @return the value + **/ + public String getCode() { + return code; + } + + /** + * A human-readable message that describes the result of the validation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable message that describes the result of the validation. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * A human-readable message that describes possible causes for the validation error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cause") + private final String cause; + + /** + * A human-readable message that describes possible causes for the validation error. + * @return the value + **/ + public String getCause() { + return cause; + } + + /** + * A human-readable message that suggests a remedial action to resolve the validation error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final String action; + + /** + * A human-readable message that suggests a remedial action to resolve the validation error. + * @return the value + **/ + public String getAction() { + return action; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateDatabaseToolsIdentityCredentialResult("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", cause=").append(String.valueOf(this.cause)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsIdentityCredentialResult)) { + return false; + } + + ValidateDatabaseToolsIdentityCredentialResult other = + (ValidateDatabaseToolsIdentityCredentialResult) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.cause, other.cause) + && java.util.Objects.equals(this.action, other.action) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.cause == null ? 43 : this.cause.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationExternalAuthenticationStatus.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationExternalAuthenticationStatus.java new file mode 100644 index 00000000000..dd001c52727 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationExternalAuthenticationStatus.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Status details for an external authentication + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidationExternalAuthenticationStatus.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ValidationExternalAuthenticationStatus + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "status", "statusDetails"}) + public ValidationExternalAuthenticationStatus( + IdentityProviderType type, + DatabaseToolsExternalAuthenticationStatus status, + String statusDetails) { + super(); + this.type = type; + this.status = status; + this.statusDetails = statusDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Database Tools identity provider type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private IdentityProviderType type; + + /** + * The Database Tools identity provider type. + * @param type the value to set + * @return this builder + **/ + public Builder type(IdentityProviderType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private DatabaseToolsExternalAuthenticationStatus status; + + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + * @param status the value to set + * @return this builder + **/ + public Builder status(DatabaseToolsExternalAuthenticationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * If the status is UNAVAILABLE this displays the cause. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private String statusDetails; + + /** + * If the status is UNAVAILABLE this displays the cause. + * @param statusDetails the value to set + * @return this builder + **/ + public Builder statusDetails(String statusDetails) { + this.statusDetails = statusDetails; + this.__explicitlySet__.add("statusDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidationExternalAuthenticationStatus build() { + ValidationExternalAuthenticationStatus model = + new ValidationExternalAuthenticationStatus( + this.type, this.status, this.statusDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidationExternalAuthenticationStatus model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusDetails")) { + this.statusDetails(model.getStatusDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Database Tools identity provider type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final IdentityProviderType type; + + /** + * The Database Tools identity provider type. + * @return the value + **/ + public IdentityProviderType getType() { + return type; + } + + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final DatabaseToolsExternalAuthenticationStatus status; + + /** + * The status of the external authentication. AVAILABLE if the external authentication can be used with this connection. UNAVAILABLE if not. + * ENABLED if the external authentication is enabled. + * + * @return the value + **/ + public DatabaseToolsExternalAuthenticationStatus getStatus() { + return status; + } + + /** + * If the status is UNAVAILABLE this displays the cause. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private final String statusDetails; + + /** + * If the status is UNAVAILABLE this displays the cause. + * @return the value + **/ + public String getStatusDetails() { + return statusDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidationExternalAuthenticationStatus("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", statusDetails=").append(String.valueOf(this.statusDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidationExternalAuthenticationStatus)) { + return false; + } + + ValidationExternalAuthenticationStatus other = (ValidationExternalAuthenticationStatus) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusDetails, other.statusDetails) + && 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.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.statusDetails == null ? 43 : this.statusDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationIdentityStatus.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationIdentityStatus.java new file mode 100644 index 00000000000..aeb318eeeab --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationIdentityStatus.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * Status details for an identity type + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidationIdentityStatus.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ValidationIdentityStatus + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "status", "statusDetails"}) + public ValidationIdentityStatus( + IdentityType type, DatabaseToolsIdentityStatus status, String statusDetails) { + super(); + this.type = type; + this.status = status; + this.statusDetails = statusDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Database Tools identity type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private IdentityType type; + + /** + * The Database Tools identity type. + * @param type the value to set + * @return this builder + **/ + public Builder type(IdentityType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The status of the identity. AVAILABLE if the identity type can be used with this connection. UNAVAILABLE if not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private DatabaseToolsIdentityStatus status; + + /** + * The status of the identity. AVAILABLE if the identity type can be used with this connection. UNAVAILABLE if not. + * @param status the value to set + * @return this builder + **/ + public Builder status(DatabaseToolsIdentityStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * If the status is UNAVAILABLE this displays the cause. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private String statusDetails; + + /** + * If the status is UNAVAILABLE this displays the cause. + * @param statusDetails the value to set + * @return this builder + **/ + public Builder statusDetails(String statusDetails) { + this.statusDetails = statusDetails; + this.__explicitlySet__.add("statusDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidationIdentityStatus build() { + ValidationIdentityStatus model = + new ValidationIdentityStatus(this.type, this.status, this.statusDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidationIdentityStatus model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusDetails")) { + this.statusDetails(model.getStatusDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Database Tools identity type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final IdentityType type; + + /** + * The Database Tools identity type. + * @return the value + **/ + public IdentityType getType() { + return type; + } + + /** + * The status of the identity. AVAILABLE if the identity type can be used with this connection. UNAVAILABLE if not. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final DatabaseToolsIdentityStatus status; + + /** + * The status of the identity. AVAILABLE if the identity type can be used with this connection. UNAVAILABLE if not. + * @return the value + **/ + public DatabaseToolsIdentityStatus getStatus() { + return status; + } + + /** + * If the status is UNAVAILABLE this displays the cause. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") + private final String statusDetails; + + /** + * If the status is UNAVAILABLE this displays the cause. + * @return the value + **/ + public String getStatusDetails() { + return statusDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidationIdentityStatus("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", statusDetails=").append(String.valueOf(this.statusDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidationIdentityStatus)) { + return false; + } + + ValidationIdentityStatus other = (ValidationIdentityStatus) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusDetails, other.statusDetails) + && 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.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.statusDetails == null ? 43 : this.statusDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequest.java new file mode 100644 index 00000000000..3841fd3ef74 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequest.java @@ -0,0 +1,716 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * An asynchronous work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "operationType", + "status", + "id", + "compartmentId", + "createdByPrincipalId", + "createdByPrincipalDomainId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated", + "timeScheduled" + }) + public WorkRequest( + String displayName, + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + String createdByPrincipalId, + String createdByPrincipalDomainId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated, + java.util.Date timeScheduled) { + super(); + this.displayName = displayName; + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.createdByPrincipalId = createdByPrincipalId; + this.createdByPrincipalDomainId = createdByPrincipalDomainId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + this.timeScheduled = timeScheduled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * @param status the value to set + * @return this builder + **/ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Principal id of the user or resource that submitted the asynchrounous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalId") + private String createdByPrincipalId; + + /** + * Principal id of the user or resource that submitted the asynchrounous request. + * @param createdByPrincipalId the value to set + * @return this builder + **/ + public Builder createdByPrincipalId(String createdByPrincipalId) { + this.createdByPrincipalId = createdByPrincipalId; + this.__explicitlySet__.add("createdByPrincipalId"); + return this; + } + /** + * Identity domain OCID for the user that submitted the asynchronous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalDomainId") + private String createdByPrincipalDomainId; + + /** + * Identity domain OCID for the user that submitted the asynchronous request. + * @param createdByPrincipalDomainId the value to set + * @return this builder + **/ + public Builder createdByPrincipalDomainId(String createdByPrincipalDomainId) { + this.createdByPrincipalDomainId = createdByPrincipalDomainId; + this.__explicitlySet__.add("createdByPrincipalDomainId"); + return this; + } + /** + * The resources affected by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this work request. + * @param resources the value to set + * @return this builder + **/ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * @param percentComplete the value to set + * @return this builder + **/ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by RFC3339. + * @param timeAccepted the value to set + * @return this builder + **/ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.displayName, + this.operationType, + this.status, + this.id, + this.compartmentId, + this.createdByPrincipalId, + this.createdByPrincipalDomainId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated, + this.timeScheduled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("createdByPrincipalId")) { + this.createdByPrincipalId(model.getCreatedByPrincipalId()); + } + if (model.wasPropertyExplicitlySet("createdByPrincipalDomainId")) { + this.createdByPrincipalDomainId(model.getCreatedByPrincipalDomainId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * @return the value + **/ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Principal id of the user or resource that submitted the asynchrounous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalId") + private final String createdByPrincipalId; + + /** + * Principal id of the user or resource that submitted the asynchrounous request. + * @return the value + **/ + public String getCreatedByPrincipalId() { + return createdByPrincipalId; + } + + /** + * Identity domain OCID for the user that submitted the asynchronous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalDomainId") + private final String createdByPrincipalDomainId; + + /** + * Identity domain OCID for the user that submitted the asynchronous request. + * @return the value + **/ + public String getCreatedByPrincipalDomainId() { + return createdByPrincipalDomainId; + } + + /** + * The resources affected by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * @return the value + **/ + public java.util.List getResources() { + return resources; + } + + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * @return the value + **/ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", createdByPrincipalId=").append(String.valueOf(this.createdByPrincipalId)); + sb.append(", createdByPrincipalDomainId=") + .append(String.valueOf(this.createdByPrincipalDomainId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.createdByPrincipalId, other.createdByPrincipalId) + && java.util.Objects.equals( + this.createdByPrincipalDomainId, other.createdByPrincipalDomainId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && 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.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.createdByPrincipalId == null + ? 43 + : this.createdByPrincipalId.hashCode()); + result = + (result * PRIME) + + (this.createdByPrincipalDomainId == null + ? 43 + : this.createdByPrincipalDomainId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestCollection.java new file mode 100644 index 00000000000..6ece4c84624 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of {@code WorkRequestSummary} items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of {@code WorkRequestSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of {@code WorkRequestSummary} items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestCollection build() { + WorkRequestCollection model = new WorkRequestCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of {@code WorkRequestSummary} items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of {@code WorkRequestSummary} items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestCollection("); + 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 WorkRequestCollection)) { + return false; + } + + WorkRequestCollection other = (WorkRequestCollection) 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestError.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestError.java new file mode 100644 index 00000000000..b1b662ffb3c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestError.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * An error encountered while executing a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @param code the value to set + * @return this builder + **/ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** + * A human readable description of the issue encountered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human readable description of the issue encountered. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The time the error occured. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @return the value + **/ + public String getCode() { + return code; + } + + /** + * A human readable description of the issue encountered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human readable description of the issue encountered. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The time the error occured. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestErrorCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..98c20b4f22f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestErrorCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of WorkRequestError items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of Work Request Error items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Work Request Error items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of Work Request Error items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Work Request Error items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntry.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..9030dbb1bfd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntry.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A log message from the execution of a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Human-readable log message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The time the log message was written. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string. + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Human-readable log message. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The time the log message was written. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntryCollection.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..fdf46c789e8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * List of work request log items. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of work request log items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of work request log items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of work request log items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of work request log items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestResource.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestResource.java new file mode 100644 index 00000000000..6dce56dbd27 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestResource.java @@ -0,0 +1,316 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A resource created or operated on by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestResource extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The resource type the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type the work request affects. + * @param entityType the value to set + * @return this builder + **/ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + **/ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The identifier of the resource the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The identifier of the resource the work request affects. + * @param identifier the value to set + * @return this builder + **/ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** + * The URI path that the user can use for a GET operation to access the resource metadata. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that the user can use for a GET operation to access the resource metadata. + * @param entityUri the value to set + * @return this builder + **/ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** + * Additional information explaining the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information explaining the resource. + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The resource type the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type the work request affects. + * @return the value + **/ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + * @return the value + **/ + public ActionType getActionType() { + return actionType; + } + + /** + * The identifier of the resource the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The identifier of the resource the work request affects. + * @return the value + **/ + public String getIdentifier() { + return identifier; + } + + /** + * The URI path that the user can use for a GET operation to access the resource metadata. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that the user can use for a GET operation to access the resource metadata. + * @return the value + **/ + public String getEntityUri() { + return entityUri; + } + + /** + * Additional information explaining the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information explaining the resource. + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestSummary.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestSummary.java new file mode 100644 index 00000000000..d0da35fafea --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestSummary.java @@ -0,0 +1,718 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** + * A summary of the status of a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "operationType", + "status", + "id", + "compartmentId", + "createdByPrincipalId", + "createdByPrincipalDomainId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated", + "timeScheduled" + }) + public WorkRequestSummary( + String displayName, + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + String createdByPrincipalId, + String createdByPrincipalDomainId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated, + java.util.Date timeScheduled) { + super(); + this.displayName = displayName; + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.createdByPrincipalId = createdByPrincipalId; + this.createdByPrincipalDomainId = createdByPrincipalDomainId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + this.timeScheduled = timeScheduled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * @param status the value to set + * @return this builder + **/ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Principal id of the user or resource that submitted the asynchrounous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalId") + private String createdByPrincipalId; + + /** + * Principal id of the user or resource that submitted the asynchrounous request. + * @param createdByPrincipalId the value to set + * @return this builder + **/ + public Builder createdByPrincipalId(String createdByPrincipalId) { + this.createdByPrincipalId = createdByPrincipalId; + this.__explicitlySet__.add("createdByPrincipalId"); + return this; + } + /** + * Identity domain OCID for the user that submitted the asynchronous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalDomainId") + private String createdByPrincipalDomainId; + + /** + * Identity domain OCID for the user that submitted the asynchronous request. + * @param createdByPrincipalDomainId the value to set + * @return this builder + **/ + public Builder createdByPrincipalDomainId(String createdByPrincipalDomainId) { + this.createdByPrincipalDomainId = createdByPrincipalDomainId; + this.__explicitlySet__.add("createdByPrincipalDomainId"); + return this; + } + /** + * The resources affected by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this work request. + * @param resources the value to set + * @return this builder + **/ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * @param percentComplete the value to set + * @return this builder + **/ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by RFC3339. + * @param timeAccepted the value to set + * @return this builder + **/ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.displayName, + this.operationType, + this.status, + this.id, + this.compartmentId, + this.createdByPrincipalId, + this.createdByPrincipalDomainId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated, + this.timeScheduled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("createdByPrincipalId")) { + this.createdByPrincipalId(model.getCreatedByPrincipalId()); + } + if (model.wasPropertyExplicitlySet("createdByPrincipalDomainId")) { + this.createdByPrincipalDomainId(model.getCreatedByPrincipalDomainId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the operation. + * If provided for an asynchronous operation, this value will be propagated to the displayName property of the resulting Work Request, allowing for easier identification and tracking of the operation's progress and outcome. This name is purely for descriptive purposes and does not affect the functionality of the operation itself. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * @return the value + **/ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Principal id of the user or resource that submitted the asynchrounous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalId") + private final String createdByPrincipalId; + + /** + * Principal id of the user or resource that submitted the asynchrounous request. + * @return the value + **/ + public String getCreatedByPrincipalId() { + return createdByPrincipalId; + } + + /** + * Identity domain OCID for the user that submitted the asynchronous request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdByPrincipalDomainId") + private final String createdByPrincipalDomainId; + + /** + * Identity domain OCID for the user that submitted the asynchronous request. + * @return the value + **/ + public String getCreatedByPrincipalDomainId() { + return createdByPrincipalDomainId; + } + + /** + * The resources affected by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * @return the value + **/ + public java.util.List getResources() { + return resources; + } + + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * @return the value + **/ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request transitioned from {@code ACCEPTED} to {@code IN_PROGRESS}, + * in the format defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request reached a terminal state, either {@code FAILED} or {@code SUCCEEDED}. + * Format is defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was last updated, + * in the format defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time the work request is eligible to be launched, + * in the format defined by RFC3339. + * + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", createdByPrincipalId=").append(String.valueOf(this.createdByPrincipalId)); + sb.append(", createdByPrincipalDomainId=") + .append(String.valueOf(this.createdByPrincipalDomainId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.createdByPrincipalId, other.createdByPrincipalId) + && java.util.Objects.equals( + this.createdByPrincipalDomainId, other.createdByPrincipalDomainId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && 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.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.createdByPrincipalId == null + ? 43 + : this.createdByPrincipalId.hashCode()); + result = + (result * PRIME) + + (this.createdByPrincipalDomainId == null + ? 43 + : this.createdByPrincipalDomainId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CancelWorkRequestRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CancelWorkRequestRequest.java new file mode 100644 index 00000000000..aab20d2816b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CancelWorkRequestRequest.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CancelWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the asynchronous request. + */ + private String workRequestId; + + /** + * The ID of the asynchronous request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the asynchronous request. + */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(CancelWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelWorkRequestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CancelWorkRequestRequest + */ + public CancelWorkRequestRequest build() { + CancelWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CancelWorkRequestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CancelWorkRequestRequest + */ + public CancelWorkRequestRequest buildWithoutInvocationCallback() { + CancelWorkRequestRequest request = new CancelWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new CancelWorkRequestRequest(workRequestId, 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() + .workRequestId(workRequestId) + .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(",workRequestId=").append(String.valueOf(this.workRequestId)); + 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 CancelWorkRequestRequest)) { + return false; + } + + CancelWorkRequestRequest other = (CancelWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialExecuteGranteeRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialExecuteGranteeRequest.java new file mode 100644 index 00000000000..deaf8df30f4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialExecuteGranteeRequest.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CreateCredentialExecuteGranteeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialExecuteGranteeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The payload to create an execute grantee. + */ + private com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails + createCredentialExecuteGranteeDetails; + + /** + * The payload to create an execute grantee. + */ + public com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails + getCreateCredentialExecuteGranteeDetails() { + return createCredentialExecuteGranteeDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails + getBody$() { + return createCredentialExecuteGranteeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateCredentialExecuteGranteeRequest, + com.oracle.bmc.databasetoolsruntime.model + .CreateCredentialExecuteGranteeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The payload to create an execute grantee. + */ + private com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails + createCredentialExecuteGranteeDetails = null; + + /** + * The payload to create an execute grantee. + * @param createCredentialExecuteGranteeDetails the value to set + * @return this builder instance + */ + public Builder createCredentialExecuteGranteeDetails( + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails + createCredentialExecuteGranteeDetails) { + this.createCredentialExecuteGranteeDetails = createCredentialExecuteGranteeDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(CreateCredentialExecuteGranteeRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + createCredentialExecuteGranteeDetails(o.getCreateCredentialExecuteGranteeDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateCredentialExecuteGranteeRequest 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 CreateCredentialExecuteGranteeRequest + */ + public CreateCredentialExecuteGranteeRequest build() { + CreateCredentialExecuteGranteeRequest 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.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails + body) { + createCredentialExecuteGranteeDetails(body); + return this; + } + + /** + * Build the instance of CreateCredentialExecuteGranteeRequest 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 CreateCredentialExecuteGranteeRequest + */ + public CreateCredentialExecuteGranteeRequest buildWithoutInvocationCallback() { + CreateCredentialExecuteGranteeRequest request = + new CreateCredentialExecuteGranteeRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.createCredentialExecuteGranteeDetails = createCredentialExecuteGranteeDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new CreateCredentialExecuteGranteeRequest(databaseToolsConnectionId, credentialKey, createCredentialExecuteGranteeDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .createCredentialExecuteGranteeDetails(createCredentialExecuteGranteeDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",createCredentialExecuteGranteeDetails=") + .append(String.valueOf(this.createCredentialExecuteGranteeDetails)); + 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 CreateCredentialExecuteGranteeRequest)) { + return false; + } + + CreateCredentialExecuteGranteeRequest other = (CreateCredentialExecuteGranteeRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals( + this.createCredentialExecuteGranteeDetails, + other.createCredentialExecuteGranteeDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.createCredentialExecuteGranteeDetails == null + ? 43 + : this.createCredentialExecuteGranteeDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialPublicSynonymRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialPublicSynonymRequest.java new file mode 100644 index 00000000000..38e40408e6a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialPublicSynonymRequest.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CreateCredentialPublicSynonymRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialPublicSynonymRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The payload to create a public synonym for the given credentials. + */ + private com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails + createCredentialPublicSynonymDetails; + + /** + * The payload to create a public synonym for the given credentials. + */ + public com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails + getCreateCredentialPublicSynonymDetails() { + return createCredentialPublicSynonymDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails + getBody$() { + return createCredentialPublicSynonymDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateCredentialPublicSynonymRequest, + com.oracle.bmc.databasetoolsruntime.model + .CreateCredentialPublicSynonymDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The payload to create a public synonym for the given credentials. + */ + private com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails + createCredentialPublicSynonymDetails = null; + + /** + * The payload to create a public synonym for the given credentials. + * @param createCredentialPublicSynonymDetails the value to set + * @return this builder instance + */ + public Builder createCredentialPublicSynonymDetails( + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails + createCredentialPublicSynonymDetails) { + this.createCredentialPublicSynonymDetails = createCredentialPublicSynonymDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(CreateCredentialPublicSynonymRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + createCredentialPublicSynonymDetails(o.getCreateCredentialPublicSynonymDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateCredentialPublicSynonymRequest 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 CreateCredentialPublicSynonymRequest + */ + public CreateCredentialPublicSynonymRequest build() { + CreateCredentialPublicSynonymRequest 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.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails + body) { + createCredentialPublicSynonymDetails(body); + return this; + } + + /** + * Build the instance of CreateCredentialPublicSynonymRequest 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 CreateCredentialPublicSynonymRequest + */ + public CreateCredentialPublicSynonymRequest buildWithoutInvocationCallback() { + CreateCredentialPublicSynonymRequest request = + new CreateCredentialPublicSynonymRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.createCredentialPublicSynonymDetails = createCredentialPublicSynonymDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new CreateCredentialPublicSynonymRequest(databaseToolsConnectionId, credentialKey, createCredentialPublicSynonymDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .createCredentialPublicSynonymDetails(createCredentialPublicSynonymDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",createCredentialPublicSynonymDetails=") + .append(String.valueOf(this.createCredentialPublicSynonymDetails)); + 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 CreateCredentialPublicSynonymRequest)) { + return false; + } + + CreateCredentialPublicSynonymRequest other = (CreateCredentialPublicSynonymRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals( + this.createCredentialPublicSynonymDetails, + other.createCredentialPublicSynonymDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.createCredentialPublicSynonymDetails == null + ? 43 + : this.createCredentialPublicSynonymDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialRequest.java new file mode 100644 index 00000000000..36610a1cc3f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CreateCredentialRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The payload to create credential. + */ + private com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails + createCredentialDetails; + + /** + * The payload to create credential. + */ + public com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails + getCreateCredentialDetails() { + return createCredentialDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails getBody$() { + return createCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateCredentialRequest, + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The payload to create credential. + */ + private com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails + createCredentialDetails = null; + + /** + * The payload to create credential. + * @param createCredentialDetails the value to set + * @return this builder instance + */ + public Builder createCredentialDetails( + com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails + createCredentialDetails) { + this.createCredentialDetails = createCredentialDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(CreateCredentialRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + createCredentialDetails(o.getCreateCredentialDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateCredentialRequest 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 CreateCredentialRequest + */ + public CreateCredentialRequest build() { + CreateCredentialRequest 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.databasetoolsruntime.model.CreateCredentialDetails body) { + createCredentialDetails(body); + return this; + } + + /** + * Build the instance of CreateCredentialRequest 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 CreateCredentialRequest + */ + public CreateCredentialRequest buildWithoutInvocationCallback() { + CreateCredentialRequest request = new CreateCredentialRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.createCredentialDetails = createCredentialDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new CreateCredentialRequest(databaseToolsConnectionId, createCredentialDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .createCredentialDetails(createCredentialDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",createCredentialDetails=").append(String.valueOf(this.createCredentialDetails)); + 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 CreateCredentialRequest)) { + return false; + } + + CreateCredentialRequest other = (CreateCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals( + this.createCredentialDetails, other.createCredentialDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.createCredentialDetails == null + ? 43 + : this.createCredentialDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java new file mode 100644 index 00000000000..8d2aa0bec5e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * Details for the new Database Tools database API gateway config API spec resource. + */ + private com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + + /** + * Details for the new Database Tools database API gateway config API spec resource. + */ + public com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails() { + return createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + getBody$() { + return createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * Details for the new Database Tools database API gateway config API spec resource. + */ + private com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails = null; + + /** + * Details for the new Database Tools database API gateway config API spec resource. + * @param createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) { + this.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails = + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @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(CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + o.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest build() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + body) { + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + buildWithoutInvocationCallback() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request = + new CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails = + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails=") + .append( + String.valueOf( + this.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails)); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals( + this.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails, + other.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = + (result * PRIME) + + (this.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + == null + ? 43 + : this.createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java new file mode 100644 index 00000000000..5031feb8fa9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java @@ -0,0 +1,390 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * Details for the new Database Tools database API gateway config auto API spec resource. + */ + private com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + + /** + * Details for the new Database Tools database API gateway config auto API spec resource. + */ + public com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails() { + return createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + getBody$() { + return createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * Details for the new Database Tools database API gateway config auto API spec resource. + */ + private com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails = null; + + /** + * Details for the new Database Tools database API gateway config auto API spec resource. + * @param createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) { + this.createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails = + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @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(CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + o.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest build() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + body) { + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + buildWithoutInvocationCallback() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request = + new CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails = + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails=") + .append( + String.valueOf( + this.createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails)); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals( + this.createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails, + other.createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = + (result * PRIME) + + (this.createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + == null + ? 43 + : this + .createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java new file mode 100644 index 00000000000..2a4db1b7502 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * Details for the new Database Tools database API gateway config pool resource. + */ + private com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + + /** + * Details for the new Database Tools database API gateway config pool resource. + */ + public com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails() { + return createDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + getBody$() { + return createDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * Details for the new Database Tools database API gateway config pool resource. + */ + private com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails = null; + + /** + * Details for the new Database Tools database API gateway config pool resource. + * @param createDatabaseToolsDatabaseApiGatewayConfigPoolDetails the value to set + * @return this builder instance + */ + public Builder createDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + com.oracle.bmc.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails) { + this.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails = + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + *

+ * Accepted characters: ASCII alphanumerics plus underscore (U+005F LOW LINE "_") and dash (U+002D HYPHEN-MINUS "-") + * + * @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(CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + o.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest build() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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.databasetoolsruntime.model + .CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + body) { + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails(body); + return this; + } + + /** + * Build the instance of CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + buildWithoutInvocationCallback() { + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request = + new CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails = + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest(databaseToolsDatabaseApiGatewayConfigId, createDatabaseToolsDatabaseApiGatewayConfigPoolDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .createDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + createDatabaseToolsDatabaseApiGatewayConfigPoolDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",createDatabaseToolsDatabaseApiGatewayConfigPoolDetails=") + .append( + String.valueOf( + this.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails)); + 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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals( + this.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails, + other.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = + (result * PRIME) + + (this.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails == null + ? 43 + : this.createDatabaseToolsDatabaseApiGatewayConfigPoolDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialExecuteGranteeRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialExecuteGranteeRequest.java new file mode 100644 index 00000000000..05e48974445 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialExecuteGranteeRequest.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use DeleteCredentialExecuteGranteeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialExecuteGranteeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The name of the user granted the EXECUTE privilege on the credential. + */ + private String executeGranteeKey; + + /** + * The name of the user granted the EXECUTE privilege on the credential. + */ + public String getExecuteGranteeKey() { + return executeGranteeKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCredentialExecuteGranteeRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The name of the user granted the EXECUTE privilege on the credential. + */ + private String executeGranteeKey = null; + + /** + * The name of the user granted the EXECUTE privilege on the credential. + * @param executeGranteeKey the value to set + * @return this builder instance + */ + public Builder executeGranteeKey(String executeGranteeKey) { + this.executeGranteeKey = executeGranteeKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(DeleteCredentialExecuteGranteeRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + executeGranteeKey(o.getExecuteGranteeKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCredentialExecuteGranteeRequest 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 DeleteCredentialExecuteGranteeRequest + */ + public DeleteCredentialExecuteGranteeRequest build() { + DeleteCredentialExecuteGranteeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteCredentialExecuteGranteeRequest 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 DeleteCredentialExecuteGranteeRequest + */ + public DeleteCredentialExecuteGranteeRequest buildWithoutInvocationCallback() { + DeleteCredentialExecuteGranteeRequest request = + new DeleteCredentialExecuteGranteeRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.executeGranteeKey = executeGranteeKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new DeleteCredentialExecuteGranteeRequest(databaseToolsConnectionId, credentialKey, executeGranteeKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .executeGranteeKey(executeGranteeKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",executeGranteeKey=").append(String.valueOf(this.executeGranteeKey)); + 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 DeleteCredentialExecuteGranteeRequest)) { + return false; + } + + DeleteCredentialExecuteGranteeRequest other = (DeleteCredentialExecuteGranteeRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals(this.executeGranteeKey, other.executeGranteeKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.executeGranteeKey == null ? 43 : this.executeGranteeKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialPublicSynonymRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialPublicSynonymRequest.java new file mode 100644 index 00000000000..15d1fdd0d72 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialPublicSynonymRequest.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use DeleteCredentialPublicSynonymRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialPublicSynonymRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The name of the public synonym for the credential + */ + private String publicSynonymKey; + + /** + * The name of the public synonym for the credential + */ + public String getPublicSynonymKey() { + return publicSynonymKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCredentialPublicSynonymRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The name of the public synonym for the credential + */ + private String publicSynonymKey = null; + + /** + * The name of the public synonym for the credential + * @param publicSynonymKey the value to set + * @return this builder instance + */ + public Builder publicSynonymKey(String publicSynonymKey) { + this.publicSynonymKey = publicSynonymKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(DeleteCredentialPublicSynonymRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + publicSynonymKey(o.getPublicSynonymKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCredentialPublicSynonymRequest 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 DeleteCredentialPublicSynonymRequest + */ + public DeleteCredentialPublicSynonymRequest build() { + DeleteCredentialPublicSynonymRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteCredentialPublicSynonymRequest 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 DeleteCredentialPublicSynonymRequest + */ + public DeleteCredentialPublicSynonymRequest buildWithoutInvocationCallback() { + DeleteCredentialPublicSynonymRequest request = + new DeleteCredentialPublicSynonymRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.publicSynonymKey = publicSynonymKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new DeleteCredentialPublicSynonymRequest(databaseToolsConnectionId, credentialKey, publicSynonymKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .publicSynonymKey(publicSynonymKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",publicSynonymKey=").append(String.valueOf(this.publicSynonymKey)); + 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 DeleteCredentialPublicSynonymRequest)) { + return false; + } + + DeleteCredentialPublicSynonymRequest other = (DeleteCredentialPublicSynonymRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals(this.publicSynonymKey, other.publicSynonymKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.publicSynonymKey == null ? 43 : this.publicSynonymKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialRequest.java new file mode 100644 index 00000000000..8caa689c326 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialRequest.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use DeleteCredentialRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCredentialRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(DeleteCredentialRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCredentialRequest 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 DeleteCredentialRequest + */ + public DeleteCredentialRequest build() { + DeleteCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteCredentialRequest 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 DeleteCredentialRequest + */ + public DeleteCredentialRequest buildWithoutInvocationCallback() { + DeleteCredentialRequest request = new DeleteCredentialRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new DeleteCredentialRequest(databaseToolsConnectionId, credentialKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + 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 DeleteCredentialRequest)) { + return false; + } + + DeleteCredentialRequest other = (DeleteCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java new file mode 100644 index 00000000000..d009838c2e9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The key of the API spec config. + */ + private String apiSpecKey; + + /** + * The key of the API spec config. + */ + public String getApiSpecKey() { + return apiSpecKey; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The key of the API spec config. + */ + private String apiSpecKey = null; + + /** + * The key of the API spec config. + * @param apiSpecKey the value to set + * @return this builder instance + */ + public Builder apiSpecKey(String apiSpecKey) { + this.apiSpecKey = apiSpecKey; + return this; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + apiSpecKey(o.getApiSpecKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest build() { + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + buildWithoutInvocationCallback() { + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request = + new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.apiSpecKey = apiSpecKey; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, apiSpecKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .apiSpecKey(apiSpecKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",apiSpecKey=").append(String.valueOf(this.apiSpecKey)); + 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.apiSpecKey, other.apiSpecKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = (result * PRIME) + (this.apiSpecKey == null ? 43 : this.apiSpecKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java new file mode 100644 index 00000000000..e792c4fdeb5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java @@ -0,0 +1,336 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The key of the auto API spec config. + */ + private String autoApiSpecKey; + + /** + * The key of the auto API spec config. + */ + public String getAutoApiSpecKey() { + return autoApiSpecKey; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The key of the auto API spec config. + */ + private String autoApiSpecKey = null; + + /** + * The key of the auto API spec config. + * @param autoApiSpecKey the value to set + * @return this builder instance + */ + public Builder autoApiSpecKey(String autoApiSpecKey) { + this.autoApiSpecKey = autoApiSpecKey; + return this; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + autoApiSpecKey(o.getAutoApiSpecKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest build() { + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + buildWithoutInvocationCallback() { + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request = + new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.autoApiSpecKey = autoApiSpecKey; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, autoApiSpecKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .autoApiSpecKey(autoApiSpecKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",autoApiSpecKey=").append(String.valueOf(this.autoApiSpecKey)); + 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.autoApiSpecKey, other.autoApiSpecKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = + (result * PRIME) + + (this.autoApiSpecKey == null ? 43 : this.autoApiSpecKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java new file mode 100644 index 00000000000..1fc0bba3e00 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest build() { + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest + buildWithoutInvocationCallback() { + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request = + new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + 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 DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ExecuteSqlDatabaseToolsConnectionRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ExecuteSqlDatabaseToolsConnectionRequest.java new file mode 100644 index 00000000000..73305114244 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ExecuteSqlDatabaseToolsConnectionRequest.java @@ -0,0 +1,339 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ExecuteSqlDatabaseToolsConnectionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ExecuteSqlDatabaseToolsConnectionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .ExecuteSqlDatabaseToolsConnectionDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * Script to execute on a DatabaseToolsConnection. + */ + private com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails + executeSqlDatabaseToolsConnectionDetails; + + /** + * Script to execute on a DatabaseToolsConnection. + */ + public com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails + getExecuteSqlDatabaseToolsConnectionDetails() { + return executeSqlDatabaseToolsConnectionDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails + getBody$() { + return executeSqlDatabaseToolsConnectionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ExecuteSqlDatabaseToolsConnectionRequest, + com.oracle.bmc.databasetoolsruntime.model + .ExecuteSqlDatabaseToolsConnectionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * Script to execute on a DatabaseToolsConnection. + */ + private com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails + executeSqlDatabaseToolsConnectionDetails = null; + + /** + * Script to execute on a DatabaseToolsConnection. + * @param executeSqlDatabaseToolsConnectionDetails the value to set + * @return this builder instance + */ + public Builder executeSqlDatabaseToolsConnectionDetails( + com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails + executeSqlDatabaseToolsConnectionDetails) { + this.executeSqlDatabaseToolsConnectionDetails = + executeSqlDatabaseToolsConnectionDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(ExecuteSqlDatabaseToolsConnectionRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + executeSqlDatabaseToolsConnectionDetails( + o.getExecuteSqlDatabaseToolsConnectionDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ExecuteSqlDatabaseToolsConnectionRequest 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 ExecuteSqlDatabaseToolsConnectionRequest + */ + public ExecuteSqlDatabaseToolsConnectionRequest build() { + ExecuteSqlDatabaseToolsConnectionRequest 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.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails + body) { + executeSqlDatabaseToolsConnectionDetails(body); + return this; + } + + /** + * Build the instance of ExecuteSqlDatabaseToolsConnectionRequest 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 ExecuteSqlDatabaseToolsConnectionRequest + */ + public ExecuteSqlDatabaseToolsConnectionRequest buildWithoutInvocationCallback() { + ExecuteSqlDatabaseToolsConnectionRequest request = + new ExecuteSqlDatabaseToolsConnectionRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.executeSqlDatabaseToolsConnectionDetails = + executeSqlDatabaseToolsConnectionDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ExecuteSqlDatabaseToolsConnectionRequest(databaseToolsConnectionId, executeSqlDatabaseToolsConnectionDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .executeSqlDatabaseToolsConnectionDetails(executeSqlDatabaseToolsConnectionDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",executeSqlDatabaseToolsConnectionDetails=") + .append(String.valueOf(this.executeSqlDatabaseToolsConnectionDetails)); + 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 ExecuteSqlDatabaseToolsConnectionRequest)) { + return false; + } + + ExecuteSqlDatabaseToolsConnectionRequest other = + (ExecuteSqlDatabaseToolsConnectionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals( + this.executeSqlDatabaseToolsConnectionDetails, + other.executeSqlDatabaseToolsConnectionDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.executeSqlDatabaseToolsConnectionDetails == null + ? 43 + : this.executeSqlDatabaseToolsConnectionDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialExecuteGranteeRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialExecuteGranteeRequest.java new file mode 100644 index 00000000000..c3dd83dfdfb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialExecuteGranteeRequest.java @@ -0,0 +1,330 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetCredentialExecuteGranteeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialExecuteGranteeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The name of the user granted the EXECUTE privilege on the credential. + */ + private String executeGranteeKey; + + /** + * The name of the user granted the EXECUTE privilege on the credential. + */ + public String getExecuteGranteeKey() { + return executeGranteeKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetCredentialExecuteGranteeRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The name of the user granted the EXECUTE privilege on the credential. + */ + private String executeGranteeKey = null; + + /** + * The name of the user granted the EXECUTE privilege on the credential. + * @param executeGranteeKey the value to set + * @return this builder instance + */ + public Builder executeGranteeKey(String executeGranteeKey) { + this.executeGranteeKey = executeGranteeKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetCredentialExecuteGranteeRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + executeGranteeKey(o.getExecuteGranteeKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCredentialExecuteGranteeRequest 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 GetCredentialExecuteGranteeRequest + */ + public GetCredentialExecuteGranteeRequest build() { + GetCredentialExecuteGranteeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCredentialExecuteGranteeRequest 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 GetCredentialExecuteGranteeRequest + */ + public GetCredentialExecuteGranteeRequest buildWithoutInvocationCallback() { + GetCredentialExecuteGranteeRequest request = new GetCredentialExecuteGranteeRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.executeGranteeKey = executeGranteeKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetCredentialExecuteGranteeRequest(databaseToolsConnectionId, credentialKey, executeGranteeKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .executeGranteeKey(executeGranteeKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",executeGranteeKey=").append(String.valueOf(this.executeGranteeKey)); + 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 GetCredentialExecuteGranteeRequest)) { + return false; + } + + GetCredentialExecuteGranteeRequest other = (GetCredentialExecuteGranteeRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals(this.executeGranteeKey, other.executeGranteeKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.executeGranteeKey == null ? 43 : this.executeGranteeKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialPublicSynonymRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialPublicSynonymRequest.java new file mode 100644 index 00000000000..2d6edef3b3a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialPublicSynonymRequest.java @@ -0,0 +1,330 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetCredentialPublicSynonymRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialPublicSynonymRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The name of the public synonym for the credential + */ + private String publicSynonymKey; + + /** + * The name of the public synonym for the credential + */ + public String getPublicSynonymKey() { + return publicSynonymKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetCredentialPublicSynonymRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The name of the public synonym for the credential + */ + private String publicSynonymKey = null; + + /** + * The name of the public synonym for the credential + * @param publicSynonymKey the value to set + * @return this builder instance + */ + public Builder publicSynonymKey(String publicSynonymKey) { + this.publicSynonymKey = publicSynonymKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetCredentialPublicSynonymRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + publicSynonymKey(o.getPublicSynonymKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCredentialPublicSynonymRequest 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 GetCredentialPublicSynonymRequest + */ + public GetCredentialPublicSynonymRequest build() { + GetCredentialPublicSynonymRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCredentialPublicSynonymRequest 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 GetCredentialPublicSynonymRequest + */ + public GetCredentialPublicSynonymRequest buildWithoutInvocationCallback() { + GetCredentialPublicSynonymRequest request = new GetCredentialPublicSynonymRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.publicSynonymKey = publicSynonymKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetCredentialPublicSynonymRequest(databaseToolsConnectionId, credentialKey, publicSynonymKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .publicSynonymKey(publicSynonymKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",publicSynonymKey=").append(String.valueOf(this.publicSynonymKey)); + 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 GetCredentialPublicSynonymRequest)) { + return false; + } + + GetCredentialPublicSynonymRequest other = (GetCredentialPublicSynonymRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals(this.publicSynonymKey, other.publicSynonymKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.publicSynonymKey == null ? 43 : this.publicSynonymKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialRequest.java new file mode 100644 index 00000000000..fc62e2cc8b5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialRequest.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetCredentialRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetCredentialRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetCredentialRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCredentialRequest 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 GetCredentialRequest + */ + public GetCredentialRequest build() { + GetCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCredentialRequest 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 GetCredentialRequest + */ + public GetCredentialRequest buildWithoutInvocationCallback() { + GetCredentialRequest request = new GetCredentialRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetCredentialRequest(databaseToolsConnectionId, credentialKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + 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 GetCredentialRequest)) { + return false; + } + + GetCredentialRequest other = (GetCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigContentRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigContentRequest.java new file mode 100644 index 00000000000..27fdd04ec63 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigContentRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigContentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + 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; + } + + /** + * Set the invocation callback for the request 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(GetDatabaseToolsDatabaseApiGatewayConfigContentRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + ifNoneMatch(o.getIfNoneMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigContentRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigContentRequest build() { + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigContentRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigContentRequest + buildWithoutInvocationCallback() { + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request = + new GetDatabaseToolsDatabaseApiGatewayConfigContentRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.ifNoneMatch = ifNoneMatch; + return request; + // new GetDatabaseToolsDatabaseApiGatewayConfigContentRequest(databaseToolsDatabaseApiGatewayConfigId, opcRequestId, ifMatch, ifNoneMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .ifNoneMatch(ifNoneMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigContentRequest)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest other = + (GetDatabaseToolsDatabaseApiGatewayConfigContentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.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.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.java new file mode 100644 index 00000000000..e4c85c1337c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the global config. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey globalKey; + + /** + * The key of the global config. + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey + getGlobalKey() { + return globalKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the global config. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey + globalKey = null; + + /** + * The key of the global config. + * @param globalKey the value to set + * @return this builder instance + */ + public Builder globalKey( + com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey + globalKey) { + this.globalKey = globalKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + globalKey(o.getGlobalKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest build() { + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + buildWithoutInvocationCallback() { + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request = + new GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.globalKey = globalKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest(databaseToolsDatabaseApiGatewayConfigId, globalKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .globalKey(globalKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",globalKey=").append(String.valueOf(this.globalKey)); + 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 GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest other = + (GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.globalKey, other.globalKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.globalKey == null ? 43 : this.globalKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java new file mode 100644 index 00000000000..736e7848061 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The key of the API spec config. + */ + private String apiSpecKey; + + /** + * The key of the API spec config. + */ + public String getApiSpecKey() { + return apiSpecKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The key of the API spec config. + */ + private String apiSpecKey = null; + + /** + * The key of the API spec config. + * @param apiSpecKey the value to set + * @return this builder instance + */ + public Builder apiSpecKey(String apiSpecKey) { + this.apiSpecKey = apiSpecKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + apiSpecKey(o.getApiSpecKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest build() { + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + buildWithoutInvocationCallback() { + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request = + new GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.apiSpecKey = apiSpecKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, apiSpecKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .apiSpecKey(apiSpecKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",apiSpecKey=").append(String.valueOf(this.apiSpecKey)); + 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest other = + (GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.apiSpecKey, other.apiSpecKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = (result * PRIME) + (this.apiSpecKey == null ? 43 : this.apiSpecKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java new file mode 100644 index 00000000000..1c79fa168fe --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java @@ -0,0 +1,336 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The key of the auto API spec config. + */ + private String autoApiSpecKey; + + /** + * The key of the auto API spec config. + */ + public String getAutoApiSpecKey() { + return autoApiSpecKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The key of the auto API spec config. + */ + private String autoApiSpecKey = null; + + /** + * The key of the auto API spec config. + * @param autoApiSpecKey the value to set + * @return this builder instance + */ + public Builder autoApiSpecKey(String autoApiSpecKey) { + this.autoApiSpecKey = autoApiSpecKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + autoApiSpecKey(o.getAutoApiSpecKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest build() { + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + buildWithoutInvocationCallback() { + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request = + new GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.autoApiSpecKey = autoApiSpecKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, autoApiSpecKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .autoApiSpecKey(autoApiSpecKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",autoApiSpecKey=").append(String.valueOf(this.autoApiSpecKey)); + 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest other = + (GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.autoApiSpecKey, other.autoApiSpecKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = + (result * PRIME) + + (this.autoApiSpecKey == null ? 43 : this.autoApiSpecKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java new file mode 100644 index 00000000000..35a38570ec4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest build() { + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest + buildWithoutInvocationCallback() { + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request = + new GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + 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 GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest other = + (GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetPropertySetRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetPropertySetRequest.java new file mode 100644 index 00000000000..0dfdc0c718c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetPropertySetRequest.java @@ -0,0 +1,296 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetPropertySetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetPropertySetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the property set + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySetKey propertySetKey; + + /** + * The name of the property set + */ + public com.oracle.bmc.databasetoolsruntime.model.PropertySetKey getPropertySetKey() { + return propertySetKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetPropertySetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the property set + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySetKey propertySetKey = null; + + /** + * The name of the property set + * @param propertySetKey the value to set + * @return this builder instance + */ + public Builder propertySetKey( + com.oracle.bmc.databasetoolsruntime.model.PropertySetKey propertySetKey) { + this.propertySetKey = propertySetKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetPropertySetRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + propertySetKey(o.getPropertySetKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetPropertySetRequest 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 GetPropertySetRequest + */ + public GetPropertySetRequest build() { + GetPropertySetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetPropertySetRequest 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 GetPropertySetRequest + */ + public GetPropertySetRequest buildWithoutInvocationCallback() { + GetPropertySetRequest request = new GetPropertySetRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.propertySetKey = propertySetKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetPropertySetRequest(databaseToolsConnectionId, propertySetKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .propertySetKey(propertySetKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",propertySetKey=").append(String.valueOf(this.propertySetKey)); + 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 GetPropertySetRequest)) { + return false; + } + + GetPropertySetRequest other = (GetPropertySetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.propertySetKey, other.propertySetKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.propertySetKey == null ? 43 : this.propertySetKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetUserCredentialRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetUserCredentialRequest.java new file mode 100644 index 00000000000..d2fd312561e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetUserCredentialRequest.java @@ -0,0 +1,327 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetUserCredentialRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetUserCredentialRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the database user. + */ + private String userKey; + + /** + * The name of the database user. + */ + public String getUserKey() { + return userKey; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetUserCredentialRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the database user. + */ + private String userKey = null; + + /** + * The name of the database user. + * @param userKey the value to set + * @return this builder instance + */ + public Builder userKey(String userKey) { + this.userKey = userKey; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(GetUserCredentialRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + userKey(o.getUserKey()); + credentialKey(o.getCredentialKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetUserCredentialRequest 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 GetUserCredentialRequest + */ + public GetUserCredentialRequest build() { + GetUserCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetUserCredentialRequest 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 GetUserCredentialRequest + */ + public GetUserCredentialRequest buildWithoutInvocationCallback() { + GetUserCredentialRequest request = new GetUserCredentialRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.userKey = userKey; + request.credentialKey = credentialKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetUserCredentialRequest(databaseToolsConnectionId, userKey, credentialKey, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .userKey(userKey) + .credentialKey(credentialKey) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",userKey=").append(String.valueOf(this.userKey)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + 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 GetUserCredentialRequest)) { + return false; + } + + GetUserCredentialRequest other = (GetUserCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.userKey, other.userKey) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.userKey == null ? 43 : this.userKey.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetWorkRequestRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..cacbc3d97d1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetWorkRequestRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the asynchronous request. + */ + private String workRequestId; + + /** + * The ID of the asynchronous request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the asynchronous request. + */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialExecuteGranteesRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialExecuteGranteesRequest.java new file mode 100644 index 00000000000..51c005402a8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialExecuteGranteesRequest.java @@ -0,0 +1,393 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListCredentialExecuteGranteesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialExecuteGranteesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCredentialExecuteGranteesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCredentialExecuteGranteesRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCredentialExecuteGranteesRequest 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 ListCredentialExecuteGranteesRequest + */ + public ListCredentialExecuteGranteesRequest build() { + ListCredentialExecuteGranteesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCredentialExecuteGranteesRequest 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 ListCredentialExecuteGranteesRequest + */ + public ListCredentialExecuteGranteesRequest buildWithoutInvocationCallback() { + ListCredentialExecuteGranteesRequest request = + new ListCredentialExecuteGranteesRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + return request; + // new ListCredentialExecuteGranteesRequest(databaseToolsConnectionId, credentialKey, opcRequestId, ifMatch, limit, page, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .limit(limit) + .page(page) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCredentialExecuteGranteesRequest)) { + return false; + } + + ListCredentialExecuteGranteesRequest other = (ListCredentialExecuteGranteesRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.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.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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialPublicSynonymsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialPublicSynonymsRequest.java new file mode 100644 index 00000000000..093b8f69f87 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialPublicSynonymsRequest.java @@ -0,0 +1,392 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListCredentialPublicSynonymsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialPublicSynonymsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCredentialPublicSynonymsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCredentialPublicSynonymsRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCredentialPublicSynonymsRequest 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 ListCredentialPublicSynonymsRequest + */ + public ListCredentialPublicSynonymsRequest build() { + ListCredentialPublicSynonymsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCredentialPublicSynonymsRequest 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 ListCredentialPublicSynonymsRequest + */ + public ListCredentialPublicSynonymsRequest buildWithoutInvocationCallback() { + ListCredentialPublicSynonymsRequest request = new ListCredentialPublicSynonymsRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + return request; + // new ListCredentialPublicSynonymsRequest(databaseToolsConnectionId, credentialKey, opcRequestId, ifMatch, limit, page, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .limit(limit) + .page(page) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCredentialPublicSynonymsRequest)) { + return false; + } + + ListCredentialPublicSynonymsRequest other = (ListCredentialPublicSynonymsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.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.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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialsRequest.java new file mode 100644 index 00000000000..42a8addfe09 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialsRequest.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListCredentialsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCredentialsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCredentialsRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCredentialsRequest 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 ListCredentialsRequest + */ + public ListCredentialsRequest build() { + ListCredentialsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCredentialsRequest 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 ListCredentialsRequest + */ + public ListCredentialsRequest buildWithoutInvocationCallback() { + ListCredentialsRequest request = new ListCredentialsRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + return request; + // new ListCredentialsRequest(databaseToolsConnectionId, opcRequestId, ifMatch, limit, page, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsConnectionId(databaseToolsConnectionId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .limit(limit) + .page(page) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCredentialsRequest)) { + return false; + } + + ListCredentialsRequest other = (ListCredentialsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.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.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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest.java new file mode 100644 index 00000000000..158fb0c0979 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request 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(ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest o) { + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest build() { + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest + buildWithoutInvocationCallback() { + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request = + new ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest(); + request.opcRequestId = opcRequestId; + return request; + // new ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest(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().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(",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 ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest other = + (ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.java new file mode 100644 index 00000000000..a65d34a9cd1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.java @@ -0,0 +1,442 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The 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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The 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(ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest build() { + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest + buildWithoutInvocationCallback() { + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request = + new ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, displayName, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest other = + (ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.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()); + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.java new file mode 100644 index 00000000000..53c2b1d6ab0 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.java @@ -0,0 +1,443 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The 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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The 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(ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest build() { + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest + buildWithoutInvocationCallback() { + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request = + new ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, displayName, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest other = + (ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.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()); + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.java new file mode 100644 index 00000000000..7dec35e6f69 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.java @@ -0,0 +1,410 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire specified display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The 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< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * A filter to return only resources that match the entire specified display name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire specified display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The 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(ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest build() { + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest 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 ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest + buildWithoutInvocationCallback() { + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request = + new ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest(databaseToolsDatabaseApiGatewayConfigId, displayName, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest other = + (ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.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()); + 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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListUserCredentialsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListUserCredentialsRequest.java new file mode 100644 index 00000000000..1fecd487a4c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListUserCredentialsRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListUserCredentialsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListUserCredentialsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the database user. + */ + private String userKey; + + /** + * The name of the database user. + */ + public String getUserKey() { + return userKey; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListUserCredentialsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the database user. + */ + private String userKey = null; + + /** + * The name of the database user. + * @param userKey the value to set + * @return this builder instance + */ + public Builder userKey(String userKey) { + this.userKey = userKey; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListUserCredentialsRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + userKey(o.getUserKey()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListUserCredentialsRequest 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 ListUserCredentialsRequest + */ + public ListUserCredentialsRequest build() { + ListUserCredentialsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListUserCredentialsRequest 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 ListUserCredentialsRequest + */ + public ListUserCredentialsRequest buildWithoutInvocationCallback() { + ListUserCredentialsRequest request = new ListUserCredentialsRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.userKey = userKey; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + return request; + // new ListUserCredentialsRequest(databaseToolsConnectionId, userKey, opcRequestId, ifMatch, limit, page, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseToolsConnectionId(databaseToolsConnectionId) + .userKey(userKey) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .limit(limit) + .page(page) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",userKey=").append(String.valueOf(this.userKey)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListUserCredentialsRequest)) { + return false; + } + + ListUserCredentialsRequest other = (ListUserCredentialsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.userKey, other.userKey) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = (result * PRIME) + (this.userKey == null ? 43 : this.userKey.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.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()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestErrorsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..4c94e2da699 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,367 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListWorkRequestErrorsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the asynchronous request. + */ + private String workRequestId; + + /** + * The ID of the asynchronous request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the asynchronous request. + */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + page(o.getPage()); + limit(o.getLimit()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.page = page; + request.limit = limit; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, sortOrder, sortBy, page, limit); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy) + .page(page) + .limit(limit); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestLogsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..f372a572d0b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the asynchronous request. + */ + private String workRequestId; + + /** + * The ID of the asynchronous request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the asynchronous request. + */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + page(o.getPage()); + limit(o.getLimit()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.page = page; + request.limit = limit; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, sortOrder, sortBy, page, limit); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy) + .page(page) + .limit(limit); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestsRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..86c0431ef1c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestsRequest.java @@ -0,0 +1,529 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + */ + private String resourceIdentifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + */ + public String getResourceIdentifier() { + return resourceIdentifier; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.databasetoolsruntime.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. If no value is specified timeAccepted is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. If no value is specified timeAccepted is default. + * + **/ + public enum SortBy { + TimeAccepted("timeAccepted"), + TimeUpdated("timeUpdated"), + TimeFinished("timeFinished"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. If no value is specified timeAccepted is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The work request operation type. + */ + private java.util.List operationType; + + /** + * The work request operation type. + */ + public java.util.List + getOperationType() { + return operationType; + } + /** + * A filter to return only work requests initiated by the specified principal OCID. + */ + private String createdByPrincipalId; + + /** + * A filter to return only work requests initiated by the specified principal OCID. + */ + public String getCreatedByPrincipalId() { + return createdByPrincipalId; + } + /** + * A filter to return only work requests with one of the specified status values. + */ + private java.util.List status; + + /** + * A filter to return only work requests with one of the specified status values. + */ + public java.util.List getStatus() { + return status; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + */ + private String resourceIdentifier = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + * @param resourceIdentifier the value to set + * @return this builder instance + */ + public Builder resourceIdentifier(String resourceIdentifier) { + this.resourceIdentifier = resourceIdentifier; + 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 sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.databasetoolsruntime.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.databasetoolsruntime.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. If no value is specified timeAccepted is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. If no value is specified timeAccepted is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The work request operation type. + */ + private java.util.List + operationType = null; + + /** + * The work request operation type. + * @param operationType the value to set + * @return this builder instance + */ + public Builder operationType( + java.util.List + operationType) { + this.operationType = operationType; + return this; + } + + /** + * Singular setter. The work request operation type. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder operationType(OperationType singularValue) { + return this.operationType(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only work requests initiated by the specified principal OCID. + */ + private String createdByPrincipalId = null; + + /** + * A filter to return only work requests initiated by the specified principal OCID. + * @param createdByPrincipalId the value to set + * @return this builder instance + */ + public Builder createdByPrincipalId(String createdByPrincipalId) { + this.createdByPrincipalId = createdByPrincipalId; + return this; + } + + /** + * A filter to return only work requests with one of the specified status values. + */ + private java.util.List status = + null; + + /** + * A filter to return only work requests with one of the specified status values. + * @param status the value to set + * @return this builder instance + */ + public Builder status( + java.util.List status) { + this.status = status; + return this; + } + + /** + * Singular setter. A filter to return only work requests with one of the specified status values. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder status(OperationStatus singularValue) { + return this.status(java.util.Arrays.asList(singularValue)); + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + resourceIdentifier(o.getResourceIdentifier()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + page(o.getPage()); + limit(o.getLimit()); + operationType(o.getOperationType()); + createdByPrincipalId(o.getCreatedByPrincipalId()); + status(o.getStatus()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest build() { + ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.resourceIdentifier = resourceIdentifier; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.page = page; + request.limit = limit; + request.operationType = operationType; + request.createdByPrincipalId = createdByPrincipalId; + request.status = status; + return request; + // new ListWorkRequestsRequest(compartmentId, resourceIdentifier, opcRequestId, sortOrder, sortBy, page, limit, operationType, createdByPrincipalId, status); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .resourceIdentifier(resourceIdentifier) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy) + .page(page) + .limit(limit) + .operationType(operationType) + .createdByPrincipalId(createdByPrincipalId) + .status(status); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",resourceIdentifier=").append(String.valueOf(this.resourceIdentifier)); + 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(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",operationType=").append(String.valueOf(this.operationType)); + sb.append(",createdByPrincipalId=").append(String.valueOf(this.createdByPrincipalId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceIdentifier, other.resourceIdentifier) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.createdByPrincipalId, other.createdByPrincipalId) + && java.util.Objects.equals(this.status, other.status); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceIdentifier == null + ? 43 + : this.resourceIdentifier.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()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = + (result * PRIME) + + (this.createdByPrincipalId == null + ? 43 + : this.createdByPrincipalId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateCredentialRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateCredentialRequest.java new file mode 100644 index 00000000000..7ce6f80fab9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateCredentialRequest.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdateCredentialRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the credential + */ + private String credentialKey; + + /** + * The name of the credential + */ + public String getCredentialKey() { + return credentialKey; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails + updateCredentialDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails + getUpdateCredentialDetails() { + return updateCredentialDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails getBody$() { + return updateCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateCredentialRequest, + com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the credential + */ + private String credentialKey = null; + + /** + * The name of the credential + * @param credentialKey the value to set + * @return this builder instance + */ + public Builder credentialKey(String credentialKey) { + this.credentialKey = credentialKey; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails + updateCredentialDetails = null; + + /** + * The information to be updated. + * @param updateCredentialDetails the value to set + * @return this builder instance + */ + public Builder updateCredentialDetails( + com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails + updateCredentialDetails) { + this.updateCredentialDetails = updateCredentialDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(UpdateCredentialRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + credentialKey(o.getCredentialKey()); + updateCredentialDetails(o.getUpdateCredentialDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCredentialRequest 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 UpdateCredentialRequest + */ + public UpdateCredentialRequest build() { + UpdateCredentialRequest 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.databasetoolsruntime.model.UpdateCredentialDetails body) { + updateCredentialDetails(body); + return this; + } + + /** + * Build the instance of UpdateCredentialRequest 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 UpdateCredentialRequest + */ + public UpdateCredentialRequest buildWithoutInvocationCallback() { + UpdateCredentialRequest request = new UpdateCredentialRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.credentialKey = credentialKey; + request.updateCredentialDetails = updateCredentialDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateCredentialRequest(databaseToolsConnectionId, credentialKey, updateCredentialDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .credentialKey(credentialKey) + .updateCredentialDetails(updateCredentialDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",credentialKey=").append(String.valueOf(this.credentialKey)); + sb.append(",updateCredentialDetails=").append(String.valueOf(this.updateCredentialDetails)); + 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 UpdateCredentialRequest)) { + return false; + } + + UpdateCredentialRequest other = (UpdateCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.credentialKey, other.credentialKey) + && java.util.Objects.equals( + this.updateCredentialDetails, other.updateCredentialDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.credentialKey == null ? 43 : this.credentialKey.hashCode()); + result = + (result * PRIME) + + (this.updateCredentialDetails == null + ? 43 + : this.updateCredentialDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.java new file mode 100644 index 00000000000..a9c73e99b2e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.java @@ -0,0 +1,390 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the global config. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey globalKey; + + /** + * The key of the global config. + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey + getGlobalKey() { + return globalKey; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails() { + return updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + getBody$() { + return updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the global config. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey + globalKey = null; + + /** + * The key of the global config. + * @param globalKey the value to set + * @return this builder instance + */ + public Builder globalKey( + com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey + globalKey) { + this.globalKey = globalKey; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails( + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails) { + this.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails = + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + globalKey(o.getGlobalKey()); + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails( + o.getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest 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.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + body) { + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest + buildWithoutInvocationCallback() { + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request = + new UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.globalKey = globalKey; + request.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails = + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest(databaseToolsDatabaseApiGatewayConfigId, globalKey, updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .globalKey(globalKey) + .updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails( + updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",globalKey=").append(String.valueOf(this.globalKey)); + sb.append(",updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails=") + .append( + String.valueOf( + this.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails)); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.globalKey, other.globalKey) + && java.util.Objects.equals( + this.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails, + other.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.globalKey == null ? 43 : this.globalKey.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails == null + ? 43 + : this.updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java new file mode 100644 index 00000000000..7e42f45de97 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.java @@ -0,0 +1,419 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The key of the API spec config. + */ + private String apiSpecKey; + + /** + * The key of the API spec config. + */ + public String getApiSpecKey() { + return apiSpecKey; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails() { + return updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + getBody$() { + return updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The key of the API spec config. + */ + private String apiSpecKey = null; + + /** + * The key of the API spec config. + * @param apiSpecKey the value to set + * @return this builder instance + */ + public Builder apiSpecKey(String apiSpecKey) { + this.apiSpecKey = apiSpecKey; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) { + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails = + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + apiSpecKey(o.getApiSpecKey()); + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + o.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + body) { + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest + buildWithoutInvocationCallback() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request = + new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.apiSpecKey = apiSpecKey; + request.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails = + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, apiSpecKey, updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .apiSpecKey(apiSpecKey) + .updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails( + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",apiSpecKey=").append(String.valueOf(this.apiSpecKey)); + sb.append(",updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails=") + .append( + String.valueOf( + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails)); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.apiSpecKey, other.apiSpecKey) + && java.util.Objects.equals( + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails, + other.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = (result * PRIME) + (this.apiSpecKey == null ? 43 : this.apiSpecKey.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + == null + ? 43 + : this.updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java new file mode 100644 index 00000000000..481d9de26c5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java @@ -0,0 +1,422 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The key of the auto API spec config. + */ + private String autoApiSpecKey; + + /** + * The key of the auto API spec config. + */ + public String getAutoApiSpecKey() { + return autoApiSpecKey; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails() { + return updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + getBody$() { + return updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The key of the auto API spec config. + */ + private String autoApiSpecKey = null; + + /** + * The key of the auto API spec config. + * @param autoApiSpecKey the value to set + * @return this builder instance + */ + public Builder autoApiSpecKey(String autoApiSpecKey) { + this.autoApiSpecKey = autoApiSpecKey; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) { + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails = + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + autoApiSpecKey(o.getAutoApiSpecKey()); + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + o.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + body) { + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest + buildWithoutInvocationCallback() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request = + new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.autoApiSpecKey = autoApiSpecKey; + request.updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails = + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, autoApiSpecKey, updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .autoApiSpecKey(autoApiSpecKey) + .updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails( + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",autoApiSpecKey=").append(String.valueOf(this.autoApiSpecKey)); + sb.append(",updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails=") + .append( + String.valueOf( + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails)); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals(this.autoApiSpecKey, other.autoApiSpecKey) + && java.util.Objects.equals( + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails, + other.updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = + (result * PRIME) + + (this.autoApiSpecKey == null ? 43 : this.autoApiSpecKey.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + == null + ? 43 + : this + .updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java new file mode 100644 index 00000000000..755e4f14c40 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,386 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + public String getDatabaseToolsDatabaseApiGatewayConfigId() { + return databaseToolsDatabaseApiGatewayConfigId; + } + /** + * The key of the pool config. + */ + private String poolKey; + + /** + * The key of the pool config. + */ + public String getPoolKey() { + return poolKey; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails() { + return updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + getBody$() { + return updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + */ + private String databaseToolsDatabaseApiGatewayConfigId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools database API gateway config. + * @param databaseToolsDatabaseApiGatewayConfigId the value to set + * @return this builder instance + */ + public Builder databaseToolsDatabaseApiGatewayConfigId( + String databaseToolsDatabaseApiGatewayConfigId) { + this.databaseToolsDatabaseApiGatewayConfigId = databaseToolsDatabaseApiGatewayConfigId; + return this; + } + + /** + * The key of the pool config. + */ + private String poolKey = null; + + /** + * The key of the pool config. + * @param poolKey the value to set + * @return this builder instance + */ + public Builder poolKey(String poolKey) { + this.poolKey = poolKey; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails = null; + + /** + * The information to be updated. + * @param updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails the value to set + * @return this builder instance + */ + public Builder updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + com.oracle.bmc.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails) { + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails = + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest o) { + databaseToolsDatabaseApiGatewayConfigId(o.getDatabaseToolsDatabaseApiGatewayConfigId()); + poolKey(o.getPoolKey()); + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + o.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest build() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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.databasetoolsruntime.model + .UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + body) { + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(body); + return this; + } + + /** + * Build the instance of UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest + buildWithoutInvocationCallback() { + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request = + new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest(); + request.databaseToolsDatabaseApiGatewayConfigId = + databaseToolsDatabaseApiGatewayConfigId; + request.poolKey = poolKey; + request.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails = + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest(databaseToolsDatabaseApiGatewayConfigId, poolKey, updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails, 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() + .databaseToolsDatabaseApiGatewayConfigId(databaseToolsDatabaseApiGatewayConfigId) + .poolKey(poolKey) + .updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails( + updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails) + .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(",databaseToolsDatabaseApiGatewayConfigId=") + .append(String.valueOf(this.databaseToolsDatabaseApiGatewayConfigId)); + sb.append(",poolKey=").append(String.valueOf(this.poolKey)); + sb.append(",updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails=") + .append( + String.valueOf( + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails)); + 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 UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigId, + other.databaseToolsDatabaseApiGatewayConfigId) + && java.util.Objects.equals(this.poolKey, other.poolKey) + && java.util.Objects.equals( + this.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails, + other.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails) + && 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.databaseToolsDatabaseApiGatewayConfigId == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigId.hashCode()); + result = (result * PRIME) + (this.poolKey == null ? 43 : this.poolKey.hashCode()); + result = + (result * PRIME) + + (this.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails == null + ? 43 + : this.updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + .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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdatePropertySetRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdatePropertySetRequest.java new file mode 100644 index 00000000000..1c46e976614 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdatePropertySetRequest.java @@ -0,0 +1,364 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdatePropertySetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdatePropertySetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * The name of the property set + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySetKey propertySetKey; + + /** + * The name of the property set + */ + public com.oracle.bmc.databasetoolsruntime.model.PropertySetKey getPropertySetKey() { + return propertySetKey; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails + updatePropertySetDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails + getUpdatePropertySetDetails() { + return updatePropertySetDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails getBody$() { + return updatePropertySetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdatePropertySetRequest, + com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * The name of the property set + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySetKey propertySetKey = null; + + /** + * The name of the property set + * @param propertySetKey the value to set + * @return this builder instance + */ + public Builder propertySetKey( + com.oracle.bmc.databasetoolsruntime.model.PropertySetKey propertySetKey) { + this.propertySetKey = propertySetKey; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails + updatePropertySetDetails = null; + + /** + * The information to be updated. + * @param updatePropertySetDetails the value to set + * @return this builder instance + */ + public Builder updatePropertySetDetails( + com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails + updatePropertySetDetails) { + this.updatePropertySetDetails = updatePropertySetDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(UpdatePropertySetRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + propertySetKey(o.getPropertySetKey()); + updatePropertySetDetails(o.getUpdatePropertySetDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdatePropertySetRequest 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 UpdatePropertySetRequest + */ + public UpdatePropertySetRequest build() { + UpdatePropertySetRequest 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.databasetoolsruntime.model.UpdatePropertySetDetails body) { + updatePropertySetDetails(body); + return this; + } + + /** + * Build the instance of UpdatePropertySetRequest 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 UpdatePropertySetRequest + */ + public UpdatePropertySetRequest buildWithoutInvocationCallback() { + UpdatePropertySetRequest request = new UpdatePropertySetRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.propertySetKey = propertySetKey; + request.updatePropertySetDetails = updatePropertySetDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdatePropertySetRequest(databaseToolsConnectionId, propertySetKey, updatePropertySetDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .propertySetKey(propertySetKey) + .updatePropertySetDetails(updatePropertySetDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",propertySetKey=").append(String.valueOf(this.propertySetKey)); + sb.append(",updatePropertySetDetails=") + .append(String.valueOf(this.updatePropertySetDetails)); + 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 UpdatePropertySetRequest)) { + return false; + } + + UpdatePropertySetRequest other = (UpdatePropertySetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals(this.propertySetKey, other.propertySetKey) + && java.util.Objects.equals( + this.updatePropertySetDetails, other.updatePropertySetDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.propertySetKey == null ? 43 : this.propertySetKey.hashCode()); + result = + (result * PRIME) + + (this.updatePropertySetDetails == null + ? 43 + : this.updatePropertySetDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsConnectionRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsConnectionRequest.java new file mode 100644 index 00000000000..2410704ce3a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsConnectionRequest.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ValidateDatabaseToolsConnectionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ValidateDatabaseToolsConnectionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + public String getDatabaseToolsConnectionId() { + return databaseToolsConnectionId; + } + /** + * Request to validate a DatabaseToolsConnection. + */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails + validateDatabaseToolsConnectionDetails; + + /** + * Request to validate a DatabaseToolsConnection. + */ + public com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails + getValidateDatabaseToolsConnectionDetails() { + return validateDatabaseToolsConnectionDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails + getBody$() { + return validateDatabaseToolsConnectionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateDatabaseToolsConnectionRequest, + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + */ + private String databaseToolsConnectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools connection. + * @param databaseToolsConnectionId the value to set + * @return this builder instance + */ + public Builder databaseToolsConnectionId(String databaseToolsConnectionId) { + this.databaseToolsConnectionId = databaseToolsConnectionId; + return this; + } + + /** + * Request to validate a DatabaseToolsConnection. + */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails + validateDatabaseToolsConnectionDetails = null; + + /** + * Request to validate a DatabaseToolsConnection. + * @param validateDatabaseToolsConnectionDetails the value to set + * @return this builder instance + */ + public Builder validateDatabaseToolsConnectionDetails( + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails + validateDatabaseToolsConnectionDetails) { + this.validateDatabaseToolsConnectionDetails = validateDatabaseToolsConnectionDetails; + 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; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @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(ValidateDatabaseToolsConnectionRequest o) { + databaseToolsConnectionId(o.getDatabaseToolsConnectionId()); + validateDatabaseToolsConnectionDetails(o.getValidateDatabaseToolsConnectionDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateDatabaseToolsConnectionRequest 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 ValidateDatabaseToolsConnectionRequest + */ + public ValidateDatabaseToolsConnectionRequest build() { + ValidateDatabaseToolsConnectionRequest 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.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails + body) { + validateDatabaseToolsConnectionDetails(body); + return this; + } + + /** + * Build the instance of ValidateDatabaseToolsConnectionRequest 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 ValidateDatabaseToolsConnectionRequest + */ + public ValidateDatabaseToolsConnectionRequest buildWithoutInvocationCallback() { + ValidateDatabaseToolsConnectionRequest request = + new ValidateDatabaseToolsConnectionRequest(); + request.databaseToolsConnectionId = databaseToolsConnectionId; + request.validateDatabaseToolsConnectionDetails = validateDatabaseToolsConnectionDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ValidateDatabaseToolsConnectionRequest(databaseToolsConnectionId, validateDatabaseToolsConnectionDetails, 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() + .databaseToolsConnectionId(databaseToolsConnectionId) + .validateDatabaseToolsConnectionDetails(validateDatabaseToolsConnectionDetails) + .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(",databaseToolsConnectionId=") + .append(String.valueOf(this.databaseToolsConnectionId)); + sb.append(",validateDatabaseToolsConnectionDetails=") + .append(String.valueOf(this.validateDatabaseToolsConnectionDetails)); + 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 ValidateDatabaseToolsConnectionRequest)) { + return false; + } + + ValidateDatabaseToolsConnectionRequest other = (ValidateDatabaseToolsConnectionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsConnectionId, other.databaseToolsConnectionId) + && java.util.Objects.equals( + this.validateDatabaseToolsConnectionDetails, + other.validateDatabaseToolsConnectionDetails) + && 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.databaseToolsConnectionId == null + ? 43 + : this.databaseToolsConnectionId.hashCode()); + result = + (result * PRIME) + + (this.validateDatabaseToolsConnectionDetails == null + ? 43 + : this.validateDatabaseToolsConnectionDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsIdentityCredentialRequest.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsIdentityCredentialRequest.java new file mode 100644 index 00000000000..1edfb90a31c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsIdentityCredentialRequest.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ValidateDatabaseToolsIdentityCredentialRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ValidateDatabaseToolsIdentityCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools identity. + */ + private String databaseToolsIdentityId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools identity. + */ + public String getDatabaseToolsIdentityId() { + return databaseToolsIdentityId; + } + /** + * Request to validate a Database Tools identity Credential. + */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialDetails + validateDatabaseToolsIdentityCredentialDetails; + + /** + * Request to validate a Database Tools identity Credential. + */ + public com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialDetails + getValidateDatabaseToolsIdentityCredentialDetails() { + return validateDatabaseToolsIdentityCredentialDetails; + } + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialDetails + getBody$() { + return validateDatabaseToolsIdentityCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateDatabaseToolsIdentityCredentialRequest, + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools identity. + */ + private String databaseToolsIdentityId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Database Tools identity. + * @param databaseToolsIdentityId the value to set + * @return this builder instance + */ + public Builder databaseToolsIdentityId(String databaseToolsIdentityId) { + this.databaseToolsIdentityId = databaseToolsIdentityId; + return this; + } + + /** + * Request to validate a Database Tools identity Credential. + */ + private com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialDetails + validateDatabaseToolsIdentityCredentialDetails = null; + + /** + * Request to validate a Database Tools identity Credential. + * @param validateDatabaseToolsIdentityCredentialDetails the value to set + * @return this builder instance + */ + public Builder validateDatabaseToolsIdentityCredentialDetails( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialDetails + validateDatabaseToolsIdentityCredentialDetails) { + this.validateDatabaseToolsIdentityCredentialDetails = + validateDatabaseToolsIdentityCredentialDetails; + return this; + } + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + */ + private String ifMatch = null; + + /** + * If-Match is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent + * accidental overwrites when multiple user agentss might be acting in parallel on the same + * resource (i.e., to prevent the "lost update" problem). In general, it can be used with any + * method that involves the selection or modification of a representation to abort the request + * if the selected representation's current entity tag is not a member within the If-Match field value. + * When specified on an action-specific subresource, the ETag value of the resource on which the + * action is requested should be provided. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateDatabaseToolsIdentityCredentialRequest o) { + databaseToolsIdentityId(o.getDatabaseToolsIdentityId()); + validateDatabaseToolsIdentityCredentialDetails( + o.getValidateDatabaseToolsIdentityCredentialDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateDatabaseToolsIdentityCredentialRequest 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 ValidateDatabaseToolsIdentityCredentialRequest + */ + public ValidateDatabaseToolsIdentityCredentialRequest build() { + ValidateDatabaseToolsIdentityCredentialRequest 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.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialDetails + body) { + validateDatabaseToolsIdentityCredentialDetails(body); + return this; + } + + /** + * Build the instance of ValidateDatabaseToolsIdentityCredentialRequest 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 ValidateDatabaseToolsIdentityCredentialRequest + */ + public ValidateDatabaseToolsIdentityCredentialRequest buildWithoutInvocationCallback() { + ValidateDatabaseToolsIdentityCredentialRequest request = + new ValidateDatabaseToolsIdentityCredentialRequest(); + request.databaseToolsIdentityId = databaseToolsIdentityId; + request.validateDatabaseToolsIdentityCredentialDetails = + validateDatabaseToolsIdentityCredentialDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ValidateDatabaseToolsIdentityCredentialRequest(databaseToolsIdentityId, validateDatabaseToolsIdentityCredentialDetails, 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() + .databaseToolsIdentityId(databaseToolsIdentityId) + .validateDatabaseToolsIdentityCredentialDetails( + validateDatabaseToolsIdentityCredentialDetails) + .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(",databaseToolsIdentityId=").append(String.valueOf(this.databaseToolsIdentityId)); + sb.append(",validateDatabaseToolsIdentityCredentialDetails=") + .append(String.valueOf(this.validateDatabaseToolsIdentityCredentialDetails)); + 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 ValidateDatabaseToolsIdentityCredentialRequest)) { + return false; + } + + ValidateDatabaseToolsIdentityCredentialRequest other = + (ValidateDatabaseToolsIdentityCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.databaseToolsIdentityId, other.databaseToolsIdentityId) + && java.util.Objects.equals( + this.validateDatabaseToolsIdentityCredentialDetails, + other.validateDatabaseToolsIdentityCredentialDetails) + && 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.databaseToolsIdentityId == null + ? 43 + : this.databaseToolsIdentityId.hashCode()); + result = + (result * PRIME) + + (this.validateDatabaseToolsIdentityCredentialDetails == null + ? 43 + : this.validateDatabaseToolsIdentityCredentialDetails.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-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CancelWorkRequestResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CancelWorkRequestResponse.java new file mode 100644 index 00000000000..2776d2a2dc7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CancelWorkRequestResponse.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CancelWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private CancelWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CancelWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CancelWorkRequestResponse build() { + return new CancelWorkRequestResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestResponse)) { + return false; + } + + CancelWorkRequestResponse other = (CancelWorkRequestResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialExecuteGranteeResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialExecuteGranteeResponse.java new file mode 100644 index 00000000000..5f54016d729 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialExecuteGranteeResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialExecuteGranteeResponse 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned CredentialExecuteGrantee instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned CredentialExecuteGrantee instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + getCredentialExecuteGrantee() { + return credentialExecuteGrantee; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "location", + "credentialExecuteGrantee" + }) + private CreateCredentialExecuteGranteeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String location, + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.location = location; + this.credentialExecuteGrantee = credentialExecuteGrantee; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned CredentialExecuteGrantee instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned CredentialExecuteGrantee instance. + * @param credentialExecuteGrantee the value to set + * @return this builder + */ + public Builder credentialExecuteGrantee( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee) { + this.credentialExecuteGrantee = credentialExecuteGrantee; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCredentialExecuteGranteeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + credentialExecuteGrantee(o.getCredentialExecuteGrantee()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateCredentialExecuteGranteeResponse build() { + return new CreateCredentialExecuteGranteeResponse( + __httpStatusCode__, headers, opcRequestId, location, credentialExecuteGrantee); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",location=").append(String.valueOf(location)); + sb.append(",credentialExecuteGrantee=").append(String.valueOf(credentialExecuteGrantee)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialExecuteGranteeResponse)) { + return false; + } + + CreateCredentialExecuteGranteeResponse other = (CreateCredentialExecuteGranteeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals( + this.credentialExecuteGrantee, other.credentialExecuteGrantee); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.credentialExecuteGrantee == null + ? 43 + : this.credentialExecuteGrantee.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialPublicSynonymResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialPublicSynonymResponse.java new file mode 100644 index 00000000000..9eec9fd9be8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialPublicSynonymResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialPublicSynonymResponse 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned CredentialPublicSynonym instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned CredentialPublicSynonym instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + getCredentialPublicSynonym() { + return credentialPublicSynonym; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "location", + "credentialPublicSynonym" + }) + private CreateCredentialPublicSynonymResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String location, + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.location = location; + this.credentialPublicSynonym = credentialPublicSynonym; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned CredentialPublicSynonym instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned CredentialPublicSynonym instance. + * @param credentialPublicSynonym the value to set + * @return this builder + */ + public Builder credentialPublicSynonym( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym) { + this.credentialPublicSynonym = credentialPublicSynonym; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCredentialPublicSynonymResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + credentialPublicSynonym(o.getCredentialPublicSynonym()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateCredentialPublicSynonymResponse build() { + return new CreateCredentialPublicSynonymResponse( + __httpStatusCode__, headers, opcRequestId, location, credentialPublicSynonym); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",location=").append(String.valueOf(location)); + sb.append(",credentialPublicSynonym=").append(String.valueOf(credentialPublicSynonym)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialPublicSynonymResponse)) { + return false; + } + + CreateCredentialPublicSynonymResponse other = (CreateCredentialPublicSynonymResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals( + this.credentialPublicSynonym, other.credentialPublicSynonym); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.credentialPublicSynonym == null + ? 43 + : this.credentialPublicSynonym.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialResponse.java new file mode 100644 index 00000000000..37342aae48e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialResponse.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateCredentialResponse 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned Credential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned Credential instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.Credential getCredential() { + return credential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "location", + "credential" + }) + private CreateCredentialResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String location, + com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.location = location; + this.credential = credential; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned Credential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned Credential instance. + * @param credential the value to set + * @return this builder + */ + public Builder credential(com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + this.credential = credential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + credential(o.getCredential()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateCredentialResponse build() { + return new CreateCredentialResponse( + __httpStatusCode__, headers, opcRequestId, location, credential); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",location=").append(String.valueOf(location)); + sb.append(",credential=").append(String.valueOf(credential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCredentialResponse)) { + return false; + } + + CreateCredentialResponse other = (CreateCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.credential, other.credential); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.credential == null ? 43 : this.credential.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java new file mode 100644 index 00000000000..cbde27f0dd1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec() { + return databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPoolApiSpec" + }) + private CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolApiSpec the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec) { + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse build() { + return new CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + __httpStatusCode__, + headers, + location, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPoolApiSpec); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsDatabaseApiGatewayConfigPoolApiSpec=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolApiSpec)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec, + other.databaseToolsDatabaseApiGatewayConfigPoolApiSpec); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java new file mode 100644 index 00000000000..df9903b5b2f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java @@ -0,0 +1,274 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec() { + return databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec" + }) + private CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) { + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse build() { + return new CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + __httpStatusCode__, + headers, + location, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec, + other.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java new file mode 100644 index 00000000000..b07a64d8d36 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * 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 DatabaseToolsDatabaseApiGatewayConfigPool instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + getDatabaseToolsDatabaseApiGatewayConfigPool() { + return databaseToolsDatabaseApiGatewayConfigPool; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPool" + }) + private CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPool = databaseToolsDatabaseApiGatewayConfigPool; + } + + 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; + } + + /** + * URI of the new resource which was created by the request. + */ + private String location; + + /** + * URI of the new resource which was created by the request. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 DatabaseToolsDatabaseApiGatewayConfigPool instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + * @param databaseToolsDatabaseApiGatewayConfigPool the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPool( + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool) { + this.databaseToolsDatabaseApiGatewayConfigPool = + databaseToolsDatabaseApiGatewayConfigPool; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPool( + o.getDatabaseToolsDatabaseApiGatewayConfigPool()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse build() { + return new CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + __httpStatusCode__, + headers, + location, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPool); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",databaseToolsDatabaseApiGatewayConfigPool=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPool)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse)) { + return false; + } + + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse other = + (CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseToolsDatabaseApiGatewayConfigPool, + other.databaseToolsDatabaseApiGatewayConfigPool); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.databaseToolsDatabaseApiGatewayConfigPool == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPool.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialExecuteGranteeResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialExecuteGranteeResponse.java new file mode 100644 index 00000000000..3158d5118e3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialExecuteGranteeResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialExecuteGranteeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCredentialExecuteGranteeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCredentialExecuteGranteeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteCredentialExecuteGranteeResponse build() { + return new DeleteCredentialExecuteGranteeResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteCredentialExecuteGranteeResponse)) { + return false; + } + + DeleteCredentialExecuteGranteeResponse other = (DeleteCredentialExecuteGranteeResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialPublicSynonymResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialPublicSynonymResponse.java new file mode 100644 index 00000000000..ea5749c65e9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialPublicSynonymResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialPublicSynonymResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCredentialPublicSynonymResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCredentialPublicSynonymResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteCredentialPublicSynonymResponse build() { + return new DeleteCredentialPublicSynonymResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteCredentialPublicSynonymResponse)) { + return false; + } + + DeleteCredentialPublicSynonymResponse other = (DeleteCredentialPublicSynonymResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialResponse.java new file mode 100644 index 00000000000..99f65b6bb64 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialResponse.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCredentialResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteCredentialResponse build() { + return new DeleteCredentialResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteCredentialResponse)) { + return false; + } + + DeleteCredentialResponse other = (DeleteCredentialResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java new file mode 100644 index 00000000000..1a3cb72ffd1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse build() { + return new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java new file mode 100644 index 00000000000..cdc11eb1fd3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse build() { + return new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java new file mode 100644 index 00000000000..6fcd5bbe22c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse build() { + return new DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse)) { + return false; + } + + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse other = + (DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ExecuteSqlDatabaseToolsConnectionResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ExecuteSqlDatabaseToolsConnectionResponse.java new file mode 100644 index 00000000000..988f5bbcd8c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ExecuteSqlDatabaseToolsConnectionResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ExecuteSqlDatabaseToolsConnectionResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The returned ExecuteSqlResponse instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse executeSqlResponse; + + /** + * The returned ExecuteSqlResponse instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse getExecuteSqlResponse() { + return executeSqlResponse; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "executeSqlResponse" + }) + private ExecuteSqlDatabaseToolsConnectionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse executeSqlResponse) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.executeSqlResponse = executeSqlResponse; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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 ExecuteSqlResponse instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse executeSqlResponse; + + /** + * The returned ExecuteSqlResponse instance. + * @param executeSqlResponse the value to set + * @return this builder + */ + public Builder executeSqlResponse( + com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse executeSqlResponse) { + this.executeSqlResponse = executeSqlResponse; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ExecuteSqlDatabaseToolsConnectionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + executeSqlResponse(o.getExecuteSqlResponse()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ExecuteSqlDatabaseToolsConnectionResponse build() { + return new ExecuteSqlDatabaseToolsConnectionResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + executeSqlResponse); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",executeSqlResponse=").append(String.valueOf(executeSqlResponse)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecuteSqlDatabaseToolsConnectionResponse)) { + return false; + } + + ExecuteSqlDatabaseToolsConnectionResponse other = + (ExecuteSqlDatabaseToolsConnectionResponse) 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.executeSqlResponse, other.executeSqlResponse); + } + + @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.executeSqlResponse == null + ? 43 + : this.executeSqlResponse.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialExecuteGranteeResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialExecuteGranteeResponse.java new file mode 100644 index 00000000000..b54ea4e7d6d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialExecuteGranteeResponse.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialExecuteGranteeResponse 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 CredentialExecuteGrantee instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned CredentialExecuteGrantee instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + getCredentialExecuteGrantee() { + return credentialExecuteGrantee; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "credentialExecuteGrantee" + }) + private GetCredentialExecuteGranteeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credentialExecuteGrantee = credentialExecuteGrantee; + } + + 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 CredentialExecuteGrantee instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned CredentialExecuteGrantee instance. + * @param credentialExecuteGrantee the value to set + * @return this builder + */ + public Builder credentialExecuteGrantee( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee) { + this.credentialExecuteGrantee = credentialExecuteGrantee; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCredentialExecuteGranteeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + credentialExecuteGrantee(o.getCredentialExecuteGrantee()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCredentialExecuteGranteeResponse build() { + return new GetCredentialExecuteGranteeResponse( + __httpStatusCode__, headers, opcRequestId, credentialExecuteGrantee); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",credentialExecuteGrantee=").append(String.valueOf(credentialExecuteGrantee)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCredentialExecuteGranteeResponse)) { + return false; + } + + GetCredentialExecuteGranteeResponse other = (GetCredentialExecuteGranteeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.credentialExecuteGrantee, other.credentialExecuteGrantee); + } + + @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.credentialExecuteGrantee == null + ? 43 + : this.credentialExecuteGrantee.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialPublicSynonymResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialPublicSynonymResponse.java new file mode 100644 index 00000000000..b9df24e7aab --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialPublicSynonymResponse.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialPublicSynonymResponse 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 CredentialPublicSynonym instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned CredentialPublicSynonym instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + getCredentialPublicSynonym() { + return credentialPublicSynonym; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "credentialPublicSynonym" + }) + private GetCredentialPublicSynonymResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credentialPublicSynonym = credentialPublicSynonym; + } + + 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 CredentialPublicSynonym instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned CredentialPublicSynonym instance. + * @param credentialPublicSynonym the value to set + * @return this builder + */ + public Builder credentialPublicSynonym( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym) { + this.credentialPublicSynonym = credentialPublicSynonym; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCredentialPublicSynonymResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + credentialPublicSynonym(o.getCredentialPublicSynonym()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCredentialPublicSynonymResponse build() { + return new GetCredentialPublicSynonymResponse( + __httpStatusCode__, headers, opcRequestId, credentialPublicSynonym); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",credentialPublicSynonym=").append(String.valueOf(credentialPublicSynonym)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCredentialPublicSynonymResponse)) { + return false; + } + + GetCredentialPublicSynonymResponse other = (GetCredentialPublicSynonymResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.credentialPublicSynonym, other.credentialPublicSynonym); + } + + @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.credentialPublicSynonym == null + ? 43 + : this.credentialPublicSynonym.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialResponse.java new file mode 100644 index 00000000000..cb9de71e1cf --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialResponse.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetCredentialResponse 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 Credential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned Credential instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.Credential getCredential() { + return credential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "credential" + }) + private GetCredentialResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credential = credential; + } + + 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 Credential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned Credential instance. + * @param credential the value to set + * @return this builder + */ + public Builder credential(com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + this.credential = credential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + credential(o.getCredential()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCredentialResponse build() { + return new GetCredentialResponse(__httpStatusCode__, headers, opcRequestId, credential); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",credential=").append(String.valueOf(credential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCredentialResponse)) { + return false; + } + + GetCredentialResponse other = (GetCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.credential, other.credential); + } + + @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.credential == null ? 43 : this.credential.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.java new file mode 100644 index 00000000000..aed4cf033bd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "inputStream" + }) + private GetDatabaseToolsDatabaseApiGatewayConfigContentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.inputStream = inputStream; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsDatabaseApiGatewayConfigContentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsDatabaseApiGatewayConfigContentResponse build() { + return new GetDatabaseToolsDatabaseApiGatewayConfigContentResponse( + __httpStatusCode__, headers, etag, opcRequestId, inputStream); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigContentResponse)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse other = + (GetDatabaseToolsDatabaseApiGatewayConfigContentResponse) 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.inputStream, other.inputStream); + } + + @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.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.java new file mode 100644 index 00000000000..476e40aba17 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + getDatabaseToolsDatabaseApiGatewayConfigGlobal() { + return databaseToolsDatabaseApiGatewayConfigGlobal; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigGlobal" + }) + private GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigGlobal = + databaseToolsDatabaseApiGatewayConfigGlobal; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + * @param databaseToolsDatabaseApiGatewayConfigGlobal the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigGlobal( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal) { + this.databaseToolsDatabaseApiGatewayConfigGlobal = + databaseToolsDatabaseApiGatewayConfigGlobal; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigGlobal( + o.getDatabaseToolsDatabaseApiGatewayConfigGlobal()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse build() { + return new GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigGlobal); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigGlobal=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigGlobal)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse other = + (GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse) 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.databaseToolsDatabaseApiGatewayConfigGlobal, + other.databaseToolsDatabaseApiGatewayConfigGlobal); + } + + @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.databaseToolsDatabaseApiGatewayConfigGlobal == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigGlobal.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java new file mode 100644 index 00000000000..957ee84fed3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec() { + return databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPoolApiSpec" + }) + private GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolApiSpec the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec) { + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse build() { + return new GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPoolApiSpec); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolApiSpec=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolApiSpec)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse other = + (GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolApiSpec, + other.databaseToolsDatabaseApiGatewayConfigPoolApiSpec); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolApiSpec == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java new file mode 100644 index 00000000000..917f1fe5871 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec() { + return databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec" + }) + private GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) { + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse build() { + return new GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse other = + (GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec, + other.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java new file mode 100644 index 00000000000..c510927d7e5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + getDatabaseToolsDatabaseApiGatewayConfigPool() { + return databaseToolsDatabaseApiGatewayConfigPool; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPool" + }) + private GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPool = databaseToolsDatabaseApiGatewayConfigPool; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + * @param databaseToolsDatabaseApiGatewayConfigPool the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPool( + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool) { + this.databaseToolsDatabaseApiGatewayConfigPool = + databaseToolsDatabaseApiGatewayConfigPool; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPool( + o.getDatabaseToolsDatabaseApiGatewayConfigPool()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse build() { + return new GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPool); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPool=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPool)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse)) { + return false; + } + + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse other = + (GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse) 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.databaseToolsDatabaseApiGatewayConfigPool, + other.databaseToolsDatabaseApiGatewayConfigPool); + } + + @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.databaseToolsDatabaseApiGatewayConfigPool == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPool.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetPropertySetResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetPropertySetResponse.java new file mode 100644 index 00000000000..09ca8f1c7a6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetPropertySetResponse.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetPropertySetResponse 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 PropertySet instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned PropertySet instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.PropertySet getPropertySet() { + return propertySet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "propertySet" + }) + private GetPropertySetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.propertySet = propertySet; + } + + 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 PropertySet instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned PropertySet instance. + * @param propertySet the value to set + * @return this builder + */ + public Builder propertySet( + com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet) { + this.propertySet = propertySet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetPropertySetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + propertySet(o.getPropertySet()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetPropertySetResponse build() { + return new GetPropertySetResponse( + __httpStatusCode__, headers, opcRequestId, propertySet); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",propertySet=").append(String.valueOf(propertySet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPropertySetResponse)) { + return false; + } + + GetPropertySetResponse other = (GetPropertySetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.propertySet, other.propertySet); + } + + @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.propertySet == null ? 43 : this.propertySet.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetUserCredentialResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetUserCredentialResponse.java new file mode 100644 index 00000000000..a6bad093e60 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetUserCredentialResponse.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetUserCredentialResponse 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 UserCredential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential; + + /** + * The returned UserCredential instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.UserCredential getUserCredential() { + return userCredential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "userCredential" + }) + private GetUserCredentialResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.userCredential = userCredential; + } + + 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 UserCredential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential; + + /** + * The returned UserCredential instance. + * @param userCredential the value to set + * @return this builder + */ + public Builder userCredential( + com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential) { + this.userCredential = userCredential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetUserCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + userCredential(o.getUserCredential()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetUserCredentialResponse build() { + return new GetUserCredentialResponse( + __httpStatusCode__, headers, opcRequestId, userCredential); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",userCredential=").append(String.valueOf(userCredential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetUserCredentialResponse)) { + return false; + } + + GetUserCredentialResponse other = (GetUserCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.userCredential, other.userCredential); + } + + @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.userCredential == null ? 43 : this.userCredential.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetWorkRequestResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..1eca8964c63 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetWorkRequestResponse.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Float retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Float 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; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "retryAfter", + "etag", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + Float retryAfter, + String etag, + com.oracle.bmc.databasetoolsruntime.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.etag = etag; + this.workRequest = workRequest; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Float 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(Float 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; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest( + com.oracle.bmc.databasetoolsruntime.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + etag(o.getEtag()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, opcRequestId, retryAfter, etag, workRequest); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialExecuteGranteesResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialExecuteGranteesResponse.java new file mode 100644 index 00000000000..852bf6b95b3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialExecuteGranteesResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialExecuteGranteesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned CredentialExecuteGranteeCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + credentialExecuteGranteeCollection; + + /** + * The returned CredentialExecuteGranteeCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + getCredentialExecuteGranteeCollection() { + return credentialExecuteGranteeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "credentialExecuteGranteeCollection" + }) + private ListCredentialExecuteGranteesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + credentialExecuteGranteeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.credentialExecuteGranteeCollection = credentialExecuteGranteeCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned CredentialExecuteGranteeCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + credentialExecuteGranteeCollection; + + /** + * The returned CredentialExecuteGranteeCollection instance. + * @param credentialExecuteGranteeCollection the value to set + * @return this builder + */ + public Builder credentialExecuteGranteeCollection( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + credentialExecuteGranteeCollection) { + this.credentialExecuteGranteeCollection = credentialExecuteGranteeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCredentialExecuteGranteesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + credentialExecuteGranteeCollection(o.getCredentialExecuteGranteeCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCredentialExecuteGranteesResponse build() { + return new ListCredentialExecuteGranteesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + credentialExecuteGranteeCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",credentialExecuteGranteeCollection=") + .append(String.valueOf(credentialExecuteGranteeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCredentialExecuteGranteesResponse)) { + return false; + } + + ListCredentialExecuteGranteesResponse other = (ListCredentialExecuteGranteesResponse) 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.credentialExecuteGranteeCollection, + other.credentialExecuteGranteeCollection); + } + + @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.credentialExecuteGranteeCollection == null + ? 43 + : this.credentialExecuteGranteeCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialPublicSynonymsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialPublicSynonymsResponse.java new file mode 100644 index 00000000000..74a2af9a66a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialPublicSynonymsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialPublicSynonymsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned CredentialPublicSynonymCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + credentialPublicSynonymCollection; + + /** + * The returned CredentialPublicSynonymCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + getCredentialPublicSynonymCollection() { + return credentialPublicSynonymCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "credentialPublicSynonymCollection" + }) + private ListCredentialPublicSynonymsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + credentialPublicSynonymCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.credentialPublicSynonymCollection = credentialPublicSynonymCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned CredentialPublicSynonymCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + credentialPublicSynonymCollection; + + /** + * The returned CredentialPublicSynonymCollection instance. + * @param credentialPublicSynonymCollection the value to set + * @return this builder + */ + public Builder credentialPublicSynonymCollection( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + credentialPublicSynonymCollection) { + this.credentialPublicSynonymCollection = credentialPublicSynonymCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCredentialPublicSynonymsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + credentialPublicSynonymCollection(o.getCredentialPublicSynonymCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCredentialPublicSynonymsResponse build() { + return new ListCredentialPublicSynonymsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + credentialPublicSynonymCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",credentialPublicSynonymCollection=") + .append(String.valueOf(credentialPublicSynonymCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCredentialPublicSynonymsResponse)) { + return false; + } + + ListCredentialPublicSynonymsResponse other = (ListCredentialPublicSynonymsResponse) 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.credentialPublicSynonymCollection, + other.credentialPublicSynonymCollection); + } + + @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.credentialPublicSynonymCollection == null + ? 43 + : this.credentialPublicSynonymCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialsResponse.java new file mode 100644 index 00000000000..79d5d39a51c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialsResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListCredentialsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned CredentialCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialCollection credentialCollection; + + /** + * The returned CredentialCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.CredentialCollection + getCredentialCollection() { + return credentialCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "credentialCollection" + }) + private ListCredentialsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.CredentialCollection credentialCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.credentialCollection = credentialCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned CredentialCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialCollection credentialCollection; + + /** + * The returned CredentialCollection instance. + * @param credentialCollection the value to set + * @return this builder + */ + public Builder credentialCollection( + com.oracle.bmc.databasetoolsruntime.model.CredentialCollection + credentialCollection) { + this.credentialCollection = credentialCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCredentialsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + credentialCollection(o.getCredentialCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCredentialsResponse build() { + return new ListCredentialsResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, credentialCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",credentialCollection=").append(String.valueOf(credentialCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCredentialsResponse)) { + return false; + } + + ListCredentialsResponse other = (ListCredentialsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.credentialCollection, other.credentialCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.credentialCollection == null + ? 43 + : this.credentialCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.java new file mode 100644 index 00000000000..328031e0433 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + getDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection() { + return databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection" + }) + private ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection = + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection instance. + * @param databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection) { + this.databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection = + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection( + o.getDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse build() { + return new ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection=") + .append( + String.valueOf( + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse other = + (ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse) 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.databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection, + other.databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection); + } + + @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.databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + == null + ? 43 + : this + .databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.java new file mode 100644 index 00000000000..026848a2276 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection() { + return databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection" + }) + private ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection = + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection) { + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection = + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse build() { + return new ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse other = + (ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection, + other.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.java new file mode 100644 index 00000000000..128c3815c97 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection() { + return databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection" + }) + private ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection) { + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse build() { + return new ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection=") + .append( + String.valueOf( + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse other = + (ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection, + other.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + == null + ? 43 + : this + .databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.java new file mode 100644 index 00000000000..1d84e759f51 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + databaseToolsDatabaseApiGatewayConfigPoolCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + getDatabaseToolsDatabaseApiGatewayConfigPoolCollection() { + return databaseToolsDatabaseApiGatewayConfigPoolCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseToolsDatabaseApiGatewayConfigPoolCollection" + }) + private ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + databaseToolsDatabaseApiGatewayConfigPoolCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseToolsDatabaseApiGatewayConfigPoolCollection = + databaseToolsDatabaseApiGatewayConfigPoolCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + databaseToolsDatabaseApiGatewayConfigPoolCollection; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolCollection instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolCollection the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolCollection( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + databaseToolsDatabaseApiGatewayConfigPoolCollection) { + this.databaseToolsDatabaseApiGatewayConfigPoolCollection = + databaseToolsDatabaseApiGatewayConfigPoolCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseToolsDatabaseApiGatewayConfigPoolCollection( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse build() { + return new ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseToolsDatabaseApiGatewayConfigPoolCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolCollection=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse)) { + return false; + } + + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse other = + (ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolCollection, + other.databaseToolsDatabaseApiGatewayConfigPoolCollection); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolCollection == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolCollection + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListUserCredentialsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListUserCredentialsResponse.java new file mode 100644 index 00000000000..f4d4115d00d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListUserCredentialsResponse.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListUserCredentialsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned UserCredentialCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + userCredentialCollection; + + /** + * The returned UserCredentialCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + getUserCredentialCollection() { + return userCredentialCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "userCredentialCollection" + }) + private ListUserCredentialsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + userCredentialCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.userCredentialCollection = userCredentialCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned UserCredentialCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + userCredentialCollection; + + /** + * The returned UserCredentialCollection instance. + * @param userCredentialCollection the value to set + * @return this builder + */ + public Builder userCredentialCollection( + com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + userCredentialCollection) { + this.userCredentialCollection = userCredentialCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListUserCredentialsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + userCredentialCollection(o.getUserCredentialCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListUserCredentialsResponse build() { + return new ListUserCredentialsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + userCredentialCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",userCredentialCollection=").append(String.valueOf(userCredentialCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListUserCredentialsResponse)) { + return false; + } + + ListUserCredentialsResponse other = (ListUserCredentialsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.userCredentialCollection, other.userCredentialCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.userCredentialCollection == null + ? 43 + : this.userCredentialCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestErrorsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..14017bd8720 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestLogsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..2df3858345d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestsResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..d4a8a5b963e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestsResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned WorkRequestCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection workRequestCollection; + + /** + * The returned WorkRequestCollection instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection + getWorkRequestCollection() { + return workRequestCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection workRequestCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestCollection = workRequestCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned WorkRequestCollection instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection + workRequestCollection; + + /** + * The returned WorkRequestCollection instance. + * @param workRequestCollection the value to set + * @return this builder + */ + public Builder workRequestCollection( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection + workRequestCollection) { + this.workRequestCollection = workRequestCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestCollection(o.getWorkRequestCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, workRequestCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",workRequestCollection=").append(String.valueOf(workRequestCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestCollection, other.workRequestCollection); + } + + @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.workRequestCollection == null + ? 43 + : this.workRequestCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateCredentialResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateCredentialResponse.java new file mode 100644 index 00000000000..960aa871ee0 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateCredentialResponse.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateCredentialResponse 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 Credential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned Credential instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.Credential getCredential() { + return credential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "credential" + }) + private UpdateCredentialResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credential = credential; + } + + 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 Credential instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned Credential instance. + * @param credential the value to set + * @return this builder + */ + public Builder credential(com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + this.credential = credential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + credential(o.getCredential()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateCredentialResponse build() { + return new UpdateCredentialResponse( + __httpStatusCode__, headers, opcRequestId, credential); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",credential=").append(String.valueOf(credential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCredentialResponse)) { + return false; + } + + UpdateCredentialResponse other = (UpdateCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.credential, other.credential); + } + + @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.credential == null ? 43 : this.credential.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.java new file mode 100644 index 00000000000..fdae4514cd9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + getDatabaseToolsDatabaseApiGatewayConfigGlobal() { + return databaseToolsDatabaseApiGatewayConfigGlobal; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigGlobal" + }) + private UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigGlobal = + databaseToolsDatabaseApiGatewayConfigGlobal; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigGlobal instance. + * @param databaseToolsDatabaseApiGatewayConfigGlobal the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigGlobal( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal) { + this.databaseToolsDatabaseApiGatewayConfigGlobal = + databaseToolsDatabaseApiGatewayConfigGlobal; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigGlobal( + o.getDatabaseToolsDatabaseApiGatewayConfigGlobal()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse build() { + return new UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigGlobal); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigGlobal=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigGlobal)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse) 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.databaseToolsDatabaseApiGatewayConfigGlobal, + other.databaseToolsDatabaseApiGatewayConfigGlobal); + } + + @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.databaseToolsDatabaseApiGatewayConfigGlobal == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigGlobal.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java new file mode 100644 index 00000000000..d48f067c25a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec() { + return databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPoolApiSpec" + }) + private UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolApiSpec the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec) { + this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPoolApiSpec( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse build() { + return new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPoolApiSpec); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolApiSpec=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolApiSpec)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolApiSpec, + other.databaseToolsDatabaseApiGatewayConfigPoolApiSpec); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolApiSpec == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolApiSpec.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java new file mode 100644 index 00000000000..d253ffb5245 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec() { + return databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec" + }) + private UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec instance. + * @param databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) { + this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec = + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + o.getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse build() { + return new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse) 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.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec, + other.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec); + } + + @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.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + .hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java new file mode 100644 index 00000000000..28593cc6a52 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + getDatabaseToolsDatabaseApiGatewayConfigPool() { + return databaseToolsDatabaseApiGatewayConfigPool; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "databaseToolsDatabaseApiGatewayConfigPool" + }) + private UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.databaseToolsDatabaseApiGatewayConfigPool = databaseToolsDatabaseApiGatewayConfigPool; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned DatabaseToolsDatabaseApiGatewayConfigPool instance. + * @param databaseToolsDatabaseApiGatewayConfigPool the value to set + * @return this builder + */ + public Builder databaseToolsDatabaseApiGatewayConfigPool( + com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool) { + this.databaseToolsDatabaseApiGatewayConfigPool = + databaseToolsDatabaseApiGatewayConfigPool; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + databaseToolsDatabaseApiGatewayConfigPool( + o.getDatabaseToolsDatabaseApiGatewayConfigPool()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse build() { + return new UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + databaseToolsDatabaseApiGatewayConfigPool); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",databaseToolsDatabaseApiGatewayConfigPool=") + .append(String.valueOf(databaseToolsDatabaseApiGatewayConfigPool)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse)) { + return false; + } + + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse other = + (UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse) 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.databaseToolsDatabaseApiGatewayConfigPool, + other.databaseToolsDatabaseApiGatewayConfigPool); + } + + @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.databaseToolsDatabaseApiGatewayConfigPool == null + ? 43 + : this.databaseToolsDatabaseApiGatewayConfigPool.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdatePropertySetResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdatePropertySetResponse.java new file mode 100644 index 00000000000..379ccaf212d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdatePropertySetResponse.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class UpdatePropertySetResponse 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 PropertySet instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned PropertySet instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.PropertySet getPropertySet() { + return propertySet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "propertySet" + }) + private UpdatePropertySetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.propertySet = propertySet; + } + + 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 PropertySet instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned PropertySet instance. + * @param propertySet the value to set + * @return this builder + */ + public Builder propertySet( + com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet) { + this.propertySet = propertySet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdatePropertySetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + propertySet(o.getPropertySet()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdatePropertySetResponse build() { + return new UpdatePropertySetResponse( + __httpStatusCode__, headers, opcRequestId, propertySet); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",propertySet=").append(String.valueOf(propertySet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertySetResponse)) { + return false; + } + + UpdatePropertySetResponse other = (UpdatePropertySetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.propertySet, other.propertySet); + } + + @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.propertySet == null ? 43 : this.propertySet.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsConnectionResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsConnectionResponse.java new file mode 100644 index 00000000000..d3b0725162c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsConnectionResponse.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ValidateDatabaseToolsConnectionResponse 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 ValidateDatabaseToolsConnectionResult instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult; + + /** + * The returned ValidateDatabaseToolsConnectionResult instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + getValidateDatabaseToolsConnectionResult() { + return validateDatabaseToolsConnectionResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "validateDatabaseToolsConnectionResult" + }) + private ValidateDatabaseToolsConnectionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.validateDatabaseToolsConnectionResult = validateDatabaseToolsConnectionResult; + } + + 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 ValidateDatabaseToolsConnectionResult instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult; + + /** + * The returned ValidateDatabaseToolsConnectionResult instance. + * @param validateDatabaseToolsConnectionResult the value to set + * @return this builder + */ + public Builder validateDatabaseToolsConnectionResult( + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult) { + this.validateDatabaseToolsConnectionResult = validateDatabaseToolsConnectionResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateDatabaseToolsConnectionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + validateDatabaseToolsConnectionResult(o.getValidateDatabaseToolsConnectionResult()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ValidateDatabaseToolsConnectionResponse build() { + return new ValidateDatabaseToolsConnectionResponse( + __httpStatusCode__, + headers, + opcRequestId, + validateDatabaseToolsConnectionResult); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",validateDatabaseToolsConnectionResult=") + .append(String.valueOf(validateDatabaseToolsConnectionResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsConnectionResponse)) { + return false; + } + + ValidateDatabaseToolsConnectionResponse other = (ValidateDatabaseToolsConnectionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.validateDatabaseToolsConnectionResult, + other.validateDatabaseToolsConnectionResult); + } + + @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.validateDatabaseToolsConnectionResult == null + ? 43 + : this.validateDatabaseToolsConnectionResult.hashCode()); + return result; + } +} diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsIdentityCredentialResponse.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsIdentityCredentialResponse.java new file mode 100644 index 00000000000..a6a9b94aa24 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsIdentityCredentialResponse.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class ValidateDatabaseToolsIdentityCredentialResponse + 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 ValidateDatabaseToolsIdentityCredentialResult instance. + */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult; + + /** + * The returned ValidateDatabaseToolsIdentityCredentialResult instance. + * @return the value + */ + public com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialResult + getValidateDatabaseToolsIdentityCredentialResult() { + return validateDatabaseToolsIdentityCredentialResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "validateDatabaseToolsIdentityCredentialResult" + }) + private ValidateDatabaseToolsIdentityCredentialResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.validateDatabaseToolsIdentityCredentialResult = + validateDatabaseToolsIdentityCredentialResult; + } + + 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 ValidateDatabaseToolsIdentityCredentialResult instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult; + + /** + * The returned ValidateDatabaseToolsIdentityCredentialResult instance. + * @param validateDatabaseToolsIdentityCredentialResult the value to set + * @return this builder + */ + public Builder validateDatabaseToolsIdentityCredentialResult( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult) { + this.validateDatabaseToolsIdentityCredentialResult = + validateDatabaseToolsIdentityCredentialResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateDatabaseToolsIdentityCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + validateDatabaseToolsIdentityCredentialResult( + o.getValidateDatabaseToolsIdentityCredentialResult()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ValidateDatabaseToolsIdentityCredentialResponse build() { + return new ValidateDatabaseToolsIdentityCredentialResponse( + __httpStatusCode__, + headers, + opcRequestId, + validateDatabaseToolsIdentityCredentialResult); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",validateDatabaseToolsIdentityCredentialResult=") + .append(String.valueOf(validateDatabaseToolsIdentityCredentialResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDatabaseToolsIdentityCredentialResponse)) { + return false; + } + + ValidateDatabaseToolsIdentityCredentialResponse other = + (ValidateDatabaseToolsIdentityCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.validateDatabaseToolsIdentityCredentialResult, + other.validateDatabaseToolsIdentityCredentialResult); + } + + @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.validateDatabaseToolsIdentityCredentialResult == null + ? 43 + : this.validateDatabaseToolsIdentityCredentialResult.hashCode()); + return result; + } +} diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 7daa3ad3a47..aea3c8f57ff 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-datacatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index d444ad6fda0..32d4c4fbf08 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-dataflow @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index d4c18996e59..dde7420398e 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-dataintegration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java index 0adc7b95600..32f9ebc7219 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java @@ -196,19 +196,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -356,6 +362,48 @@ public ConnectionFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAdwc( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -406,13 +454,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java index e7995f95a80..84419fdf13a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java @@ -187,19 +187,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -341,6 +347,46 @@ public ConnectionFromAdwcDetails( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAdwcDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -391,13 +437,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java index 8c144f4c4cf..100e593ada1 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java @@ -196,19 +196,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -356,6 +362,48 @@ public ConnectionFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAtp( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -406,13 +454,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java index 3ec7bc6255f..a558a948bb2 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java @@ -187,19 +187,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -341,6 +347,46 @@ public ConnectionFromAtpDetails( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAtpDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -391,13 +437,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java index f411bd143d7..6b6be86a1f2 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionFromMySqlHeatWave( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromMySqlHeatWave( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java index ebbb65722d9..72e0599965d 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java @@ -155,19 +155,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -297,6 +303,42 @@ public ConnectionFromMySqlHeatWaveDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromMySqlHeatWaveDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -319,13 +361,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java index 8adf3bce95f..9de6e5b70e6 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionFromOracle( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracle( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java index 89b07ec3883..8ca8fd30174 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java @@ -155,19 +155,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -297,6 +303,42 @@ public ConnectionFromOracleDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -319,13 +361,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java index 3fe58890db5..ffc515b11bc 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionFromOracleEbs( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleEbs( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java index 312f5d06d98..feb863e36ce 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java @@ -155,19 +155,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -297,6 +303,42 @@ public ConnectionFromOracleEbsDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleEbsDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -319,13 +361,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java index 28c8d23aeaf..fd407f196fd 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionFromOraclePeopleSoft( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOraclePeopleSoft( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java index 2a8b09e3078..582960e0eee 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java @@ -155,19 +155,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -297,6 +303,42 @@ public ConnectionFromOraclePeopleSoftDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOraclePeopleSoftDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -319,13 +361,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java index d1f87860bff..a1551887f24 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionFromOracleSiebel( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleSiebel( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java index 654fc82c57d..bdfae0b470d 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java @@ -155,19 +155,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -297,6 +303,42 @@ public ConnectionFromOracleSiebelDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleSiebelDetails( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -319,13 +361,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java index 5a3f2bc4316..fe3733bc97b 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java @@ -196,19 +196,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -356,6 +362,48 @@ public ConnectionSummaryFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromAdwc( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -406,13 +454,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java index 496032958a4..155f4c04550 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java @@ -196,19 +196,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -356,6 +362,48 @@ public ConnectionSummaryFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromAtp( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -406,13 +454,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java index 6a3f7d1692d..99087e9c823 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionSummaryFromMySqlHeatWave( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromMySqlHeatWave( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java index f4fbf4ce6ed..82f6894c530 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionSummaryFromOracle( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOracle( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java index efb0ab3a6a1..e1621948bc6 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionSummaryFromOracleEbs( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOracleEbs( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java index 49a69392cf8..7d5ff04a17c 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionSummaryFromOraclePeopleSoft( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOraclePeopleSoft( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java index aa57a1fe6d5..5d808ceb187 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java @@ -164,19 +164,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -312,6 +318,44 @@ public ConnectionSummaryFromOracleSiebel( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOracleSiebel( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -334,13 +378,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java index a71f1c95d5c..9bd86a20513 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java @@ -160,19 +160,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -296,6 +302,40 @@ public CreateConnectionFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromAdwc( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -346,13 +386,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java index 1f1fb51a9b1..4787d77e125 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java @@ -160,19 +160,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -296,6 +302,40 @@ public CreateConnectionFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromAtp( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -346,13 +386,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java index 746e272a913..b9329865ec5 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromJdbc( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromJdbc( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java index 9971a02841f..7728ea8bf5a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromMySQL( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromMySQL( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java index 929f224f00f..0d077a5c97f 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromMySqlHeatWave( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromMySqlHeatWave( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java index 4c88b1aad64..a8c44c682de 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromOracle( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOracle( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java index 99eb9bffef9..f5d96dd1075 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromOracleEbs( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOracleEbs( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java index 41aa40682e6..4367664cd9a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromOraclePeopleSoft( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOraclePeopleSoft( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java index e09b86e3733..10134cd8b5e 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java @@ -128,19 +128,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -252,6 +258,36 @@ public CreateConnectionFromOracleSiebel( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOracleSiebel( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -274,13 +310,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java index 2effabbb051..74fa2d87d0f 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java @@ -169,19 +169,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -311,6 +317,42 @@ public UpdateConnectionFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromAdwc( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -361,13 +403,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java index 539696ecefb..96ee341cc06 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java @@ -169,19 +169,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -311,6 +317,42 @@ public UpdateConnectionFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromAtp( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String tnsAlias, + java.util.List tnsNames, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -361,13 +403,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java index a97af5df1ec..ee75e9273da 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromJdbc( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromJdbc( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java index 6ba36685805..4751de2d831 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromMySQL( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromMySQL( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java index 7807bfaffd0..d13166fbff2 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromMySqlHeatWave( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromMySqlHeatWave( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java index 585d1eb2bbe..7785216c0a1 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromOracle( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOracle( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java index 44ea40ea843..e9ee0ae47f3 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromOracleEbs( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOracleEbs( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java index 4ba487f2c2d..6f57e894b99 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromOraclePeopleSoft( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOraclePeopleSoft( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java index 161b4ee7da3..83931e791f3 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java @@ -137,19 +137,25 @@ public Builder username(String username) { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -267,6 +273,38 @@ public UpdateConnectionFromOracleSiebel( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOracleSiebel( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String username, + char[] password, + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -289,13 +327,25 @@ public String getUsername() { * The password for the connection. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the connection. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the connection. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index c07e79af70a..2f46a113b89 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 82ca8400035..ce430b3a733 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index c7031ef4cdf..4def69937df 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-datasafe @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java index dfe5ea973b4..96ef8db1332 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java @@ -19,8 +19,16 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class Credentials extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"userName", "password"}) public Credentials(String userName, String password) { + super(); + this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"userName", "password"}) + public Credentials(String userName, char[] password) { super(); this.userName = userName; this.password = password; @@ -48,19 +56,25 @@ public Builder userName(String userName) { * The password of the database user. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password of the database user. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -113,13 +127,25 @@ public String getUserName() { * The password of the database user. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password of the database user. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password of the database user. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java index 6feea942933..8dac3a39fbf 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java @@ -18,6 +18,45 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MaskDataDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class MaskDataDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public MaskDataDetails( + String targetId, + Boolean isDecrypt, + Boolean isRerun, + ReRunFromStep reRunFromStep, + String tablespace, + Boolean isIgnoreErrorsEnabled, + String seed, + String userDefinedFunctionSeed, + Boolean isMoveInterimTablesEnabled, + Boolean isExecuteSavedScriptEnabled, + Boolean isDropTempTablesEnabled, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + String recompile, + Credentials targetCredentials) { + super(); + this.targetId = targetId; + this.isDecrypt = isDecrypt; + this.isRerun = isRerun; + this.reRunFromStep = reRunFromStep; + this.tablespace = tablespace; + this.isIgnoreErrorsEnabled = isIgnoreErrorsEnabled; + this.seed = seed != null ? seed.toCharArray() : null; + this.userDefinedFunctionSeed = + userDefinedFunctionSeed != null ? userDefinedFunctionSeed.toCharArray() : null; + this.isMoveInterimTablesEnabled = isMoveInterimTablesEnabled; + this.isExecuteSavedScriptEnabled = isExecuteSavedScriptEnabled; + this.isDropTempTablesEnabled = isDropTempTablesEnabled; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.targetCredentials = targetCredentials; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "targetId", @@ -44,8 +83,8 @@ public MaskDataDetails( ReRunFromStep reRunFromStep, String tablespace, Boolean isIgnoreErrorsEnabled, - String seed, - String userDefinedFunctionSeed, + char[] seed, + char[] userDefinedFunctionSeed, Boolean isMoveInterimTablesEnabled, Boolean isExecuteSavedScriptEnabled, Boolean isDropTempTablesEnabled, @@ -213,34 +252,49 @@ public Builder isIgnoreErrorsEnabled(Boolean isIgnoreErrorsEnabled) { * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution masking formats. **/ @com.fasterxml.jackson.annotation.JsonProperty("seed") - private String seed; + private char[] seed; /** * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution masking formats. * @param seed the value to set * @return this builder **/ - public Builder seed(String seed) { + public Builder seed(char[] seed) { this.seed = seed; this.__explicitlySet__.add("seed"); return this; } + + public Builder seed(String seed) { + this.seed = seed != null ? seed.toCharArray() : null; + this.__explicitlySet__.add("seed"); + return this; + } + /** * The seed value to be used in case of User Defined Function masking format. This is an optional parameter and needs to be passed only if any User Defined Function uses seed. **/ @com.fasterxml.jackson.annotation.JsonProperty("userDefinedFunctionSeed") - private String userDefinedFunctionSeed; + private char[] userDefinedFunctionSeed; /** * The seed value to be used in case of User Defined Function masking format. This is an optional parameter and needs to be passed only if any User Defined Function uses seed. * @param userDefinedFunctionSeed the value to set * @return this builder **/ - public Builder userDefinedFunctionSeed(String userDefinedFunctionSeed) { + public Builder userDefinedFunctionSeed(char[] userDefinedFunctionSeed) { this.userDefinedFunctionSeed = userDefinedFunctionSeed; this.__explicitlySet__.add("userDefinedFunctionSeed"); return this; } + + public Builder userDefinedFunctionSeed(String userDefinedFunctionSeed) { + this.userDefinedFunctionSeed = + userDefinedFunctionSeed != null ? userDefinedFunctionSeed.toCharArray() : null; + this.__explicitlySet__.add("userDefinedFunctionSeed"); + return this; + } + /** * Indicates if the interim DMASK tables should be moved to the user-specified tablespace. As interim tables can be large in size, * set it to false if moving them causes performance overhead during masking. @@ -679,13 +733,25 @@ public Boolean getIsIgnoreErrorsEnabled() { * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution masking formats. **/ @com.fasterxml.jackson.annotation.JsonProperty("seed") - private final String seed; + private final char[] seed; + + /** + * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution masking formats. + * return the value + * @Deprecated - Use getSeed__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSeed() { + return seed != null ? new String(seed) : null; + } /** * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution masking formats. * @return the value **/ - public String getSeed() { + @com.fasterxml.jackson.annotation.JsonProperty("seed") + public char[] getSeed__AsCharArray() { return seed; } @@ -693,13 +759,25 @@ public String getSeed() { * The seed value to be used in case of User Defined Function masking format. This is an optional parameter and needs to be passed only if any User Defined Function uses seed. **/ @com.fasterxml.jackson.annotation.JsonProperty("userDefinedFunctionSeed") - private final String userDefinedFunctionSeed; + private final char[] userDefinedFunctionSeed; + + /** + * The seed value to be used in case of User Defined Function masking format. This is an optional parameter and needs to be passed only if any User Defined Function uses seed. + * return the value + * @Deprecated - Use getUserDefinedFunctionSeed__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getUserDefinedFunctionSeed() { + return userDefinedFunctionSeed != null ? new String(userDefinedFunctionSeed) : null; + } /** * The seed value to be used in case of User Defined Function masking format. This is an optional parameter and needs to be passed only if any User Defined Function uses seed. * @return the value **/ - public String getUserDefinedFunctionSeed() { + @com.fasterxml.jackson.annotation.JsonProperty("userDefinedFunctionSeed") + public char[] getUserDefinedFunctionSeed__AsCharArray() { return userDefinedFunctionSeed; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java index 77417b78dd3..5224644a6ec 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java @@ -18,6 +18,22 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TlsConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class TlsConfig extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public TlsConfig( + Status status, + CertificateStoreType certificateStoreType, + String storePassword, + String trustStoreContent, + String keyStoreContent) { + super(); + this.status = status; + this.certificateStoreType = certificateStoreType; + this.storePassword = storePassword != null ? storePassword.toCharArray() : null; + this.trustStoreContent = trustStoreContent; + this.keyStoreContent = keyStoreContent; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "status", @@ -29,7 +45,7 @@ public final class TlsConfig extends com.oracle.bmc.http.internal.ExplicitlySetB public TlsConfig( Status status, CertificateStoreType certificateStoreType, - String storePassword, + char[] storePassword, String trustStoreContent, String keyStoreContent) { super(); @@ -78,18 +94,25 @@ public Builder certificateStoreType(CertificateStoreType certificateStoreType) { * The password to read the trust store and key store files, if they are password protected. **/ @com.fasterxml.jackson.annotation.JsonProperty("storePassword") - private String storePassword; + private char[] storePassword; /** * The password to read the trust store and key store files, if they are password protected. * @param storePassword the value to set * @return this builder **/ - public Builder storePassword(String storePassword) { + public Builder storePassword(char[] storePassword) { this.storePassword = storePassword; this.__explicitlySet__.add("storePassword"); return this; } + + public Builder storePassword(String storePassword) { + this.storePassword = storePassword != null ? storePassword.toCharArray() : null; + this.__explicitlySet__.add("storePassword"); + return this; + } + /** * Base64 encoded string of trust store file content. **/ @@ -298,13 +321,25 @@ public CertificateStoreType getCertificateStoreType() { * The password to read the trust store and key store files, if they are password protected. **/ @com.fasterxml.jackson.annotation.JsonProperty("storePassword") - private final String storePassword; + private final char[] storePassword; + + /** + * The password to read the trust store and key store files, if they are password protected. + * return the value + * @Deprecated - Use getStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getStorePassword() { + return storePassword != null ? new String(storePassword) : null; + } /** * The password to read the trust store and key store files, if they are password protected. * @return the value **/ - public String getStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("storePassword") + public char[] getStorePassword__AsCharArray() { return storePassword; } diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 615e4db6871..6d947e4789f 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-datascience @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScience.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScience.java index 0c0ae1c9096..974b990f056 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScience.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScience.java @@ -156,6 +156,19 @@ public interface DataScience extends AutoCloseable { */ CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); + /** + * Moves a compute target into a different compartment. When provided, If-Match is checked against ETag values of the 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 ChangeComputeTargetCompartment API. + */ + ChangeComputeTargetCompartmentResponse changeComputeTargetCompartment( + ChangeComputeTargetCompartmentRequest request); + /** * Moves a private endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource. * @@ -376,6 +389,18 @@ ChangeProjectCompartmentResponse changeProjectCompartment( ChangeScheduleCompartmentResponse changeScheduleCompartment( ChangeScheduleCompartmentRequest request); + /** + * Creates a new compute target 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 CreateComputeTarget API. + */ + CreateComputeTargetResponse createComputeTarget(CreateComputeTargetRequest request); + /** * Creates a Data Science private endpoint to be used by a Data Science resource. * @@ -890,6 +915,18 @@ DeactivateNotebookSessionResponse deactivateNotebookSession( */ DeactivateScheduleResponse deactivateSchedule(DeactivateScheduleRequest request); + /** + * Deletes the specified compute target. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteComputeTarget API. + */ + DeleteComputeTargetResponse deleteComputeTarget(DeleteComputeTargetRequest request); + /** * Deletes a private endpoint using `privateEndpointId`. * @@ -1151,6 +1188,18 @@ EnableMlApplicationInstanceViewTriggerResponse enableMlApplicationInstanceViewTr */ ExportModelArtifactResponse exportModelArtifact(ExportModelArtifactRequest request); + /** + * Retrieves the compute target for the specified `computeTargetId`. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetComputeTarget API. + */ + GetComputeTargetResponse getComputeTarget(GetComputeTargetRequest request); + /** * Retrieves an private endpoint using a `privateEndpointId`. * @@ -1585,6 +1634,31 @@ HeadModelDefinedMetadatumArtifactResponse headModelDefinedMetadatumArtifact( */ ImportModelArtifactResponse importModelArtifact(ImportModelArtifactRequest request); + /** + * Lists the valid compute target shapes. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListComputeTargetShapes API. + */ + ListComputeTargetShapesResponse listComputeTargetShapes(ListComputeTargetShapesRequest request); + + /** + * List all compute targets in the specified compartment. Supports queries on various other parameters in the query alongside compartmentId (must be included). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListComputeTargets API. + */ + ListComputeTargetsResponse listComputeTargets(ListComputeTargetsRequest request); + /** * List containers. * @param request The request object containing the details to send @@ -2045,6 +2119,18 @@ TriggerMlApplicationInstanceFlowResponse triggerMlApplicationInstanceFlow( TriggerMlApplicationInstanceViewFlowResponse triggerMlApplicationInstanceViewFlow( TriggerMlApplicationInstanceViewFlowRequest request); + /** + * Updates the compute target. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateComputeTarget API. + */ + UpdateComputeTargetResponse updateComputeTarget(UpdateComputeTargetRequest request); + /** * Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match * a previously defined private endpoint, then a 409 status code is returned. This indicates diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsync.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsync.java index b6949c05a12..2cce5a1653c 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsync.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsync.java @@ -184,6 +184,24 @@ java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestRequest, CancelWorkRequestResponse> handler); + /** + * Moves a compute target into a different compartment. When provided, If-Match is checked against ETag values of the 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 + changeComputeTargetCompartment( + ChangeComputeTargetCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeComputeTargetCompartmentRequest, + ChangeComputeTargetCompartmentResponse> + handler); + /** * Moves a private endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource. * @@ -476,6 +494,22 @@ java.util.concurrent.Future changeScheduleCom ChangeScheduleCompartmentRequest, ChangeScheduleCompartmentResponse> handler); + /** + * Creates a new compute target 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 createComputeTarget( + CreateComputeTargetRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateComputeTargetRequest, CreateComputeTargetResponse> + handler); + /** * Creates a Data Science private endpoint to be used by a Data Science resource. * @@ -931,6 +965,22 @@ java.util.concurrent.Future deactivateSchedule( DeactivateScheduleRequest, DeactivateScheduleResponse> handler); + /** + * Deletes the specified compute target. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteComputeTarget( + DeleteComputeTargetRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteComputeTargetRequest, DeleteComputeTargetResponse> + handler); + /** * Deletes a private endpoint using `privateEndpointId`. * @@ -1273,6 +1323,21 @@ java.util.concurrent.Future exportModelArtifact( ExportModelArtifactRequest, ExportModelArtifactResponse> handler); + /** + * Retrieves the compute target for the specified `computeTargetId`. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getComputeTarget( + GetComputeTargetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Retrieves an private endpoint using a `privateEndpointId`. * @@ -1836,6 +1901,39 @@ java.util.concurrent.Future importModelArtifact( ImportModelArtifactRequest, ImportModelArtifactResponse> handler); + /** + * Lists the valid compute target shapes. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listComputeTargetShapes( + ListComputeTargetShapesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse> + handler); + + /** + * List all compute targets in the specified compartment. Supports queries on various other parameters in the query alongside compartmentId (must be included). + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listComputeTargets( + ListComputeTargetsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetsRequest, ListComputeTargetsResponse> + handler); + /** * List containers. * @@ -2397,6 +2495,22 @@ java.util.concurrent.Future restoreArchive TriggerMlApplicationInstanceViewFlowResponse> handler); + /** + * Updates the compute target. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateComputeTarget( + UpdateComputeTargetRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateComputeTargetRequest, UpdateComputeTargetResponse> + handler); + /** * Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match * a previously defined private endpoint, then a 409 status code is returned. This indicates diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java index 78d58d2f0b1..ea9612c35a7 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java @@ -845,6 +845,64 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeComputeTargetCompartment( + ChangeComputeTargetCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeComputeTargetCompartmentRequest, + ChangeComputeTargetCompartmentResponse> + handler) { + LOG.trace("Called async changeComputeTargetCompartment"); + final ChangeComputeTargetCompartmentRequest interceptedRequest = + ChangeComputeTargetCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeComputeTargetCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "ChangeComputeTargetCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/ChangeComputeTargetCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeComputeTargetCompartmentResponse> + transformer = + ChangeComputeTargetCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeComputeTargetCompartmentRequest, + ChangeComputeTargetCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeComputeTargetCompartmentRequest, + ChangeComputeTargetCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeComputeTargetCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeComputeTargetCompartmentRequest, ChangeComputeTargetCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeDataSciencePrivateEndpointCompartment( @@ -1827,6 +1885,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createComputeTarget( + CreateComputeTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateComputeTargetRequest, CreateComputeTargetResponse> + handler) { + LOG.trace("Called async createComputeTarget"); + final CreateComputeTargetRequest interceptedRequest = + CreateComputeTargetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateComputeTargetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "CreateComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/CreateComputeTarget"); + final java.util.function.Function + transformer = + CreateComputeTargetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateComputeTargetRequest, CreateComputeTargetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateComputeTargetRequest, CreateComputeTargetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateComputeTargetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateComputeTargetRequest, CreateComputeTargetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createDataSciencePrivateEndpoint( @@ -3391,6 +3502,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteComputeTarget( + DeleteComputeTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteComputeTargetRequest, DeleteComputeTargetResponse> + handler) { + LOG.trace("Called async deleteComputeTarget"); + final DeleteComputeTargetRequest interceptedRequest = + DeleteComputeTargetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteComputeTargetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "DeleteComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/DeleteComputeTarget"); + final java.util.function.Function + transformer = + DeleteComputeTargetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteComputeTargetRequest, DeleteComputeTargetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteComputeTargetRequest, DeleteComputeTargetResponse>, + 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< + DeleteComputeTargetRequest, DeleteComputeTargetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteDataSciencePrivateEndpoint( @@ -4427,6 +4585,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getComputeTarget( + GetComputeTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetComputeTargetRequest, GetComputeTargetResponse> + handler) { + LOG.trace("Called async getComputeTarget"); + final GetComputeTargetRequest interceptedRequest = + GetComputeTargetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetComputeTargetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "GetComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/GetComputeTarget"); + final java.util.function.Function + transformer = + GetComputeTargetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetComputeTargetRequest, GetComputeTargetResponse>, + 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< + GetComputeTargetRequest, GetComputeTargetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getDataSciencePrivateEndpoint( @@ -6107,6 +6311,100 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listComputeTargetShapes( + ListComputeTargetShapesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse> + handler) { + LOG.trace("Called async listComputeTargetShapes"); + final ListComputeTargetShapesRequest interceptedRequest = + ListComputeTargetShapesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListComputeTargetShapesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "ListComputeTargetShapes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTargetShapeSummary/ListComputeTargetShapes"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListComputeTargetShapesResponse> + transformer = + ListComputeTargetShapesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse>, + 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< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listComputeTargets( + ListComputeTargetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetsRequest, ListComputeTargetsResponse> + handler) { + LOG.trace("Called async listComputeTargets"); + final ListComputeTargetsRequest interceptedRequest = + ListComputeTargetsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListComputeTargetsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "ListComputeTargets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTargetSummary/ListComputeTargets"); + final java.util.function.Function + transformer = + ListComputeTargetsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListComputeTargetsRequest, ListComputeTargetsResponse>, + 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< + ListComputeTargetsRequest, ListComputeTargetsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listContainers( ListContainersRequest request, @@ -7786,6 +8084,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateComputeTarget( + UpdateComputeTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateComputeTargetRequest, UpdateComputeTargetResponse> + handler) { + LOG.trace("Called async updateComputeTarget"); + final UpdateComputeTargetRequest interceptedRequest = + UpdateComputeTargetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateComputeTargetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataScience", + "UpdateComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/UpdateComputeTarget"); + final java.util.function.Function + transformer = + UpdateComputeTargetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateComputeTargetRequest, UpdateComputeTargetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateComputeTargetRequest, UpdateComputeTargetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateComputeTargetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateComputeTargetRequest, UpdateComputeTargetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateDataSciencePrivateEndpoint( diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java index 70beba36f69..d5136633a4b 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java @@ -868,6 +868,51 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ }); } + @Override + public ChangeComputeTargetCompartmentResponse changeComputeTargetCompartment( + ChangeComputeTargetCompartmentRequest request) { + LOG.trace("Called changeComputeTargetCompartment"); + final ChangeComputeTargetCompartmentRequest interceptedRequest = + ChangeComputeTargetCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeComputeTargetCompartmentConverter.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( + "DataScience", + "ChangeComputeTargetCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/ChangeComputeTargetCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeComputeTargetCompartmentResponse> + transformer = + ChangeComputeTargetCompartmentConverter.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 + .getChangeComputeTargetCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeDataSciencePrivateEndpointCompartmentResponse changeDataSciencePrivateEndpointCompartment( @@ -1629,6 +1674,48 @@ public ChangeScheduleCompartmentResponse changeScheduleCompartment( }); } + @Override + public CreateComputeTargetResponse createComputeTarget(CreateComputeTargetRequest request) { + LOG.trace("Called createComputeTarget"); + final CreateComputeTargetRequest interceptedRequest = + CreateComputeTargetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateComputeTargetConverter.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( + "DataScience", + "CreateComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/CreateComputeTarget"); + java.util.function.Function + transformer = + CreateComputeTargetConverter.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.getCreateComputeTargetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateDataSciencePrivateEndpointResponse createDataSciencePrivateEndpoint( CreateDataSciencePrivateEndpointRequest request) { @@ -3003,6 +3090,44 @@ public DeactivateScheduleResponse deactivateSchedule(DeactivateScheduleRequest r }); } + @Override + public DeleteComputeTargetResponse deleteComputeTarget(DeleteComputeTargetRequest request) { + LOG.trace("Called deleteComputeTarget"); + final DeleteComputeTargetRequest interceptedRequest = + DeleteComputeTargetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteComputeTargetConverter.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( + "DataScience", + "DeleteComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/DeleteComputeTarget"); + java.util.function.Function + transformer = + DeleteComputeTargetConverter.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 DeleteDataSciencePrivateEndpointResponse deleteDataSciencePrivateEndpoint( DeleteDataSciencePrivateEndpointRequest request) { @@ -3823,6 +3948,43 @@ public ExportModelArtifactResponse exportModelArtifact(ExportModelArtifactReques }); } + @Override + public GetComputeTargetResponse getComputeTarget(GetComputeTargetRequest request) { + LOG.trace("Called getComputeTarget"); + final GetComputeTargetRequest interceptedRequest = + GetComputeTargetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetComputeTargetConverter.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( + "DataScience", + "GetComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/GetComputeTarget"); + java.util.function.Function + transformer = + GetComputeTargetConverter.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 GetDataSciencePrivateEndpointResponse getDataSciencePrivateEndpoint( GetDataSciencePrivateEndpointRequest request) { @@ -5141,6 +5303,81 @@ public ImportModelArtifactResponse importModelArtifact(ImportModelArtifactReques }); } + @Override + public ListComputeTargetShapesResponse listComputeTargetShapes( + ListComputeTargetShapesRequest request) { + LOG.trace("Called listComputeTargetShapes"); + final ListComputeTargetShapesRequest interceptedRequest = + ListComputeTargetShapesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListComputeTargetShapesConverter.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( + "DataScience", + "ListComputeTargetShapes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTargetShapeSummary/ListComputeTargetShapes"); + java.util.function.Function + transformer = + ListComputeTargetShapesConverter.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 ListComputeTargetsResponse listComputeTargets(ListComputeTargetsRequest request) { + LOG.trace("Called listComputeTargets"); + final ListComputeTargetsRequest interceptedRequest = + ListComputeTargetsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListComputeTargetsConverter.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( + "DataScience", + "ListComputeTargets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTargetSummary/ListComputeTargets"); + java.util.function.Function + transformer = + ListComputeTargetsConverter.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 ListContainersResponse listContainers(ListContainersRequest request) { LOG.trace("Called listContainers"); @@ -6469,6 +6706,47 @@ public TriggerMlApplicationInstanceViewFlowResponse triggerMlApplicationInstance }); } + @Override + public UpdateComputeTargetResponse updateComputeTarget(UpdateComputeTargetRequest request) { + LOG.trace("Called updateComputeTarget"); + final UpdateComputeTargetRequest interceptedRequest = + UpdateComputeTargetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateComputeTargetConverter.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( + "DataScience", + "UpdateComputeTarget", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/UpdateComputeTarget"); + java.util.function.Function + transformer = + UpdateComputeTargetConverter.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.getUpdateComputeTargetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateDataSciencePrivateEndpointResponse updateDataSciencePrivateEndpoint( UpdateDataSciencePrivateEndpointRequest request) { diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataSciencePaginators.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataSciencePaginators.java index 409f098f439..6f2f2a5de4c 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataSciencePaginators.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataSciencePaginators.java @@ -33,6 +33,237 @@ public DataSciencePaginators(DataScience client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the listComputeTargetShapes 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 listComputeTargetShapesResponseIterator( + final ListComputeTargetShapesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListComputeTargetShapesRequest.Builder, ListComputeTargetShapesRequest, + ListComputeTargetShapesResponse>( + new java.util.function.Supplier() { + @Override + public ListComputeTargetShapesRequest.Builder get() { + return ListComputeTargetShapesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListComputeTargetShapesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetShapesRequest.Builder>, + ListComputeTargetShapesRequest>() { + @Override + public ListComputeTargetShapesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetShapesRequest.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< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse>() { + @Override + public ListComputeTargetShapesResponse apply( + ListComputeTargetShapesRequest request) { + return client.listComputeTargetShapes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datascience.model.ComputeTargetShapeSummary} objects + * contained in responses from the listComputeTargetShapes 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.datascience.model.ComputeTargetShapeSummary} objects + * contained in responses received from the service. + */ + public Iterable + listComputeTargetShapesRecordIterator(final ListComputeTargetShapesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListComputeTargetShapesRequest.Builder, ListComputeTargetShapesRequest, + ListComputeTargetShapesResponse, + com.oracle.bmc.datascience.model.ComputeTargetShapeSummary>( + new java.util.function.Supplier() { + @Override + public ListComputeTargetShapesRequest.Builder get() { + return ListComputeTargetShapesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListComputeTargetShapesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetShapesRequest.Builder>, + ListComputeTargetShapesRequest>() { + @Override + public ListComputeTargetShapesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetShapesRequest.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< + ListComputeTargetShapesRequest, ListComputeTargetShapesResponse>() { + @Override + public ListComputeTargetShapesResponse apply( + ListComputeTargetShapesRequest request) { + return client.listComputeTargetShapes(request); + } + }, + new java.util.function.Function< + ListComputeTargetShapesResponse, + java.util.List< + com.oracle.bmc.datascience.model.ComputeTargetShapeSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datascience.model.ComputeTargetShapeSummary> + apply(ListComputeTargetShapesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listComputeTargets 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 listComputeTargetsResponseIterator( + final ListComputeTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListComputeTargetsRequest.Builder, ListComputeTargetsRequest, + ListComputeTargetsResponse>( + new java.util.function.Supplier() { + @Override + public ListComputeTargetsRequest.Builder get() { + return ListComputeTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListComputeTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetsRequest.Builder>, + ListComputeTargetsRequest>() { + @Override + public ListComputeTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetsRequest.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< + ListComputeTargetsRequest, ListComputeTargetsResponse>() { + @Override + public ListComputeTargetsResponse apply(ListComputeTargetsRequest request) { + return client.listComputeTargets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datascience.model.ComputeTargetSummary} objects + * contained in responses from the listComputeTargets 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.datascience.model.ComputeTargetSummary} objects + * contained in responses received from the service. + */ + public Iterable + listComputeTargetsRecordIterator(final ListComputeTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListComputeTargetsRequest.Builder, ListComputeTargetsRequest, + ListComputeTargetsResponse, com.oracle.bmc.datascience.model.ComputeTargetSummary>( + new java.util.function.Supplier() { + @Override + public ListComputeTargetsRequest.Builder get() { + return ListComputeTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListComputeTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetsRequest.Builder>, + ListComputeTargetsRequest>() { + @Override + public ListComputeTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListComputeTargetsRequest.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< + ListComputeTargetsRequest, ListComputeTargetsResponse>() { + @Override + public ListComputeTargetsResponse apply(ListComputeTargetsRequest request) { + return client.listComputeTargets(request); + } + }, + new java.util.function.Function< + ListComputeTargetsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListComputeTargetsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listContainers operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceWaiters.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceWaiters.java index 5f46c7c0ffa..05a881d0229 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceWaiters.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceWaiters.java @@ -24,6 +24,110 @@ public DataScienceWaiters( this.client = client; } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forComputeTarget( + GetComputeTargetRequest request, + com.oracle.bmc.datascience.model.ComputeTargetLifecycleState... 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 forComputeTarget( + 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 + forComputeTarget( + GetComputeTargetRequest request, + com.oracle.bmc.datascience.model.ComputeTargetLifecycleState 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 forComputeTarget( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forComputeTarget( + GetComputeTargetRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datascience.model.ComputeTargetLifecycleState... 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 forComputeTarget( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ComputeTarget. + private com.oracle.bmc.waiter.Waiter + forComputeTarget( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetComputeTargetRequest request, + final com.oracle.bmc.datascience.model.ComputeTargetLifecycleState... + 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< + GetComputeTargetRequest, GetComputeTargetResponse>() { + @Override + public GetComputeTargetResponse apply(GetComputeTargetRequest request) { + return client.getComputeTarget(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetComputeTargetResponse response) { + return targetStatesSet.contains( + response.getComputeTarget().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datascience.model.ComputeTargetLifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ChangeComputeTargetCompartmentConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ChangeComputeTargetCompartmentConverter.java new file mode 100644 index 00000000000..f754cd9fbc3 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ChangeComputeTargetCompartmentConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ChangeComputeTargetCompartmentConverter { + 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(ChangeComputeTargetCompartmentConverter.class); + + public static com.oracle.bmc.datascience.requests.ChangeComputeTargetCompartmentRequest + interceptRequest( + com.oracle.bmc.datascience.requests.ChangeComputeTargetCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.ChangeComputeTargetCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getComputeTargetId(), "computeTargetId must not be blank"); + Validate.notNull( + request.getChangeComputeTargetCompartmentDetails(), + "changeComputeTargetCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190101") + .path("computeTargets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getComputeTargetId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ChangeComputeTargetCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ChangeComputeTargetCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ChangeComputeTargetCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses + .ChangeComputeTargetCompartmentResponse>() { + @Override + public com.oracle.bmc.datascience.responses + .ChangeComputeTargetCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.ChangeComputeTargetCompartmentResponse"); + 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.datascience.responses + .ChangeComputeTargetCompartmentResponse.Builder + builder = + com.oracle.bmc.datascience.responses + .ChangeComputeTargetCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datascience.responses + .ChangeComputeTargetCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/CreateComputeTargetConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/CreateComputeTargetConverter.java new file mode 100644 index 00000000000..713b2cbf66a --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/CreateComputeTargetConverter.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class CreateComputeTargetConverter { + 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(CreateComputeTargetConverter.class); + + public static com.oracle.bmc.datascience.requests.CreateComputeTargetRequest interceptRequest( + com.oracle.bmc.datascience.requests.CreateComputeTargetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.CreateComputeTargetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateComputeTargetDetails(), "createComputeTargetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190101").path("computeTargets"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.CreateComputeTargetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.CreateComputeTargetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.CreateComputeTargetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses + .CreateComputeTargetResponse>() { + @Override + public com.oracle.bmc.datascience.responses.CreateComputeTargetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.CreateComputeTargetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datascience.model + .ComputeTarget>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datascience.model.ComputeTarget + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datascience.model.ComputeTarget + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datascience.model.ComputeTarget> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datascience.responses.CreateComputeTargetResponse + .Builder + builder = + com.oracle.bmc.datascience.responses + .CreateComputeTargetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.computeTarget(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> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> 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.datascience.responses.CreateComputeTargetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/DeleteComputeTargetConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/DeleteComputeTargetConverter.java new file mode 100644 index 00000000000..83998824ff0 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/DeleteComputeTargetConverter.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class DeleteComputeTargetConverter { + 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(DeleteComputeTargetConverter.class); + + public static com.oracle.bmc.datascience.requests.DeleteComputeTargetRequest interceptRequest( + com.oracle.bmc.datascience.requests.DeleteComputeTargetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.DeleteComputeTargetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getComputeTargetId(), "computeTargetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190101") + .path("computeTargets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getComputeTargetId())); + + 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.datascience.responses.DeleteComputeTargetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.DeleteComputeTargetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.DeleteComputeTargetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses + .DeleteComputeTargetResponse>() { + @Override + public com.oracle.bmc.datascience.responses.DeleteComputeTargetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.DeleteComputeTargetResponse"); + 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.datascience.responses.DeleteComputeTargetResponse + .Builder + builder = + com.oracle.bmc.datascience.responses + .DeleteComputeTargetResponse.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.datascience.responses.DeleteComputeTargetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/GetComputeTargetConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/GetComputeTargetConverter.java new file mode 100644 index 00000000000..85a063623c4 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/GetComputeTargetConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class GetComputeTargetConverter { + 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(GetComputeTargetConverter.class); + + public static com.oracle.bmc.datascience.requests.GetComputeTargetRequest interceptRequest( + com.oracle.bmc.datascience.requests.GetComputeTargetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.GetComputeTargetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getComputeTargetId(), "computeTargetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190101") + .path("computeTargets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getComputeTargetId())); + + 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.datascience.responses.GetComputeTargetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.GetComputeTargetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.GetComputeTargetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.GetComputeTargetResponse>() { + @Override + public com.oracle.bmc.datascience.responses.GetComputeTargetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.GetComputeTargetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datascience.model + .ComputeTarget>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datascience.model.ComputeTarget + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datascience.model.ComputeTarget + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datascience.model.ComputeTarget> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datascience.responses.GetComputeTargetResponse + .Builder + builder = + com.oracle.bmc.datascience.responses + .GetComputeTargetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.computeTarget(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datascience.responses.GetComputeTargetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ListComputeTargetShapesConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ListComputeTargetShapesConverter.java new file mode 100644 index 00000000000..6aa52771660 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ListComputeTargetShapesConverter.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ListComputeTargetShapesConverter { + 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(ListComputeTargetShapesConverter.class); + + public static com.oracle.bmc.datascience.requests.ListComputeTargetShapesRequest + interceptRequest( + com.oracle.bmc.datascience.requests.ListComputeTargetShapesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.ListComputeTargetShapesRequest 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("/20190101").path("computeTargetShapes"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + 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.datascience.responses.ListComputeTargetShapesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ListComputeTargetShapesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ListComputeTargetShapesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses + .ListComputeTargetShapesResponse>() { + @Override + public com.oracle.bmc.datascience.responses + .ListComputeTargetShapesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.ListComputeTargetShapesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetShapeSummary>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetShapeSummary>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetShapeSummary>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetShapeSummary>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datascience.responses.ListComputeTargetShapesResponse + .Builder + builder = + com.oracle.bmc.datascience.responses + .ListComputeTargetShapesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datascience.responses.ListComputeTargetShapesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ListComputeTargetsConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ListComputeTargetsConverter.java new file mode 100644 index 00000000000..d88785fa95c --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/ListComputeTargetsConverter.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ListComputeTargetsConverter { + 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(ListComputeTargetsConverter.class); + + public static com.oracle.bmc.datascience.requests.ListComputeTargetsRequest interceptRequest( + com.oracle.bmc.datascience.requests.ListComputeTargetsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.ListComputeTargetsRequest 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("/20190101").path("computeTargets"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getId() != null) { + target = + target.queryParam( + "id", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getId())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ListComputeTargetsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ListComputeTargetsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ListComputeTargetsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.ListComputeTargetsResponse>() { + @Override + public com.oracle.bmc.datascience.responses.ListComputeTargetsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.ListComputeTargetsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetSummary>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetSummary>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetSummary>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.datascience.model + .ComputeTargetSummary>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datascience.responses.ListComputeTargetsResponse + .Builder + builder = + com.oracle.bmc.datascience.responses + .ListComputeTargetsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datascience.responses.ListComputeTargetsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/UpdateComputeTargetConverter.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/UpdateComputeTargetConverter.java new file mode 100644 index 00000000000..be080e7f62c --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/internal/http/UpdateComputeTargetConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datascience.model.*; +import com.oracle.bmc.datascience.requests.*; +import com.oracle.bmc.datascience.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class UpdateComputeTargetConverter { + 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(UpdateComputeTargetConverter.class); + + public static com.oracle.bmc.datascience.requests.UpdateComputeTargetRequest interceptRequest( + com.oracle.bmc.datascience.requests.UpdateComputeTargetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datascience.requests.UpdateComputeTargetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getComputeTargetId(), "computeTargetId must not be blank"); + Validate.notNull( + request.getUpdateComputeTargetDetails(), "updateComputeTargetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190101") + .path("computeTargets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getComputeTargetId())); + + 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.datascience.responses.UpdateComputeTargetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.UpdateComputeTargetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses.UpdateComputeTargetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datascience.responses + .UpdateComputeTargetResponse>() { + @Override + public com.oracle.bmc.datascience.responses.UpdateComputeTargetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datascience.responses.UpdateComputeTargetResponse"); + 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.datascience.responses.UpdateComputeTargetResponse + .Builder + builder = + com.oracle.bmc.datascience.responses + .UpdateComputeTargetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datascience.responses.UpdateComputeTargetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AuthConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AuthConfiguration.java index d87e91a067e..c752c2da673 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AuthConfiguration.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AuthConfiguration.java @@ -22,14 +22,6 @@ defaultImpl = AuthConfiguration.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = IdcsAuthConfiguration.class, - name = "IDCS" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = IdcsCustomServiceAuthConfiguration.class, - name = "IDCS_CUSTOM_SERVICE" - ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = IamAuthConfiguration.class, name = "IAM" @@ -86,9 +78,7 @@ public int hashCode() { * Type of AuthN/Z **/ public enum Type { - Idcs("IDCS"), Iam("IAM"), - IdcsCustomService("IDCS_CUSTOM_SERVICE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AutoScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AutoScalingPolicy.java index 6d870f59903..2d56c768d44 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AutoScalingPolicy.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/AutoScalingPolicy.java @@ -30,7 +30,7 @@ public final class AutoScalingPolicy extends ScalingPolicy { public static class Builder { /** * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. - * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which * is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation. * **/ @@ -39,7 +39,7 @@ public static class Builder { /** * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. - * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which * is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation. * * @param coolDownInSeconds the value to set @@ -138,7 +138,7 @@ public AutoScalingPolicy( /** * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. - * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which * is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation. * **/ @@ -147,7 +147,7 @@ public AutoScalingPolicy( /** * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. - * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which * is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation. * * @return the value diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ChangeComputeTargetCompartmentDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ChangeComputeTargetCompartmentDetails.java new file mode 100644 index 00000000000..a284a657690 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ChangeComputeTargetCompartmentDetails.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for changing the compartment of a compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeComputeTargetCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeComputeTargetCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeComputeTargetCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the resource should be moved. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the resource should be moved. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeComputeTargetCompartmentDetails build() { + ChangeComputeTargetCompartmentDetails model = + new ChangeComputeTargetCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeComputeTargetCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the resource should be moved. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the resource should be moved. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeComputeTargetCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeComputeTargetCompartmentDetails)) { + return false; + } + + ChangeComputeTargetCompartmentDetails other = (ChangeComputeTargetCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeConfigurationDetails.java new file mode 100644 index 00000000000..c47898a2960 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeConfigurationDetails.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Configuration details of the targeted compute. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "computeType", + defaultImpl = ComputeConfigurationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterComputeConfigurationDetails.class, + name = "MANAGED_COMPUTE_CLUSTER" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ComputeConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ComputeConfigurationDetails() { + 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("ComputeConfigurationDetails("); + 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 ComputeConfigurationDetails)) { + return false; + } + + ComputeConfigurationDetails other = (ComputeConfigurationDetails) 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-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTarget.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTarget.java new file mode 100644 index 00000000000..018de2723a1 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTarget.java @@ -0,0 +1,674 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * A compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ComputeTarget.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeTarget extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "timeCreated", + "metadata", + "createdBy", + "compartmentId", + "displayName", + "description", + "computeConfigurationDetails", + "computeTargetSystemData", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags" + }) + public ComputeTarget( + String id, + java.util.Date timeCreated, + java.util.Map metadata, + String createdBy, + String compartmentId, + String displayName, + String description, + ComputeConfigurationDetails computeConfigurationDetails, + ComputeTargetSystemData computeTargetSystemData, + ComputeTargetLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.timeCreated = timeCreated; + this.metadata = metadata; + this.createdBy = createdBy; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.computeConfigurationDetails = computeConfigurationDetails; + this.computeTargetSystemData = computeTargetSystemData; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + * @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; + } + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private String createdBy; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + * @param createdBy the value to set + * @return this builder + **/ + public Builder createdBy(String createdBy) { + this.createdBy = createdBy; + this.__explicitlySet__.add("createdBy"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + * @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 display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly display name for the resource. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the compute target. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeConfigurationDetails") + private ComputeConfigurationDetails computeConfigurationDetails; + + public Builder computeConfigurationDetails( + ComputeConfigurationDetails computeConfigurationDetails) { + this.computeConfigurationDetails = computeConfigurationDetails; + this.__explicitlySet__.add("computeConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetSystemData") + private ComputeTargetSystemData computeTargetSystemData; + + public Builder computeTargetSystemData(ComputeTargetSystemData computeTargetSystemData) { + this.computeTargetSystemData = computeTargetSystemData; + this.__explicitlySet__.add("computeTargetSystemData"); + return this; + } + /** + * The state of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ComputeTargetLifecycleState lifecycleState; + + /** + * The state of the compute target. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(ComputeTargetLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Details about the state of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Details about the state of the compute target. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeTarget build() { + ComputeTarget model = + new ComputeTarget( + this.id, + this.timeCreated, + this.metadata, + this.createdBy, + this.compartmentId, + this.displayName, + this.description, + this.computeConfigurationDetails, + this.computeTargetSystemData, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeTarget model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("createdBy")) { + this.createdBy(model.getCreatedBy()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("computeConfigurationDetails")) { + this.computeConfigurationDetails(model.getComputeConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("computeTargetSystemData")) { + this.computeTargetSystemData(model.getComputeTargetSystemData()); + } + 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()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private final String createdBy; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + * @return the value + **/ + public String getCreatedBy() { + return createdBy; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly display name for the resource. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the compute target. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeConfigurationDetails") + private final ComputeConfigurationDetails computeConfigurationDetails; + + public ComputeConfigurationDetails getComputeConfigurationDetails() { + return computeConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetSystemData") + private final ComputeTargetSystemData computeTargetSystemData; + + public ComputeTargetSystemData getComputeTargetSystemData() { + return computeTargetSystemData; + } + + /** + * The state of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ComputeTargetLifecycleState lifecycleState; + + /** + * The state of the compute target. + * @return the value + **/ + public ComputeTargetLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Details about the state of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Details about the state of the compute target. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeTarget("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", createdBy=").append(String.valueOf(this.createdBy)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", computeConfigurationDetails=") + .append(String.valueOf(this.computeConfigurationDetails)); + sb.append(", computeTargetSystemData=") + .append(String.valueOf(this.computeTargetSystemData)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeTarget)) { + return false; + } + + ComputeTarget other = (ComputeTarget) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.createdBy, other.createdBy) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.computeConfigurationDetails, other.computeConfigurationDetails) + && java.util.Objects.equals( + this.computeTargetSystemData, other.computeTargetSystemData) + && 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) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.createdBy == null ? 43 : this.createdBy.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.computeConfigurationDetails == null + ? 43 + : this.computeConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.computeTargetSystemData == null + ? 43 + : this.computeTargetSystemData.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetLifecycleState.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetLifecycleState.java new file mode 100644 index 00000000000..09c040e5a01 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetLifecycleState.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The status of a compute target. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public enum ComputeTargetLifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Updating("UPDATING"), + 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(ComputeTargetLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeTargetLifecycleState v : ComputeTargetLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeTargetLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeTargetLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeTargetLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetShapeSeries.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetShapeSeries.java new file mode 100644 index 00000000000..977cae82809 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetShapeSeries.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The family that the compute target shape belongs to. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public enum ComputeTargetShapeSeries { + AmdRome("AMD_ROME"), + IntelSkylake("INTEL_SKYLAKE"), + NvidiaGpu("NVIDIA_GPU"), + Generic("GENERIC"), + Legacy("LEGACY"), + Arm("ARM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ComputeTargetShapeSeries.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeTargetShapeSeries v : ComputeTargetShapeSeries.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeTargetShapeSeries(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeTargetShapeSeries create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeTargetShapeSeries', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetShapeSummary.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetShapeSummary.java new file mode 100644 index 00000000000..0612db44f32 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetShapeSummary.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The compute shape used to launch a compute target. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeTargetShapeSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeTargetShapeSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "coreCount", "memoryInGBs", "shapeSeries"}) + public ComputeTargetShapeSummary( + String name, + Integer coreCount, + Integer memoryInGBs, + ComputeTargetShapeSeries shapeSeries) { + super(); + this.name = name; + this.coreCount = coreCount; + this.memoryInGBs = memoryInGBs; + this.shapeSeries = shapeSeries; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the compute target shape. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the compute target shape. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The number of cores associated with this compute target shape. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coreCount") + private Integer coreCount; + + /** + * The number of cores associated with this compute target shape. + * + * @param coreCount the value to set + * @return this builder + **/ + public Builder coreCount(Integer coreCount) { + this.coreCount = coreCount; + this.__explicitlySet__.add("coreCount"); + return this; + } + /** + * The amount of memory in GBs associated with this compute target shape. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Integer memoryInGBs; + + /** + * The amount of memory in GBs associated with this compute target shape. + * + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Integer memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + /** + * The family that the compute shape belongs to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeSeries") + private ComputeTargetShapeSeries shapeSeries; + + /** + * The family that the compute shape belongs to. + * + * @param shapeSeries the value to set + * @return this builder + **/ + public Builder shapeSeries(ComputeTargetShapeSeries shapeSeries) { + this.shapeSeries = shapeSeries; + this.__explicitlySet__.add("shapeSeries"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeTargetShapeSummary build() { + ComputeTargetShapeSummary model = + new ComputeTargetShapeSummary( + this.name, this.coreCount, this.memoryInGBs, this.shapeSeries); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeTargetShapeSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("coreCount")) { + this.coreCount(model.getCoreCount()); + } + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("shapeSeries")) { + this.shapeSeries(model.getShapeSeries()); + } + 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 compute target shape. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the compute target shape. + * + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The number of cores associated with this compute target shape. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coreCount") + private final Integer coreCount; + + /** + * The number of cores associated with this compute target shape. + * + * @return the value + **/ + public Integer getCoreCount() { + return coreCount; + } + + /** + * The amount of memory in GBs associated with this compute target shape. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Integer memoryInGBs; + + /** + * The amount of memory in GBs associated with this compute target shape. + * + * @return the value + **/ + public Integer getMemoryInGBs() { + return memoryInGBs; + } + + /** + * The family that the compute shape belongs to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeSeries") + private final ComputeTargetShapeSeries shapeSeries; + + /** + * The family that the compute shape belongs to. + * + * @return the value + **/ + public ComputeTargetShapeSeries getShapeSeries() { + return shapeSeries; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeTargetShapeSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", coreCount=").append(String.valueOf(this.coreCount)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", shapeSeries=").append(String.valueOf(this.shapeSeries)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeTargetShapeSummary)) { + return false; + } + + ComputeTargetShapeSummary other = (ComputeTargetShapeSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.coreCount, other.coreCount) + && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.shapeSeries, other.shapeSeries) + && 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.coreCount == null ? 43 : this.coreCount.hashCode()); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = (result * PRIME) + (this.shapeSeries == null ? 43 : this.shapeSeries.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetSummary.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetSummary.java new file mode 100644 index 00000000000..bd559a6099b --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetSummary.java @@ -0,0 +1,449 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Summary information for a Compute Target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeTargetSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeTargetSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "timeCreated", + "createdBy", + "compartmentId", + "displayName", + "lifecycleState", + "freeformTags", + "definedTags" + }) + public ComputeTargetSummary( + String id, + java.util.Date timeCreated, + String createdBy, + String compartmentId, + String displayName, + ComputeTargetLifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.timeCreated = timeCreated; + this.createdBy = createdBy; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + * @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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private String createdBy; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + * @param createdBy the value to set + * @return this builder + **/ + public Builder createdBy(String createdBy) { + this.createdBy = createdBy; + this.__explicitlySet__.add("createdBy"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + * @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 display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly display name for the resource. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The state of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ComputeTargetLifecycleState lifecycleState; + + /** + * The state of the compute target. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(ComputeTargetLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeTargetSummary build() { + ComputeTargetSummary model = + new ComputeTargetSummary( + this.id, + this.timeCreated, + this.createdBy, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeTargetSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("createdBy")) { + this.createdBy(model.getCreatedBy()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: 2020-08-06T21:10:29.41Z + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private final String createdBy; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the compute target. + * @return the value + **/ + public String getCreatedBy() { + return createdBy; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with the compute target. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly display name for the resource. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The state of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ComputeTargetLifecycleState lifecycleState; + + /** + * The state of the compute target. + * @return the value + **/ + public ComputeTargetLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeTargetSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", createdBy=").append(String.valueOf(this.createdBy)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", 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 ComputeTargetSummary)) { + return false; + } + + ComputeTargetSummary other = (ComputeTargetSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.createdBy, other.createdBy) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.createdBy == null ? 43 : this.createdBy.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.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-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetSystemData.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetSystemData.java new file mode 100644 index 00000000000..d1131dc5a29 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeTargetSystemData.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * System data of the compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "computeType", + defaultImpl = ComputeTargetSystemData.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterSystemData.class, + name = "MANAGED_COMPUTE_CLUSTER" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ComputeTargetSystemData extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ComputeTargetSystemData() { + 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("ComputeTargetSystemData("); + 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 ComputeTargetSystemData)) { + return false; + } + + ComputeTargetSystemData other = (ComputeTargetSystemData) 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 compute target. + **/ + public enum ComputeType { + ManagedComputeCluster("MANAGED_COMPUTE_CLUSTER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ComputeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeType v : ComputeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeType.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeType.java new file mode 100644 index 00000000000..73fd432548d --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ComputeType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The type of compute. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public enum ComputeType { + ManagedComputeCluster("MANAGED_COMPUTE_CLUSTER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ComputeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeType v : ComputeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateAuthConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateAuthConfigurationDetails.java index 427b288bceb..f6b4c1f6a8b 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateAuthConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateAuthConfigurationDetails.java @@ -22,14 +22,6 @@ defaultImpl = CreateAuthConfigurationDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateIdcsAuthConfigurationDetails.class, - name = "IDCS" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateIdcsCustomServiceAuthConfigurationDetails.class, - name = "IDCS_CUSTOM_SERVICE" - ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateIamAuthConfigurationCreateDetails.class, name = "IAM" diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateComputeTargetDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateComputeTargetDetails.java new file mode 100644 index 00000000000..c7e1419a07a --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateComputeTargetDetails.java @@ -0,0 +1,434 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Parameters needed to create a new compute target. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateComputeTargetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateComputeTargetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "metadata", + "computeConfigurationDetails", + "freeformTags", + "definedTags" + }) + public CreateComputeTargetDetails( + String compartmentId, + String displayName, + String description, + java.util.Map metadata, + ComputeConfigurationDetails computeConfigurationDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.metadata = metadata; + this.computeConfigurationDetails = computeConfigurationDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the compute target. + * @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 display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly display name for the resource. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the compute target. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeConfigurationDetails") + private ComputeConfigurationDetails computeConfigurationDetails; + + public Builder computeConfigurationDetails( + ComputeConfigurationDetails computeConfigurationDetails) { + this.computeConfigurationDetails = computeConfigurationDetails; + this.__explicitlySet__.add("computeConfigurationDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateComputeTargetDetails build() { + CreateComputeTargetDetails model = + new CreateComputeTargetDetails( + this.compartmentId, + this.displayName, + this.description, + this.metadata, + this.computeConfigurationDetails, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateComputeTargetDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("computeConfigurationDetails")) { + this.computeConfigurationDetails(model.getComputeConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the compute target. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly display name for the resource. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the compute target. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeConfigurationDetails") + private final ComputeConfigurationDetails computeConfigurationDetails; + + public ComputeConfigurationDetails getComputeConfigurationDetails() { + return computeConfigurationDetails; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateComputeTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", computeConfigurationDetails=") + .append(String.valueOf(this.computeConfigurationDetails)); + 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 CreateComputeTargetDetails)) { + return false; + } + + CreateComputeTargetDetails other = (CreateComputeTargetDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals( + this.computeConfigurationDetails, other.computeConfigurationDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.computeConfigurationDetails == null + ? 43 + : this.computeConfigurationDetails.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-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateIdcsCustomServiceAuthConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateIdcsCustomServiceAuthConfigurationDetails.java deleted file mode 100644 index 8365078ce10..00000000000 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateIdcsCustomServiceAuthConfigurationDetails.java +++ /dev/null @@ -1,301 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.datascience.model; - -/** - * Create configuration for existing Oracle Cloud Service - *
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateIdcsCustomServiceAuthConfigurationDetails.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 CreateIdcsCustomServiceAuthConfigurationDetails - extends CreateAuthConfigurationDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Audience of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("audience") - private String audience; - - /** - * Audience of the IDCS application - * @param audience the value to set - * @return this builder - **/ - public Builder audience(String audience) { - this.audience = audience; - this.__explicitlySet__.add("audience"); - return this; - } - /** - * Scope of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scope") - private String scope; - - /** - * Scope of the IDCS application - * @param scope the value to set - * @return this builder - **/ - public Builder scope(String scope) { - this.scope = scope; - this.__explicitlySet__.add("scope"); - return this; - } - /** - * Name of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("applicationName") - private String applicationName; - - /** - * Name of the IDCS application - * @param applicationName the value to set - * @return this builder - **/ - public Builder applicationName(String applicationName) { - this.applicationName = applicationName; - this.__explicitlySet__.add("applicationName"); - return this; - } - /** - * Name of the IDCS application role - **/ - @com.fasterxml.jackson.annotation.JsonProperty("roleName") - private String roleName; - - /** - * Name of the IDCS application role - * @param roleName the value to set - * @return this builder - **/ - public Builder roleName(String roleName) { - this.roleName = roleName; - this.__explicitlySet__.add("roleName"); - return this; - } - /** - * Bearer token serving as Proof-of-Ownership for referenced IDCS stripe/application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("accessToken") - private String accessToken; - - /** - * Bearer token serving as Proof-of-Ownership for referenced IDCS stripe/application - * @param accessToken the value to set - * @return this builder - **/ - public Builder accessToken(String accessToken) { - this.accessToken = accessToken; - this.__explicitlySet__.add("accessToken"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateIdcsCustomServiceAuthConfigurationDetails build() { - CreateIdcsCustomServiceAuthConfigurationDetails model = - new CreateIdcsCustomServiceAuthConfigurationDetails( - this.audience, - this.scope, - this.applicationName, - this.roleName, - this.accessToken); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateIdcsCustomServiceAuthConfigurationDetails model) { - if (model.wasPropertyExplicitlySet("audience")) { - this.audience(model.getAudience()); - } - if (model.wasPropertyExplicitlySet("scope")) { - this.scope(model.getScope()); - } - if (model.wasPropertyExplicitlySet("applicationName")) { - this.applicationName(model.getApplicationName()); - } - if (model.wasPropertyExplicitlySet("roleName")) { - this.roleName(model.getRoleName()); - } - if (model.wasPropertyExplicitlySet("accessToken")) { - this.accessToken(model.getAccessToken()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateIdcsCustomServiceAuthConfigurationDetails( - String audience, - String scope, - String applicationName, - String roleName, - String accessToken) { - super(); - this.audience = audience; - this.scope = scope; - this.applicationName = applicationName; - this.roleName = roleName; - this.accessToken = accessToken; - } - - /** - * Audience of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("audience") - private final String audience; - - /** - * Audience of the IDCS application - * @return the value - **/ - public String getAudience() { - return audience; - } - - /** - * Scope of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scope") - private final String scope; - - /** - * Scope of the IDCS application - * @return the value - **/ - public String getScope() { - return scope; - } - - /** - * Name of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("applicationName") - private final String applicationName; - - /** - * Name of the IDCS application - * @return the value - **/ - public String getApplicationName() { - return applicationName; - } - - /** - * Name of the IDCS application role - **/ - @com.fasterxml.jackson.annotation.JsonProperty("roleName") - private final String roleName; - - /** - * Name of the IDCS application role - * @return the value - **/ - public String getRoleName() { - return roleName; - } - - /** - * Bearer token serving as Proof-of-Ownership for referenced IDCS stripe/application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("accessToken") - private final String accessToken; - - /** - * Bearer token serving as Proof-of-Ownership for referenced IDCS stripe/application - * @return the value - **/ - public String getAccessToken() { - return accessToken; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateIdcsCustomServiceAuthConfigurationDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", audience=").append(String.valueOf(this.audience)); - sb.append(", scope=").append(String.valueOf(this.scope)); - sb.append(", applicationName=").append(String.valueOf(this.applicationName)); - sb.append(", roleName=").append(String.valueOf(this.roleName)); - sb.append(", accessToken=").append(String.valueOf(this.accessToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateIdcsCustomServiceAuthConfigurationDetails)) { - return false; - } - - CreateIdcsCustomServiceAuthConfigurationDetails other = - (CreateIdcsCustomServiceAuthConfigurationDetails) o; - return java.util.Objects.equals(this.audience, other.audience) - && java.util.Objects.equals(this.scope, other.scope) - && java.util.Objects.equals(this.applicationName, other.applicationName) - && java.util.Objects.equals(this.roleName, other.roleName) - && java.util.Objects.equals(this.accessToken, other.accessToken) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.audience == null ? 43 : this.audience.hashCode()); - result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); - result = - (result * PRIME) - + (this.applicationName == null ? 43 : this.applicationName.hashCode()); - result = (result * PRIME) + (this.roleName == null ? 43 : this.roleName.hashCode()); - result = (result * PRIME) + (this.accessToken == null ? 43 : this.accessToken.hashCode()); - return result; - } -} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/HttpMethod.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/HttpMethod.java new file mode 100644 index 00000000000..40957c1a34d --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/HttpMethod.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Enumeration representing different kinds of HTTP methods. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public enum HttpMethod { + Get("GET"), + Put("PUT"), + Post("POST"), + Delete("DELETE"), + Head("HEAD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(HttpMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HttpMethod v : HttpMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HttpMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HttpMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HttpMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/IdcsCustomServiceAuthConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/IdcsCustomServiceAuthConfiguration.java deleted file mode 100644 index f830922ac7c..00000000000 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/IdcsCustomServiceAuthConfiguration.java +++ /dev/null @@ -1,301 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.datascience.model; - -/** - * Using existing Oracle Cloud Service for online prediction AuthN/Z - *
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = IdcsCustomServiceAuthConfiguration.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 IdcsCustomServiceAuthConfiguration extends AuthConfiguration { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * URI of IDCS Stripe - **/ - @com.fasterxml.jackson.annotation.JsonProperty("idcsStripeUri") - private String idcsStripeUri; - - /** - * URI of IDCS Stripe - * @param idcsStripeUri the value to set - * @return this builder - **/ - public Builder idcsStripeUri(String idcsStripeUri) { - this.idcsStripeUri = idcsStripeUri; - this.__explicitlySet__.add("idcsStripeUri"); - return this; - } - /** - * Audience of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("audience") - private String audience; - - /** - * Audience of the IDCS application - * @param audience the value to set - * @return this builder - **/ - public Builder audience(String audience) { - this.audience = audience; - this.__explicitlySet__.add("audience"); - return this; - } - /** - * Scope of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scope") - private String scope; - - /** - * Scope of the IDCS application - * @param scope the value to set - * @return this builder - **/ - public Builder scope(String scope) { - this.scope = scope; - this.__explicitlySet__.add("scope"); - return this; - } - /** - * Name of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("applicationName") - private String applicationName; - - /** - * Name of the IDCS application - * @param applicationName the value to set - * @return this builder - **/ - public Builder applicationName(String applicationName) { - this.applicationName = applicationName; - this.__explicitlySet__.add("applicationName"); - return this; - } - /** - * Name of the IDCS application role - **/ - @com.fasterxml.jackson.annotation.JsonProperty("roleName") - private String roleName; - - /** - * Name of the IDCS application role - * @param roleName the value to set - * @return this builder - **/ - public Builder roleName(String roleName) { - this.roleName = roleName; - this.__explicitlySet__.add("roleName"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public IdcsCustomServiceAuthConfiguration build() { - IdcsCustomServiceAuthConfiguration model = - new IdcsCustomServiceAuthConfiguration( - this.idcsStripeUri, - this.audience, - this.scope, - this.applicationName, - this.roleName); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(IdcsCustomServiceAuthConfiguration model) { - if (model.wasPropertyExplicitlySet("idcsStripeUri")) { - this.idcsStripeUri(model.getIdcsStripeUri()); - } - if (model.wasPropertyExplicitlySet("audience")) { - this.audience(model.getAudience()); - } - if (model.wasPropertyExplicitlySet("scope")) { - this.scope(model.getScope()); - } - if (model.wasPropertyExplicitlySet("applicationName")) { - this.applicationName(model.getApplicationName()); - } - if (model.wasPropertyExplicitlySet("roleName")) { - this.roleName(model.getRoleName()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public IdcsCustomServiceAuthConfiguration( - String idcsStripeUri, - String audience, - String scope, - String applicationName, - String roleName) { - super(); - this.idcsStripeUri = idcsStripeUri; - this.audience = audience; - this.scope = scope; - this.applicationName = applicationName; - this.roleName = roleName; - } - - /** - * URI of IDCS Stripe - **/ - @com.fasterxml.jackson.annotation.JsonProperty("idcsStripeUri") - private final String idcsStripeUri; - - /** - * URI of IDCS Stripe - * @return the value - **/ - public String getIdcsStripeUri() { - return idcsStripeUri; - } - - /** - * Audience of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("audience") - private final String audience; - - /** - * Audience of the IDCS application - * @return the value - **/ - public String getAudience() { - return audience; - } - - /** - * Scope of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scope") - private final String scope; - - /** - * Scope of the IDCS application - * @return the value - **/ - public String getScope() { - return scope; - } - - /** - * Name of the IDCS application - **/ - @com.fasterxml.jackson.annotation.JsonProperty("applicationName") - private final String applicationName; - - /** - * Name of the IDCS application - * @return the value - **/ - public String getApplicationName() { - return applicationName; - } - - /** - * Name of the IDCS application role - **/ - @com.fasterxml.jackson.annotation.JsonProperty("roleName") - private final String roleName; - - /** - * Name of the IDCS application role - * @return the value - **/ - public String getRoleName() { - return roleName; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("IdcsCustomServiceAuthConfiguration("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", idcsStripeUri=").append(String.valueOf(this.idcsStripeUri)); - sb.append(", audience=").append(String.valueOf(this.audience)); - sb.append(", scope=").append(String.valueOf(this.scope)); - sb.append(", applicationName=").append(String.valueOf(this.applicationName)); - sb.append(", roleName=").append(String.valueOf(this.roleName)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof IdcsCustomServiceAuthConfiguration)) { - return false; - } - - IdcsCustomServiceAuthConfiguration other = (IdcsCustomServiceAuthConfiguration) o; - return java.util.Objects.equals(this.idcsStripeUri, other.idcsStripeUri) - && java.util.Objects.equals(this.audience, other.audience) - && java.util.Objects.equals(this.scope, other.scope) - && java.util.Objects.equals(this.applicationName, other.applicationName) - && java.util.Objects.equals(this.roleName, other.roleName) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.idcsStripeUri == null ? 43 : this.idcsStripeUri.hashCode()); - result = (result * PRIME) + (this.audience == null ? 43 : this.audience.hashCode()); - result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); - result = - (result * PRIME) - + (this.applicationName == null ? 43 : this.applicationName.hashCode()); - result = (result * PRIME) + (this.roleName == null ? 43 : this.roleName.hashCode()); - return result; - } -} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InferenceHttpEndpoint.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InferenceHttpEndpoint.java new file mode 100644 index 00000000000..0dbc2fee2ab --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InferenceHttpEndpoint.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Represents a custom HTTP endpoint detail for inferencing. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InferenceHttpEndpoint.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InferenceHttpEndpoint + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"endpointUriSuffix", "httpMethods"}) + public InferenceHttpEndpoint(String endpointUriSuffix, java.util.List httpMethods) { + super(); + this.endpointUriSuffix = endpointUriSuffix; + this.httpMethods = httpMethods; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The suffix part of the endpoint that will be allowed for invocation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpointUriSuffix") + private String endpointUriSuffix; + + /** + * The suffix part of the endpoint that will be allowed for invocation. + * + * @param endpointUriSuffix the value to set + * @return this builder + **/ + public Builder endpointUriSuffix(String endpointUriSuffix) { + this.endpointUriSuffix = endpointUriSuffix; + this.__explicitlySet__.add("endpointUriSuffix"); + return this; + } + /** + * List of HTTP methods acceptable by the URI. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("httpMethods") + private java.util.List httpMethods; + + /** + * List of HTTP methods acceptable by the URI. + * + * @param httpMethods the value to set + * @return this builder + **/ + public Builder httpMethods(java.util.List httpMethods) { + this.httpMethods = httpMethods; + this.__explicitlySet__.add("httpMethods"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InferenceHttpEndpoint build() { + InferenceHttpEndpoint model = + new InferenceHttpEndpoint(this.endpointUriSuffix, this.httpMethods); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InferenceHttpEndpoint model) { + if (model.wasPropertyExplicitlySet("endpointUriSuffix")) { + this.endpointUriSuffix(model.getEndpointUriSuffix()); + } + if (model.wasPropertyExplicitlySet("httpMethods")) { + this.httpMethods(model.getHttpMethods()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The suffix part of the endpoint that will be allowed for invocation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpointUriSuffix") + private final String endpointUriSuffix; + + /** + * The suffix part of the endpoint that will be allowed for invocation. + * + * @return the value + **/ + public String getEndpointUriSuffix() { + return endpointUriSuffix; + } + + /** + * List of HTTP methods acceptable by the URI. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("httpMethods") + private final java.util.List httpMethods; + + /** + * List of HTTP methods acceptable by the URI. + * + * @return the value + **/ + public java.util.List getHttpMethods() { + return httpMethods; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InferenceHttpEndpoint("); + sb.append("super=").append(super.toString()); + sb.append("endpointUriSuffix=").append(String.valueOf(this.endpointUriSuffix)); + sb.append(", httpMethods=").append(String.valueOf(this.httpMethods)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InferenceHttpEndpoint)) { + return false; + } + + InferenceHttpEndpoint other = (InferenceHttpEndpoint) o; + return java.util.Objects.equals(this.endpointUriSuffix, other.endpointUriSuffix) + && java.util.Objects.equals(this.httpMethods, other.httpMethods) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.endpointUriSuffix == null ? 43 : this.endpointUriSuffix.hashCode()); + result = (result * PRIME) + (this.httpMethods == null ? 43 : this.httpMethods.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobInfrastructureConfigurationDetails.java index 3ae9d82ba3e..d6cfdace5a8 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobInfrastructureConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobInfrastructureConfigurationDetails.java @@ -35,6 +35,10 @@ value = ManagedEgressStandaloneJobInfrastructureConfigurationDetails.class, name = "ME_STANDALONE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterJobInfrastructureConfigurationDetails.class, + name = "MANAGED_COMPUTE_CLUSTER" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = StandaloneJobInfrastructureConfigurationDetails.class, name = "STANDALONE" @@ -96,6 +100,7 @@ public enum JobInfrastructureType { MeStandalone("ME_STANDALONE"), MultiNode("MULTI_NODE"), Empty("EMPTY"), + ManagedComputeCluster("MANAGED_COMPUTE_CLUSTER"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterAutoScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterAutoScalingPolicy.java new file mode 100644 index 00000000000..a18e3ee49a1 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterAutoScalingPolicy.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling policy to enable autoscaling on the managed compute cluster type compute target . + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterAutoScalingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "policyType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterAutoScalingPolicy + extends ManagedComputeClusterScalingPolicy { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which + * is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coolDownInSeconds") + private Integer coolDownInSeconds; + + /** + * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which + * is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation. + * + * @param coolDownInSeconds the value to set + * @return this builder + **/ + public Builder coolDownInSeconds(Integer coolDownInSeconds) { + this.coolDownInSeconds = coolDownInSeconds; + this.__explicitlySet__.add("coolDownInSeconds"); + return this; + } + /** + * Whether the autoscaling policy is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Whether the autoscaling policy is enabled. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * The list of autoscaling policy details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoScalingPolicies") + private java.util.List autoScalingPolicies; + + /** + * The list of autoscaling policy details. + * @param autoScalingPolicies the value to set + * @return this builder + **/ + public Builder autoScalingPolicies( + java.util.List autoScalingPolicies) { + this.autoScalingPolicies = autoScalingPolicies; + this.__explicitlySet__.add("autoScalingPolicies"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterAutoScalingPolicy build() { + ManagedComputeClusterAutoScalingPolicy model = + new ManagedComputeClusterAutoScalingPolicy( + this.coolDownInSeconds, this.isEnabled, this.autoScalingPolicies); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterAutoScalingPolicy model) { + if (model.wasPropertyExplicitlySet("coolDownInSeconds")) { + this.coolDownInSeconds(model.getCoolDownInSeconds()); + } + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("autoScalingPolicies")) { + this.autoScalingPolicies(model.getAutoScalingPolicies()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterAutoScalingPolicy( + Integer coolDownInSeconds, + Boolean isEnabled, + java.util.List autoScalingPolicies) { + super(); + this.coolDownInSeconds = coolDownInSeconds; + this.isEnabled = isEnabled; + this.autoScalingPolicies = autoScalingPolicies; + } + + /** + * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which + * is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coolDownInSeconds") + private final Integer coolDownInSeconds; + + /** + * For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. + * The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which + * is also the default. The cooldown period starts when the managed compute cluster type compute target becomes ACTIVE after the scaling operation. + * + * @return the value + **/ + public Integer getCoolDownInSeconds() { + return coolDownInSeconds; + } + + /** + * Whether the autoscaling policy is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Whether the autoscaling policy is enabled. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * The list of autoscaling policy details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoScalingPolicies") + private final java.util.List autoScalingPolicies; + + /** + * The list of autoscaling policy details. + * @return the value + **/ + public java.util.List getAutoScalingPolicies() { + return autoScalingPolicies; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterAutoScalingPolicy("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", coolDownInSeconds=").append(String.valueOf(this.coolDownInSeconds)); + sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", autoScalingPolicies=").append(String.valueOf(this.autoScalingPolicies)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterAutoScalingPolicy)) { + return false; + } + + ManagedComputeClusterAutoScalingPolicy other = (ManagedComputeClusterAutoScalingPolicy) o; + return java.util.Objects.equals(this.coolDownInSeconds, other.coolDownInSeconds) + && java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.autoScalingPolicies, other.autoScalingPolicies) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.coolDownInSeconds == null ? 43 : this.coolDownInSeconds.hashCode()); + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.autoScalingPolicies == null + ? 43 + : this.autoScalingPolicies.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterAutoScalingPolicyDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterAutoScalingPolicyDetails.java new file mode 100644 index 00000000000..77d792a6f68 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterAutoScalingPolicyDetails.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for an autoscaling policy to enable on the managed compute cluster type compute target . Each autoscaling configuration can have one autoscaling policy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "autoScalingPolicyType", + defaultImpl = ManagedComputeClusterAutoScalingPolicyDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.class, + name = "THRESHOLD" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterAutoScalingPolicyDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ManagedComputeClusterAutoScalingPolicyDetails() { + 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("ManagedComputeClusterAutoScalingPolicyDetails("); + 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 ManagedComputeClusterAutoScalingPolicyDetails)) { + return false; + } + + ManagedComputeClusterAutoScalingPolicyDetails other = + (ManagedComputeClusterAutoScalingPolicyDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of autoscaling policy. + **/ + public enum AutoScalingPolicyType { + Threshold("THRESHOLD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AutoScalingPolicyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoScalingPolicyType v : AutoScalingPolicyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoScalingPolicyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoScalingPolicyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoScalingPolicyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterComputeConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterComputeConfigurationDetails.java new file mode 100644 index 00000000000..6867fbce1e3 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterComputeConfigurationDetails.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The configuration details for the managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterComputeConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "computeType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterComputeConfigurationDetails + extends ComputeConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfiguration") + private ManagedComputeClusterInstanceConfigurationDetails instanceConfiguration; + + public Builder instanceConfiguration( + ManagedComputeClusterInstanceConfigurationDetails instanceConfiguration) { + this.instanceConfiguration = instanceConfiguration; + this.__explicitlySet__.add("instanceConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private ManagedComputeClusterScalingPolicy scalingPolicy; + + public Builder scalingPolicy(ManagedComputeClusterScalingPolicy scalingPolicy) { + this.scalingPolicy = scalingPolicy; + this.__explicitlySet__.add("scalingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterComputeConfigurationDetails build() { + ManagedComputeClusterComputeConfigurationDetails model = + new ManagedComputeClusterComputeConfigurationDetails( + this.instanceConfiguration, this.scalingPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterComputeConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("instanceConfiguration")) { + this.instanceConfiguration(model.getInstanceConfiguration()); + } + if (model.wasPropertyExplicitlySet("scalingPolicy")) { + this.scalingPolicy(model.getScalingPolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterComputeConfigurationDetails( + ManagedComputeClusterInstanceConfigurationDetails instanceConfiguration, + ManagedComputeClusterScalingPolicy scalingPolicy) { + super(); + this.instanceConfiguration = instanceConfiguration; + this.scalingPolicy = scalingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfiguration") + private final ManagedComputeClusterInstanceConfigurationDetails instanceConfiguration; + + public ManagedComputeClusterInstanceConfigurationDetails getInstanceConfiguration() { + return instanceConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private final ManagedComputeClusterScalingPolicy scalingPolicy; + + public ManagedComputeClusterScalingPolicy getScalingPolicy() { + return scalingPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterComputeConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", instanceConfiguration=").append(String.valueOf(this.instanceConfiguration)); + sb.append(", scalingPolicy=").append(String.valueOf(this.scalingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterComputeConfigurationDetails)) { + return false; + } + + ManagedComputeClusterComputeConfigurationDetails other = + (ManagedComputeClusterComputeConfigurationDetails) o; + return java.util.Objects.equals(this.instanceConfiguration, other.instanceConfiguration) + && java.util.Objects.equals(this.scalingPolicy, other.scalingPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.instanceConfiguration == null + ? 43 + : this.instanceConfiguration.hashCode()); + result = + (result * PRIME) + + (this.scalingPolicy == null ? 43 : this.scalingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterCustomExpressionQueryScalingConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterCustomExpressionQueryScalingConfiguration.java new file mode 100644 index 00000000000..d8ae60e7b41 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterCustomExpressionQueryScalingConfiguration.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling configuration for the custom metric expression rule. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterCustomExpressionQueryScalingConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scalingConfigurationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterCustomExpressionQueryScalingConfiguration + extends ManagedComputeClusterScalingConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("pendingDuration") + private String pendingDuration; + + public Builder pendingDuration(String pendingDuration) { + this.pendingDuration = pendingDuration; + this.__explicitlySet__.add("pendingDuration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceCountAdjustment") + private Integer instanceCountAdjustment; + + public Builder instanceCountAdjustment(Integer instanceCountAdjustment) { + this.instanceCountAdjustment = instanceCountAdjustment; + this.__explicitlySet__.add("instanceCountAdjustment"); + return this; + } + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 + * } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + private String query; + + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 + * } + * + * @param query the value to set + * @return this builder + **/ + public Builder query(String query) { + this.query = query; + this.__explicitlySet__.add("query"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterCustomExpressionQueryScalingConfiguration build() { + ManagedComputeClusterCustomExpressionQueryScalingConfiguration model = + new ManagedComputeClusterCustomExpressionQueryScalingConfiguration( + this.pendingDuration, this.instanceCountAdjustment, this.query); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterCustomExpressionQueryScalingConfiguration model) { + if (model.wasPropertyExplicitlySet("pendingDuration")) { + this.pendingDuration(model.getPendingDuration()); + } + if (model.wasPropertyExplicitlySet("instanceCountAdjustment")) { + this.instanceCountAdjustment(model.getInstanceCountAdjustment()); + } + if (model.wasPropertyExplicitlySet("query")) { + this.query(model.getQuery()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterCustomExpressionQueryScalingConfiguration( + String pendingDuration, Integer instanceCountAdjustment, String query) { + super(pendingDuration, instanceCountAdjustment); + this.query = query; + } + + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 + * } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + private final String query; + + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Compute_Target_OCID"}.grouping().mean() > 75 + * } + * + * @return the value + **/ + public String getQuery() { + return query; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterCustomExpressionQueryScalingConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", query=").append(String.valueOf(this.query)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterCustomExpressionQueryScalingConfiguration)) { + return false; + } + + ManagedComputeClusterCustomExpressionQueryScalingConfiguration other = + (ManagedComputeClusterCustomExpressionQueryScalingConfiguration) o; + return java.util.Objects.equals(this.query, other.query) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.query == null ? 43 : this.query.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterCustomMetricExpressionRule.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterCustomMetricExpressionRule.java new file mode 100644 index 00000000000..4d4467c126d --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterCustomMetricExpressionRule.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * A custom Monitoring Query Language (MQL) expression for triggering an autoscaling action on the managed compute cluster type compute target . + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterCustomMetricExpressionRule.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "metricExpressionRuleType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterCustomMetricExpressionRule + extends ManagedComputeClusterMetricExpressionRule { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("scaleInConfiguration") + private ManagedComputeClusterCustomExpressionQueryScalingConfiguration scaleInConfiguration; + + public Builder scaleInConfiguration( + ManagedComputeClusterCustomExpressionQueryScalingConfiguration + scaleInConfiguration) { + this.scaleInConfiguration = scaleInConfiguration; + this.__explicitlySet__.add("scaleInConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleOutConfiguration") + private ManagedComputeClusterCustomExpressionQueryScalingConfiguration + scaleOutConfiguration; + + public Builder scaleOutConfiguration( + ManagedComputeClusterCustomExpressionQueryScalingConfiguration + scaleOutConfiguration) { + this.scaleOutConfiguration = scaleOutConfiguration; + this.__explicitlySet__.add("scaleOutConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterCustomMetricExpressionRule build() { + ManagedComputeClusterCustomMetricExpressionRule model = + new ManagedComputeClusterCustomMetricExpressionRule( + this.scaleInConfiguration, this.scaleOutConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterCustomMetricExpressionRule model) { + if (model.wasPropertyExplicitlySet("scaleInConfiguration")) { + this.scaleInConfiguration(model.getScaleInConfiguration()); + } + if (model.wasPropertyExplicitlySet("scaleOutConfiguration")) { + this.scaleOutConfiguration(model.getScaleOutConfiguration()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterCustomMetricExpressionRule( + ManagedComputeClusterCustomExpressionQueryScalingConfiguration scaleInConfiguration, + ManagedComputeClusterCustomExpressionQueryScalingConfiguration scaleOutConfiguration) { + super(); + this.scaleInConfiguration = scaleInConfiguration; + this.scaleOutConfiguration = scaleOutConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleInConfiguration") + private final ManagedComputeClusterCustomExpressionQueryScalingConfiguration + scaleInConfiguration; + + public ManagedComputeClusterCustomExpressionQueryScalingConfiguration + getScaleInConfiguration() { + return scaleInConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleOutConfiguration") + private final ManagedComputeClusterCustomExpressionQueryScalingConfiguration + scaleOutConfiguration; + + public ManagedComputeClusterCustomExpressionQueryScalingConfiguration + getScaleOutConfiguration() { + return scaleOutConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterCustomMetricExpressionRule("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", scaleInConfiguration=").append(String.valueOf(this.scaleInConfiguration)); + sb.append(", scaleOutConfiguration=").append(String.valueOf(this.scaleOutConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterCustomMetricExpressionRule)) { + return false; + } + + ManagedComputeClusterCustomMetricExpressionRule other = + (ManagedComputeClusterCustomMetricExpressionRule) o; + return java.util.Objects.equals(this.scaleInConfiguration, other.scaleInConfiguration) + && java.util.Objects.equals(this.scaleOutConfiguration, other.scaleOutConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.scaleInConfiguration == null + ? 43 + : this.scaleInConfiguration.hashCode()); + result = + (result * PRIME) + + (this.scaleOutConfiguration == null + ? 43 + : this.scaleOutConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterFixedSizeScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterFixedSizeScalingPolicy.java new file mode 100644 index 00000000000..2206b8fc64f --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterFixedSizeScalingPolicy.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The fixed size scaling policy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterFixedSizeScalingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "policyType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterFixedSizeScalingPolicy + extends ManagedComputeClusterScalingPolicy { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of instances for the managed compute cluster type compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCount") + private Integer instanceCount; + + /** + * The number of instances for the managed compute cluster type compute target. + * @param instanceCount the value to set + * @return this builder + **/ + public Builder instanceCount(Integer instanceCount) { + this.instanceCount = instanceCount; + this.__explicitlySet__.add("instanceCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterFixedSizeScalingPolicy build() { + ManagedComputeClusterFixedSizeScalingPolicy model = + new ManagedComputeClusterFixedSizeScalingPolicy(this.instanceCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterFixedSizeScalingPolicy model) { + if (model.wasPropertyExplicitlySet("instanceCount")) { + this.instanceCount(model.getInstanceCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterFixedSizeScalingPolicy(Integer instanceCount) { + super(); + this.instanceCount = instanceCount; + } + + /** + * The number of instances for the managed compute cluster type compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCount") + private final Integer instanceCount; + + /** + * The number of instances for the managed compute cluster type compute target. + * @return the value + **/ + public Integer getInstanceCount() { + return instanceCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterFixedSizeScalingPolicy("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", instanceCount=").append(String.valueOf(this.instanceCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterFixedSizeScalingPolicy)) { + return false; + } + + ManagedComputeClusterFixedSizeScalingPolicy other = + (ManagedComputeClusterFixedSizeScalingPolicy) o; + return java.util.Objects.equals(this.instanceCount, other.instanceCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.instanceCount == null ? 43 : this.instanceCount.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java new file mode 100644 index 00000000000..49ec94ebaa1 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The compute target instance configuration details for managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterInstanceConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterInstanceConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceShape", + "bootVolumeSizeInGBs", + "instanceShapeDetails" + }) + public ManagedComputeClusterInstanceConfigurationDetails( + String instanceShape, + Integer bootVolumeSizeInGBs, + ManagedComputeClusterInstanceShapeDetails instanceShapeDetails) { + super(); + this.instanceShape = instanceShape; + this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; + this.instanceShapeDetails = instanceShapeDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceShape") + private String instanceShape; + + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + * @param instanceShape the value to set + * @return this builder + **/ + public Builder instanceShape(String instanceShape) { + this.instanceShape = instanceShape; + this.__explicitlySet__.add("instanceShape"); + return this; + } + /** + * The size of the boot volume to attach to the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") + private Integer bootVolumeSizeInGBs; + + /** + * The size of the boot volume to attach to the instance. + * @param bootVolumeSizeInGBs the value to set + * @return this builder + **/ + public Builder bootVolumeSizeInGBs(Integer bootVolumeSizeInGBs) { + this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; + this.__explicitlySet__.add("bootVolumeSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceShapeDetails") + private ManagedComputeClusterInstanceShapeDetails instanceShapeDetails; + + public Builder instanceShapeDetails( + ManagedComputeClusterInstanceShapeDetails instanceShapeDetails) { + this.instanceShapeDetails = instanceShapeDetails; + this.__explicitlySet__.add("instanceShapeDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterInstanceConfigurationDetails build() { + ManagedComputeClusterInstanceConfigurationDetails model = + new ManagedComputeClusterInstanceConfigurationDetails( + this.instanceShape, + this.bootVolumeSizeInGBs, + this.instanceShapeDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterInstanceConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("instanceShape")) { + this.instanceShape(model.getInstanceShape()); + } + if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { + this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("instanceShapeDetails")) { + this.instanceShapeDetails(model.getInstanceShapeDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceShape") + private final String instanceShape; + + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + * @return the value + **/ + public String getInstanceShape() { + return instanceShape; + } + + /** + * The size of the boot volume to attach to the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") + private final Integer bootVolumeSizeInGBs; + + /** + * The size of the boot volume to attach to the instance. + * @return the value + **/ + public Integer getBootVolumeSizeInGBs() { + return bootVolumeSizeInGBs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceShapeDetails") + private final ManagedComputeClusterInstanceShapeDetails instanceShapeDetails; + + public ManagedComputeClusterInstanceShapeDetails getInstanceShapeDetails() { + return instanceShapeDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterInstanceConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("instanceShape=").append(String.valueOf(this.instanceShape)); + sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); + sb.append(", instanceShapeDetails=").append(String.valueOf(this.instanceShapeDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterInstanceConfigurationDetails)) { + return false; + } + + ManagedComputeClusterInstanceConfigurationDetails other = + (ManagedComputeClusterInstanceConfigurationDetails) o; + return java.util.Objects.equals(this.instanceShape, other.instanceShape) + && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) + && java.util.Objects.equals(this.instanceShapeDetails, other.instanceShapeDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.instanceShape == null ? 43 : this.instanceShape.hashCode()); + result = + (result * PRIME) + + (this.bootVolumeSizeInGBs == null + ? 43 + : this.bootVolumeSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.instanceShapeDetails == null + ? 43 + : this.instanceShapeDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceShapeDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceShapeDetails.java new file mode 100644 index 00000000000..6f438bb4400 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceShapeDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Instance shape configuration for managed compute cluster type compute target. Specify only when a flex shape is selected. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterInstanceShapeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterInstanceShapeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ocpus", "memoryInGBs"}) + public ManagedComputeClusterInstanceShapeDetails(Float ocpus, Float memoryInGBs) { + super(); + this.ocpus = ocpus; + this.memoryInGBs = memoryInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The total number of OCPUs allocated to the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private Float ocpus; + + /** + * The total number of OCPUs allocated to the instance. + * @param ocpus the value to set + * @return this builder + **/ + public Builder ocpus(Float ocpus) { + this.ocpus = ocpus; + this.__explicitlySet__.add("ocpus"); + return this; + } + /** + * The total amount of memory allocated to the instance, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Float memoryInGBs; + + /** + * The total amount of memory allocated to the instance, in gigabytes. + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Float memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterInstanceShapeDetails build() { + ManagedComputeClusterInstanceShapeDetails model = + new ManagedComputeClusterInstanceShapeDetails(this.ocpus, this.memoryInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterInstanceShapeDetails model) { + if (model.wasPropertyExplicitlySet("ocpus")) { + this.ocpus(model.getOcpus()); + } + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The total number of OCPUs allocated to the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private final Float ocpus; + + /** + * The total number of OCPUs allocated to the instance. + * @return the value + **/ + public Float getOcpus() { + return ocpus; + } + + /** + * The total amount of memory allocated to the instance, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Float memoryInGBs; + + /** + * The total amount of memory allocated to the instance, in gigabytes. + * @return the value + **/ + public Float getMemoryInGBs() { + return memoryInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterInstanceShapeDetails("); + sb.append("super=").append(super.toString()); + sb.append("ocpus=").append(String.valueOf(this.ocpus)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterInstanceShapeDetails)) { + return false; + } + + ManagedComputeClusterInstanceShapeDetails other = + (ManagedComputeClusterInstanceShapeDetails) o; + return java.util.Objects.equals(this.ocpus, other.ocpus) + && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterJobInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterJobInfrastructureConfigurationDetails.java new file mode 100644 index 00000000000..3d86b03bb44 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterJobInfrastructureConfigurationDetails.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The job infrastructure configuration for compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterJobInfrastructureConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "jobInfrastructureType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterJobInfrastructureConfigurationDetails + extends JobInfrastructureConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetId") + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param computeTargetId the value to set + * @return this builder + **/ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + this.__explicitlySet__.add("computeTargetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private ManagedComputeClusterJobResourceConfiguration resourceConfiguration; + + public Builder resourceConfiguration( + ManagedComputeClusterJobResourceConfiguration resourceConfiguration) { + this.resourceConfiguration = resourceConfiguration; + this.__explicitlySet__.add("resourceConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterJobInfrastructureConfigurationDetails build() { + ManagedComputeClusterJobInfrastructureConfigurationDetails model = + new ManagedComputeClusterJobInfrastructureConfigurationDetails( + this.computeTargetId, this.resourceConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterJobInfrastructureConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("computeTargetId")) { + this.computeTargetId(model.getComputeTargetId()); + } + if (model.wasPropertyExplicitlySet("resourceConfiguration")) { + this.resourceConfiguration(model.getResourceConfiguration()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterJobInfrastructureConfigurationDetails( + String computeTargetId, + ManagedComputeClusterJobResourceConfiguration resourceConfiguration) { + super(); + this.computeTargetId = computeTargetId; + this.resourceConfiguration = resourceConfiguration; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetId") + private final String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @return the value + **/ + public String getComputeTargetId() { + return computeTargetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private final ManagedComputeClusterJobResourceConfiguration resourceConfiguration; + + public ManagedComputeClusterJobResourceConfiguration getResourceConfiguration() { + return resourceConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterJobInfrastructureConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", computeTargetId=").append(String.valueOf(this.computeTargetId)); + sb.append(", resourceConfiguration=").append(String.valueOf(this.resourceConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterJobInfrastructureConfigurationDetails)) { + return false; + } + + ManagedComputeClusterJobInfrastructureConfigurationDetails other = + (ManagedComputeClusterJobInfrastructureConfigurationDetails) o; + return java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && java.util.Objects.equals(this.resourceConfiguration, other.resourceConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.computeTargetId == null ? 43 : this.computeTargetId.hashCode()); + result = + (result * PRIME) + + (this.resourceConfiguration == null + ? 43 + : this.resourceConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterJobResourceConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterJobResourceConfiguration.java new file mode 100644 index 00000000000..30a726cbb84 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterJobResourceConfiguration.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for the compute target job resource configuration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterJobResourceConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterJobResourceConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceLimitConfiguration", + "resourceRequestConfiguration" + }) + public ManagedComputeClusterJobResourceConfiguration( + ResourceLimitConfiguration resourceLimitConfiguration, + ResourceRequestConfiguration resourceRequestConfiguration) { + super(); + this.resourceLimitConfiguration = resourceLimitConfiguration; + this.resourceRequestConfiguration = resourceRequestConfiguration; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("resourceLimitConfiguration") + private ResourceLimitConfiguration resourceLimitConfiguration; + + public Builder resourceLimitConfiguration( + ResourceLimitConfiguration resourceLimitConfiguration) { + this.resourceLimitConfiguration = resourceLimitConfiguration; + this.__explicitlySet__.add("resourceLimitConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceRequestConfiguration") + private ResourceRequestConfiguration resourceRequestConfiguration; + + public Builder resourceRequestConfiguration( + ResourceRequestConfiguration resourceRequestConfiguration) { + this.resourceRequestConfiguration = resourceRequestConfiguration; + this.__explicitlySet__.add("resourceRequestConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterJobResourceConfiguration build() { + ManagedComputeClusterJobResourceConfiguration model = + new ManagedComputeClusterJobResourceConfiguration( + this.resourceLimitConfiguration, this.resourceRequestConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterJobResourceConfiguration model) { + if (model.wasPropertyExplicitlySet("resourceLimitConfiguration")) { + this.resourceLimitConfiguration(model.getResourceLimitConfiguration()); + } + if (model.wasPropertyExplicitlySet("resourceRequestConfiguration")) { + this.resourceRequestConfiguration(model.getResourceRequestConfiguration()); + } + 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("resourceLimitConfiguration") + private final ResourceLimitConfiguration resourceLimitConfiguration; + + public ResourceLimitConfiguration getResourceLimitConfiguration() { + return resourceLimitConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceRequestConfiguration") + private final ResourceRequestConfiguration resourceRequestConfiguration; + + public ResourceRequestConfiguration getResourceRequestConfiguration() { + return resourceRequestConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterJobResourceConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("resourceLimitConfiguration=") + .append(String.valueOf(this.resourceLimitConfiguration)); + sb.append(", resourceRequestConfiguration=") + .append(String.valueOf(this.resourceRequestConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterJobResourceConfiguration)) { + return false; + } + + ManagedComputeClusterJobResourceConfiguration other = + (ManagedComputeClusterJobResourceConfiguration) o; + return java.util.Objects.equals( + this.resourceLimitConfiguration, other.resourceLimitConfiguration) + && java.util.Objects.equals( + this.resourceRequestConfiguration, other.resourceRequestConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.resourceLimitConfiguration == null + ? 43 + : this.resourceLimitConfiguration.hashCode()); + result = + (result * PRIME) + + (this.resourceRequestConfiguration == null + ? 43 + : this.resourceRequestConfiguration.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterMetricExpressionRule.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterMetricExpressionRule.java new file mode 100644 index 00000000000..d49064e0ea6 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterMetricExpressionRule.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The metric expression rule base. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "metricExpressionRuleType", + defaultImpl = ManagedComputeClusterMetricExpressionRule.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterPredefinedMetricExpressionRule.class, + name = "PREDEFINED_EXPRESSION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterCustomMetricExpressionRule.class, + name = "CUSTOM_EXPRESSION" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterMetricExpressionRule + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ManagedComputeClusterMetricExpressionRule() { + 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("ManagedComputeClusterMetricExpressionRule("); + 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 ManagedComputeClusterMetricExpressionRule)) { + return false; + } + + ManagedComputeClusterMetricExpressionRule other = + (ManagedComputeClusterMetricExpressionRule) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target . + **/ + public enum MetricExpressionRuleType { + PredefinedExpression("PREDEFINED_EXPRESSION"), + CustomExpression("CUSTOM_EXPRESSION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MetricExpressionRuleType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricExpressionRuleType v : MetricExpressionRuleType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricExpressionRuleType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricExpressionRuleType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricExpressionRuleType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeployInfrastructureConfigDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeployInfrastructureConfigDetails.java new file mode 100644 index 00000000000..339a3043350 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeployInfrastructureConfigDetails.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Infrastructure configuration details for model deploy on managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterModelDeployInfrastructureConfigDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "infrastructureType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterModelDeployInfrastructureConfigDetails + extends ModelDeployInfrastructureConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetId") + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + * @param computeTargetId the value to set + * @return this builder + **/ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + this.__explicitlySet__.add("computeTargetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelDeploymentResourceConfiguration") + private ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration; + + public Builder modelDeploymentResourceConfiguration( + ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration) { + this.modelDeploymentResourceConfiguration = modelDeploymentResourceConfiguration; + this.__explicitlySet__.add("modelDeploymentResourceConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private ManagedComputeClusterWorkloadScalingPolicy scalingPolicy; + + public Builder scalingPolicy(ManagedComputeClusterWorkloadScalingPolicy scalingPolicy) { + this.scalingPolicy = scalingPolicy; + this.__explicitlySet__.add("scalingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterModelDeployInfrastructureConfigDetails build() { + ManagedComputeClusterModelDeployInfrastructureConfigDetails model = + new ManagedComputeClusterModelDeployInfrastructureConfigDetails( + this.computeTargetId, + this.modelDeploymentResourceConfiguration, + this.scalingPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterModelDeployInfrastructureConfigDetails model) { + if (model.wasPropertyExplicitlySet("computeTargetId")) { + this.computeTargetId(model.getComputeTargetId()); + } + if (model.wasPropertyExplicitlySet("modelDeploymentResourceConfiguration")) { + this.modelDeploymentResourceConfiguration( + model.getModelDeploymentResourceConfiguration()); + } + if (model.wasPropertyExplicitlySet("scalingPolicy")) { + this.scalingPolicy(model.getScalingPolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterModelDeployInfrastructureConfigDetails( + String computeTargetId, + ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration, + ManagedComputeClusterWorkloadScalingPolicy scalingPolicy) { + super(); + this.computeTargetId = computeTargetId; + this.modelDeploymentResourceConfiguration = modelDeploymentResourceConfiguration; + this.scalingPolicy = scalingPolicy; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetId") + private final String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + * @return the value + **/ + public String getComputeTargetId() { + return computeTargetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelDeploymentResourceConfiguration") + private final ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration; + + public ManagedComputeClusterModelDeploymentResourceConfiguration + getModelDeploymentResourceConfiguration() { + return modelDeploymentResourceConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private final ManagedComputeClusterWorkloadScalingPolicy scalingPolicy; + + public ManagedComputeClusterWorkloadScalingPolicy getScalingPolicy() { + return scalingPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterModelDeployInfrastructureConfigDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", computeTargetId=").append(String.valueOf(this.computeTargetId)); + sb.append(", modelDeploymentResourceConfiguration=") + .append(String.valueOf(this.modelDeploymentResourceConfiguration)); + sb.append(", scalingPolicy=").append(String.valueOf(this.scalingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterModelDeployInfrastructureConfigDetails)) { + return false; + } + + ManagedComputeClusterModelDeployInfrastructureConfigDetails other = + (ManagedComputeClusterModelDeployInfrastructureConfigDetails) o; + return java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && java.util.Objects.equals( + this.modelDeploymentResourceConfiguration, + other.modelDeploymentResourceConfiguration) + && java.util.Objects.equals(this.scalingPolicy, other.scalingPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.computeTargetId == null ? 43 : this.computeTargetId.hashCode()); + result = + (result * PRIME) + + (this.modelDeploymentResourceConfiguration == null + ? 43 + : this.modelDeploymentResourceConfiguration.hashCode()); + result = + (result * PRIME) + + (this.scalingPolicy == null ? 43 : this.scalingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeploymentResourceConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeploymentResourceConfiguration.java new file mode 100644 index 00000000000..cee1018067c --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeploymentResourceConfiguration.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Resource configuration details for model deploy on managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterModelDeploymentResourceConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterModelDeploymentResourceConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceRequestConfiguration", + "resourceLimitConfiguration" + }) + public ManagedComputeClusterModelDeploymentResourceConfiguration( + ResourceRequestConfiguration resourceRequestConfiguration, + ResourceLimitConfiguration resourceLimitConfiguration) { + super(); + this.resourceRequestConfiguration = resourceRequestConfiguration; + this.resourceLimitConfiguration = resourceLimitConfiguration; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("resourceRequestConfiguration") + private ResourceRequestConfiguration resourceRequestConfiguration; + + public Builder resourceRequestConfiguration( + ResourceRequestConfiguration resourceRequestConfiguration) { + this.resourceRequestConfiguration = resourceRequestConfiguration; + this.__explicitlySet__.add("resourceRequestConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceLimitConfiguration") + private ResourceLimitConfiguration resourceLimitConfiguration; + + public Builder resourceLimitConfiguration( + ResourceLimitConfiguration resourceLimitConfiguration) { + this.resourceLimitConfiguration = resourceLimitConfiguration; + this.__explicitlySet__.add("resourceLimitConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterModelDeploymentResourceConfiguration build() { + ManagedComputeClusterModelDeploymentResourceConfiguration model = + new ManagedComputeClusterModelDeploymentResourceConfiguration( + this.resourceRequestConfiguration, this.resourceLimitConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterModelDeploymentResourceConfiguration model) { + if (model.wasPropertyExplicitlySet("resourceRequestConfiguration")) { + this.resourceRequestConfiguration(model.getResourceRequestConfiguration()); + } + if (model.wasPropertyExplicitlySet("resourceLimitConfiguration")) { + this.resourceLimitConfiguration(model.getResourceLimitConfiguration()); + } + 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("resourceRequestConfiguration") + private final ResourceRequestConfiguration resourceRequestConfiguration; + + public ResourceRequestConfiguration getResourceRequestConfiguration() { + return resourceRequestConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceLimitConfiguration") + private final ResourceLimitConfiguration resourceLimitConfiguration; + + public ResourceLimitConfiguration getResourceLimitConfiguration() { + return resourceLimitConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterModelDeploymentResourceConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("resourceRequestConfiguration=") + .append(String.valueOf(this.resourceRequestConfiguration)); + sb.append(", resourceLimitConfiguration=") + .append(String.valueOf(this.resourceLimitConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterModelDeploymentResourceConfiguration)) { + return false; + } + + ManagedComputeClusterModelDeploymentResourceConfiguration other = + (ManagedComputeClusterModelDeploymentResourceConfiguration) o; + return java.util.Objects.equals( + this.resourceRequestConfiguration, other.resourceRequestConfiguration) + && java.util.Objects.equals( + this.resourceLimitConfiguration, other.resourceLimitConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.resourceRequestConfiguration == null + ? 43 + : this.resourceRequestConfiguration.hashCode()); + result = + (result * PRIME) + + (this.resourceLimitConfiguration == null + ? 43 + : this.resourceLimitConfiguration.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeploymentSystemData.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeploymentSystemData.java new file mode 100644 index 00000000000..ff6a383f45b --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterModelDeploymentSystemData.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Managed compute cluster type compute target based model deployment system data. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterModelDeploymentSystemData.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "systemInfraType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterModelDeploymentSystemData + extends ModelDeploymentSystemData { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("modelType") + private ModelDeploymentModelType modelType; + + public Builder modelType(ModelDeploymentModelType modelType) { + this.modelType = modelType; + this.__explicitlySet__.add("modelType"); + return this; + } + /** + * This value is the current count of the model deployment instances. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentInstanceCount") + private Integer currentInstanceCount; + + /** + * This value is the current count of the model deployment instances. + * @param currentInstanceCount the value to set + * @return this builder + **/ + public Builder currentInstanceCount(Integer currentInstanceCount) { + this.currentInstanceCount = currentInstanceCount; + this.__explicitlySet__.add("currentInstanceCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterModelDeploymentSystemData build() { + ManagedComputeClusterModelDeploymentSystemData model = + new ManagedComputeClusterModelDeploymentSystemData( + this.modelType, this.currentInstanceCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterModelDeploymentSystemData model) { + if (model.wasPropertyExplicitlySet("modelType")) { + this.modelType(model.getModelType()); + } + if (model.wasPropertyExplicitlySet("currentInstanceCount")) { + this.currentInstanceCount(model.getCurrentInstanceCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterModelDeploymentSystemData( + ModelDeploymentModelType modelType, Integer currentInstanceCount) { + super(modelType); + this.currentInstanceCount = currentInstanceCount; + } + + /** + * This value is the current count of the model deployment instances. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentInstanceCount") + private final Integer currentInstanceCount; + + /** + * This value is the current count of the model deployment instances. + * @return the value + **/ + public Integer getCurrentInstanceCount() { + return currentInstanceCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterModelDeploymentSystemData("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", currentInstanceCount=").append(String.valueOf(this.currentInstanceCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterModelDeploymentSystemData)) { + return false; + } + + ManagedComputeClusterModelDeploymentSystemData other = + (ManagedComputeClusterModelDeploymentSystemData) o; + return java.util.Objects.equals(this.currentInstanceCount, other.currentInstanceCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.currentInstanceCount == null + ? 43 + : this.currentInstanceCount.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration.java new file mode 100644 index 00000000000..699e5238727 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling configuration for the predefined metric expression rule. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scalingConfigurationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + extends ManagedComputeClusterScalingConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("pendingDuration") + private String pendingDuration; + + public Builder pendingDuration(String pendingDuration) { + this.pendingDuration = pendingDuration; + this.__explicitlySet__.add("pendingDuration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceCountAdjustment") + private Integer instanceCountAdjustment; + + public Builder instanceCountAdjustment(Integer instanceCountAdjustment) { + this.instanceCountAdjustment = instanceCountAdjustment; + this.__explicitlySet__.add("instanceCountAdjustment"); + return this; + } + /** + * A metric value at which the scaling operation will be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Integer threshold; + + /** + * A metric value at which the scaling operation will be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Integer threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration build() { + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration model = + new ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration( + this.pendingDuration, this.instanceCountAdjustment, this.threshold); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration model) { + if (model.wasPropertyExplicitlySet("pendingDuration")) { + this.pendingDuration(model.getPendingDuration()); + } + if (model.wasPropertyExplicitlySet("instanceCountAdjustment")) { + this.instanceCountAdjustment(model.getInstanceCountAdjustment()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration( + String pendingDuration, Integer instanceCountAdjustment, Integer threshold) { + super(pendingDuration, instanceCountAdjustment); + this.threshold = threshold; + } + + /** + * A metric value at which the scaling operation will be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Integer threshold; + + /** + * A metric value at which the scaling operation will be triggered. + * @return the value + **/ + public Integer getThreshold() { + return threshold; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o + instanceof + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration)) { + return false; + } + + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration other = + (ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration) o; + return java.util.Objects.equals(this.threshold, other.threshold) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterPredefinedMetricExpressionRule.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterPredefinedMetricExpressionRule.java new file mode 100644 index 00000000000..9104033f748 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterPredefinedMetricExpressionRule.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * An expression built using CPU or Memory metrics for triggering an autoscaling action on the managed compute cluster type compute target . + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterPredefinedMetricExpressionRule.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "metricExpressionRuleType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterPredefinedMetricExpressionRule + extends ManagedComputeClusterMetricExpressionRule { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Metric type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private MetricType metricType; + + /** + * Metric type + * @param metricType the value to set + * @return this builder + **/ + public Builder metricType(MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleInConfiguration") + private ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleInConfiguration; + + public Builder scaleInConfiguration( + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleInConfiguration) { + this.scaleInConfiguration = scaleInConfiguration; + this.__explicitlySet__.add("scaleInConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleOutConfiguration") + private ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleOutConfiguration; + + public Builder scaleOutConfiguration( + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleOutConfiguration) { + this.scaleOutConfiguration = scaleOutConfiguration; + this.__explicitlySet__.add("scaleOutConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterPredefinedMetricExpressionRule build() { + ManagedComputeClusterPredefinedMetricExpressionRule model = + new ManagedComputeClusterPredefinedMetricExpressionRule( + this.metricType, this.scaleInConfiguration, this.scaleOutConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterPredefinedMetricExpressionRule model) { + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("scaleInConfiguration")) { + this.scaleInConfiguration(model.getScaleInConfiguration()); + } + if (model.wasPropertyExplicitlySet("scaleOutConfiguration")) { + this.scaleOutConfiguration(model.getScaleOutConfiguration()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterPredefinedMetricExpressionRule( + MetricType metricType, + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleInConfiguration, + ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleOutConfiguration) { + super(); + this.metricType = metricType; + this.scaleInConfiguration = scaleInConfiguration; + this.scaleOutConfiguration = scaleOutConfiguration; + } + + /** + * Metric type + **/ + public enum MetricType { + CpuUtilization("CPU_UTILIZATION"), + MemoryUtilization("MEMORY_UTILIZATION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MetricType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricType v : MetricType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Metric type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final MetricType metricType; + + /** + * Metric type + * @return the value + **/ + public MetricType getMetricType() { + return metricType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleInConfiguration") + private final ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleInConfiguration; + + public ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + getScaleInConfiguration() { + return scaleInConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleOutConfiguration") + private final ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + scaleOutConfiguration; + + public ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration + getScaleOutConfiguration() { + return scaleOutConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterPredefinedMetricExpressionRule("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", scaleInConfiguration=").append(String.valueOf(this.scaleInConfiguration)); + sb.append(", scaleOutConfiguration=").append(String.valueOf(this.scaleOutConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterPredefinedMetricExpressionRule)) { + return false; + } + + ManagedComputeClusterPredefinedMetricExpressionRule other = + (ManagedComputeClusterPredefinedMetricExpressionRule) o; + return java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals(this.scaleInConfiguration, other.scaleInConfiguration) + && java.util.Objects.equals(this.scaleOutConfiguration, other.scaleOutConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.scaleInConfiguration == null + ? 43 + : this.scaleInConfiguration.hashCode()); + result = + (result * PRIME) + + (this.scaleOutConfiguration == null + ? 43 + : this.scaleOutConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterScalingConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterScalingConfiguration.java new file mode 100644 index 00000000000..81573debf83 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterScalingConfiguration.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Scaling configuration for the metric expression rule. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scalingConfigurationType", + defaultImpl = ManagedComputeClusterScalingConfiguration.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterCustomExpressionQueryScalingConfiguration.class, + name = "QUERY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration.class, + name = "THRESHOLD" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterScalingConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"pendingDuration", "instanceCountAdjustment"}) + protected ManagedComputeClusterScalingConfiguration( + String pendingDuration, Integer instanceCountAdjustment) { + super(); + this.pendingDuration = pendingDuration; + this.instanceCountAdjustment = instanceCountAdjustment; + } + + /** + * The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" + * or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes + * before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes + * before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or + * PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pendingDuration") + private final String pendingDuration; + + /** + * The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" + * or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes + * before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes + * before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes or + * PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M. + * + * @return the value + **/ + public String getPendingDuration() { + return pendingDuration; + } + + /** + * The value is used for adjusting the count of instances by. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCountAdjustment") + private final Integer instanceCountAdjustment; + + /** + * The value is used for adjusting the count of instances by. + * @return the value + **/ + public Integer getInstanceCountAdjustment() { + return instanceCountAdjustment; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterScalingConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("pendingDuration=").append(String.valueOf(this.pendingDuration)); + sb.append(", instanceCountAdjustment=") + .append(String.valueOf(this.instanceCountAdjustment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterScalingConfiguration)) { + return false; + } + + ManagedComputeClusterScalingConfiguration other = + (ManagedComputeClusterScalingConfiguration) o; + return java.util.Objects.equals(this.pendingDuration, other.pendingDuration) + && java.util.Objects.equals( + this.instanceCountAdjustment, other.instanceCountAdjustment) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.pendingDuration == null ? 43 : this.pendingDuration.hashCode()); + result = + (result * PRIME) + + (this.instanceCountAdjustment == null + ? 43 + : this.instanceCountAdjustment.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of scaling configuration. + **/ + public enum ScalingConfigurationType { + Threshold("THRESHOLD"), + Query("QUERY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ScalingConfigurationType v : ScalingConfigurationType.values()) { + map.put(v.getValue(), v); + } + } + + ScalingConfigurationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ScalingConfigurationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ScalingConfigurationType: " + key); + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterScalingPolicy.java new file mode 100644 index 00000000000..08d0e319367 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterScalingPolicy.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling policy to apply to managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "policyType", + defaultImpl = ManagedComputeClusterScalingPolicy.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterAutoScalingPolicy.class, + name = "AUTOSCALING" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterFixedSizeScalingPolicy.class, + name = "FIXED_SIZE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterScalingPolicy + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ManagedComputeClusterScalingPolicy() { + 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("ManagedComputeClusterScalingPolicy("); + 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 ManagedComputeClusterScalingPolicy)) { + return false; + } + + ManagedComputeClusterScalingPolicy other = (ManagedComputeClusterScalingPolicy) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of scaling policy. + **/ + public enum PolicyType { + FixedSize("FIXED_SIZE"), + Autoscaling("AUTOSCALING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PolicyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PolicyType v : PolicyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PolicyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PolicyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PolicyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterSystemData.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterSystemData.java new file mode 100644 index 00000000000..cb4d6549704 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterSystemData.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Managed compute cluster system data. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterSystemData.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "computeType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterSystemData extends ComputeTargetSystemData { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Current count of the instances in managed compute cluster type compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentInstanceCount") + private Integer currentInstanceCount; + + /** + * Current count of the instances in managed compute cluster type compute target. + * @param currentInstanceCount the value to set + * @return this builder + **/ + public Builder currentInstanceCount(Integer currentInstanceCount) { + this.currentInstanceCount = currentInstanceCount; + this.__explicitlySet__.add("currentInstanceCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterSystemData build() { + ManagedComputeClusterSystemData model = + new ManagedComputeClusterSystemData(this.currentInstanceCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterSystemData model) { + if (model.wasPropertyExplicitlySet("currentInstanceCount")) { + this.currentInstanceCount(model.getCurrentInstanceCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterSystemData(Integer currentInstanceCount) { + super(); + this.currentInstanceCount = currentInstanceCount; + } + + /** + * Current count of the instances in managed compute cluster type compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentInstanceCount") + private final Integer currentInstanceCount; + + /** + * Current count of the instances in managed compute cluster type compute target. + * @return the value + **/ + public Integer getCurrentInstanceCount() { + return currentInstanceCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterSystemData("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", currentInstanceCount=").append(String.valueOf(this.currentInstanceCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterSystemData)) { + return false; + } + + ManagedComputeClusterSystemData other = (ManagedComputeClusterSystemData) o; + return java.util.Objects.equals(this.currentInstanceCount, other.currentInstanceCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.currentInstanceCount == null + ? 43 + : this.currentInstanceCount.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.java new file mode 100644 index 00000000000..5d4a77d4672 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for a threshold-based autoscaling policy to enable on the managed compute cluster type compute target . In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "autoScalingPolicyType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails + extends ManagedComputeClusterAutoScalingPolicyDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of autoscaling policy rules. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private java.util.List rules; + + /** + * The list of autoscaling policy rules. + * @param rules the value to set + * @return this builder + **/ + public Builder rules(java.util.List rules) { + this.rules = rules; + this.__explicitlySet__.add("rules"); + return this; + } + /** + * For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumInstanceCount") + private Integer maximumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out). + * @param maximumInstanceCount the value to set + * @return this builder + **/ + public Builder maximumInstanceCount(Integer maximumInstanceCount) { + this.maximumInstanceCount = maximumInstanceCount; + this.__explicitlySet__.add("maximumInstanceCount"); + return this; + } + /** + * For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumInstanceCount") + private Integer minimumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in). + * @param minimumInstanceCount the value to set + * @return this builder + **/ + public Builder minimumInstanceCount(Integer minimumInstanceCount) { + this.minimumInstanceCount = minimumInstanceCount; + this.__explicitlySet__.add("minimumInstanceCount"); + return this; + } + /** + * For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialInstanceCount") + private Integer initialInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + * @param initialInstanceCount the value to set + * @return this builder + **/ + public Builder initialInstanceCount(Integer initialInstanceCount) { + this.initialInstanceCount = initialInstanceCount; + this.__explicitlySet__.add("initialInstanceCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails build() { + ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails model = + new ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails( + this.rules, + this.maximumInstanceCount, + this.minimumInstanceCount, + this.initialInstanceCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails model) { + if (model.wasPropertyExplicitlySet("rules")) { + this.rules(model.getRules()); + } + if (model.wasPropertyExplicitlySet("maximumInstanceCount")) { + this.maximumInstanceCount(model.getMaximumInstanceCount()); + } + if (model.wasPropertyExplicitlySet("minimumInstanceCount")) { + this.minimumInstanceCount(model.getMinimumInstanceCount()); + } + if (model.wasPropertyExplicitlySet("initialInstanceCount")) { + this.initialInstanceCount(model.getInitialInstanceCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails( + java.util.List rules, + Integer maximumInstanceCount, + Integer minimumInstanceCount, + Integer initialInstanceCount) { + super(); + this.rules = rules; + this.maximumInstanceCount = maximumInstanceCount; + this.minimumInstanceCount = minimumInstanceCount; + this.initialInstanceCount = initialInstanceCount; + } + + /** + * The list of autoscaling policy rules. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private final java.util.List rules; + + /** + * The list of autoscaling policy rules. + * @return the value + **/ + public java.util.List getRules() { + return rules; + } + + /** + * For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumInstanceCount") + private final Integer maximumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out). + * @return the value + **/ + public Integer getMaximumInstanceCount() { + return maximumInstanceCount; + } + + /** + * For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumInstanceCount") + private final Integer minimumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in). + * @return the value + **/ + public Integer getMinimumInstanceCount() { + return minimumInstanceCount; + } + + /** + * For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialInstanceCount") + private final Integer initialInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + * @return the value + **/ + public Integer getInitialInstanceCount() { + return initialInstanceCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", rules=").append(String.valueOf(this.rules)); + sb.append(", maximumInstanceCount=").append(String.valueOf(this.maximumInstanceCount)); + sb.append(", minimumInstanceCount=").append(String.valueOf(this.minimumInstanceCount)); + sb.append(", initialInstanceCount=").append(String.valueOf(this.initialInstanceCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails)) { + return false; + } + + ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails other = + (ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails) o; + return java.util.Objects.equals(this.rules, other.rules) + && java.util.Objects.equals(this.maximumInstanceCount, other.maximumInstanceCount) + && java.util.Objects.equals(this.minimumInstanceCount, other.minimumInstanceCount) + && java.util.Objects.equals(this.initialInstanceCount, other.initialInstanceCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = + (result * PRIME) + + (this.maximumInstanceCount == null + ? 43 + : this.maximumInstanceCount.hashCode()); + result = + (result * PRIME) + + (this.minimumInstanceCount == null + ? 43 + : this.minimumInstanceCount.hashCode()); + result = + (result * PRIME) + + (this.initialInstanceCount == null + ? 43 + : this.initialInstanceCount.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadAutoScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadAutoScalingPolicy.java new file mode 100644 index 00000000000..ef29afb51ab --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadAutoScalingPolicy.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling policy to enable autoscaling of workload on the managed compute cluster type compute target . + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterWorkloadAutoScalingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "policyType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterWorkloadAutoScalingPolicy + extends ManagedComputeClusterWorkloadScalingPolicy { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Whether the autoscaling policy is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Whether the autoscaling policy is enabled. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * The list of autoscaling policy details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoScalingPolicies") + private java.util.List + autoScalingPolicies; + + /** + * The list of autoscaling policy details. + * @param autoScalingPolicies the value to set + * @return this builder + **/ + public Builder autoScalingPolicies( + java.util.List + autoScalingPolicies) { + this.autoScalingPolicies = autoScalingPolicies; + this.__explicitlySet__.add("autoScalingPolicies"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterWorkloadAutoScalingPolicy build() { + ManagedComputeClusterWorkloadAutoScalingPolicy model = + new ManagedComputeClusterWorkloadAutoScalingPolicy( + this.isEnabled, this.autoScalingPolicies); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterWorkloadAutoScalingPolicy model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("autoScalingPolicies")) { + this.autoScalingPolicies(model.getAutoScalingPolicies()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterWorkloadAutoScalingPolicy( + Boolean isEnabled, + java.util.List + autoScalingPolicies) { + super(); + this.isEnabled = isEnabled; + this.autoScalingPolicies = autoScalingPolicies; + } + + /** + * Whether the autoscaling policy is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Whether the autoscaling policy is enabled. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * The list of autoscaling policy details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("autoScalingPolicies") + private final java.util.List + autoScalingPolicies; + + /** + * The list of autoscaling policy details. + * @return the value + **/ + public java.util.List + getAutoScalingPolicies() { + return autoScalingPolicies; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterWorkloadAutoScalingPolicy("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", autoScalingPolicies=").append(String.valueOf(this.autoScalingPolicies)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterWorkloadAutoScalingPolicy)) { + return false; + } + + ManagedComputeClusterWorkloadAutoScalingPolicy other = + (ManagedComputeClusterWorkloadAutoScalingPolicy) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.autoScalingPolicies, other.autoScalingPolicies) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.autoScalingPolicies == null + ? 43 + : this.autoScalingPolicies.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadAutoScalingPolicyDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadAutoScalingPolicyDetails.java new file mode 100644 index 00000000000..a8c5e36350f --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadAutoScalingPolicyDetails.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for an autoscaling policy to enable autoscaling of workload on the managed compute cluster type compute target. Each autoscaling configuration can have one autoscaling policy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "autoScalingPolicyType", + defaultImpl = ManagedComputeClusterWorkloadAutoScalingPolicyDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.class, + name = "THRESHOLD" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterWorkloadAutoScalingPolicyDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ManagedComputeClusterWorkloadAutoScalingPolicyDetails() { + 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("ManagedComputeClusterWorkloadAutoScalingPolicyDetails("); + 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 ManagedComputeClusterWorkloadAutoScalingPolicyDetails)) { + return false; + } + + ManagedComputeClusterWorkloadAutoScalingPolicyDetails other = + (ManagedComputeClusterWorkloadAutoScalingPolicyDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of autoscaling policy. + **/ + public enum AutoScalingPolicyType { + Threshold("THRESHOLD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AutoScalingPolicyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoScalingPolicyType v : AutoScalingPolicyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoScalingPolicyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoScalingPolicyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoScalingPolicyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadFixedSizeScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadFixedSizeScalingPolicy.java new file mode 100644 index 00000000000..5a46b79be89 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadFixedSizeScalingPolicy.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The fixed size scaling policy for workload scaling on managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterWorkloadFixedSizeScalingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "policyType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterWorkloadFixedSizeScalingPolicy + extends ManagedComputeClusterWorkloadScalingPolicy { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of instances of the workload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCount") + private Integer instanceCount; + + /** + * The number of instances of the workload. + * @param instanceCount the value to set + * @return this builder + **/ + public Builder instanceCount(Integer instanceCount) { + this.instanceCount = instanceCount; + this.__explicitlySet__.add("instanceCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterWorkloadFixedSizeScalingPolicy build() { + ManagedComputeClusterWorkloadFixedSizeScalingPolicy model = + new ManagedComputeClusterWorkloadFixedSizeScalingPolicy(this.instanceCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterWorkloadFixedSizeScalingPolicy model) { + if (model.wasPropertyExplicitlySet("instanceCount")) { + this.instanceCount(model.getInstanceCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterWorkloadFixedSizeScalingPolicy(Integer instanceCount) { + super(); + this.instanceCount = instanceCount; + } + + /** + * The number of instances of the workload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCount") + private final Integer instanceCount; + + /** + * The number of instances of the workload. + * @return the value + **/ + public Integer getInstanceCount() { + return instanceCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterWorkloadFixedSizeScalingPolicy("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", instanceCount=").append(String.valueOf(this.instanceCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterWorkloadFixedSizeScalingPolicy)) { + return false; + } + + ManagedComputeClusterWorkloadFixedSizeScalingPolicy other = + (ManagedComputeClusterWorkloadFixedSizeScalingPolicy) o; + return java.util.Objects.equals(this.instanceCount, other.instanceCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.instanceCount == null ? 43 : this.instanceCount.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadMetricExpressionRule.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadMetricExpressionRule.java new file mode 100644 index 00000000000..75e07413276 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadMetricExpressionRule.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The metric expression rule base for workload scaling. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "metricExpressionRuleType", + defaultImpl = ManagedComputeClusterWorkloadMetricExpressionRule.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TargetCustomMetricExpressionRule.class, + name = "TARGET_CUSTOM_EXPRESSION" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TargetPredefinedMetricExpressionRule.class, + name = "TARGET_PREDEFINED_EXPRESSION" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterWorkloadMetricExpressionRule + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ManagedComputeClusterWorkloadMetricExpressionRule() { + 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("ManagedComputeClusterWorkloadMetricExpressionRule("); + 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 ManagedComputeClusterWorkloadMetricExpressionRule)) { + return false; + } + + ManagedComputeClusterWorkloadMetricExpressionRule other = + (ManagedComputeClusterWorkloadMetricExpressionRule) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The metric expression for creating the alarm used to trigger autoscaling actions for workload. + **/ + public enum MetricExpressionRuleType { + TargetPredefinedExpression("TARGET_PREDEFINED_EXPRESSION"), + TargetCustomExpression("TARGET_CUSTOM_EXPRESSION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MetricExpressionRuleType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricExpressionRuleType v : MetricExpressionRuleType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricExpressionRuleType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricExpressionRuleType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricExpressionRuleType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadScalePolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadScalePolicy.java new file mode 100644 index 00000000000..6a4dee3fc48 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadScalePolicy.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Workload scaling policy configuration for workloads on managed compute cluster type compute target + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterWorkloadScalePolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterWorkloadScalePolicy + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "pendingDuration", + "instanceCountAdjustment", + "coolDownInSeconds" + }) + public ManagedComputeClusterWorkloadScalePolicy( + String pendingDuration, Integer instanceCountAdjustment, Integer coolDownInSeconds) { + super(); + this.pendingDuration = pendingDuration; + this.instanceCountAdjustment = instanceCountAdjustment; + this.coolDownInSeconds = coolDownInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" + * or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes + * before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes + * before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). + * Minimum: PT1M. Maximum: PT30M. Default: PT3M. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pendingDuration") + private String pendingDuration; + + /** + * The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" + * or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes + * before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes + * before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). + * Minimum: PT1M. Maximum: PT30M. Default: PT3M. + * + * @param pendingDuration the value to set + * @return this builder + **/ + public Builder pendingDuration(String pendingDuration) { + this.pendingDuration = pendingDuration; + this.__explicitlySet__.add("pendingDuration"); + return this; + } + /** + * The value is used for adjusting the count of instances by. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCountAdjustment") + private Integer instanceCountAdjustment; + + /** + * The value is used for adjusting the count of instances by. + * @param instanceCountAdjustment the value to set + * @return this builder + **/ + public Builder instanceCountAdjustment(Integer instanceCountAdjustment) { + this.instanceCountAdjustment = instanceCountAdjustment; + this.__explicitlySet__.add("instanceCountAdjustment"); + return this; + } + /** + * This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating. + * This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coolDownInSeconds") + private Integer coolDownInSeconds; + + /** + * This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating. + * This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds. + * + * @param coolDownInSeconds the value to set + * @return this builder + **/ + public Builder coolDownInSeconds(Integer coolDownInSeconds) { + this.coolDownInSeconds = coolDownInSeconds; + this.__explicitlySet__.add("coolDownInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterWorkloadScalePolicy build() { + ManagedComputeClusterWorkloadScalePolicy model = + new ManagedComputeClusterWorkloadScalePolicy( + this.pendingDuration, + this.instanceCountAdjustment, + this.coolDownInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterWorkloadScalePolicy model) { + if (model.wasPropertyExplicitlySet("pendingDuration")) { + this.pendingDuration(model.getPendingDuration()); + } + if (model.wasPropertyExplicitlySet("instanceCountAdjustment")) { + this.instanceCountAdjustment(model.getInstanceCountAdjustment()); + } + if (model.wasPropertyExplicitlySet("coolDownInSeconds")) { + this.coolDownInSeconds(model.getCoolDownInSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" + * or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes + * before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes + * before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). + * Minimum: PT1M. Maximum: PT30M. Default: PT3M. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pendingDuration") + private final String pendingDuration; + + /** + * The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING" + * or vice versa. For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes + * before the alarm updates its state to "FIRING"; likewise, the alarm must persist in not breaching the condition for five minutes + * before the alarm updates its state to "OK." The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). + * Minimum: PT1M. Maximum: PT30M. Default: PT3M. + * + * @return the value + **/ + public String getPendingDuration() { + return pendingDuration; + } + + /** + * The value is used for adjusting the count of instances by. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceCountAdjustment") + private final Integer instanceCountAdjustment; + + /** + * The value is used for adjusting the count of instances by. + * @return the value + **/ + public Integer getInstanceCountAdjustment() { + return instanceCountAdjustment; + } + + /** + * This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating. + * This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coolDownInSeconds") + private final Integer coolDownInSeconds; + + /** + * This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating. + * This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds. + * + * @return the value + **/ + public Integer getCoolDownInSeconds() { + return coolDownInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterWorkloadScalePolicy("); + sb.append("super=").append(super.toString()); + sb.append("pendingDuration=").append(String.valueOf(this.pendingDuration)); + sb.append(", instanceCountAdjustment=") + .append(String.valueOf(this.instanceCountAdjustment)); + sb.append(", coolDownInSeconds=").append(String.valueOf(this.coolDownInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterWorkloadScalePolicy)) { + return false; + } + + ManagedComputeClusterWorkloadScalePolicy other = + (ManagedComputeClusterWorkloadScalePolicy) o; + return java.util.Objects.equals(this.pendingDuration, other.pendingDuration) + && java.util.Objects.equals( + this.instanceCountAdjustment, other.instanceCountAdjustment) + && java.util.Objects.equals(this.coolDownInSeconds, other.coolDownInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.pendingDuration == null ? 43 : this.pendingDuration.hashCode()); + result = + (result * PRIME) + + (this.instanceCountAdjustment == null + ? 43 + : this.instanceCountAdjustment.hashCode()); + result = + (result * PRIME) + + (this.coolDownInSeconds == null ? 43 : this.coolDownInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadScalingPolicy.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadScalingPolicy.java new file mode 100644 index 00000000000..468270cbfc3 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadScalingPolicy.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling policy to apply to workloads on managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "policyType", + defaultImpl = ManagedComputeClusterWorkloadScalingPolicy.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterWorkloadAutoScalingPolicy.class, + name = "AUTOSCALING" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterWorkloadFixedSizeScalingPolicy.class, + name = "FIXED_SIZE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ManagedComputeClusterWorkloadScalingPolicy + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ManagedComputeClusterWorkloadScalingPolicy() { + 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("ManagedComputeClusterWorkloadScalingPolicy("); + 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 ManagedComputeClusterWorkloadScalingPolicy)) { + return false; + } + + ManagedComputeClusterWorkloadScalingPolicy other = + (ManagedComputeClusterWorkloadScalingPolicy) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of scaling policy. + **/ + public enum PolicyType { + FixedSize("FIXED_SIZE"), + Autoscaling("AUTOSCALING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PolicyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PolicyType v : PolicyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PolicyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PolicyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PolicyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.java new file mode 100644 index 00000000000..fed3e5af80d --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for a threshold-based autoscaling policy to enable autoscaling of workload on the managed compute cluster type compute target . In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "autoScalingPolicyType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedComputeClusterWorkloadThresholdBasedPolicyDetails + extends ManagedComputeClusterWorkloadAutoScalingPolicyDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of autoscaling policy rules for workload scaling.. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private java.util.List rules; + + /** + * The list of autoscaling policy rules for workload scaling.. + * @param rules the value to set + * @return this builder + **/ + public Builder rules( + java.util.List rules) { + this.rules = rules; + this.__explicitlySet__.add("rules"); + return this; + } + /** + * For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumInstanceCount") + private Integer maximumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out). + * @param maximumInstanceCount the value to set + * @return this builder + **/ + public Builder maximumInstanceCount(Integer maximumInstanceCount) { + this.maximumInstanceCount = maximumInstanceCount; + this.__explicitlySet__.add("maximumInstanceCount"); + return this; + } + /** + * For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in). This should be zero for scale-to-zero. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumInstanceCount") + private Integer minimumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in). This should be zero for scale-to-zero. + * @param minimumInstanceCount the value to set + * @return this builder + **/ + public Builder minimumInstanceCount(Integer minimumInstanceCount) { + this.minimumInstanceCount = minimumInstanceCount; + this.__explicitlySet__.add("minimumInstanceCount"); + return this; + } + /** + * For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialInstanceCount") + private Integer initialInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + * @param initialInstanceCount the value to set + * @return this builder + **/ + public Builder initialInstanceCount(Integer initialInstanceCount) { + this.initialInstanceCount = initialInstanceCount; + this.__explicitlySet__.add("initialInstanceCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleInPolicy") + private ManagedComputeClusterWorkloadScalePolicy scaleInPolicy; + + public Builder scaleInPolicy(ManagedComputeClusterWorkloadScalePolicy scaleInPolicy) { + this.scaleInPolicy = scaleInPolicy; + this.__explicitlySet__.add("scaleInPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleOutPolicy") + private ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy; + + public Builder scaleOutPolicy(ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy) { + this.scaleOutPolicy = scaleOutPolicy; + this.__explicitlySet__.add("scaleOutPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails build() { + ManagedComputeClusterWorkloadThresholdBasedPolicyDetails model = + new ManagedComputeClusterWorkloadThresholdBasedPolicyDetails( + this.rules, + this.maximumInstanceCount, + this.minimumInstanceCount, + this.initialInstanceCount, + this.scaleInPolicy, + this.scaleOutPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedComputeClusterWorkloadThresholdBasedPolicyDetails model) { + if (model.wasPropertyExplicitlySet("rules")) { + this.rules(model.getRules()); + } + if (model.wasPropertyExplicitlySet("maximumInstanceCount")) { + this.maximumInstanceCount(model.getMaximumInstanceCount()); + } + if (model.wasPropertyExplicitlySet("minimumInstanceCount")) { + this.minimumInstanceCount(model.getMinimumInstanceCount()); + } + if (model.wasPropertyExplicitlySet("initialInstanceCount")) { + this.initialInstanceCount(model.getInitialInstanceCount()); + } + if (model.wasPropertyExplicitlySet("scaleInPolicy")) { + this.scaleInPolicy(model.getScaleInPolicy()); + } + if (model.wasPropertyExplicitlySet("scaleOutPolicy")) { + this.scaleOutPolicy(model.getScaleOutPolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails( + java.util.List rules, + Integer maximumInstanceCount, + Integer minimumInstanceCount, + Integer initialInstanceCount, + ManagedComputeClusterWorkloadScalePolicy scaleInPolicy, + ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy) { + super(); + this.rules = rules; + this.maximumInstanceCount = maximumInstanceCount; + this.minimumInstanceCount = minimumInstanceCount; + this.initialInstanceCount = initialInstanceCount; + this.scaleInPolicy = scaleInPolicy; + this.scaleOutPolicy = scaleOutPolicy; + } + + /** + * The list of autoscaling policy rules for workload scaling.. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private final java.util.List rules; + + /** + * The list of autoscaling policy rules for workload scaling.. + * @return the value + **/ + public java.util.List getRules() { + return rules; + } + + /** + * For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumInstanceCount") + private final Integer maximumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out). + * @return the value + **/ + public Integer getMaximumInstanceCount() { + return maximumInstanceCount; + } + + /** + * For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in). This should be zero for scale-to-zero. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumInstanceCount") + private final Integer minimumInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in). This should be zero for scale-to-zero. + * @return the value + **/ + public Integer getMinimumInstanceCount() { + return minimumInstanceCount; + } + + /** + * For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialInstanceCount") + private final Integer initialInstanceCount; + + /** + * For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch + * immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset + * to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this + * initial number to a number that is based on the limits that you set. + * + * @return the value + **/ + public Integer getInitialInstanceCount() { + return initialInstanceCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleInPolicy") + private final ManagedComputeClusterWorkloadScalePolicy scaleInPolicy; + + public ManagedComputeClusterWorkloadScalePolicy getScaleInPolicy() { + return scaleInPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleOutPolicy") + private final ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy; + + public ManagedComputeClusterWorkloadScalePolicy getScaleOutPolicy() { + return scaleOutPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedComputeClusterWorkloadThresholdBasedPolicyDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", rules=").append(String.valueOf(this.rules)); + sb.append(", maximumInstanceCount=").append(String.valueOf(this.maximumInstanceCount)); + sb.append(", minimumInstanceCount=").append(String.valueOf(this.minimumInstanceCount)); + sb.append(", initialInstanceCount=").append(String.valueOf(this.initialInstanceCount)); + sb.append(", scaleInPolicy=").append(String.valueOf(this.scaleInPolicy)); + sb.append(", scaleOutPolicy=").append(String.valueOf(this.scaleOutPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedComputeClusterWorkloadThresholdBasedPolicyDetails)) { + return false; + } + + ManagedComputeClusterWorkloadThresholdBasedPolicyDetails other = + (ManagedComputeClusterWorkloadThresholdBasedPolicyDetails) o; + return java.util.Objects.equals(this.rules, other.rules) + && java.util.Objects.equals(this.maximumInstanceCount, other.maximumInstanceCount) + && java.util.Objects.equals(this.minimumInstanceCount, other.minimumInstanceCount) + && java.util.Objects.equals(this.initialInstanceCount, other.initialInstanceCount) + && java.util.Objects.equals(this.scaleInPolicy, other.scaleInPolicy) + && java.util.Objects.equals(this.scaleOutPolicy, other.scaleOutPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = + (result * PRIME) + + (this.maximumInstanceCount == null + ? 43 + : this.maximumInstanceCount.hashCode()); + result = + (result * PRIME) + + (this.minimumInstanceCount == null + ? 43 + : this.minimumInstanceCount.hashCode()); + result = + (result * PRIME) + + (this.initialInstanceCount == null + ? 43 + : this.initialInstanceCount.hashCode()); + result = + (result * PRIME) + + (this.scaleInPolicy == null ? 43 : this.scaleInPolicy.hashCode()); + result = + (result * PRIME) + + (this.scaleOutPolicy == null ? 43 : this.scaleOutPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeployInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeployInfrastructureConfigurationDetails.java new file mode 100644 index 00000000000..9c67755bd7c --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeployInfrastructureConfigurationDetails.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The model deployment infrastructure 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: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "infrastructureType", + defaultImpl = ModelDeployInfrastructureConfigurationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterModelDeployInfrastructureConfigDetails.class, + name = "MANAGED_COMPUTE_CLUSTER" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ModelDeployInfrastructureConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ModelDeployInfrastructureConfigurationDetails() { + 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("ModelDeployInfrastructureConfigurationDetails("); + 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 ModelDeployInfrastructureConfigurationDetails)) { + return false; + } + + ModelDeployInfrastructureConfigurationDetails other = + (ModelDeployInfrastructureConfigurationDetails) 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-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeployInfrastructureType.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeployInfrastructureType.java new file mode 100644 index 00000000000..0ddd70ce2a8 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeployInfrastructureType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The infrastructure type for Model Deployment. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public enum ModelDeployInfrastructureType { + ManagedComputeCluster("MANAGED_COMPUTE_CLUSTER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ModelDeployInfrastructureType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ModelDeployInfrastructureType v : ModelDeployInfrastructureType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ModelDeployInfrastructureType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelDeployInfrastructureType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ModelDeployInfrastructureType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentConfigurationDetails.java index 6f96a573bd3..fcf05cc3a86 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentConfigurationDetails.java @@ -29,6 +29,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ModelGroupDeploymentConfigurationDetails.class, name = "MODEL_GROUP" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SingleModelDeploymentFlexConfigurationDetails.class, + name = "SINGLE_MODEL_FLEX" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentSystemData.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentSystemData.java index d0c582a6ba2..0984d2c3066 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentSystemData.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentSystemData.java @@ -22,6 +22,10 @@ defaultImpl = ModelDeploymentSystemData.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManagedComputeClusterModelDeploymentSystemData.class, + name = "MANAGED_COMPUTE_CLUSTER" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = InstancePoolModelDeploymentSystemData.class, name = "INSTANCE_POOL" @@ -96,6 +100,7 @@ public int hashCode() { **/ public enum SystemInfraType { InstancePool("INSTANCE_POOL"), + ManagedComputeCluster("MANAGED_COMPUTE_CLUSTER"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentType.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentType.java index 7947fb7aebe..8964a702c68 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentType.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentType.java @@ -11,6 +11,7 @@ public enum ModelDeploymentType { SingleModel("SINGLE_MODEL"), ModelGroup("MODEL_GROUP"), + SingleModelFlex("SINGLE_MODEL_FLEX"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/OcirModelDeploymentEnvironmentConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/OcirModelDeploymentEnvironmentConfigurationDetails.java index 48309d3572f..2cf7d4d3d55 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/OcirModelDeploymentEnvironmentConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/OcirModelDeploymentEnvironmentConfigurationDetails.java @@ -231,6 +231,47 @@ public Builder defaultEnvironmentVariables( this.__explicitlySet__.add("defaultEnvironmentVariables"); return this; } + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("predictApiSpecification") + private String predictApiSpecification; + + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + * @param predictApiSpecification the value to set + * @return this builder + **/ + public Builder predictApiSpecification(String predictApiSpecification) { + this.predictApiSpecification = predictApiSpecification; + this.__explicitlySet__.add("predictApiSpecification"); + return this; + } + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customHttpEndpoints") + private java.util.List customHttpEndpoints; + + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + * @param customHttpEndpoints the value to set + * @return this builder + **/ + public Builder customHttpEndpoints( + java.util.List customHttpEndpoints) { + this.customHttpEndpoints = customHttpEndpoints; + this.__explicitlySet__.add("customHttpEndpoints"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -246,7 +287,9 @@ public OcirModelDeploymentEnvironmentConfigurationDetails build() { this.serverPort, this.healthCheckPort, this.environmentVariables, - this.defaultEnvironmentVariables); + this.defaultEnvironmentVariables, + this.predictApiSpecification, + this.customHttpEndpoints); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -282,6 +325,12 @@ public Builder copy(OcirModelDeploymentEnvironmentConfigurationDetails model) { if (model.wasPropertyExplicitlySet("defaultEnvironmentVariables")) { this.defaultEnvironmentVariables(model.getDefaultEnvironmentVariables()); } + if (model.wasPropertyExplicitlySet("predictApiSpecification")) { + this.predictApiSpecification(model.getPredictApiSpecification()); + } + if (model.wasPropertyExplicitlySet("customHttpEndpoints")) { + this.customHttpEndpoints(model.getCustomHttpEndpoints()); + } return this; } } @@ -307,7 +356,9 @@ public OcirModelDeploymentEnvironmentConfigurationDetails( Integer serverPort, Integer healthCheckPort, java.util.Map environmentVariables, - java.util.Map defaultEnvironmentVariables) { + java.util.Map defaultEnvironmentVariables, + String predictApiSpecification, + java.util.List customHttpEndpoints) { super(); this.image = image; this.imageDigest = imageDigest; @@ -318,6 +369,8 @@ public OcirModelDeploymentEnvironmentConfigurationDetails( this.healthCheckPort = healthCheckPort; this.environmentVariables = environmentVariables; this.defaultEnvironmentVariables = defaultEnvironmentVariables; + this.predictApiSpecification = predictApiSpecification; + this.customHttpEndpoints = customHttpEndpoints; } /** @@ -504,6 +557,42 @@ public java.util.Map getDefaultEnvironmentVariables() { return defaultEnvironmentVariables; } + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("predictApiSpecification") + private final String predictApiSpecification; + + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + * @return the value + **/ + public String getPredictApiSpecification() { + return predictApiSpecification; + } + + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customHttpEndpoints") + private final java.util.List customHttpEndpoints; + + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + * @return the value + **/ + public java.util.List getCustomHttpEndpoints() { + return customHttpEndpoints; + } + @Override public String toString() { return this.toString(true); @@ -528,6 +617,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); sb.append(", defaultEnvironmentVariables=") .append(String.valueOf(this.defaultEnvironmentVariables)); + sb.append(", predictApiSpecification=") + .append(String.valueOf(this.predictApiSpecification)); + sb.append(", customHttpEndpoints=").append(String.valueOf(this.customHttpEndpoints)); sb.append(")"); return sb.toString(); } @@ -553,6 +645,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) && java.util.Objects.equals( this.defaultEnvironmentVariables, other.defaultEnvironmentVariables) + && java.util.Objects.equals( + this.predictApiSpecification, other.predictApiSpecification) + && java.util.Objects.equals(this.customHttpEndpoints, other.customHttpEndpoints) && super.equals(other); } @@ -581,6 +676,16 @@ public int hashCode() { + (this.defaultEnvironmentVariables == null ? 43 : this.defaultEnvironmentVariables.hashCode()); + result = + (result * PRIME) + + (this.predictApiSpecification == null + ? 43 + : this.predictApiSpecification.hashCode()); + result = + (result * PRIME) + + (this.customHttpEndpoints == null + ? 43 + : this.customHttpEndpoints.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ResourceLimitConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ResourceLimitConfiguration.java new file mode 100644 index 00000000000..c712b204929 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ResourceLimitConfiguration.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Resource limit configuration details for workload on managed compute cluster type compute target + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ResourceLimitConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ResourceLimitConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ocpus", "memoryInGBs"}) + public ResourceLimitConfiguration(Float ocpus, Float memoryInGBs) { + super(); + this.ocpus = ocpus; + this.memoryInGBs = memoryInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Burstable limit for cpu. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private Float ocpus; + + /** + * Burstable limit for cpu. + * + * @param ocpus the value to set + * @return this builder + **/ + public Builder ocpus(Float ocpus) { + this.ocpus = ocpus; + this.__explicitlySet__.add("ocpus"); + return this; + } + /** + * Burstable limit for memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Float memoryInGBs; + + /** + * Burstable limit for memory. + * + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Float memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceLimitConfiguration build() { + ResourceLimitConfiguration model = + new ResourceLimitConfiguration(this.ocpus, this.memoryInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceLimitConfiguration model) { + if (model.wasPropertyExplicitlySet("ocpus")) { + this.ocpus(model.getOcpus()); + } + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Burstable limit for cpu. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private final Float ocpus; + + /** + * Burstable limit for cpu. + * + * @return the value + **/ + public Float getOcpus() { + return ocpus; + } + + /** + * Burstable limit for memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Float memoryInGBs; + + /** + * Burstable limit for memory. + * + * @return the value + **/ + public Float getMemoryInGBs() { + return memoryInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceLimitConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("ocpus=").append(String.valueOf(this.ocpus)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceLimitConfiguration)) { + return false; + } + + ResourceLimitConfiguration other = (ResourceLimitConfiguration) o; + return java.util.Objects.equals(this.ocpus, other.ocpus) + && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ResourceRequestConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ResourceRequestConfiguration.java new file mode 100644 index 00000000000..898520ef099 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ResourceRequestConfiguration.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Resource request configuration to run workload on managed compute cluster type compute target compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ResourceRequestConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ResourceRequestConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ocpus", "memoryInGBs", "gpus"}) + public ResourceRequestConfiguration(Float ocpus, Float memoryInGBs, Integer gpus) { + super(); + this.ocpus = ocpus; + this.memoryInGBs = memoryInGBs; + this.gpus = gpus; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The ocpus required to be allocated to run the workload. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private Float ocpus; + + /** + * The ocpus required to be allocated to run the workload. + * + * @param ocpus the value to set + * @return this builder + **/ + public Builder ocpus(Float ocpus) { + this.ocpus = ocpus; + this.__explicitlySet__.add("ocpus"); + return this; + } + /** + * The memory in Gbs required to be allocated to run the workload. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private Float memoryInGBs; + + /** + * The memory in Gbs required to be allocated to run the workload. + * + * @param memoryInGBs the value to set + * @return this builder + **/ + public Builder memoryInGBs(Float memoryInGBs) { + this.memoryInGBs = memoryInGBs; + this.__explicitlySet__.add("memoryInGBs"); + return this; + } + /** + * The total number of gpus required to be allocated to the workload. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gpus") + private Integer gpus; + + /** + * The total number of gpus required to be allocated to the workload. + * + * @param gpus the value to set + * @return this builder + **/ + public Builder gpus(Integer gpus) { + this.gpus = gpus; + this.__explicitlySet__.add("gpus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceRequestConfiguration build() { + ResourceRequestConfiguration model = + new ResourceRequestConfiguration(this.ocpus, this.memoryInGBs, this.gpus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceRequestConfiguration model) { + if (model.wasPropertyExplicitlySet("ocpus")) { + this.ocpus(model.getOcpus()); + } + if (model.wasPropertyExplicitlySet("memoryInGBs")) { + this.memoryInGBs(model.getMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("gpus")) { + this.gpus(model.getGpus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The ocpus required to be allocated to run the workload. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ocpus") + private final Float ocpus; + + /** + * The ocpus required to be allocated to run the workload. + * + * @return the value + **/ + public Float getOcpus() { + return ocpus; + } + + /** + * The memory in Gbs required to be allocated to run the workload. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memoryInGBs") + private final Float memoryInGBs; + + /** + * The memory in Gbs required to be allocated to run the workload. + * + * @return the value + **/ + public Float getMemoryInGBs() { + return memoryInGBs; + } + + /** + * The total number of gpus required to be allocated to the workload. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gpus") + private final Integer gpus; + + /** + * The total number of gpus required to be allocated to the workload. + * + * @return the value + **/ + public Integer getGpus() { + return gpus; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceRequestConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("ocpus=").append(String.valueOf(this.ocpus)); + sb.append(", memoryInGBs=").append(String.valueOf(this.memoryInGBs)); + sb.append(", gpus=").append(String.valueOf(this.gpus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceRequestConfiguration)) { + return false; + } + + ResourceRequestConfiguration other = (ResourceRequestConfiguration) o; + return java.util.Objects.equals(this.ocpus, other.ocpus) + && java.util.Objects.equals(this.memoryInGBs, other.memoryInGBs) + && java.util.Objects.equals(this.gpus, other.gpus) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); + result = (result * PRIME) + (this.memoryInGBs == null ? 43 : this.memoryInGBs.hashCode()); + result = (result * PRIME) + (this.gpus == null ? 43 : this.gpus.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/SingleModelConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/SingleModelConfigurationDetails.java new file mode 100644 index 00000000000..edb36d1bd2e --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/SingleModelConfigurationDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The single model 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: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SingleModelConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SingleModelConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"modelId"}) + public SingleModelConfigurationDetails(String modelId) { + super(); + this.modelId = modelId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SingleModelConfigurationDetails build() { + SingleModelConfigurationDetails model = + new SingleModelConfigurationDetails(this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SingleModelConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + * @return the value + **/ + public String getModelId() { + return modelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SingleModelConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("modelId=").append(String.valueOf(this.modelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SingleModelConfigurationDetails)) { + return false; + } + + SingleModelConfigurationDetails other = (SingleModelConfigurationDetails) o; + return java.util.Objects.equals(this.modelId, other.modelId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/SingleModelDeploymentFlexConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/SingleModelDeploymentFlexConfigurationDetails.java new file mode 100644 index 00000000000..a5bc2b5f448 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/SingleModelDeploymentFlexConfigurationDetails.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The single model model deployment flex 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: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SingleModelDeploymentFlexConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "deploymentType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SingleModelDeploymentFlexConfigurationDetails + extends ModelDeploymentConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("modelConfigurationDetails") + private SingleModelConfigurationDetails modelConfigurationDetails; + + public Builder modelConfigurationDetails( + SingleModelConfigurationDetails modelConfigurationDetails) { + this.modelConfigurationDetails = modelConfigurationDetails; + this.__explicitlySet__.add("modelConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureConfigurationDetails") + private ModelDeployInfrastructureConfigurationDetails infrastructureConfigurationDetails; + + public Builder infrastructureConfigurationDetails( + ModelDeployInfrastructureConfigurationDetails infrastructureConfigurationDetails) { + this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.__explicitlySet__.add("infrastructureConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentConfigurationDetails") + private ModelDeploymentEnvironmentConfigurationDetails environmentConfigurationDetails; + + public Builder environmentConfigurationDetails( + ModelDeploymentEnvironmentConfigurationDetails environmentConfigurationDetails) { + this.environmentConfigurationDetails = environmentConfigurationDetails; + this.__explicitlySet__.add("environmentConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SingleModelDeploymentFlexConfigurationDetails build() { + SingleModelDeploymentFlexConfigurationDetails model = + new SingleModelDeploymentFlexConfigurationDetails( + this.modelConfigurationDetails, + this.infrastructureConfigurationDetails, + this.environmentConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SingleModelDeploymentFlexConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("modelConfigurationDetails")) { + this.modelConfigurationDetails(model.getModelConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("infrastructureConfigurationDetails")) { + this.infrastructureConfigurationDetails( + model.getInfrastructureConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("environmentConfigurationDetails")) { + this.environmentConfigurationDetails(model.getEnvironmentConfigurationDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SingleModelDeploymentFlexConfigurationDetails( + SingleModelConfigurationDetails modelConfigurationDetails, + ModelDeployInfrastructureConfigurationDetails infrastructureConfigurationDetails, + ModelDeploymentEnvironmentConfigurationDetails environmentConfigurationDetails) { + super(); + this.modelConfigurationDetails = modelConfigurationDetails; + this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.environmentConfigurationDetails = environmentConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelConfigurationDetails") + private final SingleModelConfigurationDetails modelConfigurationDetails; + + public SingleModelConfigurationDetails getModelConfigurationDetails() { + return modelConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureConfigurationDetails") + private final ModelDeployInfrastructureConfigurationDetails infrastructureConfigurationDetails; + + public ModelDeployInfrastructureConfigurationDetails getInfrastructureConfigurationDetails() { + return infrastructureConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentConfigurationDetails") + private final ModelDeploymentEnvironmentConfigurationDetails environmentConfigurationDetails; + + public ModelDeploymentEnvironmentConfigurationDetails getEnvironmentConfigurationDetails() { + return environmentConfigurationDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SingleModelDeploymentFlexConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", modelConfigurationDetails=") + .append(String.valueOf(this.modelConfigurationDetails)); + sb.append(", infrastructureConfigurationDetails=") + .append(String.valueOf(this.infrastructureConfigurationDetails)); + sb.append(", environmentConfigurationDetails=") + .append(String.valueOf(this.environmentConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SingleModelDeploymentFlexConfigurationDetails)) { + return false; + } + + SingleModelDeploymentFlexConfigurationDetails other = + (SingleModelDeploymentFlexConfigurationDetails) o; + return java.util.Objects.equals( + this.modelConfigurationDetails, other.modelConfigurationDetails) + && java.util.Objects.equals( + this.infrastructureConfigurationDetails, + other.infrastructureConfigurationDetails) + && java.util.Objects.equals( + this.environmentConfigurationDetails, other.environmentConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.modelConfigurationDetails == null + ? 43 + : this.modelConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureConfigurationDetails == null + ? 43 + : this.infrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.environmentConfigurationDetails == null + ? 43 + : this.environmentConfigurationDetails.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetCustomExpressionQueryScalingConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetCustomExpressionQueryScalingConfiguration.java new file mode 100644 index 00000000000..864d290b0e7 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetCustomExpressionQueryScalingConfiguration.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling configuration for the custom expression query for the workload. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetCustomExpressionQueryScalingConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "targetScalingConfigurationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetCustomExpressionQueryScalingConfiguration + extends TargetScalingConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() > 75 + * } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + private String query; + + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() > 75 + * } + * + * @param query the value to set + * @return this builder + **/ + public Builder query(String query) { + this.query = query; + this.__explicitlySet__.add("query"); + return this; + } + /** + * A metric value at which the scaling operation will be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Float threshold; + + /** + * A metric value at which the scaling operation will be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Float threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + /** + * Namespace to read the metrics from. Default value will be service metric namespace. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricNamespace") + private String metricNamespace; + + /** + * Namespace to read the metrics from. Default value will be service metric namespace. + * @param metricNamespace the value to set + * @return this builder + **/ + public Builder metricNamespace(String metricNamespace) { + this.metricNamespace = metricNamespace; + this.__explicitlySet__.add("metricNamespace"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetCustomExpressionQueryScalingConfiguration build() { + TargetCustomExpressionQueryScalingConfiguration model = + new TargetCustomExpressionQueryScalingConfiguration( + this.query, this.threshold, this.metricNamespace); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetCustomExpressionQueryScalingConfiguration model) { + if (model.wasPropertyExplicitlySet("query")) { + this.query(model.getQuery()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + if (model.wasPropertyExplicitlySet("metricNamespace")) { + this.metricNamespace(model.getMetricNamespace()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TargetCustomExpressionQueryScalingConfiguration( + String query, Float threshold, String metricNamespace) { + super(); + this.query = query; + this.threshold = threshold; + this.metricNamespace = metricNamespace; + } + + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() > 75 + * } + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + private final String query; + + /** + * The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service + * interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value + * represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, + * statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). + * You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). + * Example of threshold alarm: + * {@code + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() < 25 + * CPUUtilization[1m]{resourceId = "Model_Deployment_OCID"}.grouping().mean() > 75 + * } + * + * @return the value + **/ + public String getQuery() { + return query; + } + + /** + * A metric value at which the scaling operation will be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Float threshold; + + /** + * A metric value at which the scaling operation will be triggered. + * @return the value + **/ + public Float getThreshold() { + return threshold; + } + + /** + * Namespace to read the metrics from. Default value will be service metric namespace. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricNamespace") + private final String metricNamespace; + + /** + * Namespace to read the metrics from. Default value will be service metric namespace. + * @return the value + **/ + public String getMetricNamespace() { + return metricNamespace; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetCustomExpressionQueryScalingConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", query=").append(String.valueOf(this.query)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(", metricNamespace=").append(String.valueOf(this.metricNamespace)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetCustomExpressionQueryScalingConfiguration)) { + return false; + } + + TargetCustomExpressionQueryScalingConfiguration other = + (TargetCustomExpressionQueryScalingConfiguration) o; + return java.util.Objects.equals(this.query, other.query) + && java.util.Objects.equals(this.threshold, other.threshold) + && java.util.Objects.equals(this.metricNamespace, other.metricNamespace) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.query == null ? 43 : this.query.hashCode()); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + result = + (result * PRIME) + + (this.metricNamespace == null ? 43 : this.metricNamespace.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetCustomMetricExpressionRule.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetCustomMetricExpressionRule.java new file mode 100644 index 00000000000..90d57dca2d8 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetCustomMetricExpressionRule.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * A custom Monitoring Query Language (MQL) expression for triggering an autoscaling action on the workload. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetCustomMetricExpressionRule.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "metricExpressionRuleType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetCustomMetricExpressionRule + extends ManagedComputeClusterWorkloadMetricExpressionRule { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("scaleConfiguration") + private TargetCustomExpressionQueryScalingConfiguration scaleConfiguration; + + public Builder scaleConfiguration( + TargetCustomExpressionQueryScalingConfiguration scaleConfiguration) { + this.scaleConfiguration = scaleConfiguration; + this.__explicitlySet__.add("scaleConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetCustomMetricExpressionRule build() { + TargetCustomMetricExpressionRule model = + new TargetCustomMetricExpressionRule(this.scaleConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetCustomMetricExpressionRule model) { + if (model.wasPropertyExplicitlySet("scaleConfiguration")) { + this.scaleConfiguration(model.getScaleConfiguration()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TargetCustomMetricExpressionRule( + TargetCustomExpressionQueryScalingConfiguration scaleConfiguration) { + super(); + this.scaleConfiguration = scaleConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleConfiguration") + private final TargetCustomExpressionQueryScalingConfiguration scaleConfiguration; + + public TargetCustomExpressionQueryScalingConfiguration getScaleConfiguration() { + return scaleConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetCustomMetricExpressionRule("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", scaleConfiguration=").append(String.valueOf(this.scaleConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetCustomMetricExpressionRule)) { + return false; + } + + TargetCustomMetricExpressionRule other = (TargetCustomMetricExpressionRule) o; + return java.util.Objects.equals(this.scaleConfiguration, other.scaleConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.scaleConfiguration == null + ? 43 + : this.scaleConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetPredefinedExpressionThresholdScalingConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetPredefinedExpressionThresholdScalingConfiguration.java new file mode 100644 index 00000000000..eadc2e19c68 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetPredefinedExpressionThresholdScalingConfiguration.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The scaling configuration for the predefined metric expression rule for the workload. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetPredefinedExpressionThresholdScalingConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "targetScalingConfigurationType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetPredefinedExpressionThresholdScalingConfiguration + extends TargetScalingConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A metric value at which the scaling operation will be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Float threshold; + + /** + * A metric value at which the scaling operation will be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Float threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetPredefinedExpressionThresholdScalingConfiguration build() { + TargetPredefinedExpressionThresholdScalingConfiguration model = + new TargetPredefinedExpressionThresholdScalingConfiguration(this.threshold); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetPredefinedExpressionThresholdScalingConfiguration model) { + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TargetPredefinedExpressionThresholdScalingConfiguration(Float threshold) { + super(); + this.threshold = threshold; + } + + /** + * A metric value at which the scaling operation will be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Float threshold; + + /** + * A metric value at which the scaling operation will be triggered. + * @return the value + **/ + public Float getThreshold() { + return threshold; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetPredefinedExpressionThresholdScalingConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetPredefinedExpressionThresholdScalingConfiguration)) { + return false; + } + + TargetPredefinedExpressionThresholdScalingConfiguration other = + (TargetPredefinedExpressionThresholdScalingConfiguration) o; + return java.util.Objects.equals(this.threshold, other.threshold) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetPredefinedMetricExpressionRule.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetPredefinedMetricExpressionRule.java new file mode 100644 index 00000000000..13ec5d28792 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetPredefinedMetricExpressionRule.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * An expression built using CPU or Memory metrics for triggering an autoscaling action for workload. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetPredefinedMetricExpressionRule.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "metricExpressionRuleType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetPredefinedMetricExpressionRule + extends ManagedComputeClusterWorkloadMetricExpressionRule { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Metric type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private MetricType metricType; + + /** + * Metric type + * @param metricType the value to set + * @return this builder + **/ + public Builder metricType(MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleConfiguration") + private TargetPredefinedExpressionThresholdScalingConfiguration scaleConfiguration; + + public Builder scaleConfiguration( + TargetPredefinedExpressionThresholdScalingConfiguration scaleConfiguration) { + this.scaleConfiguration = scaleConfiguration; + this.__explicitlySet__.add("scaleConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetPredefinedMetricExpressionRule build() { + TargetPredefinedMetricExpressionRule model = + new TargetPredefinedMetricExpressionRule( + this.metricType, this.scaleConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetPredefinedMetricExpressionRule model) { + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("scaleConfiguration")) { + this.scaleConfiguration(model.getScaleConfiguration()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TargetPredefinedMetricExpressionRule( + MetricType metricType, + TargetPredefinedExpressionThresholdScalingConfiguration scaleConfiguration) { + super(); + this.metricType = metricType; + this.scaleConfiguration = scaleConfiguration; + } + + /** + * Metric type + **/ + public enum MetricType { + CpuUtilization("CPU_UTILIZATION"), + MemoryUtilization("MEMORY_UTILIZATION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MetricType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricType v : MetricType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Metric type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final MetricType metricType; + + /** + * Metric type + * @return the value + **/ + public MetricType getMetricType() { + return metricType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scaleConfiguration") + private final TargetPredefinedExpressionThresholdScalingConfiguration scaleConfiguration; + + public TargetPredefinedExpressionThresholdScalingConfiguration getScaleConfiguration() { + return scaleConfiguration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetPredefinedMetricExpressionRule("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", scaleConfiguration=").append(String.valueOf(this.scaleConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetPredefinedMetricExpressionRule)) { + return false; + } + + TargetPredefinedMetricExpressionRule other = (TargetPredefinedMetricExpressionRule) o; + return java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals(this.scaleConfiguration, other.scaleConfiguration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.scaleConfiguration == null + ? 43 + : this.scaleConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetScalingConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetScalingConfiguration.java new file mode 100644 index 00000000000..473b8072c47 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/TargetScalingConfiguration.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The target scaling configuration for the workload scaling. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "targetScalingConfigurationType", + defaultImpl = TargetScalingConfiguration.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TargetCustomExpressionQueryScalingConfiguration.class, + name = "QUERY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TargetPredefinedExpressionThresholdScalingConfiguration.class, + name = "THRESHOLD" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TargetScalingConfiguration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected TargetScalingConfiguration() { + 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("TargetScalingConfiguration("); + 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 TargetScalingConfiguration)) { + return false; + } + + TargetScalingConfiguration other = (TargetScalingConfiguration) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The metric at which the alarm used to trigger autoscaling actions for workload. + **/ + public enum TargetScalingConfigurationType { + Threshold("THRESHOLD"), + Query("QUERY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TargetScalingConfigurationType v : TargetScalingConfigurationType.values()) { + map.put(v.getValue(), v); + } + } + + TargetScalingConfigurationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TargetScalingConfigurationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TargetScalingConfigurationType: " + key); + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateComputeConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateComputeConfigurationDetails.java new file mode 100644 index 00000000000..f069bcfb1cf --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateComputeConfigurationDetails.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Configuration details of the targeted Compute. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "computeType", + defaultImpl = UpdateComputeConfigurationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateManagedComputeClusterConfigurationDetails.class, + name = "MANAGED_COMPUTE_CLUSTER" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateComputeConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateComputeConfigurationDetails() { + 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("UpdateComputeConfigurationDetails("); + 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 UpdateComputeConfigurationDetails)) { + return false; + } + + UpdateComputeConfigurationDetails other = (UpdateComputeConfigurationDetails) 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-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateComputeTargetDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateComputeTargetDetails.java new file mode 100644 index 00000000000..bdcffe16467 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateComputeTargetDetails.java @@ -0,0 +1,391 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Details for updating a compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateComputeTargetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateComputeTargetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "metadata", + "computeConfigurationDetails", + "freeformTags", + "definedTags" + }) + public UpdateComputeTargetDetails( + String displayName, + String description, + java.util.Map metadata, + UpdateComputeConfigurationDetails computeConfigurationDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.metadata = metadata; + this.computeConfigurationDetails = computeConfigurationDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly display name for the resource. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the compute target. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeConfigurationDetails") + private UpdateComputeConfigurationDetails computeConfigurationDetails; + + public Builder computeConfigurationDetails( + UpdateComputeConfigurationDetails computeConfigurationDetails) { + this.computeConfigurationDetails = computeConfigurationDetails; + this.__explicitlySet__.add("computeConfigurationDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateComputeTargetDetails build() { + UpdateComputeTargetDetails model = + new UpdateComputeTargetDetails( + this.displayName, + this.description, + this.metadata, + this.computeConfigurationDetails, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateComputeTargetDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("computeConfigurationDetails")) { + this.computeConfigurationDetails(model.getComputeConfigurationDetails()); + } + 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 display name for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly display name for the resource. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the compute target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the compute target. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Metadata for the compute target. + * The size of metadata must be less than 2048 bytes. + * Key should be under 32 characters. + * Key should contain only letters, digits and underscore (_) + * Key should start with a letter. + * Key should have at least 2 characters. + * Key should not end with underscore eg. {@code TEST_} + * Key if added cannot be empty. Value can be empty. + * No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. + * Key can't be reserved Compute Target metadata. + * + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeConfigurationDetails") + private final UpdateComputeConfigurationDetails computeConfigurationDetails; + + public UpdateComputeConfigurationDetails getComputeConfigurationDetails() { + return computeConfigurationDetails; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateComputeTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", computeConfigurationDetails=") + .append(String.valueOf(this.computeConfigurationDetails)); + 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 UpdateComputeTargetDetails)) { + return false; + } + + UpdateComputeTargetDetails other = (UpdateComputeTargetDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals( + this.computeConfigurationDetails, other.computeConfigurationDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.computeConfigurationDetails == null + ? 43 + : this.computeConfigurationDetails.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-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterConfigurationDetails.java new file mode 100644 index 00000000000..ad785dc6fbc --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterConfigurationDetails.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The configuration details for the managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateManagedComputeClusterConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "computeType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateManagedComputeClusterConfigurationDetails + extends UpdateComputeConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfiguration") + private UpdateManagedComputeClusterInstanceConfigurationDetails instanceConfiguration; + + public Builder instanceConfiguration( + UpdateManagedComputeClusterInstanceConfigurationDetails instanceConfiguration) { + this.instanceConfiguration = instanceConfiguration; + this.__explicitlySet__.add("instanceConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private ManagedComputeClusterScalingPolicy scalingPolicy; + + public Builder scalingPolicy(ManagedComputeClusterScalingPolicy scalingPolicy) { + this.scalingPolicy = scalingPolicy; + this.__explicitlySet__.add("scalingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateManagedComputeClusterConfigurationDetails build() { + UpdateManagedComputeClusterConfigurationDetails model = + new UpdateManagedComputeClusterConfigurationDetails( + this.instanceConfiguration, this.scalingPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateManagedComputeClusterConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("instanceConfiguration")) { + this.instanceConfiguration(model.getInstanceConfiguration()); + } + if (model.wasPropertyExplicitlySet("scalingPolicy")) { + this.scalingPolicy(model.getScalingPolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateManagedComputeClusterConfigurationDetails( + UpdateManagedComputeClusterInstanceConfigurationDetails instanceConfiguration, + ManagedComputeClusterScalingPolicy scalingPolicy) { + super(); + this.instanceConfiguration = instanceConfiguration; + this.scalingPolicy = scalingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfiguration") + private final UpdateManagedComputeClusterInstanceConfigurationDetails instanceConfiguration; + + public UpdateManagedComputeClusterInstanceConfigurationDetails getInstanceConfiguration() { + return instanceConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private final ManagedComputeClusterScalingPolicy scalingPolicy; + + public ManagedComputeClusterScalingPolicy getScalingPolicy() { + return scalingPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateManagedComputeClusterConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", instanceConfiguration=").append(String.valueOf(this.instanceConfiguration)); + sb.append(", scalingPolicy=").append(String.valueOf(this.scalingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateManagedComputeClusterConfigurationDetails)) { + return false; + } + + UpdateManagedComputeClusterConfigurationDetails other = + (UpdateManagedComputeClusterConfigurationDetails) o; + return java.util.Objects.equals(this.instanceConfiguration, other.instanceConfiguration) + && java.util.Objects.equals(this.scalingPolicy, other.scalingPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.instanceConfiguration == null + ? 43 + : this.instanceConfiguration.hashCode()); + result = + (result * PRIME) + + (this.scalingPolicy == null ? 43 : this.scalingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java new file mode 100644 index 00000000000..bb01e64813e --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The compute target instance configuration details for managed compute cluster type compute target. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateManagedComputeClusterInstanceConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateManagedComputeClusterInstanceConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceShape", + "bootVolumeSizeInGBs", + "instanceShapeDetails" + }) + public UpdateManagedComputeClusterInstanceConfigurationDetails( + String instanceShape, + Integer bootVolumeSizeInGBs, + ManagedComputeClusterInstanceShapeDetails instanceShapeDetails) { + super(); + this.instanceShape = instanceShape; + this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; + this.instanceShapeDetails = instanceShapeDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceShape") + private String instanceShape; + + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + * @param instanceShape the value to set + * @return this builder + **/ + public Builder instanceShape(String instanceShape) { + this.instanceShape = instanceShape; + this.__explicitlySet__.add("instanceShape"); + return this; + } + /** + * The size of the boot volume to attach to the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") + private Integer bootVolumeSizeInGBs; + + /** + * The size of the boot volume to attach to the instance. + * @param bootVolumeSizeInGBs the value to set + * @return this builder + **/ + public Builder bootVolumeSizeInGBs(Integer bootVolumeSizeInGBs) { + this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; + this.__explicitlySet__.add("bootVolumeSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceShapeDetails") + private ManagedComputeClusterInstanceShapeDetails instanceShapeDetails; + + public Builder instanceShapeDetails( + ManagedComputeClusterInstanceShapeDetails instanceShapeDetails) { + this.instanceShapeDetails = instanceShapeDetails; + this.__explicitlySet__.add("instanceShapeDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateManagedComputeClusterInstanceConfigurationDetails build() { + UpdateManagedComputeClusterInstanceConfigurationDetails model = + new UpdateManagedComputeClusterInstanceConfigurationDetails( + this.instanceShape, + this.bootVolumeSizeInGBs, + this.instanceShapeDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateManagedComputeClusterInstanceConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("instanceShape")) { + this.instanceShape(model.getInstanceShape()); + } + if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { + this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("instanceShapeDetails")) { + this.instanceShapeDetails(model.getInstanceShapeDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceShape") + private final String instanceShape; + + /** + * The shape used to launch the instances in compute target. Supported shapes can be retrieved using compute target shapes api. + * @return the value + **/ + public String getInstanceShape() { + return instanceShape; + } + + /** + * The size of the boot volume to attach to the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") + private final Integer bootVolumeSizeInGBs; + + /** + * The size of the boot volume to attach to the instance. + * @return the value + **/ + public Integer getBootVolumeSizeInGBs() { + return bootVolumeSizeInGBs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("instanceShapeDetails") + private final ManagedComputeClusterInstanceShapeDetails instanceShapeDetails; + + public ManagedComputeClusterInstanceShapeDetails getInstanceShapeDetails() { + return instanceShapeDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateManagedComputeClusterInstanceConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("instanceShape=").append(String.valueOf(this.instanceShape)); + sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); + sb.append(", instanceShapeDetails=").append(String.valueOf(this.instanceShapeDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateManagedComputeClusterInstanceConfigurationDetails)) { + return false; + } + + UpdateManagedComputeClusterInstanceConfigurationDetails other = + (UpdateManagedComputeClusterInstanceConfigurationDetails) o; + return java.util.Objects.equals(this.instanceShape, other.instanceShape) + && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) + && java.util.Objects.equals(this.instanceShapeDetails, other.instanceShapeDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.instanceShape == null ? 43 : this.instanceShape.hashCode()); + result = + (result * PRIME) + + (this.bootVolumeSizeInGBs == null + ? 43 + : this.bootVolumeSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.instanceShapeDetails == null + ? 43 + : this.instanceShapeDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails.java new file mode 100644 index 00000000000..049b5797ca4 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Infrastructure configuration details for updating a model deploy of managed compute cluster type compute target. + * You can update the {@code modelDeploymentResourceConfiguration} and {@code scalingPolicy} properties. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "infrastructureType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails + extends UpdateModelDeployInfrastructureConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetId") + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + * @param computeTargetId the value to set + * @return this builder + **/ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + this.__explicitlySet__.add("computeTargetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelDeploymentResourceConfiguration") + private ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration; + + public Builder modelDeploymentResourceConfiguration( + ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration) { + this.modelDeploymentResourceConfiguration = modelDeploymentResourceConfiguration; + this.__explicitlySet__.add("modelDeploymentResourceConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private ManagedComputeClusterWorkloadScalingPolicy scalingPolicy; + + public Builder scalingPolicy(ManagedComputeClusterWorkloadScalingPolicy scalingPolicy) { + this.scalingPolicy = scalingPolicy; + this.__explicitlySet__.add("scalingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails build() { + UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails model = + new UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails( + this.computeTargetId, + this.modelDeploymentResourceConfiguration, + this.scalingPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails model) { + if (model.wasPropertyExplicitlySet("computeTargetId")) { + this.computeTargetId(model.getComputeTargetId()); + } + if (model.wasPropertyExplicitlySet("modelDeploymentResourceConfiguration")) { + this.modelDeploymentResourceConfiguration( + model.getModelDeploymentResourceConfiguration()); + } + if (model.wasPropertyExplicitlySet("scalingPolicy")) { + this.scalingPolicy(model.getScalingPolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails( + String computeTargetId, + ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration, + ManagedComputeClusterWorkloadScalingPolicy scalingPolicy) { + super(); + this.computeTargetId = computeTargetId; + this.modelDeploymentResourceConfiguration = modelDeploymentResourceConfiguration; + this.scalingPolicy = scalingPolicy; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeTargetId") + private final String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Compute Target. + * @return the value + **/ + public String getComputeTargetId() { + return computeTargetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelDeploymentResourceConfiguration") + private final ManagedComputeClusterModelDeploymentResourceConfiguration + modelDeploymentResourceConfiguration; + + public ManagedComputeClusterModelDeploymentResourceConfiguration + getModelDeploymentResourceConfiguration() { + return modelDeploymentResourceConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingPolicy") + private final ManagedComputeClusterWorkloadScalingPolicy scalingPolicy; + + public ManagedComputeClusterWorkloadScalingPolicy getScalingPolicy() { + return scalingPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", computeTargetId=").append(String.valueOf(this.computeTargetId)); + sb.append(", modelDeploymentResourceConfiguration=") + .append(String.valueOf(this.modelDeploymentResourceConfiguration)); + sb.append(", scalingPolicy=").append(String.valueOf(this.scalingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails)) { + return false; + } + + UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails other = + (UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails) o; + return java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && java.util.Objects.equals( + this.modelDeploymentResourceConfiguration, + other.modelDeploymentResourceConfiguration) + && java.util.Objects.equals(this.scalingPolicy, other.scalingPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.computeTargetId == null ? 43 : this.computeTargetId.hashCode()); + result = + (result * PRIME) + + (this.modelDeploymentResourceConfiguration == null + ? 43 + : this.modelDeploymentResourceConfiguration.hashCode()); + result = + (result * PRIME) + + (this.scalingPolicy == null ? 43 : this.scalingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeployInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeployInfrastructureConfigurationDetails.java new file mode 100644 index 00000000000..fec46537f36 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeployInfrastructureConfigurationDetails.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The Infrastructure configuration details for updating a model 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: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "infrastructureType", + defaultImpl = UpdateModelDeployInfrastructureConfigurationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateManagedComputeClusterModelDeployInfrastructureConfigDetails.class, + name = "MANAGED_COMPUTE_CLUSTER" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateModelDeployInfrastructureConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateModelDeployInfrastructureConfigurationDetails() { + 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("UpdateModelDeployInfrastructureConfigurationDetails("); + 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 UpdateModelDeployInfrastructureConfigurationDetails)) { + return false; + } + + UpdateModelDeployInfrastructureConfigurationDetails other = + (UpdateModelDeployInfrastructureConfigurationDetails) 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-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeploymentConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeploymentConfigurationDetails.java index 5c1e26f2775..34456ea65ea 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeploymentConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateModelDeploymentConfigurationDetails.java @@ -29,6 +29,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateSingleModelDeploymentConfigurationDetails.class, name = "SINGLE_MODEL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateSingleModelDeploymentFlexConfigurationDetails.class, + name = "SINGLE_MODEL_FLEX" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateOcirModelDeploymentEnvironmentConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateOcirModelDeploymentEnvironmentConfigurationDetails.java index 2e923dd29af..1611016598d 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateOcirModelDeploymentEnvironmentConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateOcirModelDeploymentEnvironmentConfigurationDetails.java @@ -210,6 +210,47 @@ public Builder environmentVariables(java.util.Map environmentVar this.__explicitlySet__.add("environmentVariables"); return this; } + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("predictApiSpecification") + private String predictApiSpecification; + + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + * @param predictApiSpecification the value to set + * @return this builder + **/ + public Builder predictApiSpecification(String predictApiSpecification) { + this.predictApiSpecification = predictApiSpecification; + this.__explicitlySet__.add("predictApiSpecification"); + return this; + } + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customHttpEndpoints") + private java.util.List customHttpEndpoints; + + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + * @param customHttpEndpoints the value to set + * @return this builder + **/ + public Builder customHttpEndpoints( + java.util.List customHttpEndpoints) { + this.customHttpEndpoints = customHttpEndpoints; + this.__explicitlySet__.add("customHttpEndpoints"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -224,7 +265,9 @@ public UpdateOcirModelDeploymentEnvironmentConfigurationDetails build() { this.entrypoint, this.serverPort, this.healthCheckPort, - this.environmentVariables); + this.environmentVariables, + this.predictApiSpecification, + this.customHttpEndpoints); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -257,6 +300,12 @@ public Builder copy(UpdateOcirModelDeploymentEnvironmentConfigurationDetails mod if (model.wasPropertyExplicitlySet("environmentVariables")) { this.environmentVariables(model.getEnvironmentVariables()); } + if (model.wasPropertyExplicitlySet("predictApiSpecification")) { + this.predictApiSpecification(model.getPredictApiSpecification()); + } + if (model.wasPropertyExplicitlySet("customHttpEndpoints")) { + this.customHttpEndpoints(model.getCustomHttpEndpoints()); + } return this; } } @@ -281,7 +330,9 @@ public UpdateOcirModelDeploymentEnvironmentConfigurationDetails( java.util.List entrypoint, Integer serverPort, Integer healthCheckPort, - java.util.Map environmentVariables) { + java.util.Map environmentVariables, + String predictApiSpecification, + java.util.List customHttpEndpoints) { super(); this.image = image; this.imageDigest = imageDigest; @@ -291,6 +342,8 @@ public UpdateOcirModelDeploymentEnvironmentConfigurationDetails( this.serverPort = serverPort; this.healthCheckPort = healthCheckPort; this.environmentVariables = environmentVariables; + this.predictApiSpecification = predictApiSpecification; + this.customHttpEndpoints = customHttpEndpoints; } /** @@ -459,6 +512,42 @@ public java.util.Map getEnvironmentVariables() { return environmentVariables; } + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("predictApiSpecification") + private final String predictApiSpecification; + + /** + * The chosen specification from predefined set of endpoints a user can access. + * For example, if the value is 'openai', the user can access OpenAI-compliant endpoints + * like /v1/completions, /v1/chat/completions, /v1/models, etc., for inference. + * + * @return the value + **/ + public String getPredictApiSpecification() { + return predictApiSpecification; + } + + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customHttpEndpoints") + private final java.util.List customHttpEndpoints; + + /** + * List of custom inference HTTP endpoints configured on the model deployment instance for inferencing. + * + * @return the value + **/ + public java.util.List getCustomHttpEndpoints() { + return customHttpEndpoints; + } + @Override public String toString() { return this.toString(true); @@ -481,6 +570,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", serverPort=").append(String.valueOf(this.serverPort)); sb.append(", healthCheckPort=").append(String.valueOf(this.healthCheckPort)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", predictApiSpecification=") + .append(String.valueOf(this.predictApiSpecification)); + sb.append(", customHttpEndpoints=").append(String.valueOf(this.customHttpEndpoints)); sb.append(")"); return sb.toString(); } @@ -504,6 +596,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.serverPort, other.serverPort) && java.util.Objects.equals(this.healthCheckPort, other.healthCheckPort) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals( + this.predictApiSpecification, other.predictApiSpecification) + && java.util.Objects.equals(this.customHttpEndpoints, other.customHttpEndpoints) && super.equals(other); } @@ -527,6 +622,16 @@ public int hashCode() { + (this.environmentVariables == null ? 43 : this.environmentVariables.hashCode()); + result = + (result * PRIME) + + (this.predictApiSpecification == null + ? 43 + : this.predictApiSpecification.hashCode()); + result = + (result * PRIME) + + (this.customHttpEndpoints == null + ? 43 + : this.customHttpEndpoints.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateSingleModelConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateSingleModelConfigurationDetails.java new file mode 100644 index 00000000000..feb7ec46e64 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateSingleModelConfigurationDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The single model configuration details for updating a model 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: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSingleModelConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateSingleModelConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"modelId"}) + public UpdateSingleModelConfigurationDetails(String modelId) { + super(); + this.modelId = modelId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSingleModelConfigurationDetails build() { + UpdateSingleModelConfigurationDetails model = + new UpdateSingleModelConfigurationDetails(this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSingleModelConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a model. + * @return the value + **/ + public String getModelId() { + return modelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSingleModelConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("modelId=").append(String.valueOf(this.modelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSingleModelConfigurationDetails)) { + return false; + } + + UpdateSingleModelConfigurationDetails other = (UpdateSingleModelConfigurationDetails) o; + return java.util.Objects.equals(this.modelId, other.modelId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateSingleModelDeploymentFlexConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateSingleModelDeploymentFlexConfigurationDetails.java new file mode 100644 index 00000000000..2ad3f4502b8 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateSingleModelDeploymentFlexConfigurationDetails.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The single model deployment flex configuration details for updating a model 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: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSingleModelDeploymentFlexConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "deploymentType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateSingleModelDeploymentFlexConfigurationDetails + extends UpdateModelDeploymentConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("modelConfigurationDetails") + private UpdateSingleModelConfigurationDetails modelConfigurationDetails; + + public Builder modelConfigurationDetails( + UpdateSingleModelConfigurationDetails modelConfigurationDetails) { + this.modelConfigurationDetails = modelConfigurationDetails; + this.__explicitlySet__.add("modelConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureConfigurationDetails") + private UpdateModelDeployInfrastructureConfigurationDetails + infrastructureConfigurationDetails; + + public Builder infrastructureConfigurationDetails( + UpdateModelDeployInfrastructureConfigurationDetails + infrastructureConfigurationDetails) { + this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.__explicitlySet__.add("infrastructureConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentConfigurationDetails") + private UpdateModelDeploymentEnvironmentConfigurationDetails + environmentConfigurationDetails; + + public Builder environmentConfigurationDetails( + UpdateModelDeploymentEnvironmentConfigurationDetails + environmentConfigurationDetails) { + this.environmentConfigurationDetails = environmentConfigurationDetails; + this.__explicitlySet__.add("environmentConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSingleModelDeploymentFlexConfigurationDetails build() { + UpdateSingleModelDeploymentFlexConfigurationDetails model = + new UpdateSingleModelDeploymentFlexConfigurationDetails( + this.modelConfigurationDetails, + this.infrastructureConfigurationDetails, + this.environmentConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSingleModelDeploymentFlexConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("modelConfigurationDetails")) { + this.modelConfigurationDetails(model.getModelConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("infrastructureConfigurationDetails")) { + this.infrastructureConfigurationDetails( + model.getInfrastructureConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("environmentConfigurationDetails")) { + this.environmentConfigurationDetails(model.getEnvironmentConfigurationDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateSingleModelDeploymentFlexConfigurationDetails( + UpdateSingleModelConfigurationDetails modelConfigurationDetails, + UpdateModelDeployInfrastructureConfigurationDetails infrastructureConfigurationDetails, + UpdateModelDeploymentEnvironmentConfigurationDetails environmentConfigurationDetails) { + super(); + this.modelConfigurationDetails = modelConfigurationDetails; + this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.environmentConfigurationDetails = environmentConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelConfigurationDetails") + private final UpdateSingleModelConfigurationDetails modelConfigurationDetails; + + public UpdateSingleModelConfigurationDetails getModelConfigurationDetails() { + return modelConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureConfigurationDetails") + private final UpdateModelDeployInfrastructureConfigurationDetails + infrastructureConfigurationDetails; + + public UpdateModelDeployInfrastructureConfigurationDetails + getInfrastructureConfigurationDetails() { + return infrastructureConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("environmentConfigurationDetails") + private final UpdateModelDeploymentEnvironmentConfigurationDetails + environmentConfigurationDetails; + + public UpdateModelDeploymentEnvironmentConfigurationDetails + getEnvironmentConfigurationDetails() { + return environmentConfigurationDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSingleModelDeploymentFlexConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", modelConfigurationDetails=") + .append(String.valueOf(this.modelConfigurationDetails)); + sb.append(", infrastructureConfigurationDetails=") + .append(String.valueOf(this.infrastructureConfigurationDetails)); + sb.append(", environmentConfigurationDetails=") + .append(String.valueOf(this.environmentConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSingleModelDeploymentFlexConfigurationDetails)) { + return false; + } + + UpdateSingleModelDeploymentFlexConfigurationDetails other = + (UpdateSingleModelDeploymentFlexConfigurationDetails) o; + return java.util.Objects.equals( + this.modelConfigurationDetails, other.modelConfigurationDetails) + && java.util.Objects.equals( + this.infrastructureConfigurationDetails, + other.infrastructureConfigurationDetails) + && java.util.Objects.equals( + this.environmentConfigurationDetails, other.environmentConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.modelConfigurationDetails == null + ? 43 + : this.modelConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureConfigurationDetails == null + ? 43 + : this.infrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.environmentConfigurationDetails == null + ? 43 + : this.environmentConfigurationDetails.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/WorkRequestOperationType.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/WorkRequestOperationType.java index 0725fdb8628..a8647bfe2a3 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/WorkRequestOperationType.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/WorkRequestOperationType.java @@ -55,6 +55,9 @@ public enum WorkRequestOperationType { ScheduleDeactivate("SCHEDULE_DEACTIVATE"), RegisterModelArtifact("REGISTER_MODEL_ARTIFACT"), RestoreArchivedModel("RESTORE_ARCHIVED_MODEL"), + ComputeTargetCreate("COMPUTE_TARGET_CREATE"), + ComputeTargetUpdate("COMPUTE_TARGET_UPDATE"), + ComputeTargetDelete("COMPUTE_TARGET_DELETE"), ModelGroupCreate("MODEL_GROUP_CREATE"), ModelGroupUpdate("MODEL_GROUP_UPDATE"), ModelGroupDelete("MODEL_GROUP_DELETE"), diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ChangeComputeTargetCompartmentRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ChangeComputeTargetCompartmentRequest.java new file mode 100644 index 00000000000..748553392f6 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ChangeComputeTargetCompartmentRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use ChangeComputeTargetCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ChangeComputeTargetCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + public String getComputeTargetId() { + return computeTargetId; + } + /** + * Details for changing the compartment of a compute target. + */ + private com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails + changeComputeTargetCompartmentDetails; + + /** + * Details for changing the compartment of a compute target. + */ + public com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails + getChangeComputeTargetCompartmentDetails() { + return changeComputeTargetCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, 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 {@code etag} you + * provide matches the resource's current {@code 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code etag} value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails getBody$() { + return changeComputeTargetCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeComputeTargetCompartmentRequest, + com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param computeTargetId the value to set + * @return this builder instance + */ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + return this; + } + + /** + * Details for changing the compartment of a compute target. + */ + private com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails + changeComputeTargetCompartmentDetails = null; + + /** + * Details for changing the compartment of a compute target. + * @param changeComputeTargetCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeComputeTargetCompartmentDetails( + com.oracle.bmc.datascience.model.ChangeComputeTargetCompartmentDetails + changeComputeTargetCompartmentDetails) { + this.changeComputeTargetCompartmentDetails = changeComputeTargetCompartmentDetails; + 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeComputeTargetCompartmentRequest o) { + computeTargetId(o.getComputeTargetId()); + changeComputeTargetCompartmentDetails(o.getChangeComputeTargetCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeComputeTargetCompartmentRequest 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 ChangeComputeTargetCompartmentRequest + */ + public ChangeComputeTargetCompartmentRequest build() { + ChangeComputeTargetCompartmentRequest 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.datascience.model.ChangeComputeTargetCompartmentDetails body) { + changeComputeTargetCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeComputeTargetCompartmentRequest 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 ChangeComputeTargetCompartmentRequest + */ + public ChangeComputeTargetCompartmentRequest buildWithoutInvocationCallback() { + ChangeComputeTargetCompartmentRequest request = + new ChangeComputeTargetCompartmentRequest(); + request.computeTargetId = computeTargetId; + request.changeComputeTargetCompartmentDetails = changeComputeTargetCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeComputeTargetCompartmentRequest(computeTargetId, changeComputeTargetCompartmentDetails, 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() + .computeTargetId(computeTargetId) + .changeComputeTargetCompartmentDetails(changeComputeTargetCompartmentDetails) + .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(",computeTargetId=").append(String.valueOf(this.computeTargetId)); + sb.append(",changeComputeTargetCompartmentDetails=") + .append(String.valueOf(this.changeComputeTargetCompartmentDetails)); + 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 ChangeComputeTargetCompartmentRequest)) { + return false; + } + + ChangeComputeTargetCompartmentRequest other = (ChangeComputeTargetCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && java.util.Objects.equals( + this.changeComputeTargetCompartmentDetails, + other.changeComputeTargetCompartmentDetails) + && 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.computeTargetId == null ? 43 : this.computeTargetId.hashCode()); + result = + (result * PRIME) + + (this.changeComputeTargetCompartmentDetails == null + ? 43 + : this.changeComputeTargetCompartmentDetails.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-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateComputeTargetRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateComputeTargetRequest.java new file mode 100644 index 00000000000..3fa154a100f --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateComputeTargetRequest.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use CreateComputeTargetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class CreateComputeTargetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datascience.model.CreateComputeTargetDetails> { + + /** + * Details for creating a new compute target. + */ + private com.oracle.bmc.datascience.model.CreateComputeTargetDetails createComputeTargetDetails; + + /** + * Details for creating a new compute target. + */ + public com.oracle.bmc.datascience.model.CreateComputeTargetDetails + getCreateComputeTargetDetails() { + return createComputeTargetDetails; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datascience.model.CreateComputeTargetDetails getBody$() { + return createComputeTargetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateComputeTargetRequest, + com.oracle.bmc.datascience.model.CreateComputeTargetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for creating a new compute target. + */ + private com.oracle.bmc.datascience.model.CreateComputeTargetDetails + createComputeTargetDetails = null; + + /** + * Details for creating a new compute target. + * @param createComputeTargetDetails the value to set + * @return this builder instance + */ + public Builder createComputeTargetDetails( + com.oracle.bmc.datascience.model.CreateComputeTargetDetails + createComputeTargetDetails) { + this.createComputeTargetDetails = createComputeTargetDetails; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateComputeTargetRequest o) { + createComputeTargetDetails(o.getCreateComputeTargetDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateComputeTargetRequest 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 CreateComputeTargetRequest + */ + public CreateComputeTargetRequest build() { + CreateComputeTargetRequest 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.datascience.model.CreateComputeTargetDetails body) { + createComputeTargetDetails(body); + return this; + } + + /** + * Build the instance of CreateComputeTargetRequest 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 CreateComputeTargetRequest + */ + public CreateComputeTargetRequest buildWithoutInvocationCallback() { + CreateComputeTargetRequest request = new CreateComputeTargetRequest(); + request.createComputeTargetDetails = createComputeTargetDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateComputeTargetRequest(createComputeTargetDetails, 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() + .createComputeTargetDetails(createComputeTargetDetails) + .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(",createComputeTargetDetails=") + .append(String.valueOf(this.createComputeTargetDetails)); + 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 CreateComputeTargetRequest)) { + return false; + } + + CreateComputeTargetRequest other = (CreateComputeTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createComputeTargetDetails, other.createComputeTargetDetails) + && 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.createComputeTargetDetails == null + ? 43 + : this.createComputeTargetDetails.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-datascience/src/main/java/com/oracle/bmc/datascience/requests/DeleteComputeTargetRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/DeleteComputeTargetRequest.java new file mode 100644 index 00000000000..b02e779ebb7 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/DeleteComputeTargetRequest.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use DeleteComputeTargetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class DeleteComputeTargetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + public String getComputeTargetId() { + return computeTargetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, 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 {@code etag} you + * provide matches the resource's current {@code 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code etag} value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteComputeTargetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param computeTargetId the value to set + * @return this builder instance + */ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then 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(DeleteComputeTargetRequest o) { + computeTargetId(o.getComputeTargetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteComputeTargetRequest 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 DeleteComputeTargetRequest + */ + public DeleteComputeTargetRequest build() { + DeleteComputeTargetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteComputeTargetRequest 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 DeleteComputeTargetRequest + */ + public DeleteComputeTargetRequest buildWithoutInvocationCallback() { + DeleteComputeTargetRequest request = new DeleteComputeTargetRequest(); + request.computeTargetId = computeTargetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteComputeTargetRequest(computeTargetId, 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() + .computeTargetId(computeTargetId) + .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(",computeTargetId=").append(String.valueOf(this.computeTargetId)); + 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 DeleteComputeTargetRequest)) { + return false; + } + + DeleteComputeTargetRequest other = (DeleteComputeTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && 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.computeTargetId == null ? 43 : this.computeTargetId.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-datascience/src/main/java/com/oracle/bmc/datascience/requests/GetComputeTargetRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/GetComputeTargetRequest.java new file mode 100644 index 00000000000..3e1bfd490cf --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/GetComputeTargetRequest.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use GetComputeTargetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class GetComputeTargetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + public String getComputeTargetId() { + return computeTargetId; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetComputeTargetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param computeTargetId the value to set + * @return this builder instance + */ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then 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(GetComputeTargetRequest o) { + computeTargetId(o.getComputeTargetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetComputeTargetRequest 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 GetComputeTargetRequest + */ + public GetComputeTargetRequest build() { + GetComputeTargetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetComputeTargetRequest 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 GetComputeTargetRequest + */ + public GetComputeTargetRequest buildWithoutInvocationCallback() { + GetComputeTargetRequest request = new GetComputeTargetRequest(); + request.computeTargetId = computeTargetId; + request.opcRequestId = opcRequestId; + return request; + // new GetComputeTargetRequest(computeTargetId, 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().computeTargetId(computeTargetId).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(",computeTargetId=").append(String.valueOf(this.computeTargetId)); + 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 GetComputeTargetRequest)) { + return false; + } + + GetComputeTargetRequest other = (GetComputeTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.computeTargetId == null ? 43 : this.computeTargetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListComputeTargetShapesRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListComputeTargetShapesRequest.java new file mode 100644 index 00000000000..44b9f2f17c6 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListComputeTargetShapesRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use ListComputeTargetShapesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ListComputeTargetShapesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + private String compartmentId; + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListComputeTargetShapesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + private String compartmentId = null; + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then 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 list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListComputeTargetShapesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListComputeTargetShapesRequest 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 ListComputeTargetShapesRequest + */ + public ListComputeTargetShapesRequest build() { + ListComputeTargetShapesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListComputeTargetShapesRequest 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 ListComputeTargetShapesRequest + */ + public ListComputeTargetShapesRequest buildWithoutInvocationCallback() { + ListComputeTargetShapesRequest request = new ListComputeTargetShapesRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListComputeTargetShapesRequest(compartmentId, opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListComputeTargetShapesRequest)) { + return false; + } + + ListComputeTargetShapesRequest other = (ListComputeTargetShapesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListComputeTargetsRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListComputeTargetsRequest.java new file mode 100644 index 00000000000..6c3b954350c --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListComputeTargetsRequest.java @@ -0,0 +1,577 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use ListComputeTargetsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ListComputeTargetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + private String compartmentId; + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Filter results by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for the resource type. + * + */ + private String id; + + /** + * Filter results by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for the resource type. + * + */ + public String getId() { + return id; + } + /** + * Filter results by its user-friendly name. + */ + private String displayName; + + /** + * Filter results by its user-friendly name. + */ + public String getDisplayName() { + return displayName; + } + /** + * Filter results by the specified lifecycle state. Must be a valid + * state for the resource type. + * + */ + private com.oracle.bmc.datascience.model.ComputeTargetLifecycleState lifecycleState; + + /** + * Filter results by the specified lifecycle state. Must be a valid + * state for the resource type. + * + */ + public com.oracle.bmc.datascience.model.ComputeTargetLifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * Specifies sort order to use, either {@code ASC} (ascending) or {@code DESC} (descending). + * + */ + private SortOrder sortOrder; + + /** + * Specifies sort order to use, either {@code ASC} (ascending) or {@code DESC} (descending). + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * Specifies sort order to use, either {@code ASC} (ascending) or {@code DESC} (descending). + * + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * Specifies the field to sort by. Accepts only one field. + * By default, when you sort by {@code timeCreated}, the results are shown + * in descending order. When you sort by {@code displayName}, the results are + * shown in ascending order. Sort order for the {@code displayName} field is case sensitive. + * + */ + private SortBy sortBy; + + /** + * Specifies the field to sort by. Accepts only one field. + * By default, when you sort by {@code timeCreated}, the results are shown + * in descending order. When you sort by {@code displayName}, the results are + * shown in ascending order. Sort order for the {@code displayName} field is case sensitive. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * Specifies the field to sort by. Accepts only one field. + * By default, when you sort by {@code timeCreated}, the results are shown + * in descending order. When you sort by {@code displayName}, the results are + * shown in ascending order. Sort order for the {@code displayName} field is case sensitive. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListComputeTargetsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + private String compartmentId = null; + + /** + * Filter results by the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Filter results by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for the resource type. + * + */ + private String id = null; + + /** + * Filter results by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for the resource type. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * Filter results by its user-friendly name. + */ + private String displayName = null; + + /** + * Filter results by its user-friendly name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filter results by the specified lifecycle state. Must be a valid + * state for the resource type. + * + */ + private com.oracle.bmc.datascience.model.ComputeTargetLifecycleState lifecycleState = null; + + /** + * Filter results by the specified lifecycle state. Must be a valid + * state for the resource type. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.datascience.model.ComputeTargetLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, + * or items to return in a paginated "List" call. + * 1 is the minimum, 100 is the maximum. + * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response + * header from the previous "List" call. + *

+ * See [List Pagination](https://docs.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Specifies sort order to use, either {@code ASC} (ascending) or {@code DESC} (descending). + * + */ + private SortOrder sortOrder = null; + + /** + * Specifies sort order to use, either {@code ASC} (ascending) or {@code DESC} (descending). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Specifies the field to sort by. Accepts only one field. + * By default, when you sort by {@code timeCreated}, the results are shown + * in descending order. When you sort by {@code displayName}, the results are + * shown in ascending order. Sort order for the {@code displayName} field is case sensitive. + * + */ + private SortBy sortBy = null; + + /** + * Specifies the field to sort by. Accepts only one field. + * By default, when you sort by {@code timeCreated}, the results are shown + * in descending order. When you sort by {@code displayName}, the results are + * shown in ascending order. Sort order for the {@code displayName} field is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then 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(ListComputeTargetsRequest o) { + compartmentId(o.getCompartmentId()); + id(o.getId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListComputeTargetsRequest 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 ListComputeTargetsRequest + */ + public ListComputeTargetsRequest build() { + ListComputeTargetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListComputeTargetsRequest 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 ListComputeTargetsRequest + */ + public ListComputeTargetsRequest buildWithoutInvocationCallback() { + ListComputeTargetsRequest request = new ListComputeTargetsRequest(); + request.compartmentId = compartmentId; + request.id = id; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListComputeTargetsRequest(compartmentId, id, displayName, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .id(id) + .displayName(displayName) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListComputeTargetsRequest)) { + return false; + } + + ListComputeTargetsRequest other = (ListComputeTargetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListWorkRequestsRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListWorkRequestsRequest.java index 54d20d38591..ff1db14a2ba 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListWorkRequestsRequest.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/ListWorkRequestsRequest.java @@ -101,6 +101,9 @@ public enum OperationType { ScheduleDeactivate("SCHEDULE_DEACTIVATE"), RegisterModelArtifact("REGISTER_MODEL_ARTIFACT"), RestoreArchivedModel("RESTORE_ARCHIVED_MODEL"), + ComputeTargetCreate("COMPUTE_TARGET_CREATE"), + ComputeTargetUpdate("COMPUTE_TARGET_UPDATE"), + ComputeTargetDelete("COMPUTE_TARGET_DELETE"), ModelGroupCreate("MODEL_GROUP_CREATE"), ModelGroupUpdate("MODEL_GROUP_UPDATE"), ModelGroupDelete("MODEL_GROUP_DELETE"), diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/UpdateComputeTargetRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/UpdateComputeTargetRequest.java new file mode 100644 index 00000000000..f5fe5c993e0 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/UpdateComputeTargetRequest.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.requests; + +import com.oracle.bmc.datascience.model.*; +/** + * Example: Click here to see how to use UpdateComputeTargetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class UpdateComputeTargetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datascience.model.UpdateComputeTargetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + public String getComputeTargetId() { + return computeTargetId; + } + /** + * Details for updating a Compute Target. + */ + private com.oracle.bmc.datascience.model.UpdateComputeTargetDetails updateComputeTargetDetails; + + /** + * Details for updating a Compute Target. + */ + public com.oracle.bmc.datascience.model.UpdateComputeTargetDetails + getUpdateComputeTargetDetails() { + return updateComputeTargetDetails; + } + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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.datascience.model.UpdateComputeTargetDetails getBody$() { + return updateComputeTargetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateComputeTargetRequest, + com.oracle.bmc.datascience.model.UpdateComputeTargetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + */ + private String computeTargetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute target. + * @param computeTargetId the value to set + * @return this builder instance + */ + public Builder computeTargetId(String computeTargetId) { + this.computeTargetId = computeTargetId; + return this; + } + + /** + * Details for updating a Compute Target. + */ + private com.oracle.bmc.datascience.model.UpdateComputeTargetDetails + updateComputeTargetDetails = null; + + /** + * Details for updating a Compute Target. + * @param updateComputeTargetDetails the value to set + * @return this builder instance + */ + public Builder updateComputeTargetDetails( + com.oracle.bmc.datascience.model.UpdateComputeTargetDetails + updateComputeTargetDetails) { + this.updateComputeTargetDetails = updateComputeTargetDetails; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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 is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code 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(UpdateComputeTargetRequest o) { + computeTargetId(o.getComputeTargetId()); + updateComputeTargetDetails(o.getUpdateComputeTargetDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateComputeTargetRequest 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 UpdateComputeTargetRequest + */ + public UpdateComputeTargetRequest build() { + UpdateComputeTargetRequest 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.datascience.model.UpdateComputeTargetDetails body) { + updateComputeTargetDetails(body); + return this; + } + + /** + * Build the instance of UpdateComputeTargetRequest 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 UpdateComputeTargetRequest + */ + public UpdateComputeTargetRequest buildWithoutInvocationCallback() { + UpdateComputeTargetRequest request = new UpdateComputeTargetRequest(); + request.computeTargetId = computeTargetId; + request.updateComputeTargetDetails = updateComputeTargetDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateComputeTargetRequest(computeTargetId, updateComputeTargetDetails, 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() + .computeTargetId(computeTargetId) + .updateComputeTargetDetails(updateComputeTargetDetails) + .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(",computeTargetId=").append(String.valueOf(this.computeTargetId)); + sb.append(",updateComputeTargetDetails=") + .append(String.valueOf(this.updateComputeTargetDetails)); + 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 UpdateComputeTargetRequest)) { + return false; + } + + UpdateComputeTargetRequest other = (UpdateComputeTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.computeTargetId, other.computeTargetId) + && java.util.Objects.equals( + this.updateComputeTargetDetails, other.updateComputeTargetDetails) + && 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.computeTargetId == null ? 43 : this.computeTargetId.hashCode()); + result = + (result * PRIME) + + (this.updateComputeTargetDetails == null + ? 43 + : this.updateComputeTargetDetails.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-datascience/src/main/java/com/oracle/bmc/datascience/responses/ChangeComputeTargetCompartmentResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ChangeComputeTargetCompartmentResponse.java new file mode 100644 index 00000000000..82615919161 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ChangeComputeTargetCompartmentResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ChangeComputeTargetCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeComputeTargetCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then 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(ChangeComputeTargetCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeComputeTargetCompartmentResponse build() { + return new ChangeComputeTargetCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeComputeTargetCompartmentResponse)) { + return false; + } + + ChangeComputeTargetCompartmentResponse other = (ChangeComputeTargetCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/CreateComputeTargetResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/CreateComputeTargetResponse.java new file mode 100644 index 00000000000..68fdfd72b58 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/CreateComputeTargetResponse.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class CreateComputeTargetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The URI that identifies the entity described in the response body. + * + */ + private String location; + + /** + * The URI that identifies the entity described in the response body. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The returned ComputeTarget instance. + */ + private com.oracle.bmc.datascience.model.ComputeTarget computeTarget; + + /** + * The returned ComputeTarget instance. + * @return the value + */ + public com.oracle.bmc.datascience.model.ComputeTarget getComputeTarget() { + return computeTarget; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "location", + "opcRequestId", + "opcWorkRequestId", + "computeTarget" + }) + private CreateComputeTargetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String location, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.datascience.model.ComputeTarget computeTarget) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.location = location; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.computeTarget = computeTarget; + } + + 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 [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The URI that identifies the entity described in the response body. + * + */ + private String location; + + /** + * The URI that identifies the entity described in the response body. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The returned ComputeTarget instance. + */ + private com.oracle.bmc.datascience.model.ComputeTarget computeTarget; + + /** + * The returned ComputeTarget instance. + * @param computeTarget the value to set + * @return this builder + */ + public Builder computeTarget(com.oracle.bmc.datascience.model.ComputeTarget computeTarget) { + this.computeTarget = computeTarget; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateComputeTargetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + location(o.getLocation()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + computeTarget(o.getComputeTarget()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateComputeTargetResponse build() { + return new CreateComputeTargetResponse( + __httpStatusCode__, + headers, + etag, + location, + opcRequestId, + opcWorkRequestId, + computeTarget); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",location=").append(String.valueOf(location)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",computeTarget=").append(String.valueOf(computeTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateComputeTargetResponse)) { + return false; + } + + CreateComputeTargetResponse other = (CreateComputeTargetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.computeTarget, other.computeTarget); + } + + @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.location == null ? 43 : this.location.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.computeTarget == null ? 43 : this.computeTarget.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/DeleteComputeTargetResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/DeleteComputeTargetResponse.java new file mode 100644 index 00000000000..fbc84055f73 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/DeleteComputeTargetResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class DeleteComputeTargetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/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, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteComputeTargetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/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, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then 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(DeleteComputeTargetResponse 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 DeleteComputeTargetResponse build() { + return new DeleteComputeTargetResponse( + __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 DeleteComputeTargetResponse)) { + return false; + } + + DeleteComputeTargetResponse other = (DeleteComputeTargetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/GetComputeTargetResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/GetComputeTargetResponse.java new file mode 100644 index 00000000000..c01295b7071 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/GetComputeTargetResponse.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class GetComputeTargetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned ComputeTarget instance. + */ + private com.oracle.bmc.datascience.model.ComputeTarget computeTarget; + + /** + * The returned ComputeTarget instance. + * @return the value + */ + public com.oracle.bmc.datascience.model.ComputeTarget getComputeTarget() { + return computeTarget; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "computeTarget" + }) + private GetComputeTargetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.datascience.model.ComputeTarget computeTarget) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.computeTarget = computeTarget; + } + + 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 [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then 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 ComputeTarget instance. + */ + private com.oracle.bmc.datascience.model.ComputeTarget computeTarget; + + /** + * The returned ComputeTarget instance. + * @param computeTarget the value to set + * @return this builder + */ + public Builder computeTarget(com.oracle.bmc.datascience.model.ComputeTarget computeTarget) { + this.computeTarget = computeTarget; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetComputeTargetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + computeTarget(o.getComputeTarget()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetComputeTargetResponse build() { + return new GetComputeTargetResponse( + __httpStatusCode__, headers, etag, opcRequestId, computeTarget); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",computeTarget=").append(String.valueOf(computeTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetComputeTargetResponse)) { + return false; + } + + GetComputeTargetResponse other = (GetComputeTargetResponse) 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.computeTarget, other.computeTarget); + } + + @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.computeTarget == null ? 43 : this.computeTarget.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ListComputeTargetShapesResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ListComputeTargetShapesResponse.java new file mode 100644 index 00000000000..44fd45c01b3 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ListComputeTargetShapesResponse.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ListComputeTargetShapesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetShapeSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetShapeSummary instances. + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcPrevPage", + "opcRequestId", + "items" + }) + private ListComputeTargetShapesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcPrevPage, + String opcRequestId, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.opcRequestId = opcRequestId; + this.items = items; + } + + 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; + } + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetShapeSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetShapeSummary instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListComputeTargetShapesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListComputeTargetShapesResponse build() { + return new ListComputeTargetShapesResponse( + __httpStatusCode__, headers, opcNextPage, opcPrevPage, opcRequestId, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListComputeTargetShapesResponse)) { + return false; + } + + ListComputeTargetShapesResponse other = (ListComputeTargetShapesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ListComputeTargetsResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ListComputeTargetsResponse.java new file mode 100644 index 00000000000..8b69834a161 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/ListComputeTargetsResponse.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class ListComputeTargetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetSummary instances. + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcPrevPage", + "opcRequestId", + "items" + }) + private ListComputeTargetsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcPrevPage, + String opcRequestId, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.opcRequestId = opcRequestId; + this.items = items; + } + + 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; + } + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.datascience.model.ComputeTargetSummary instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListComputeTargetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListComputeTargetsResponse build() { + return new ListComputeTargetsResponse( + __httpStatusCode__, headers, opcNextPage, opcPrevPage, opcRequestId, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListComputeTargetsResponse)) { + return false; + } + + ListComputeTargetsResponse other = (ListComputeTargetsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/UpdateComputeTargetResponse.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/UpdateComputeTargetResponse.java new file mode 100644 index 00000000000..27c4eab4624 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/responses/UpdateComputeTargetResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.responses; + +import com.oracle.bmc.datascience.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +public class UpdateComputeTargetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private UpdateComputeTargetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateComputeTargetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateComputeTargetResponse build() { + return new UpdateComputeTargetResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateComputeTargetResponse)) { + return false; + } + + UpdateComputeTargetResponse other = (UpdateComputeTargetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index e4c08efc3de..93d8dfb1bf0 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index cfad772baa8..7a3bfee37e0 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProvider.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProvider.java index 99031822701..9540727b9eb 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProvider.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProvider.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @@ -256,6 +256,19 @@ RefreshOracleDbAwsIdentityConnectorResponse refreshOracleDbAwsIdentityConnector( */ RefreshOracleDbAwsKeyResponse refreshOracleDbAwsKey(RefreshOracleDbAwsKeyRequest request); + /** + * Replicate Oracle AWS Key resource to target 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 ReplicateOracleDbAwsKey API. + */ + ReplicateOracleDbAwsKeyResponse replicateOracleDbAwsKey(ReplicateOracleDbAwsKeyRequest request); + /** * Modifies the existing Oracle DB AWS Identity Connector resource for a given [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsync.java index 57925caadf4..0242f0aeb76 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") @@ -309,6 +309,23 @@ java.util.concurrent.Future refreshOracleDbAwsKey RefreshOracleDbAwsKeyRequest, RefreshOracleDbAwsKeyResponse> handler); + /** + * Replicate Oracle AWS Key resource to target 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 replicateOracleDbAwsKey( + ReplicateOracleDbAwsKeyRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAwsKeyRequest, ReplicateOracleDbAwsKeyResponse> + handler); + /** * Modifies the existing Oracle DB AWS Identity Connector resource for a given [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsyncClient.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsyncClient.java index 686d7bba6cd..f01e5f0086e 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsyncClient.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderAsyncClient.java @@ -1112,6 +1112,60 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future replicateOracleDbAwsKey( + ReplicateOracleDbAwsKeyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAwsKeyRequest, ReplicateOracleDbAwsKeyResponse> + handler) { + LOG.trace("Called async replicateOracleDbAwsKey"); + final ReplicateOracleDbAwsKeyRequest interceptedRequest = + ReplicateOracleDbAwsKeyConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReplicateOracleDbAwsKeyConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbMulticloudAwsProvider", + "ReplicateOracleDbAwsKey", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/20240501/OracleDbAwsKey/ReplicateOracleDbAwsKey"); + final java.util.function.Function< + javax.ws.rs.core.Response, ReplicateOracleDbAwsKeyResponse> + transformer = + ReplicateOracleDbAwsKeyConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAwsKeyRequest, ReplicateOracleDbAwsKeyResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAwsKeyRequest, ReplicateOracleDbAwsKeyResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getReplicateOracleDbAwsKeyDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ReplicateOracleDbAwsKeyRequest, ReplicateOracleDbAwsKeyResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateOracleDbAwsIdentityConnector( diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderClient.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderClient.java index 9de61d2afb7..5adef892513 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderClient.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudAwsProviderClient.java @@ -1055,6 +1055,49 @@ public RefreshOracleDbAwsKeyResponse refreshOracleDbAwsKey( }); } + @Override + public ReplicateOracleDbAwsKeyResponse replicateOracleDbAwsKey( + ReplicateOracleDbAwsKeyRequest request) { + LOG.trace("Called replicateOracleDbAwsKey"); + final ReplicateOracleDbAwsKeyRequest interceptedRequest = + ReplicateOracleDbAwsKeyConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReplicateOracleDbAwsKeyConverter.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( + "DbMulticloudAwsProvider", + "ReplicateOracleDbAwsKey", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/20240501/OracleDbAwsKey/ReplicateOracleDbAwsKey"); + java.util.function.Function + transformer = + ReplicateOracleDbAwsKeyConverter.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.getReplicateOracleDbAwsKeyDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateOracleDbAwsIdentityConnectorResponse updateOracleDbAwsIdentityConnector( UpdateOracleDbAwsIdentityConnectorRequest request) { diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProvider.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProvider.java index 30c34fd83a7..15b1bdf0342 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProvider.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProvider.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @@ -285,6 +285,20 @@ RefreshOracleDbGcpIdentityConnectorResponse refreshOracleDbGcpIdentityConnector( RefreshOracleDbGcpKeyRingResponse refreshOracleDbGcpKeyRing( RefreshOracleDbGcpKeyRingRequest request); + /** + * Replicate Oracle GCP Key Ring details to target 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 ReplicateOracleDbGcpKeyRing API. + */ + ReplicateOracleDbGcpKeyRingResponse replicateOracleDbGcpKeyRing( + ReplicateOracleDbGcpKeyRingRequest request); + /** * Modifies the existing Oracle DB GCP Identity Connector resource for a given [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsync.java index 668556ad30f..1b1b9385258 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") @@ -343,6 +343,23 @@ java.util.concurrent.Future refreshOracleDbGc RefreshOracleDbGcpKeyRingRequest, RefreshOracleDbGcpKeyRingResponse> handler); + /** + * Replicate Oracle GCP Key Ring details to target 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 replicateOracleDbGcpKeyRing( + ReplicateOracleDbGcpKeyRingRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbGcpKeyRingRequest, ReplicateOracleDbGcpKeyRingResponse> + handler); + /** * Modifies the existing Oracle DB GCP Identity Connector resource for a given [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsyncClient.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsyncClient.java index 5501ab4dba3..5f8ccfd6840 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsyncClient.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderAsyncClient.java @@ -1212,6 +1212,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + replicateOracleDbGcpKeyRing( + ReplicateOracleDbGcpKeyRingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbGcpKeyRingRequest, + ReplicateOracleDbGcpKeyRingResponse> + handler) { + LOG.trace("Called async replicateOracleDbGcpKeyRing"); + final ReplicateOracleDbGcpKeyRingRequest interceptedRequest = + ReplicateOracleDbGcpKeyRingConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReplicateOracleDbGcpKeyRingConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbMulticloudGCPProvider", + "ReplicateOracleDbGcpKeyRing", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/20240501/OracleDbGcpKeyRing/ReplicateOracleDbGcpKeyRing"); + final java.util.function.Function< + javax.ws.rs.core.Response, ReplicateOracleDbGcpKeyRingResponse> + transformer = + ReplicateOracleDbGcpKeyRingConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbGcpKeyRingRequest, ReplicateOracleDbGcpKeyRingResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbGcpKeyRingRequest, + ReplicateOracleDbGcpKeyRingResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getReplicateOracleDbGcpKeyRingDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ReplicateOracleDbGcpKeyRingRequest, ReplicateOracleDbGcpKeyRingResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateOracleDbGcpIdentityConnector( diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderClient.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderClient.java index b248d536f2e..19ad8d1fed6 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderClient.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/DbMulticloudGCPProviderClient.java @@ -1135,6 +1135,50 @@ public RefreshOracleDbGcpKeyRingResponse refreshOracleDbGcpKeyRing( }); } + @Override + public ReplicateOracleDbGcpKeyRingResponse replicateOracleDbGcpKeyRing( + ReplicateOracleDbGcpKeyRingRequest request) { + LOG.trace("Called replicateOracleDbGcpKeyRing"); + final ReplicateOracleDbGcpKeyRingRequest interceptedRequest = + ReplicateOracleDbGcpKeyRingConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReplicateOracleDbGcpKeyRingConverter.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( + "DbMulticloudGCPProvider", + "ReplicateOracleDbGcpKeyRing", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/20240501/OracleDbGcpKeyRing/ReplicateOracleDbGcpKeyRing"); + java.util.function.Function + transformer = + ReplicateOracleDbGcpKeyRingConverter.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 + .getReplicateOracleDbGcpKeyRingDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateOracleDbGcpIdentityConnectorResponse updateOracleDbGcpIdentityConnector( UpdateOracleDbGcpIdentityConnectorRequest request) { diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscovery.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscovery.java index 06a656cbf95..c39fe251c0d 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscovery.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscovery.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscoveryAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscoveryAsync.java index e2899c7b4ce..41e03b5d4d2 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscoveryAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/MultiCloudResourceDiscoveryAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainer.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainer.java index a5d161b8111..d345835e2e9 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainer.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainer.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainerAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainerAsync.java index 4c9aaa1eee1..c4826baf425 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainerAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobContainerAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMount.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMount.java index 3b9bff587bf..f3e0b0b376e 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMount.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMount.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMountAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMountAsync.java index 3029af81165..3db781d0629 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMountAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureBlobMountAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnector.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnector.java index e8f221a25c1..c963b3dd2da 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnector.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnector.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnectorAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnectorAsync.java index a4a88083d97..f82dacfa6f6 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnectorAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDBAzureConnectorAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKey.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKey.java index ccbf2d3e6e4..5035e763e00 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKey.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKey.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKeyAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKeyAsync.java index de5048d243e..95ffa3007d1 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKeyAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureKeyAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVault.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVault.java index 82a252ff0ab..07a51e5bcfe 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVault.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVault.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @@ -175,6 +175,20 @@ DeleteOracleDbAzureVaultResponse deleteOracleDbAzureVault( RefreshOracleDbAzureVaultResponse refreshOracleDbAzureVault( RefreshOracleDbAzureVaultRequest request); + /** + * Replicate the Oracle DB Azure Vault resource to target 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 ReplicateOracleDbAzureVault API. + */ + ReplicateOracleDbAzureVaultResponse replicateOracleDbAzureVault( + ReplicateOracleDbAzureVaultRequest request); + /** * Modifies the configuration details of an existing Oracle Database Azure Vault resource identified by its unique [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). This operation updates only the specified fields in the request body. * diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociation.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociation.java index b4f2d11c09d..bd16c4c39b7 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociation.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociation.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociationAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociationAsync.java index ebada35aa3d..12e0a13bfd8 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociationAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAssociationAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsync.java index 2d300acd10d..c4e978f83ce 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") @@ -196,6 +196,23 @@ java.util.concurrent.Future refreshOracleDbAz RefreshOracleDbAzureVaultRequest, RefreshOracleDbAzureVaultResponse> handler); + /** + * Replicate the Oracle DB Azure Vault resource to target 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 replicateOracleDbAzureVault( + ReplicateOracleDbAzureVaultRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAzureVaultRequest, ReplicateOracleDbAzureVaultResponse> + handler); + /** * Modifies the configuration details of an existing Oracle Database Azure Vault resource identified by its unique [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). This operation updates only the specified fields in the request body. * diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsyncClient.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsyncClient.java index ac6541897fb..c997eb498c6 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsyncClient.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultAsyncClient.java @@ -783,6 +783,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + replicateOracleDbAzureVault( + ReplicateOracleDbAzureVaultRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAzureVaultRequest, + ReplicateOracleDbAzureVaultResponse> + handler) { + LOG.trace("Called async replicateOracleDbAzureVault"); + final ReplicateOracleDbAzureVaultRequest interceptedRequest = + ReplicateOracleDbAzureVaultConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReplicateOracleDbAzureVaultConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OracleDbAzureVault", + "ReplicateOracleDbAzureVault", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/20240501/OracleDbAzureVault/ReplicateOracleDbAzureVault"); + final java.util.function.Function< + javax.ws.rs.core.Response, ReplicateOracleDbAzureVaultResponse> + transformer = + ReplicateOracleDbAzureVaultConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAzureVaultRequest, ReplicateOracleDbAzureVaultResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ReplicateOracleDbAzureVaultRequest, + ReplicateOracleDbAzureVaultResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getReplicateOracleDbAzureVaultDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ReplicateOracleDbAzureVaultRequest, ReplicateOracleDbAzureVaultResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateOracleDbAzureVault( UpdateOracleDbAzureVaultRequest request, diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultClient.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultClient.java index 243c97e0e09..e742e2e0923 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultClient.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/OracleDbAzureVaultClient.java @@ -807,6 +807,50 @@ public RefreshOracleDbAzureVaultResponse refreshOracleDbAzureVault( }); } + @Override + public ReplicateOracleDbAzureVaultResponse replicateOracleDbAzureVault( + ReplicateOracleDbAzureVaultRequest request) { + LOG.trace("Called replicateOracleDbAzureVault"); + final ReplicateOracleDbAzureVaultRequest interceptedRequest = + ReplicateOracleDbAzureVaultConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReplicateOracleDbAzureVaultConverter.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( + "OracleDbAzureVault", + "ReplicateOracleDbAzureVault", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/20240501/OracleDbAzureVault/ReplicateOracleDbAzureVault"); + java.util.function.Function + transformer = + ReplicateOracleDbAzureVaultConverter.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 + .getReplicateOracleDbAzureVaultDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateOracleDbAzureVaultResponse updateOracleDbAzureVault( UpdateOracleDbAzureVaultRequest request) { diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequest.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequest.java index 6307f77e521..2b2769e33aa 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequest.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequest.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequestAsync.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequestAsync.java index 7c60d6144ec..a967c9751f0 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequestAsync.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/WorkRequestAsync.java @@ -42,7 +42,7 @@ * AWS:
* Oracle AWS Connector Resource:  The Oracle AWS Connector Resource is used to install the AWS Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). * - * Google AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). + * Oracle AWS Key Resource:  The Oracle AWS Key Resource is used to register and manage a AWS Key within Oracle Cloud Infrastructure (OCI). * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbAwsKeyConverter.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbAwsKeyConverter.java new file mode 100644 index 00000000000..d8ad467c564 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbAwsKeyConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dbmulticloud.model.*; +import com.oracle.bmc.dbmulticloud.requests.*; +import com.oracle.bmc.dbmulticloud.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbAwsKeyConverter { + 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(ReplicateOracleDbAwsKeyConverter.class); + + public static com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbAwsKeyRequest + interceptRequest( + com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbAwsKeyRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbAwsKeyRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOracleDbAwsKeyId(), "oracleDbAwsKeyId must not be blank"); + Validate.notNull( + request.getReplicateOracleDbAwsKeyDetails(), + "replicateOracleDbAwsKeyDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240501") + .path("oracleDbAwsKey") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOracleDbAwsKeyId())) + .path("actions") + .path("replicate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAwsKeyResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAwsKeyResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAwsKeyResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAwsKeyResponse>() { + @Override + public com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAwsKeyResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAwsKeyResponse"); + 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.dbmulticloud.responses + .ReplicateOracleDbAwsKeyResponse.Builder + builder = + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAwsKeyResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAwsKeyResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbAzureVaultConverter.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbAzureVaultConverter.java new file mode 100644 index 00000000000..2f515a08f6c --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbAzureVaultConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dbmulticloud.model.*; +import com.oracle.bmc.dbmulticloud.requests.*; +import com.oracle.bmc.dbmulticloud.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbAzureVaultConverter { + 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(ReplicateOracleDbAzureVaultConverter.class); + + public static com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbAzureVaultRequest + interceptRequest( + com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbAzureVaultRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbAzureVaultRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getOracleDbAzureVaultId(), "oracleDbAzureVaultId must not be blank"); + Validate.notNull( + request.getReplicateOracleDbAzureVaultDetails(), + "replicateOracleDbAzureVaultDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240501") + .path("oracleDbAzureVault") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOracleDbAzureVaultId())) + .path("actions") + .path("replicate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAzureVaultResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAzureVaultResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAzureVaultResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAzureVaultResponse>() { + @Override + public com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAzureVaultResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbAzureVaultResponse"); + 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.dbmulticloud.responses + .ReplicateOracleDbAzureVaultResponse.Builder + builder = + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAzureVaultResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbAzureVaultResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbGcpKeyRingConverter.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbGcpKeyRingConverter.java new file mode 100644 index 00000000000..85cbc59c307 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/internal/http/ReplicateOracleDbGcpKeyRingConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dbmulticloud.model.*; +import com.oracle.bmc.dbmulticloud.requests.*; +import com.oracle.bmc.dbmulticloud.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbGcpKeyRingConverter { + 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(ReplicateOracleDbGcpKeyRingConverter.class); + + public static com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbGcpKeyRingRequest + interceptRequest( + com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbGcpKeyRingRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.dbmulticloud.requests.ReplicateOracleDbGcpKeyRingRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getOracleDbGcpKeyRingId(), "oracleDbGcpKeyRingId must not be blank"); + Validate.notNull( + request.getReplicateOracleDbGcpKeyRingDetails(), + "replicateOracleDbGcpKeyRingDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240501") + .path("oracleDbGcpKeyRing") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOracleDbGcpKeyRingId())) + .path("actions") + .path("replicate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbGcpKeyRingResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbGcpKeyRingResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbGcpKeyRingResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbGcpKeyRingResponse>() { + @Override + public com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbGcpKeyRingResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.dbmulticloud.responses.ReplicateOracleDbGcpKeyRingResponse"); + 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.dbmulticloud.responses + .ReplicateOracleDbGcpKeyRingResponse.Builder + builder = + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbGcpKeyRingResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.dbmulticloud.responses + .ReplicateOracleDbGcpKeyRingResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OperationType.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OperationType.java index 906653a1c8e..bf1a94b8fb2 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OperationType.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OperationType.java @@ -59,6 +59,12 @@ public enum OperationType { UpdateAwsKey("UPDATE_AWS_KEY"), MoveAwsKey("MOVE_AWS_KEY"), RefreshAwsKey("REFRESH_AWS_KEY"), + CreateReplicateResource("CREATE_REPLICATE_RESOURCE"), + UpdateReplicateResource("UPDATE_REPLICATE_RESOURCE"), + DeleteReplicateResource("DELETE_REPLICATE_RESOURCE"), + MoveReplicateResource("MOVE_REPLICATE_RESOURCE"), + RefreshReplicateResource("REFRESH_REPLICATE_RESOURCE"), + Replicate("REPLICATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKey.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKey.java index 94fa1ed08cf..375b4d8f738 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKey.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKey.java @@ -31,6 +31,7 @@ public final class OracleDbAwsKey extends com.oracle.bmc.http.internal.Explicitl "isAwsKeyEnabled", "location", "properties", + "replicationMetadata", "lifecycleState", "lifecycleStateDetails", "timeCreated", @@ -50,6 +51,7 @@ public OracleDbAwsKey( Boolean isAwsKeyEnabled, String location, java.util.Map properties, + ReplicationMetadata replicationMetadata, LifecycleState lifecycleState, String lifecycleStateDetails, java.util.Date timeCreated, @@ -68,6 +70,7 @@ public OracleDbAwsKey( this.isAwsKeyEnabled = isAwsKeyEnabled; this.location = location; this.properties = properties; + this.replicationMetadata = replicationMetadata; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; this.timeCreated = timeCreated; @@ -239,6 +242,15 @@ public Builder properties(java.util.Map properties) { this.__explicitlySet__.add("properties"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private ReplicationMetadata replicationMetadata; + + public Builder replicationMetadata(ReplicationMetadata replicationMetadata) { + this.replicationMetadata = replicationMetadata; + this.__explicitlySet__.add("replicationMetadata"); + return this; + } /** * The lifecycle state of the Oracle DB AWS Key resource. **/ @@ -395,6 +407,7 @@ public OracleDbAwsKey build() { this.isAwsKeyEnabled, this.location, this.properties, + this.replicationMetadata, this.lifecycleState, this.lifecycleStateDetails, this.timeCreated, @@ -440,6 +453,9 @@ public Builder copy(OracleDbAwsKey model) { if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } + if (model.wasPropertyExplicitlySet("replicationMetadata")) { + this.replicationMetadata(model.getReplicationMetadata()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -616,6 +632,13 @@ public java.util.Map getProperties() { return properties; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private final ReplicationMetadata replicationMetadata; + + public ReplicationMetadata getReplicationMetadata() { + return replicationMetadata; + } + /** * The lifecycle state of the Oracle DB AWS Key resource. **/ @@ -816,6 +839,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isAwsKeyEnabled=").append(String.valueOf(this.isAwsKeyEnabled)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", replicationMetadata=").append(String.valueOf(this.replicationMetadata)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -847,6 +871,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isAwsKeyEnabled, other.isAwsKeyEnabled) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.replicationMetadata, other.replicationMetadata) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -879,6 +904,11 @@ public int hashCode() { + (this.isAwsKeyEnabled == null ? 43 : this.isAwsKeyEnabled.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = + (result * PRIME) + + (this.replicationMetadata == null + ? 43 + : this.replicationMetadata.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKeySummary.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKeySummary.java index af76bdd6441..07414517c0f 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKeySummary.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAwsKeySummary.java @@ -34,6 +34,7 @@ public final class OracleDbAwsKeySummary "isAwsKeyEnabled", "location", "properties", + "replicationMetadata", "lifecycleState", "lifecycleStateDetails", "timeCreated", @@ -53,6 +54,7 @@ public OracleDbAwsKeySummary( Boolean isAwsKeyEnabled, String location, java.util.Map properties, + ReplicationMetadata replicationMetadata, OracleDbAwsKey.LifecycleState lifecycleState, String lifecycleStateDetails, java.util.Date timeCreated, @@ -71,6 +73,7 @@ public OracleDbAwsKeySummary( this.isAwsKeyEnabled = isAwsKeyEnabled; this.location = location; this.properties = properties; + this.replicationMetadata = replicationMetadata; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; this.timeCreated = timeCreated; @@ -242,6 +245,15 @@ public Builder properties(java.util.Map properties) { this.__explicitlySet__.add("properties"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private ReplicationMetadata replicationMetadata; + + public Builder replicationMetadata(ReplicationMetadata replicationMetadata) { + this.replicationMetadata = replicationMetadata; + this.__explicitlySet__.add("replicationMetadata"); + return this; + } /** * The current lifecycle state of the Oracle DB AWS Key resource. **/ @@ -398,6 +410,7 @@ public OracleDbAwsKeySummary build() { this.isAwsKeyEnabled, this.location, this.properties, + this.replicationMetadata, this.lifecycleState, this.lifecycleStateDetails, this.timeCreated, @@ -443,6 +456,9 @@ public Builder copy(OracleDbAwsKeySummary model) { if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } + if (model.wasPropertyExplicitlySet("replicationMetadata")) { + this.replicationMetadata(model.getReplicationMetadata()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -619,6 +635,13 @@ public java.util.Map getProperties() { return properties; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private final ReplicationMetadata replicationMetadata; + + public ReplicationMetadata getReplicationMetadata() { + return replicationMetadata; + } + /** * The current lifecycle state of the Oracle DB AWS Key resource. **/ @@ -767,6 +790,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isAwsKeyEnabled=").append(String.valueOf(this.isAwsKeyEnabled)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", replicationMetadata=").append(String.valueOf(this.replicationMetadata)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -798,6 +822,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isAwsKeyEnabled, other.isAwsKeyEnabled) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.replicationMetadata, other.replicationMetadata) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -830,6 +855,11 @@ public int hashCode() { + (this.isAwsKeyEnabled == null ? 43 : this.isAwsKeyEnabled.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = + (result * PRIME) + + (this.replicationMetadata == null + ? 43 + : this.replicationMetadata.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVault.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVault.java index a9c5a6ddf62..04b6ca3c5fa 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVault.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVault.java @@ -32,6 +32,7 @@ public final class OracleDbAzureVault extends com.oracle.bmc.http.internal.Expli "type", "location", "properties", + "replicationMetadata", "lifecycleState", "lifecycleStateDetails", "timeCreated", @@ -51,6 +52,7 @@ public OracleDbAzureVault( String type, String location, java.util.Map properties, + ReplicationMetadata replicationMetadata, LifecycleState lifecycleState, String lifecycleStateDetails, java.util.Date timeCreated, @@ -69,6 +71,7 @@ public OracleDbAzureVault( this.type = type; this.location = location; this.properties = properties; + this.replicationMetadata = replicationMetadata; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; this.timeCreated = timeCreated; @@ -225,6 +228,15 @@ public Builder properties(java.util.Map properties) { this.__explicitlySet__.add("properties"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private ReplicationMetadata replicationMetadata; + + public Builder replicationMetadata(ReplicationMetadata replicationMetadata) { + this.replicationMetadata = replicationMetadata; + this.__explicitlySet__.add("replicationMetadata"); + return this; + } /** * The lifecycle state of the Oracle DB Azure Vault resource. **/ @@ -396,6 +408,7 @@ public OracleDbAzureVault build() { this.type, this.location, this.properties, + this.replicationMetadata, this.lifecycleState, this.lifecycleStateDetails, this.timeCreated, @@ -439,6 +452,9 @@ public Builder copy(OracleDbAzureVault model) { if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } + if (model.wasPropertyExplicitlySet("replicationMetadata")) { + this.replicationMetadata(model.getReplicationMetadata()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -604,6 +620,13 @@ public java.util.Map getProperties() { return properties; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private final ReplicationMetadata replicationMetadata; + + public ReplicationMetadata getReplicationMetadata() { + return replicationMetadata; + } + /** * The lifecycle state of the Oracle DB Azure Vault resource. **/ @@ -818,6 +841,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", replicationMetadata=").append(String.valueOf(this.replicationMetadata)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -850,6 +874,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.replicationMetadata, other.replicationMetadata) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -884,6 +909,11 @@ public int hashCode() { result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = + (result * PRIME) + + (this.replicationMetadata == null + ? 43 + : this.replicationMetadata.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVaultSummary.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVaultSummary.java index 297e8eebed9..c89aae6bb05 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVaultSummary.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbAzureVaultSummary.java @@ -33,6 +33,7 @@ public final class OracleDbAzureVaultSummary "type", "location", "properties", + "replicationMetadata", "lifecycleState", "lifecycleStateDetails", "timeCreated", @@ -52,6 +53,7 @@ public OracleDbAzureVaultSummary( String type, String location, java.util.Map properties, + ReplicationMetadata replicationMetadata, OracleDbAzureVault.LifecycleState lifecycleState, String lifecycleStateDetails, java.util.Date timeCreated, @@ -70,6 +72,7 @@ public OracleDbAzureVaultSummary( this.type = type; this.location = location; this.properties = properties; + this.replicationMetadata = replicationMetadata; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; this.timeCreated = timeCreated; @@ -226,6 +229,15 @@ public Builder properties(java.util.Map properties) { this.__explicitlySet__.add("properties"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private ReplicationMetadata replicationMetadata; + + public Builder replicationMetadata(ReplicationMetadata replicationMetadata) { + this.replicationMetadata = replicationMetadata; + this.__explicitlySet__.add("replicationMetadata"); + return this; + } /** * The current lifecycle state of the Azure Arc Agent resource. **/ @@ -397,6 +409,7 @@ public OracleDbAzureVaultSummary build() { this.type, this.location, this.properties, + this.replicationMetadata, this.lifecycleState, this.lifecycleStateDetails, this.timeCreated, @@ -440,6 +453,9 @@ public Builder copy(OracleDbAzureVaultSummary model) { if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } + if (model.wasPropertyExplicitlySet("replicationMetadata")) { + this.replicationMetadata(model.getReplicationMetadata()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -605,6 +621,13 @@ public java.util.Map getProperties() { return properties; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private final ReplicationMetadata replicationMetadata; + + public ReplicationMetadata getReplicationMetadata() { + return replicationMetadata; + } + /** * The current lifecycle state of the Azure Arc Agent resource. **/ @@ -767,6 +790,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", replicationMetadata=").append(String.valueOf(this.replicationMetadata)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -799,6 +823,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.replicationMetadata, other.replicationMetadata) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -833,6 +858,11 @@ public int hashCode() { result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = + (result * PRIME) + + (this.replicationMetadata == null + ? 43 + : this.replicationMetadata.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRing.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRing.java index cec2a1b4840..5a6d3dd0d14 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRing.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRing.java @@ -31,6 +31,7 @@ public final class OracleDbGcpKeyRing extends com.oracle.bmc.http.internal.Expli "type", "location", "properties", + "replicationMetadata", "lifecycleState", "lifecycleStateDetails", "timeCreated", @@ -48,6 +49,7 @@ public OracleDbGcpKeyRing( String type, String location, java.util.Map properties, + ReplicationMetadata replicationMetadata, LifecycleState lifecycleState, String lifecycleStateDetails, java.util.Date timeCreated, @@ -64,6 +66,7 @@ public OracleDbGcpKeyRing( this.type = type; this.location = location; this.properties = properties; + this.replicationMetadata = replicationMetadata; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; this.timeCreated = timeCreated; @@ -203,6 +206,15 @@ public Builder properties(java.util.Map properties) { this.__explicitlySet__.add("properties"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private ReplicationMetadata replicationMetadata; + + public Builder replicationMetadata(ReplicationMetadata replicationMetadata) { + this.replicationMetadata = replicationMetadata; + this.__explicitlySet__.add("replicationMetadata"); + return this; + } /** * The lifecycle state of the Oracle DB GCP Key Ring resource. **/ @@ -357,6 +369,7 @@ public OracleDbGcpKeyRing build() { this.type, this.location, this.properties, + this.replicationMetadata, this.lifecycleState, this.lifecycleStateDetails, this.timeCreated, @@ -396,6 +409,9 @@ public Builder copy(OracleDbGcpKeyRing model) { if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } + if (model.wasPropertyExplicitlySet("replicationMetadata")) { + this.replicationMetadata(model.getReplicationMetadata()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -544,6 +560,13 @@ public java.util.Map getProperties() { return properties; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private final ReplicationMetadata replicationMetadata; + + public ReplicationMetadata getReplicationMetadata() { + return replicationMetadata; + } + /** * The lifecycle state of the Oracle DB GCP Key Ring resource. **/ @@ -742,6 +765,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", replicationMetadata=").append(String.valueOf(this.replicationMetadata)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -771,6 +795,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.replicationMetadata, other.replicationMetadata) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -799,6 +824,11 @@ public int hashCode() { result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = + (result * PRIME) + + (this.replicationMetadata == null + ? 43 + : this.replicationMetadata.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRingSummary.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRingSummary.java index 31e39484a5f..4e0070d756b 100644 --- a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRingSummary.java +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/OracleDbGcpKeyRingSummary.java @@ -32,6 +32,7 @@ public final class OracleDbGcpKeyRingSummary "type", "location", "properties", + "replicationMetadata", "lifecycleState", "lifecycleStateDetails", "timeCreated", @@ -49,6 +50,7 @@ public OracleDbGcpKeyRingSummary( String type, String location, java.util.Map properties, + ReplicationMetadata replicationMetadata, OracleDbGcpKeyRing.LifecycleState lifecycleState, String lifecycleStateDetails, java.util.Date timeCreated, @@ -65,6 +67,7 @@ public OracleDbGcpKeyRingSummary( this.type = type; this.location = location; this.properties = properties; + this.replicationMetadata = replicationMetadata; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; this.timeCreated = timeCreated; @@ -204,6 +207,15 @@ public Builder properties(java.util.Map properties) { this.__explicitlySet__.add("properties"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private ReplicationMetadata replicationMetadata; + + public Builder replicationMetadata(ReplicationMetadata replicationMetadata) { + this.replicationMetadata = replicationMetadata; + this.__explicitlySet__.add("replicationMetadata"); + return this; + } /** * The lifecycle state of the Oracle DB GCP Key Ring resource. **/ @@ -358,6 +370,7 @@ public OracleDbGcpKeyRingSummary build() { this.type, this.location, this.properties, + this.replicationMetadata, this.lifecycleState, this.lifecycleStateDetails, this.timeCreated, @@ -397,6 +410,9 @@ public Builder copy(OracleDbGcpKeyRingSummary model) { if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } + if (model.wasPropertyExplicitlySet("replicationMetadata")) { + this.replicationMetadata(model.getReplicationMetadata()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -545,6 +561,13 @@ public java.util.Map getProperties() { return properties; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationMetadata") + private final ReplicationMetadata replicationMetadata; + + public ReplicationMetadata getReplicationMetadata() { + return replicationMetadata; + } + /** * The lifecycle state of the Oracle DB GCP Key Ring resource. **/ @@ -691,6 +714,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", replicationMetadata=").append(String.valueOf(this.replicationMetadata)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -720,6 +744,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.replicationMetadata, other.replicationMetadata) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -748,6 +773,11 @@ public int hashCode() { result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = + (result * PRIME) + + (this.replicationMetadata == null + ? 43 + : this.replicationMetadata.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbAwsKeyDetails.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbAwsKeyDetails.java new file mode 100644 index 00000000000..b1bcbe7f2d5 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbAwsKeyDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.model; + +/** + * Replicate Oracle AWS Key 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: 20240501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicateOracleDbAwsKeyDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ReplicateOracleDbAwsKeyDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetRegion", "action"}) + public ReplicateOracleDbAwsKeyDetails(String targetRegion, ReplicationActions action) { + super(); + this.targetRegion = targetRegion; + this.action = action; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Destination region where Oracle AWS Key resource will replicate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private String targetRegion; + + /** + * The Destination region where Oracle AWS Key resource will replicate. + * @param targetRegion the value to set + * @return this builder + **/ + public Builder targetRegion(String targetRegion) { + this.targetRegion = targetRegion; + this.__explicitlySet__.add("targetRegion"); + return this; + } + /** + * Action for replicate Resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private ReplicationActions action; + + /** + * Action for replicate Resource. + * @param action the value to set + * @return this builder + **/ + public Builder action(ReplicationActions action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicateOracleDbAwsKeyDetails build() { + ReplicateOracleDbAwsKeyDetails model = + new ReplicateOracleDbAwsKeyDetails(this.targetRegion, this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicateOracleDbAwsKeyDetails model) { + if (model.wasPropertyExplicitlySet("targetRegion")) { + this.targetRegion(model.getTargetRegion()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Destination region where Oracle AWS Key resource will replicate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private final String targetRegion; + + /** + * The Destination region where Oracle AWS Key resource will replicate. + * @return the value + **/ + public String getTargetRegion() { + return targetRegion; + } + + /** + * Action for replicate Resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final ReplicationActions action; + + /** + * Action for replicate Resource. + * @return the value + **/ + public ReplicationActions getAction() { + return action; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicateOracleDbAwsKeyDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetRegion=").append(String.valueOf(this.targetRegion)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbAwsKeyDetails)) { + return false; + } + + ReplicateOracleDbAwsKeyDetails other = (ReplicateOracleDbAwsKeyDetails) o; + return java.util.Objects.equals(this.targetRegion, other.targetRegion) + && java.util.Objects.equals(this.action, other.action) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetRegion == null ? 43 : this.targetRegion.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbAzureVaultDetails.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbAzureVaultDetails.java new file mode 100644 index 00000000000..cae6e99ff7d --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbAzureVaultDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.model; + +/** + * Replicate Oracle GCP Keyring 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: 20240501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicateOracleDbAzureVaultDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ReplicateOracleDbAzureVaultDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetRegion", "action"}) + public ReplicateOracleDbAzureVaultDetails(String targetRegion, ReplicationActions action) { + super(); + this.targetRegion = targetRegion; + this.action = action; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private String targetRegion; + + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + * @param targetRegion the value to set + * @return this builder + **/ + public Builder targetRegion(String targetRegion) { + this.targetRegion = targetRegion; + this.__explicitlySet__.add("targetRegion"); + return this; + } + /** + * Action for replicate Resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private ReplicationActions action; + + /** + * Action for replicate Resource. + * @param action the value to set + * @return this builder + **/ + public Builder action(ReplicationActions action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicateOracleDbAzureVaultDetails build() { + ReplicateOracleDbAzureVaultDetails model = + new ReplicateOracleDbAzureVaultDetails(this.targetRegion, this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicateOracleDbAzureVaultDetails model) { + if (model.wasPropertyExplicitlySet("targetRegion")) { + this.targetRegion(model.getTargetRegion()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private final String targetRegion; + + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + * @return the value + **/ + public String getTargetRegion() { + return targetRegion; + } + + /** + * Action for replicate Resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final ReplicationActions action; + + /** + * Action for replicate Resource. + * @return the value + **/ + public ReplicationActions getAction() { + return action; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicateOracleDbAzureVaultDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetRegion=").append(String.valueOf(this.targetRegion)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbAzureVaultDetails)) { + return false; + } + + ReplicateOracleDbAzureVaultDetails other = (ReplicateOracleDbAzureVaultDetails) o; + return java.util.Objects.equals(this.targetRegion, other.targetRegion) + && java.util.Objects.equals(this.action, other.action) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetRegion == null ? 43 : this.targetRegion.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbGcpKeyRingDetails.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbGcpKeyRingDetails.java new file mode 100644 index 00000000000..c50f245dea5 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicateOracleDbGcpKeyRingDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.model; + +/** + * Replicate Oracle GCP Keyring 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: 20240501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicateOracleDbGcpKeyRingDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ReplicateOracleDbGcpKeyRingDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetRegion", "action"}) + public ReplicateOracleDbGcpKeyRingDetails(String targetRegion, ReplicationActions action) { + super(); + this.targetRegion = targetRegion; + this.action = action; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private String targetRegion; + + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + * @param targetRegion the value to set + * @return this builder + **/ + public Builder targetRegion(String targetRegion) { + this.targetRegion = targetRegion; + this.__explicitlySet__.add("targetRegion"); + return this; + } + /** + * Action for replicate Resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private ReplicationActions action; + + /** + * Action for replicate Resource. + * @param action the value to set + * @return this builder + **/ + public Builder action(ReplicationActions action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicateOracleDbGcpKeyRingDetails build() { + ReplicateOracleDbGcpKeyRingDetails model = + new ReplicateOracleDbGcpKeyRingDetails(this.targetRegion, this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicateOracleDbGcpKeyRingDetails model) { + if (model.wasPropertyExplicitlySet("targetRegion")) { + this.targetRegion(model.getTargetRegion()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private final String targetRegion; + + /** + * The Destination region where Oracle GCP Keyring resource will replicate. + * @return the value + **/ + public String getTargetRegion() { + return targetRegion; + } + + /** + * Action for replicate Resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final ReplicationActions action; + + /** + * Action for replicate Resource. + * @return the value + **/ + public ReplicationActions getAction() { + return action; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicateOracleDbGcpKeyRingDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetRegion=").append(String.valueOf(this.targetRegion)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbGcpKeyRingDetails)) { + return false; + } + + ReplicateOracleDbGcpKeyRingDetails other = (ReplicateOracleDbGcpKeyRingDetails) o; + return java.util.Objects.equals(this.targetRegion, other.targetRegion) + && java.util.Objects.equals(this.action, other.action) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetRegion == null ? 43 : this.targetRegion.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationActions.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationActions.java new file mode 100644 index 00000000000..303ecd6c0ae --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationActions.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.model; + +/** + * Action for replicate Resource. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public enum ReplicationActions { + Create("CREATE"), + Delete("DELETE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationActions v : ReplicationActions.values()) { + map.put(v.getValue(), v); + } + } + + ReplicationActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ReplicationActions: " + key); + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationDetails.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationDetails.java new file mode 100644 index 00000000000..e40b44a7f12 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationDetails.java @@ -0,0 +1,323 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.model; + +/** + * Replication metadata details, targeted regions and respective replication state, time created or time when it was updated. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ReplicationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "replicationState", + "targetRegion", + "timeCreated", + "timeUpdated" + }) + public ReplicationDetails( + ReplicationState replicationState, + String targetRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.replicationState = replicationState; + this.targetRegion = targetRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The lifecycle state of the Oracle DB Azure Vault resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationState") + private ReplicationState replicationState; + + /** + * The lifecycle state of the Oracle DB Azure Vault resource. + * @param replicationState the value to set + * @return this builder + **/ + public Builder replicationState(ReplicationState replicationState) { + this.replicationState = replicationState; + this.__explicitlySet__.add("replicationState"); + return this; + } + /** + * The target region, where resource is replicated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private String targetRegion; + + /** + * The target region, where resource is replicated. + * @param targetRegion the value to set + * @return this builder + **/ + public Builder targetRegion(String targetRegion) { + this.targetRegion = targetRegion; + this.__explicitlySet__.add("targetRegion"); + return this; + } + /** + * Time when the Replication was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Replication was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * Time when the Replication was last modified, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Replication was last modified, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicationDetails build() { + ReplicationDetails model = + new ReplicationDetails( + this.replicationState, + this.targetRegion, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicationDetails model) { + if (model.wasPropertyExplicitlySet("replicationState")) { + this.replicationState(model.getReplicationState()); + } + if (model.wasPropertyExplicitlySet("targetRegion")) { + this.targetRegion(model.getTargetRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The lifecycle state of the Oracle DB Azure Vault resource. + **/ + public enum ReplicationState { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ReplicationState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationState v : ReplicationState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicationState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicationState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The lifecycle state of the Oracle DB Azure Vault resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationState") + private final ReplicationState replicationState; + + /** + * The lifecycle state of the Oracle DB Azure Vault resource. + * @return the value + **/ + public ReplicationState getReplicationState() { + return replicationState; + } + + /** + * The target region, where resource is replicated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetRegion") + private final String targetRegion; + + /** + * The target region, where resource is replicated. + * @return the value + **/ + public String getTargetRegion() { + return targetRegion; + } + + /** + * Time when the Replication was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Replication was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Replication was last modified, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Replication was last modified, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-23T21:10:29.600Z' + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicationDetails("); + sb.append("super=").append(super.toString()); + sb.append("replicationState=").append(String.valueOf(this.replicationState)); + sb.append(", targetRegion=").append(String.valueOf(this.targetRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicationDetails)) { + return false; + } + + ReplicationDetails other = (ReplicationDetails) o; + return java.util.Objects.equals(this.replicationState, other.replicationState) + && java.util.Objects.equals(this.targetRegion, other.targetRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.replicationState == null ? 43 : this.replicationState.hashCode()); + result = (result * PRIME) + (this.targetRegion == null ? 43 : this.targetRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationMetadata.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationMetadata.java new file mode 100644 index 00000000000..ed934c0a3e4 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/model/ReplicationMetadata.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.model; + +/** + * Replication metadata, it has information about replication and target 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: 20240501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicationMetadata.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ReplicationMetadata extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"replicationDetails"}) + public ReplicationMetadata(java.util.List replicationDetails) { + super(); + this.replicationDetails = replicationDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of all regions and their respective resource ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationDetails") + private java.util.List replicationDetails; + + /** + * List of all regions and their respective resource ID. + * @param replicationDetails the value to set + * @return this builder + **/ + public Builder replicationDetails(java.util.List replicationDetails) { + this.replicationDetails = replicationDetails; + this.__explicitlySet__.add("replicationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicationMetadata build() { + ReplicationMetadata model = new ReplicationMetadata(this.replicationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicationMetadata model) { + if (model.wasPropertyExplicitlySet("replicationDetails")) { + this.replicationDetails(model.getReplicationDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of all regions and their respective resource ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationDetails") + private final java.util.List replicationDetails; + + /** + * List of all regions and their respective resource ID. + * @return the value + **/ + public java.util.List getReplicationDetails() { + return replicationDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicationMetadata("); + sb.append("super=").append(super.toString()); + sb.append("replicationDetails=").append(String.valueOf(this.replicationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicationMetadata)) { + return false; + } + + ReplicationMetadata other = (ReplicationMetadata) o; + return java.util.Objects.equals(this.replicationDetails, other.replicationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.replicationDetails == null + ? 43 + : this.replicationDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbAwsKeyRequest.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbAwsKeyRequest.java new file mode 100644 index 00000000000..ba13f7f4c1a --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbAwsKeyRequest.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.requests; + +import com.oracle.bmc.dbmulticloud.model.*; +/** + * Example: Click here to see how to use ReplicateOracleDbAwsKeyRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbAwsKeyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB AWS Key resource. + */ + private String oracleDbAwsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB AWS Key resource. + */ + public String getOracleDbAwsKeyId() { + return oracleDbAwsKeyId; + } + /** + * Details for to replicate Oracle DB AWS Key to target region. + */ + private com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails + replicateOracleDbAwsKeyDetails; + + /** + * Details for to replicate Oracle DB AWS Key to target region. + */ + public com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails + getReplicateOracleDbAwsKeyDetails() { + return replicateOracleDbAwsKeyDetails; + } + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails getBody$() { + return replicateOracleDbAwsKeyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReplicateOracleDbAwsKeyRequest, + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB AWS Key resource. + */ + private String oracleDbAwsKeyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB AWS Key resource. + * @param oracleDbAwsKeyId the value to set + * @return this builder instance + */ + public Builder oracleDbAwsKeyId(String oracleDbAwsKeyId) { + this.oracleDbAwsKeyId = oracleDbAwsKeyId; + return this; + } + + /** + * Details for to replicate Oracle DB AWS Key to target region. + */ + private com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails + replicateOracleDbAwsKeyDetails = null; + + /** + * Details for to replicate Oracle DB AWS Key to target region. + * @param replicateOracleDbAwsKeyDetails the value to set + * @return this builder instance + */ + public Builder replicateOracleDbAwsKeyDetails( + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails + replicateOracleDbAwsKeyDetails) { + this.replicateOracleDbAwsKeyDetails = replicateOracleDbAwsKeyDetails; + return this; + } + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ReplicateOracleDbAwsKeyRequest o) { + oracleDbAwsKeyId(o.getOracleDbAwsKeyId()); + replicateOracleDbAwsKeyDetails(o.getReplicateOracleDbAwsKeyDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReplicateOracleDbAwsKeyRequest 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 ReplicateOracleDbAwsKeyRequest + */ + public ReplicateOracleDbAwsKeyRequest build() { + ReplicateOracleDbAwsKeyRequest 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.dbmulticloud.model.ReplicateOracleDbAwsKeyDetails body) { + replicateOracleDbAwsKeyDetails(body); + return this; + } + + /** + * Build the instance of ReplicateOracleDbAwsKeyRequest 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 ReplicateOracleDbAwsKeyRequest + */ + public ReplicateOracleDbAwsKeyRequest buildWithoutInvocationCallback() { + ReplicateOracleDbAwsKeyRequest request = new ReplicateOracleDbAwsKeyRequest(); + request.oracleDbAwsKeyId = oracleDbAwsKeyId; + request.replicateOracleDbAwsKeyDetails = replicateOracleDbAwsKeyDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ReplicateOracleDbAwsKeyRequest(oracleDbAwsKeyId, replicateOracleDbAwsKeyDetails, opcRetryToken, 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() + .oracleDbAwsKeyId(oracleDbAwsKeyId) + .replicateOracleDbAwsKeyDetails(replicateOracleDbAwsKeyDetails) + .opcRetryToken(opcRetryToken) + .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(",oracleDbAwsKeyId=").append(String.valueOf(this.oracleDbAwsKeyId)); + sb.append(",replicateOracleDbAwsKeyDetails=") + .append(String.valueOf(this.replicateOracleDbAwsKeyDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbAwsKeyRequest)) { + return false; + } + + ReplicateOracleDbAwsKeyRequest other = (ReplicateOracleDbAwsKeyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.oracleDbAwsKeyId, other.oracleDbAwsKeyId) + && java.util.Objects.equals( + this.replicateOracleDbAwsKeyDetails, other.replicateOracleDbAwsKeyDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.oracleDbAwsKeyId == null ? 43 : this.oracleDbAwsKeyId.hashCode()); + result = + (result * PRIME) + + (this.replicateOracleDbAwsKeyDetails == null + ? 43 + : this.replicateOracleDbAwsKeyDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbAzureVaultRequest.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbAzureVaultRequest.java new file mode 100644 index 00000000000..0cc7e4fc5ed --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbAzureVaultRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.requests; + +import com.oracle.bmc.dbmulticloud.model.*; +/** + * Example: Click here to see how to use ReplicateOracleDbAzureVaultRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbAzureVaultRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB Azure Vault resource. + */ + private String oracleDbAzureVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB Azure Vault resource. + */ + public String getOracleDbAzureVaultId() { + return oracleDbAzureVaultId; + } + /** + * Details for to replicate Oracle DB Azure Vault resource to target region. + */ + private com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails + replicateOracleDbAzureVaultDetails; + + /** + * Details for to replicate Oracle DB Azure Vault resource to target region. + */ + public com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails + getReplicateOracleDbAzureVaultDetails() { + return replicateOracleDbAzureVaultDetails; + } + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails getBody$() { + return replicateOracleDbAzureVaultDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReplicateOracleDbAzureVaultRequest, + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB Azure Vault resource. + */ + private String oracleDbAzureVaultId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB Azure Vault resource. + * @param oracleDbAzureVaultId the value to set + * @return this builder instance + */ + public Builder oracleDbAzureVaultId(String oracleDbAzureVaultId) { + this.oracleDbAzureVaultId = oracleDbAzureVaultId; + return this; + } + + /** + * Details for to replicate Oracle DB Azure Vault resource to target region. + */ + private com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails + replicateOracleDbAzureVaultDetails = null; + + /** + * Details for to replicate Oracle DB Azure Vault resource to target region. + * @param replicateOracleDbAzureVaultDetails the value to set + * @return this builder instance + */ + public Builder replicateOracleDbAzureVaultDetails( + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails + replicateOracleDbAzureVaultDetails) { + this.replicateOracleDbAzureVaultDetails = replicateOracleDbAzureVaultDetails; + return this; + } + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ReplicateOracleDbAzureVaultRequest o) { + oracleDbAzureVaultId(o.getOracleDbAzureVaultId()); + replicateOracleDbAzureVaultDetails(o.getReplicateOracleDbAzureVaultDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReplicateOracleDbAzureVaultRequest 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 ReplicateOracleDbAzureVaultRequest + */ + public ReplicateOracleDbAzureVaultRequest build() { + ReplicateOracleDbAzureVaultRequest 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.dbmulticloud.model.ReplicateOracleDbAzureVaultDetails body) { + replicateOracleDbAzureVaultDetails(body); + return this; + } + + /** + * Build the instance of ReplicateOracleDbAzureVaultRequest 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 ReplicateOracleDbAzureVaultRequest + */ + public ReplicateOracleDbAzureVaultRequest buildWithoutInvocationCallback() { + ReplicateOracleDbAzureVaultRequest request = new ReplicateOracleDbAzureVaultRequest(); + request.oracleDbAzureVaultId = oracleDbAzureVaultId; + request.replicateOracleDbAzureVaultDetails = replicateOracleDbAzureVaultDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ReplicateOracleDbAzureVaultRequest(oracleDbAzureVaultId, replicateOracleDbAzureVaultDetails, opcRetryToken, 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() + .oracleDbAzureVaultId(oracleDbAzureVaultId) + .replicateOracleDbAzureVaultDetails(replicateOracleDbAzureVaultDetails) + .opcRetryToken(opcRetryToken) + .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(",oracleDbAzureVaultId=").append(String.valueOf(this.oracleDbAzureVaultId)); + sb.append(",replicateOracleDbAzureVaultDetails=") + .append(String.valueOf(this.replicateOracleDbAzureVaultDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbAzureVaultRequest)) { + return false; + } + + ReplicateOracleDbAzureVaultRequest other = (ReplicateOracleDbAzureVaultRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.oracleDbAzureVaultId, other.oracleDbAzureVaultId) + && java.util.Objects.equals( + this.replicateOracleDbAzureVaultDetails, + other.replicateOracleDbAzureVaultDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.oracleDbAzureVaultId == null + ? 43 + : this.oracleDbAzureVaultId.hashCode()); + result = + (result * PRIME) + + (this.replicateOracleDbAzureVaultDetails == null + ? 43 + : this.replicateOracleDbAzureVaultDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbGcpKeyRingRequest.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbGcpKeyRingRequest.java new file mode 100644 index 00000000000..4bfa32cccd7 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/requests/ReplicateOracleDbGcpKeyRingRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.requests; + +import com.oracle.bmc.dbmulticloud.model.*; +/** + * Example: Click here to see how to use ReplicateOracleDbGcpKeyRingRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbGcpKeyRingRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB GCP Key-Ring resource. + */ + private String oracleDbGcpKeyRingId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB GCP Key-Ring resource. + */ + public String getOracleDbGcpKeyRingId() { + return oracleDbGcpKeyRingId; + } + /** + * Details for to Replicate Oracle DD GCP Key Ring to target region. + */ + private com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails + replicateOracleDbGcpKeyRingDetails; + + /** + * Details for to Replicate Oracle DD GCP Key Ring to target region. + */ + public com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails + getReplicateOracleDbGcpKeyRingDetails() { + return replicateOracleDbGcpKeyRingDetails; + } + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails getBody$() { + return replicateOracleDbGcpKeyRingDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReplicateOracleDbGcpKeyRingRequest, + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB GCP Key-Ring resource. + */ + private String oracleDbGcpKeyRingId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle DB GCP Key-Ring resource. + * @param oracleDbGcpKeyRingId the value to set + * @return this builder instance + */ + public Builder oracleDbGcpKeyRingId(String oracleDbGcpKeyRingId) { + this.oracleDbGcpKeyRingId = oracleDbGcpKeyRingId; + return this; + } + + /** + * Details for to Replicate Oracle DD GCP Key Ring to target region. + */ + private com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails + replicateOracleDbGcpKeyRingDetails = null; + + /** + * Details for to Replicate Oracle DD GCP Key Ring to target region. + * @param replicateOracleDbGcpKeyRingDetails the value to set + * @return this builder instance + */ + public Builder replicateOracleDbGcpKeyRingDetails( + com.oracle.bmc.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails + replicateOracleDbGcpKeyRingDetails) { + this.replicateOracleDbGcpKeyRingDetails = replicateOracleDbGcpKeyRingDetails; + return this; + } + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, a retry of the original creation request may be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, allowing it to be safely retried in the event of a timeout or server error without the risk of the action being executed more than once. + *

+ * Retry tokens expire after 24 hours but can be invalidated sooner if conflicting operations occur. + *

+ * For example, if a resource has been deleted and permanently purged from the system, 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ReplicateOracleDbGcpKeyRingRequest o) { + oracleDbGcpKeyRingId(o.getOracleDbGcpKeyRingId()); + replicateOracleDbGcpKeyRingDetails(o.getReplicateOracleDbGcpKeyRingDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReplicateOracleDbGcpKeyRingRequest 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 ReplicateOracleDbGcpKeyRingRequest + */ + public ReplicateOracleDbGcpKeyRingRequest build() { + ReplicateOracleDbGcpKeyRingRequest 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.dbmulticloud.model.ReplicateOracleDbGcpKeyRingDetails body) { + replicateOracleDbGcpKeyRingDetails(body); + return this; + } + + /** + * Build the instance of ReplicateOracleDbGcpKeyRingRequest 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 ReplicateOracleDbGcpKeyRingRequest + */ + public ReplicateOracleDbGcpKeyRingRequest buildWithoutInvocationCallback() { + ReplicateOracleDbGcpKeyRingRequest request = new ReplicateOracleDbGcpKeyRingRequest(); + request.oracleDbGcpKeyRingId = oracleDbGcpKeyRingId; + request.replicateOracleDbGcpKeyRingDetails = replicateOracleDbGcpKeyRingDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ReplicateOracleDbGcpKeyRingRequest(oracleDbGcpKeyRingId, replicateOracleDbGcpKeyRingDetails, opcRetryToken, 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() + .oracleDbGcpKeyRingId(oracleDbGcpKeyRingId) + .replicateOracleDbGcpKeyRingDetails(replicateOracleDbGcpKeyRingDetails) + .opcRetryToken(opcRetryToken) + .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(",oracleDbGcpKeyRingId=").append(String.valueOf(this.oracleDbGcpKeyRingId)); + sb.append(",replicateOracleDbGcpKeyRingDetails=") + .append(String.valueOf(this.replicateOracleDbGcpKeyRingDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbGcpKeyRingRequest)) { + return false; + } + + ReplicateOracleDbGcpKeyRingRequest other = (ReplicateOracleDbGcpKeyRingRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.oracleDbGcpKeyRingId, other.oracleDbGcpKeyRingId) + && java.util.Objects.equals( + this.replicateOracleDbGcpKeyRingDetails, + other.replicateOracleDbGcpKeyRingDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.oracleDbGcpKeyRingId == null + ? 43 + : this.oracleDbGcpKeyRingId.hashCode()); + result = + (result * PRIME) + + (this.replicateOracleDbGcpKeyRingDetails == null + ? 43 + : this.replicateOracleDbGcpKeyRingDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbAwsKeyResponse.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbAwsKeyResponse.java new file mode 100644 index 00000000000..2e378508483 --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbAwsKeyResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.responses; + +import com.oracle.bmc.dbmulticloud.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbAwsKeyResponse 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ReplicateOracleDbAwsKeyResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ReplicateOracleDbAwsKeyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ReplicateOracleDbAwsKeyResponse build() { + return new ReplicateOracleDbAwsKeyResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbAwsKeyResponse)) { + return false; + } + + ReplicateOracleDbAwsKeyResponse other = (ReplicateOracleDbAwsKeyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbAzureVaultResponse.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbAzureVaultResponse.java new file mode 100644 index 00000000000..315e713bc7a --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbAzureVaultResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.responses; + +import com.oracle.bmc.dbmulticloud.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbAzureVaultResponse 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ReplicateOracleDbAzureVaultResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ReplicateOracleDbAzureVaultResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ReplicateOracleDbAzureVaultResponse build() { + return new ReplicateOracleDbAzureVaultResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbAzureVaultResponse)) { + return false; + } + + ReplicateOracleDbAzureVaultResponse other = (ReplicateOracleDbAzureVaultResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbGcpKeyRingResponse.java b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbGcpKeyRingResponse.java new file mode 100644 index 00000000000..2faa259157d --- /dev/null +++ b/bmc-dbmulticloud/src/main/java/com/oracle/bmc/dbmulticloud/responses/ReplicateOracleDbGcpKeyRingResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dbmulticloud.responses; + +import com.oracle.bmc.dbmulticloud.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") +public class ReplicateOracleDbGcpKeyRingResponse 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ReplicateOracleDbGcpKeyRingResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ReplicateOracleDbGcpKeyRingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ReplicateOracleDbGcpKeyRingResponse build() { + return new ReplicateOracleDbGcpKeyRingResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateOracleDbGcpKeyRingResponse)) { + return false; + } + + ReplicateOracleDbGcpKeyRingResponse other = (ReplicateOracleDbGcpKeyRingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index bc5eefe7a3e..4d61e828b60 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 934ad232925..d149e7484fb 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarm.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarm.java new file mode 100644 index 00000000000..d61d0604d4e --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarm.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OccMetricAlarm extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new OccMetricAlarm resource in the specified compartment with the provided configuration details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateOccMetricAlarm API. + */ + CreateOccMetricAlarmResponse createOccMetricAlarm(CreateOccMetricAlarmRequest request); + + /** + * Deletes the specified OccMetricAlarm 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 DeleteOccMetricAlarm API. + */ + DeleteOccMetricAlarmResponse deleteOccMetricAlarm(DeleteOccMetricAlarmRequest request); + + /** + * Retrieves the specified OccMetricAlarm resource based on its identifier. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetOccMetricAlarm API. + */ + GetOccMetricAlarmResponse getOccMetricAlarm(GetOccMetricAlarmRequest request); + + /** + * Gets a list of OccMetricAlarms. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListOccMetricAlarms API. + */ + ListOccMetricAlarmsResponse listOccMetricAlarms(ListOccMetricAlarmsRequest request); + + /** + * Updates an existing OccMetricAlarm resource with new or modified configuration details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateOccMetricAlarm API. + */ + UpdateOccMetricAlarmResponse updateOccMetricAlarm(UpdateOccMetricAlarmRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + OccMetricAlarmWaiters 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. + */ + OccMetricAlarmPaginators getPaginators(); +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmAsync.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmAsync.java new file mode 100644 index 00000000000..295df1a4bb5 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmAsync.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OccMetricAlarmAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new OccMetricAlarm resource in the specified compartment with the provided configuration details. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createOccMetricAlarm( + CreateOccMetricAlarmRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateOccMetricAlarmRequest, CreateOccMetricAlarmResponse> + handler); + + /** + * Deletes the specified OccMetricAlarm 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 deleteOccMetricAlarm( + DeleteOccMetricAlarmRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteOccMetricAlarmRequest, DeleteOccMetricAlarmResponse> + handler); + + /** + * Retrieves the specified OccMetricAlarm resource based on its identifier. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getOccMetricAlarm( + GetOccMetricAlarmRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOccMetricAlarmRequest, GetOccMetricAlarmResponse> + handler); + + /** + * Gets a list of OccMetricAlarms. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listOccMetricAlarms( + ListOccMetricAlarmsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse> + handler); + + /** + * Updates an existing OccMetricAlarm resource with new or modified configuration details. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateOccMetricAlarm( + UpdateOccMetricAlarmRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateOccMetricAlarmRequest, UpdateOccMetricAlarmResponse> + handler); +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmAsyncClient.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmAsyncClient.java new file mode 100644 index 00000000000..d0e900334e5 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmAsyncClient.java @@ -0,0 +1,719 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for OccMetricAlarm 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 OccMetricAlarmAsyncClient implements OccMetricAlarmAsync { + /** + * Service instance for OccMetricAlarm. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(OccMetricAlarmClient.class.getName()) + .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(OccMetricAlarmAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + 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 OccMetricAlarmAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, OccMetricAlarmAsyncClient> { + 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 OccMetricAlarmAsyncClient 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 OccMetricAlarmAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future createOccMetricAlarm( + CreateOccMetricAlarmRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOccMetricAlarmRequest, CreateOccMetricAlarmResponse> + handler) { + LOG.trace("Called async createOccMetricAlarm"); + final CreateOccMetricAlarmRequest interceptedRequest = + CreateOccMetricAlarmConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateOccMetricAlarmConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccMetricAlarm", + "CreateOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/CreateOccMetricAlarm"); + final java.util.function.Function + transformer = + CreateOccMetricAlarmConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateOccMetricAlarmRequest, CreateOccMetricAlarmResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateOccMetricAlarmRequest, CreateOccMetricAlarmResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateOccMetricAlarmDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateOccMetricAlarmRequest, CreateOccMetricAlarmResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteOccMetricAlarm( + DeleteOccMetricAlarmRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteOccMetricAlarmRequest, DeleteOccMetricAlarmResponse> + handler) { + LOG.trace("Called async deleteOccMetricAlarm"); + final DeleteOccMetricAlarmRequest interceptedRequest = + DeleteOccMetricAlarmConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteOccMetricAlarmConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccMetricAlarm", + "DeleteOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/DeleteOccMetricAlarm"); + final java.util.function.Function + transformer = + DeleteOccMetricAlarmConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteOccMetricAlarmRequest, DeleteOccMetricAlarmResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteOccMetricAlarmRequest, DeleteOccMetricAlarmResponse>, + 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< + DeleteOccMetricAlarmRequest, DeleteOccMetricAlarmResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getOccMetricAlarm( + GetOccMetricAlarmRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOccMetricAlarmRequest, GetOccMetricAlarmResponse> + handler) { + LOG.trace("Called async getOccMetricAlarm"); + final GetOccMetricAlarmRequest interceptedRequest = + GetOccMetricAlarmConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetOccMetricAlarmConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccMetricAlarm", + "GetOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/GetOccMetricAlarm"); + final java.util.function.Function + transformer = + GetOccMetricAlarmConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetOccMetricAlarmRequest, GetOccMetricAlarmResponse>, + 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< + GetOccMetricAlarmRequest, GetOccMetricAlarmResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listOccMetricAlarms( + ListOccMetricAlarmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse> + handler) { + LOG.trace("Called async listOccMetricAlarms"); + final ListOccMetricAlarmsRequest interceptedRequest = + ListOccMetricAlarmsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOccMetricAlarmsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccMetricAlarm", + "ListOccMetricAlarms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarmCollection/ListOccMetricAlarms"); + final java.util.function.Function + transformer = + ListOccMetricAlarmsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse>, + 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< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateOccMetricAlarm( + UpdateOccMetricAlarmRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateOccMetricAlarmRequest, UpdateOccMetricAlarmResponse> + handler) { + LOG.trace("Called async updateOccMetricAlarm"); + final UpdateOccMetricAlarmRequest interceptedRequest = + UpdateOccMetricAlarmConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateOccMetricAlarmConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccMetricAlarm", + "UpdateOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/UpdateOccMetricAlarm"); + final java.util.function.Function + transformer = + UpdateOccMetricAlarmConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateOccMetricAlarmRequest, UpdateOccMetricAlarmResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateOccMetricAlarmRequest, UpdateOccMetricAlarmResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateOccMetricAlarmDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateOccMetricAlarmRequest, UpdateOccMetricAlarmResponse>( + (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/OccMetricAlarmClient.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmClient.java new file mode 100644 index 00000000000..8961b76beee --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmClient.java @@ -0,0 +1,767 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class OccMetricAlarmClient implements OccMetricAlarm { + /** + * Service instance for OccMetricAlarm. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(OccMetricAlarmClient.class.getName()) + .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(OccMetricAlarmClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final OccMetricAlarmWaiters waiters; + + private final OccMetricAlarmPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + 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 OccMetricAlarmClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("OccMetricAlarm-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new OccMetricAlarmWaiters(executorService, this); + + this.paginators = new OccMetricAlarmPaginators(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 OccMetricAlarmClient 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 OccMetricAlarmClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public CreateOccMetricAlarmResponse createOccMetricAlarm(CreateOccMetricAlarmRequest request) { + LOG.trace("Called createOccMetricAlarm"); + final CreateOccMetricAlarmRequest interceptedRequest = + CreateOccMetricAlarmConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateOccMetricAlarmConverter.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( + "OccMetricAlarm", + "CreateOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/CreateOccMetricAlarm"); + java.util.function.Function + transformer = + CreateOccMetricAlarmConverter.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.getCreateOccMetricAlarmDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteOccMetricAlarmResponse deleteOccMetricAlarm(DeleteOccMetricAlarmRequest request) { + LOG.trace("Called deleteOccMetricAlarm"); + final DeleteOccMetricAlarmRequest interceptedRequest = + DeleteOccMetricAlarmConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteOccMetricAlarmConverter.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( + "OccMetricAlarm", + "DeleteOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/DeleteOccMetricAlarm"); + java.util.function.Function + transformer = + DeleteOccMetricAlarmConverter.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 GetOccMetricAlarmResponse getOccMetricAlarm(GetOccMetricAlarmRequest request) { + LOG.trace("Called getOccMetricAlarm"); + final GetOccMetricAlarmRequest interceptedRequest = + GetOccMetricAlarmConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetOccMetricAlarmConverter.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( + "OccMetricAlarm", + "GetOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/GetOccMetricAlarm"); + java.util.function.Function + transformer = + GetOccMetricAlarmConverter.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 ListOccMetricAlarmsResponse listOccMetricAlarms(ListOccMetricAlarmsRequest request) { + LOG.trace("Called listOccMetricAlarms"); + final ListOccMetricAlarmsRequest interceptedRequest = + ListOccMetricAlarmsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOccMetricAlarmsConverter.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( + "OccMetricAlarm", + "ListOccMetricAlarms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarmCollection/ListOccMetricAlarms"); + java.util.function.Function + transformer = + ListOccMetricAlarmsConverter.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 UpdateOccMetricAlarmResponse updateOccMetricAlarm(UpdateOccMetricAlarmRequest request) { + LOG.trace("Called updateOccMetricAlarm"); + final UpdateOccMetricAlarmRequest interceptedRequest = + UpdateOccMetricAlarmConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateOccMetricAlarmConverter.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( + "OccMetricAlarm", + "UpdateOccMetricAlarm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccMetricAlarm/UpdateOccMetricAlarm"); + java.util.function.Function + transformer = + UpdateOccMetricAlarmConverter.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.getUpdateOccMetricAlarmDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public OccMetricAlarmWaiters getWaiters() { + return waiters; + } + + @Override + public OccMetricAlarmPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmPaginators.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmPaginators.java new file mode 100644 index 00000000000..bcd5edceee1 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmPaginators.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OccMetricAlarm 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 OccMetricAlarmPaginators { + private final OccMetricAlarm client; + + public OccMetricAlarmPaginators(OccMetricAlarm client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listOccMetricAlarms 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 listOccMetricAlarmsResponseIterator( + final ListOccMetricAlarmsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccMetricAlarmsRequest.Builder, ListOccMetricAlarmsRequest, + ListOccMetricAlarmsResponse>( + new java.util.function.Supplier() { + @Override + public ListOccMetricAlarmsRequest.Builder get() { + return ListOccMetricAlarmsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccMetricAlarmsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccMetricAlarmsRequest.Builder>, + ListOccMetricAlarmsRequest>() { + @Override + public ListOccMetricAlarmsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccMetricAlarmsRequest.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< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse>() { + @Override + public ListOccMetricAlarmsResponse apply(ListOccMetricAlarmsRequest request) { + return client.listOccMetricAlarms(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.demandsignal.model.OccMetricAlarmSummary} objects + * contained in responses from the listOccMetricAlarms 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.OccMetricAlarmSummary} objects + * contained in responses received from the service. + */ + public Iterable + listOccMetricAlarmsRecordIterator(final ListOccMetricAlarmsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccMetricAlarmsRequest.Builder, ListOccMetricAlarmsRequest, + ListOccMetricAlarmsResponse, + com.oracle.bmc.demandsignal.model.OccMetricAlarmSummary>( + new java.util.function.Supplier() { + @Override + public ListOccMetricAlarmsRequest.Builder get() { + return ListOccMetricAlarmsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccMetricAlarmsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccMetricAlarmsRequest.Builder>, + ListOccMetricAlarmsRequest>() { + @Override + public ListOccMetricAlarmsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccMetricAlarmsRequest.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< + ListOccMetricAlarmsRequest, ListOccMetricAlarmsResponse>() { + @Override + public ListOccMetricAlarmsResponse apply(ListOccMetricAlarmsRequest request) { + return client.listOccMetricAlarms(request); + } + }, + new java.util.function.Function< + ListOccMetricAlarmsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListOccMetricAlarmsResponse response) { + return response.getOccMetricAlarmCollection().getItems(); + } + }); + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmWaiters.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmWaiters.java new file mode 100644 index 00000000000..9055298acda --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccMetricAlarmWaiters.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OccMetricAlarm. + *

+ * 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 OccMetricAlarmWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final OccMetricAlarm client; + + public OccMetricAlarmWaiters( + java.util.concurrent.ExecutorService executorService, OccMetricAlarm 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 + forOccMetricAlarm( + GetOccMetricAlarmRequest request, + com.oracle.bmc.demandsignal.model.OccMetricAlarm.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 forOccMetricAlarm( + 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 + forOccMetricAlarm( + GetOccMetricAlarmRequest request, + com.oracle.bmc.demandsignal.model.OccMetricAlarm.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 forOccMetricAlarm( + 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 + forOccMetricAlarm( + GetOccMetricAlarmRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.demandsignal.model.OccMetricAlarm.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 forOccMetricAlarm( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OccMetricAlarm. + private com.oracle.bmc.waiter.Waiter + forOccMetricAlarm( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOccMetricAlarmRequest request, + final com.oracle.bmc.demandsignal.model.OccMetricAlarm.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< + GetOccMetricAlarmRequest, GetOccMetricAlarmResponse>() { + @Override + public GetOccMetricAlarmResponse apply( + GetOccMetricAlarmRequest request) { + return client.getOccMetricAlarm(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOccMetricAlarmResponse response) { + return targetStatesSet.contains( + response.getOccMetricAlarm().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.demandsignal.model.OccMetricAlarm.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 index a8cc01715d2..fe4f187ce6f 100644 --- a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/SdkClientsMetadata.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/SdkClientsMetadata.java @@ -7,5 +7,10 @@ import com.oracle.bmc.SdkClients; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") -@SdkClients({OccDemandSignalAsyncClient.class, OccDemandSignalClient.class}) +@SdkClients({ + OccDemandSignalAsyncClient.class, + OccDemandSignalClient.class, + OccMetricAlarmAsyncClient.class, + OccMetricAlarmClient.class +}) public final class SdkClientsMetadata {} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/CreateOccMetricAlarmConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/CreateOccMetricAlarmConverter.java new file mode 100644 index 00000000000..8e6049f6430 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/CreateOccMetricAlarmConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 CreateOccMetricAlarmConverter { + 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(CreateOccMetricAlarmConverter.class); + + public static com.oracle.bmc.demandsignal.requests.CreateOccMetricAlarmRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.CreateOccMetricAlarmRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.CreateOccMetricAlarmRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateOccMetricAlarmDetails(), + "createOccMetricAlarmDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20240430").path("occMetricAlarms"); + + 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.CreateOccMetricAlarmResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.CreateOccMetricAlarmResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.CreateOccMetricAlarmResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .CreateOccMetricAlarmResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .CreateOccMetricAlarmResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.CreateOccMetricAlarmResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccMetricAlarm>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model.OccMetricAlarm + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model.OccMetricAlarm + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model.OccMetricAlarm> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.CreateOccMetricAlarmResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .CreateOccMetricAlarmResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occMetricAlarm(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.demandsignal.responses.CreateOccMetricAlarmResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/DeleteOccMetricAlarmConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/DeleteOccMetricAlarmConverter.java new file mode 100644 index 00000000000..442de377149 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/DeleteOccMetricAlarmConverter.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 DeleteOccMetricAlarmConverter { + 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(DeleteOccMetricAlarmConverter.class); + + public static com.oracle.bmc.demandsignal.requests.DeleteOccMetricAlarmRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.DeleteOccMetricAlarmRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.DeleteOccMetricAlarmRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOccMetricAlarmId(), "occMetricAlarmId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240430") + .path("occMetricAlarms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccMetricAlarmId())); + + 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.DeleteOccMetricAlarmResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.DeleteOccMetricAlarmResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.DeleteOccMetricAlarmResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .DeleteOccMetricAlarmResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .DeleteOccMetricAlarmResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.DeleteOccMetricAlarmResponse"); + 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.DeleteOccMetricAlarmResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .DeleteOccMetricAlarmResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.demandsignal.responses.DeleteOccMetricAlarmResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/GetOccMetricAlarmConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/GetOccMetricAlarmConverter.java new file mode 100644 index 00000000000..a5e729014b9 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/GetOccMetricAlarmConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetOccMetricAlarmConverter { + 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(GetOccMetricAlarmConverter.class); + + public static com.oracle.bmc.demandsignal.requests.GetOccMetricAlarmRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.GetOccMetricAlarmRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.GetOccMetricAlarmRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOccMetricAlarmId(), "occMetricAlarmId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240430") + .path("occMetricAlarms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccMetricAlarmId())); + + 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.demandsignal.responses.GetOccMetricAlarmResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.GetOccMetricAlarmResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.GetOccMetricAlarmResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.GetOccMetricAlarmResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses.GetOccMetricAlarmResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.GetOccMetricAlarmResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccMetricAlarm>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model.OccMetricAlarm + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model.OccMetricAlarm + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model.OccMetricAlarm> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.GetOccMetricAlarmResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .GetOccMetricAlarmResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occMetricAlarm(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.demandsignal.responses.GetOccMetricAlarmResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ListOccMetricAlarmsConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ListOccMetricAlarmsConverter.java new file mode 100644 index 00000000000..73f4fda8e46 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ListOccMetricAlarmsConverter.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ListOccMetricAlarmsConverter { + 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(ListOccMetricAlarmsConverter.class); + + public static com.oracle.bmc.demandsignal.requests.ListOccMetricAlarmsRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.ListOccMetricAlarmsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.ListOccMetricAlarmsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20240430").path("occMetricAlarms"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getIsActive() != null) { + target = + target.queryParam( + "isActive", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsActive())); + } + + 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.demandsignal.responses.ListOccMetricAlarmsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.ListOccMetricAlarmsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.ListOccMetricAlarmsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .ListOccMetricAlarmsResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses.ListOccMetricAlarmsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.ListOccMetricAlarmsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccMetricAlarmCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccMetricAlarmCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccMetricAlarmCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccMetricAlarmCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.ListOccMetricAlarmsResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .ListOccMetricAlarmsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occMetricAlarmCollection(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.demandsignal.responses.ListOccMetricAlarmsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/UpdateOccMetricAlarmConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/UpdateOccMetricAlarmConverter.java new file mode 100644 index 00000000000..a4236fc676c --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/UpdateOccMetricAlarmConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 UpdateOccMetricAlarmConverter { + 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(UpdateOccMetricAlarmConverter.class); + + public static com.oracle.bmc.demandsignal.requests.UpdateOccMetricAlarmRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.UpdateOccMetricAlarmRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.UpdateOccMetricAlarmRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOccMetricAlarmId(), "occMetricAlarmId must not be blank"); + Validate.notNull( + request.getUpdateOccMetricAlarmDetails(), + "updateOccMetricAlarmDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240430") + .path("occMetricAlarms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccMetricAlarmId())); + + 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.UpdateOccMetricAlarmResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.UpdateOccMetricAlarmResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.UpdateOccMetricAlarmResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .UpdateOccMetricAlarmResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .UpdateOccMetricAlarmResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.UpdateOccMetricAlarmResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccMetricAlarm>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model.OccMetricAlarm + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model.OccMetricAlarm + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model.OccMetricAlarm> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.UpdateOccMetricAlarmResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .UpdateOccMetricAlarmResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occMetricAlarm(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.demandsignal.responses.UpdateOccMetricAlarmResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/BaseResourceConfiguration.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/BaseResourceConfiguration.java new file mode 100644 index 00000000000..064db9d7f5e --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/BaseResourceConfiguration.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Configuration for a given '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: 20240430") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resource", + defaultImpl = BaseResourceConfiguration.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExadataResourceConfiguration.class, + name = "EXADATA" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NetworkResourceConfiguration.class, + name = "NETWORK" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = StorageResourceConfiguration.class, + name = "STORAGE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ComputeResourceConfiguration.class, + name = "COMPUTE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class BaseResourceConfiguration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected BaseResourceConfiguration() { + 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("BaseResourceConfiguration("); + 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 BaseResourceConfiguration)) { + return false; + } + + BaseResourceConfiguration other = (BaseResourceConfiguration) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Resources like COMPUTE, STORAGE, EXADATA etc. + **/ + public enum Resource { + Compute("COMPUTE"), + Exadata("EXADATA"), + Storage("STORAGE"), + Network("NETWORK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Resource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Resource v : Resource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Resource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Resource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Resource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ComputeResourceConfiguration.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ComputeResourceConfiguration.java new file mode 100644 index 00000000000..8bfa5bb5ad3 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ComputeResourceConfiguration.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Configuration for COMPUTE + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = ComputeResourceConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resource" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeResourceConfiguration extends BaseResourceConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The shape of the compute instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * The shape of the compute instance. + * @param shape the value to set + * @return this builder + **/ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * The hardware generation of the compute resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeHwGeneration") + private String computeHwGeneration; + + /** + * The hardware generation of the compute resource. + * @param computeHwGeneration the value to set + * @return this builder + **/ + public Builder computeHwGeneration(String computeHwGeneration) { + this.computeHwGeneration = computeHwGeneration; + this.__explicitlySet__.add("computeHwGeneration"); + return this; + } + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private String usageType; + + /** + * The type of usage for the resource. + * @param usageType the value to set + * @return this builder + **/ + public Builder usageType(String usageType) { + this.usageType = usageType; + this.__explicitlySet__.add("usageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeResourceConfiguration build() { + ComputeResourceConfiguration model = + new ComputeResourceConfiguration( + this.shape, this.computeHwGeneration, this.usageType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeResourceConfiguration model) { + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("computeHwGeneration")) { + this.computeHwGeneration(model.getComputeHwGeneration()); + } + if (model.wasPropertyExplicitlySet("usageType")) { + this.usageType(model.getUsageType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ComputeResourceConfiguration( + String shape, String computeHwGeneration, String usageType) { + super(); + this.shape = shape; + this.computeHwGeneration = computeHwGeneration; + this.usageType = usageType; + } + + /** + * The shape of the compute instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * The shape of the compute instance. + * @return the value + **/ + public String getShape() { + return shape; + } + + /** + * The hardware generation of the compute resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeHwGeneration") + private final String computeHwGeneration; + + /** + * The hardware generation of the compute resource. + * @return the value + **/ + public String getComputeHwGeneration() { + return computeHwGeneration; + } + + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private final String usageType; + + /** + * The type of usage for the resource. + * @return the value + **/ + public String getUsageType() { + return usageType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeResourceConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", computeHwGeneration=").append(String.valueOf(this.computeHwGeneration)); + sb.append(", usageType=").append(String.valueOf(this.usageType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeResourceConfiguration)) { + return false; + } + + ComputeResourceConfiguration other = (ComputeResourceConfiguration) o; + return java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.computeHwGeneration, other.computeHwGeneration) + && java.util.Objects.equals(this.usageType, other.usageType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.computeHwGeneration == null + ? 43 + : this.computeHwGeneration.hashCode()); + result = (result * PRIME) + (this.usageType == null ? 43 : this.usageType.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/CreateOccMetricAlarmDetails.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/CreateOccMetricAlarmDetails.java new file mode 100644 index 00000000000..25333d63523 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/CreateOccMetricAlarmDetails.java @@ -0,0 +1,684 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Payload for creating an OccMetricAlarm. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateOccMetricAlarmDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOccMetricAlarmDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "lifecycleState", + "compartmentId", + "isActive", + "subscribers", + "frequency", + "threshold", + "thresholdType", + "resourceConfiguration", + "freeformTags", + "definedTags" + }) + public CreateOccMetricAlarmDetails( + String displayName, + String description, + LifecycleState lifecycleState, + String compartmentId, + Boolean isActive, + java.util.List subscribers, + OccMetricAlarm.Frequency frequency, + Integer threshold, + ThresholdType thresholdType, + BaseResourceConfiguration resourceConfiguration, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.compartmentId = compartmentId; + this.isActive = isActive; + this.subscribers = subscribers; + this.frequency = frequency; + this.threshold = threshold; + this.thresholdType = thresholdType; + this.resourceConfiguration = resourceConfiguration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Human-readable name for the alarm. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description for the alarm. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Compartment OCID in which the alarm is created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment OCID in which the alarm is created. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Alarm active status. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @param subscribers the value to set + * @return this builder + **/ + public Builder subscribers(java.util.List subscribers) { + this.subscribers = subscribers; + this.__explicitlySet__.add("subscribers"); + return this; + } + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private OccMetricAlarm.Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @param frequency the value to set + * @return this builder + **/ + public Builder frequency(OccMetricAlarm.Frequency frequency) { + this.frequency = frequency; + this.__explicitlySet__.add("frequency"); + return this; + } + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Integer threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @param thresholdType the value to set + * @return this builder + **/ + public Builder thresholdType(ThresholdType thresholdType) { + this.thresholdType = thresholdType; + this.__explicitlySet__.add("thresholdType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private BaseResourceConfiguration resourceConfiguration; + + public Builder resourceConfiguration(BaseResourceConfiguration resourceConfiguration) { + this.resourceConfiguration = resourceConfiguration; + this.__explicitlySet__.add("resourceConfiguration"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOccMetricAlarmDetails build() { + CreateOccMetricAlarmDetails model = + new CreateOccMetricAlarmDetails( + this.displayName, + this.description, + this.lifecycleState, + this.compartmentId, + this.isActive, + this.subscribers, + this.frequency, + this.threshold, + this.thresholdType, + this.resourceConfiguration, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOccMetricAlarmDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("subscribers")) { + this.subscribers(model.getSubscribers()); + } + if (model.wasPropertyExplicitlySet("frequency")) { + this.frequency(model.getFrequency()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + if (model.wasPropertyExplicitlySet("thresholdType")) { + this.thresholdType(model.getThresholdType()); + } + if (model.wasPropertyExplicitlySet("resourceConfiguration")) { + this.resourceConfiguration(model.getResourceConfiguration()); + } + 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); + } + + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Human-readable name for the alarm. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description for the alarm. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current lifecycle state of the resource. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Compartment OCID in which the alarm is created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment OCID in which the alarm is created. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Alarm active status. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private final java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @return the value + **/ + public java.util.List getSubscribers() { + return subscribers; + } + + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private final OccMetricAlarm.Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @return the value + **/ + public OccMetricAlarm.Frequency getFrequency() { + return frequency; + } + + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @return the value + **/ + public Integer getThreshold() { + return threshold; + } + + /** + * Units in which threshold is being stored. + **/ + public enum ThresholdType { + Percentage("PERCENTAGE"), + Units("UNITS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ThresholdType v : ThresholdType.values()) { + map.put(v.getValue(), v); + } + } + + ThresholdType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ThresholdType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ThresholdType: " + key); + } + }; + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private final ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @return the value + **/ + public ThresholdType getThresholdType() { + return thresholdType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private final BaseResourceConfiguration resourceConfiguration; + + public BaseResourceConfiguration getResourceConfiguration() { + return resourceConfiguration; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOccMetricAlarmDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", subscribers=").append(String.valueOf(this.subscribers)); + sb.append(", frequency=").append(String.valueOf(this.frequency)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(", thresholdType=").append(String.valueOf(this.thresholdType)); + sb.append(", resourceConfiguration=").append(String.valueOf(this.resourceConfiguration)); + 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 CreateOccMetricAlarmDetails)) { + return false; + } + + CreateOccMetricAlarmDetails other = (CreateOccMetricAlarmDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.subscribers, other.subscribers) + && java.util.Objects.equals(this.frequency, other.frequency) + && java.util.Objects.equals(this.threshold, other.threshold) + && java.util.Objects.equals(this.thresholdType, other.thresholdType) + && java.util.Objects.equals(this.resourceConfiguration, other.resourceConfiguration) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); + result = (result * PRIME) + (this.subscribers == null ? 43 : this.subscribers.hashCode()); + result = (result * PRIME) + (this.frequency == null ? 43 : this.frequency.hashCode()); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + result = + (result * PRIME) + + (this.thresholdType == null ? 43 : this.thresholdType.hashCode()); + result = + (result * PRIME) + + (this.resourceConfiguration == null + ? 43 + : this.resourceConfiguration.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ExadataResourceConfiguration.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ExadataResourceConfiguration.java new file mode 100644 index 00000000000..6bbca426b50 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ExadataResourceConfiguration.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Configuration for EXADATA + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = ExadataResourceConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resource" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExadataResourceConfiguration extends BaseResourceConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The type of node in the Exadata system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeType") + private String nodeType; + + /** + * The type of node in the Exadata system. + * @param nodeType the value to set + * @return this builder + **/ + public Builder nodeType(String nodeType) { + this.nodeType = nodeType; + this.__explicitlySet__.add("nodeType"); + return this; + } + /** + * The hardware generation of the Exadata system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hwGeneration") + private String hwGeneration; + + /** + * The hardware generation of the Exadata system. + * @param hwGeneration the value to set + * @return this builder + **/ + public Builder hwGeneration(String hwGeneration) { + this.hwGeneration = hwGeneration; + this.__explicitlySet__.add("hwGeneration"); + return this; + } + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private String usageType; + + /** + * The type of usage for the resource. + * @param usageType the value to set + * @return this builder + **/ + public Builder usageType(String usageType) { + this.usageType = usageType; + this.__explicitlySet__.add("usageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExadataResourceConfiguration build() { + ExadataResourceConfiguration model = + new ExadataResourceConfiguration( + this.nodeType, this.hwGeneration, this.usageType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExadataResourceConfiguration model) { + if (model.wasPropertyExplicitlySet("nodeType")) { + this.nodeType(model.getNodeType()); + } + if (model.wasPropertyExplicitlySet("hwGeneration")) { + this.hwGeneration(model.getHwGeneration()); + } + if (model.wasPropertyExplicitlySet("usageType")) { + this.usageType(model.getUsageType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExadataResourceConfiguration(String nodeType, String hwGeneration, String usageType) { + super(); + this.nodeType = nodeType; + this.hwGeneration = hwGeneration; + this.usageType = usageType; + } + + /** + * The type of node in the Exadata system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeType") + private final String nodeType; + + /** + * The type of node in the Exadata system. + * @return the value + **/ + public String getNodeType() { + return nodeType; + } + + /** + * The hardware generation of the Exadata system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hwGeneration") + private final String hwGeneration; + + /** + * The hardware generation of the Exadata system. + * @return the value + **/ + public String getHwGeneration() { + return hwGeneration; + } + + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private final String usageType; + + /** + * The type of usage for the resource. + * @return the value + **/ + public String getUsageType() { + return usageType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExadataResourceConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", nodeType=").append(String.valueOf(this.nodeType)); + sb.append(", hwGeneration=").append(String.valueOf(this.hwGeneration)); + sb.append(", usageType=").append(String.valueOf(this.usageType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExadataResourceConfiguration)) { + return false; + } + + ExadataResourceConfiguration other = (ExadataResourceConfiguration) o; + return java.util.Objects.equals(this.nodeType, other.nodeType) + && java.util.Objects.equals(this.hwGeneration, other.hwGeneration) + && java.util.Objects.equals(this.usageType, other.usageType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.nodeType == null ? 43 : this.nodeType.hashCode()); + result = (result * PRIME) + (this.hwGeneration == null ? 43 : this.hwGeneration.hashCode()); + result = (result * PRIME) + (this.usageType == null ? 43 : this.usageType.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/NetworkResourceConfiguration.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/NetworkResourceConfiguration.java new file mode 100644 index 00000000000..6d00566a947 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/NetworkResourceConfiguration.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Configuration for NETWORK + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = NetworkResourceConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resource" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NetworkResourceConfiguration extends BaseResourceConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private String usageType; + + /** + * The type of usage for the resource. + * @param usageType the value to set + * @return this builder + **/ + public Builder usageType(String usageType) { + this.usageType = usageType; + this.__explicitlySet__.add("usageType"); + return this; + } + /** + * The provider of the network service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("provider") + private String provider; + + /** + * The provider of the network service. + * @param provider the value to set + * @return this builder + **/ + public Builder provider(String provider) { + this.provider = provider; + this.__explicitlySet__.add("provider"); + return this; + } + /** + * The role of the link in the network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("linkRole") + private String linkRole; + + /** + * The role of the link in the network. + * @param linkRole the value to set + * @return this builder + **/ + public Builder linkRole(String linkRole) { + this.linkRole = linkRole; + this.__explicitlySet__.add("linkRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NetworkResourceConfiguration build() { + NetworkResourceConfiguration model = + new NetworkResourceConfiguration(this.usageType, this.provider, this.linkRole); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NetworkResourceConfiguration model) { + if (model.wasPropertyExplicitlySet("usageType")) { + this.usageType(model.getUsageType()); + } + if (model.wasPropertyExplicitlySet("provider")) { + this.provider(model.getProvider()); + } + if (model.wasPropertyExplicitlySet("linkRole")) { + this.linkRole(model.getLinkRole()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NetworkResourceConfiguration(String usageType, String provider, String linkRole) { + super(); + this.usageType = usageType; + this.provider = provider; + this.linkRole = linkRole; + } + + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private final String usageType; + + /** + * The type of usage for the resource. + * @return the value + **/ + public String getUsageType() { + return usageType; + } + + /** + * The provider of the network service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("provider") + private final String provider; + + /** + * The provider of the network service. + * @return the value + **/ + public String getProvider() { + return provider; + } + + /** + * The role of the link in the network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("linkRole") + private final String linkRole; + + /** + * The role of the link in the network. + * @return the value + **/ + public String getLinkRole() { + return linkRole; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NetworkResourceConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", usageType=").append(String.valueOf(this.usageType)); + sb.append(", provider=").append(String.valueOf(this.provider)); + sb.append(", linkRole=").append(String.valueOf(this.linkRole)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NetworkResourceConfiguration)) { + return false; + } + + NetworkResourceConfiguration other = (NetworkResourceConfiguration) o; + return java.util.Objects.equals(this.usageType, other.usageType) + && java.util.Objects.equals(this.provider, other.provider) + && java.util.Objects.equals(this.linkRole, other.linkRole) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.usageType == null ? 43 : this.usageType.hashCode()); + result = (result * PRIME) + (this.provider == null ? 43 : this.provider.hashCode()); + result = (result * PRIME) + (this.linkRole == null ? 43 : this.linkRole.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarm.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarm.java new file mode 100644 index 00000000000..d983e641f26 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarm.java @@ -0,0 +1,929 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * OccMetricAlarm represents an alarm configuration for OCI Control Center 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = OccMetricAlarm.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccMetricAlarm extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "lifecycleState", + "compartmentId", + "isActive", + "subscribers", + "frequency", + "threshold", + "thresholdType", + "resourceConfiguration", + "freeformTags", + "definedTags", + "systemTags" + }) + public OccMetricAlarm( + String id, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String compartmentId, + Boolean isActive, + java.util.List subscribers, + Frequency frequency, + Integer threshold, + ThresholdType thresholdType, + BaseResourceConfiguration resourceConfiguration, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.compartmentId = compartmentId; + this.isActive = isActive; + this.subscribers = subscribers; + this.frequency = frequency; + this.threshold = threshold; + this.thresholdType = thresholdType; + this.resourceConfiguration = resourceConfiguration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Unique OCID for this alarm configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID for this alarm configuration. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Human-readable name for the alarm. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description for the alarm. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Creation timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Creation timestamp (RFC 3339). + * @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; + } + /** + * Last update timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Last update timestamp (RFC 3339). + * @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 lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Compartment OCID in which the alarm is created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment OCID in which the alarm is created. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Alarm active status. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @param subscribers the value to set + * @return this builder + **/ + public Builder subscribers(java.util.List subscribers) { + this.subscribers = subscribers; + this.__explicitlySet__.add("subscribers"); + return this; + } + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @param frequency the value to set + * @return this builder + **/ + public Builder frequency(Frequency frequency) { + this.frequency = frequency; + this.__explicitlySet__.add("frequency"); + return this; + } + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Integer threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @param thresholdType the value to set + * @return this builder + **/ + public Builder thresholdType(ThresholdType thresholdType) { + this.thresholdType = thresholdType; + this.__explicitlySet__.add("thresholdType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private BaseResourceConfiguration resourceConfiguration; + + public Builder resourceConfiguration(BaseResourceConfiguration resourceConfiguration) { + this.resourceConfiguration = resourceConfiguration; + this.__explicitlySet__.add("resourceConfiguration"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccMetricAlarm build() { + OccMetricAlarm model = + new OccMetricAlarm( + this.id, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.compartmentId, + this.isActive, + this.subscribers, + this.frequency, + this.threshold, + this.thresholdType, + this.resourceConfiguration, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccMetricAlarm 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("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("subscribers")) { + this.subscribers(model.getSubscribers()); + } + if (model.wasPropertyExplicitlySet("frequency")) { + this.frequency(model.getFrequency()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + if (model.wasPropertyExplicitlySet("thresholdType")) { + this.thresholdType(model.getThresholdType()); + } + if (model.wasPropertyExplicitlySet("resourceConfiguration")) { + this.resourceConfiguration(model.getResourceConfiguration()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Unique OCID for this alarm configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID for this alarm configuration. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Human-readable name for the alarm. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description for the alarm. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Creation timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Creation timestamp (RFC 3339). + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Last update timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Last update timestamp (RFC 3339). + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current lifecycle state of the resource. + **/ + 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 lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Compartment OCID in which the alarm is created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment OCID in which the alarm is created. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Alarm active status. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private final java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @return the value + **/ + public java.util.List getSubscribers() { + return subscribers; + } + + /** + * Frequency at which notifications should be sent. + **/ + public enum Frequency { + Daily("DAILY"), + Weekly("WEEKLY"), + Monthly("MONTHLY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Frequency.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Frequency v : Frequency.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Frequency(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Frequency create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Frequency', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private final Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @return the value + **/ + public Frequency getFrequency() { + return frequency; + } + + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @return the value + **/ + public Integer getThreshold() { + return threshold; + } + + /** + * Units in which threshold is being stored. + **/ + public enum ThresholdType { + Percentage("PERCENTAGE"), + Units("UNITS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ThresholdType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ThresholdType v : ThresholdType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ThresholdType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ThresholdType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ThresholdType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private final ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @return the value + **/ + public ThresholdType getThresholdType() { + return thresholdType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private final BaseResourceConfiguration resourceConfiguration; + + public BaseResourceConfiguration getResourceConfiguration() { + return resourceConfiguration; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccMetricAlarm("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", subscribers=").append(String.valueOf(this.subscribers)); + sb.append(", frequency=").append(String.valueOf(this.frequency)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(", thresholdType=").append(String.valueOf(this.thresholdType)); + sb.append(", resourceConfiguration=").append(String.valueOf(this.resourceConfiguration)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccMetricAlarm)) { + return false; + } + + OccMetricAlarm other = (OccMetricAlarm) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.subscribers, other.subscribers) + && java.util.Objects.equals(this.frequency, other.frequency) + && java.util.Objects.equals(this.threshold, other.threshold) + && java.util.Objects.equals(this.thresholdType, other.thresholdType) + && java.util.Objects.equals(this.resourceConfiguration, other.resourceConfiguration) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); + result = (result * PRIME) + (this.subscribers == null ? 43 : this.subscribers.hashCode()); + result = (result * PRIME) + (this.frequency == null ? 43 : this.frequency.hashCode()); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + result = + (result * PRIME) + + (this.thresholdType == null ? 43 : this.thresholdType.hashCode()); + result = + (result * PRIME) + + (this.resourceConfiguration == null + ? 43 + : this.resourceConfiguration.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarmCollection.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarmCollection.java new file mode 100644 index 00000000000..5ed0bf59689 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarmCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Results of an OccMetricAlarm list operation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = OccMetricAlarmCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccMetricAlarmCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OccMetricAlarmCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Results list of OccMetricAlarmSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Results list of OccMetricAlarmSummary 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 OccMetricAlarmCollection build() { + OccMetricAlarmCollection model = new OccMetricAlarmCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccMetricAlarmCollection 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); + } + + /** + * Results list of OccMetricAlarmSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Results list of OccMetricAlarmSummary 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("OccMetricAlarmCollection("); + 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 OccMetricAlarmCollection)) { + return false; + } + + OccMetricAlarmCollection other = (OccMetricAlarmCollection) 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/OccMetricAlarmSummary.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarmSummary.java new file mode 100644 index 00000000000..dec603900a1 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccMetricAlarmSummary.java @@ -0,0 +1,830 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Summary of OccMetricAlarm. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = OccMetricAlarmSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccMetricAlarmSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "lifecycleState", + "compartmentId", + "isActive", + "subscribers", + "frequency", + "threshold", + "thresholdType", + "resourceConfiguration", + "freeformTags", + "definedTags", + "systemTags" + }) + public OccMetricAlarmSummary( + String id, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OccMetricAlarm.LifecycleState lifecycleState, + String compartmentId, + Boolean isActive, + java.util.List subscribers, + OccMetricAlarm.Frequency frequency, + Integer threshold, + ThresholdType thresholdType, + BaseResourceConfiguration resourceConfiguration, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.compartmentId = compartmentId; + this.isActive = isActive; + this.subscribers = subscribers; + this.frequency = frequency; + this.threshold = threshold; + this.thresholdType = thresholdType; + this.resourceConfiguration = resourceConfiguration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Unique OCID for this alarm configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID for this alarm configuration. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Human-readable name for the alarm. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description for the alarm. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Creation timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Creation timestamp (RFC 3339). + * @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; + } + /** + * Last update timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Last update timestamp (RFC 3339). + * @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 lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private OccMetricAlarm.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(OccMetricAlarm.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Compartment OCID in which the alarm is created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment OCID in which the alarm is created. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Alarm active status. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @param subscribers the value to set + * @return this builder + **/ + public Builder subscribers(java.util.List subscribers) { + this.subscribers = subscribers; + this.__explicitlySet__.add("subscribers"); + return this; + } + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private OccMetricAlarm.Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @param frequency the value to set + * @return this builder + **/ + public Builder frequency(OccMetricAlarm.Frequency frequency) { + this.frequency = frequency; + this.__explicitlySet__.add("frequency"); + return this; + } + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Integer threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @param thresholdType the value to set + * @return this builder + **/ + public Builder thresholdType(ThresholdType thresholdType) { + this.thresholdType = thresholdType; + this.__explicitlySet__.add("thresholdType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private BaseResourceConfiguration resourceConfiguration; + + public Builder resourceConfiguration(BaseResourceConfiguration resourceConfiguration) { + this.resourceConfiguration = resourceConfiguration; + this.__explicitlySet__.add("resourceConfiguration"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccMetricAlarmSummary build() { + OccMetricAlarmSummary model = + new OccMetricAlarmSummary( + this.id, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.compartmentId, + this.isActive, + this.subscribers, + this.frequency, + this.threshold, + this.thresholdType, + this.resourceConfiguration, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccMetricAlarmSummary 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("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("subscribers")) { + this.subscribers(model.getSubscribers()); + } + if (model.wasPropertyExplicitlySet("frequency")) { + this.frequency(model.getFrequency()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + if (model.wasPropertyExplicitlySet("thresholdType")) { + this.thresholdType(model.getThresholdType()); + } + if (model.wasPropertyExplicitlySet("resourceConfiguration")) { + this.resourceConfiguration(model.getResourceConfiguration()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Unique OCID for this alarm configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID for this alarm configuration. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Human-readable name for the alarm. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description for the alarm. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Creation timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Creation timestamp (RFC 3339). + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Last update timestamp (RFC 3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Last update timestamp (RFC 3339). + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final OccMetricAlarm.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @return the value + **/ + public OccMetricAlarm.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Compartment OCID in which the alarm is created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment OCID in which the alarm is created. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Alarm active status. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private final java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @return the value + **/ + public java.util.List getSubscribers() { + return subscribers; + } + + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private final OccMetricAlarm.Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @return the value + **/ + public OccMetricAlarm.Frequency getFrequency() { + return frequency; + } + + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @return the value + **/ + public Integer getThreshold() { + return threshold; + } + + /** + * Units in which threshold is being stored. + **/ + public enum ThresholdType { + Percentage("PERCENTAGE"), + Units("UNITS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ThresholdType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ThresholdType v : ThresholdType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ThresholdType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ThresholdType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ThresholdType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private final ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @return the value + **/ + public ThresholdType getThresholdType() { + return thresholdType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceConfiguration") + private final BaseResourceConfiguration resourceConfiguration; + + public BaseResourceConfiguration getResourceConfiguration() { + return resourceConfiguration; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccMetricAlarmSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", subscribers=").append(String.valueOf(this.subscribers)); + sb.append(", frequency=").append(String.valueOf(this.frequency)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(", thresholdType=").append(String.valueOf(this.thresholdType)); + sb.append(", resourceConfiguration=").append(String.valueOf(this.resourceConfiguration)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccMetricAlarmSummary)) { + return false; + } + + OccMetricAlarmSummary other = (OccMetricAlarmSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.subscribers, other.subscribers) + && java.util.Objects.equals(this.frequency, other.frequency) + && java.util.Objects.equals(this.threshold, other.threshold) + && java.util.Objects.equals(this.thresholdType, other.thresholdType) + && java.util.Objects.equals(this.resourceConfiguration, other.resourceConfiguration) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); + result = (result * PRIME) + (this.subscribers == null ? 43 : this.subscribers.hashCode()); + result = (result * PRIME) + (this.frequency == null ? 43 : this.frequency.hashCode()); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + result = + (result * PRIME) + + (this.thresholdType == null ? 43 : this.thresholdType.hashCode()); + result = + (result * PRIME) + + (this.resourceConfiguration == null + ? 43 + : this.resourceConfiguration.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/StorageResourceConfiguration.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/StorageResourceConfiguration.java new file mode 100644 index 00000000000..6e51100cce5 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/StorageResourceConfiguration.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Configuration for STORAGE + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StorageResourceConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resource" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StorageResourceConfiguration extends BaseResourceConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The type of storage resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageType") + private String storageType; + + /** + * The type of storage resource. + * @param storageType the value to set + * @return this builder + **/ + public Builder storageType(String storageType) { + this.storageType = storageType; + this.__explicitlySet__.add("storageType"); + return this; + } + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private String usageType; + + /** + * The type of usage for the resource. + * @param usageType the value to set + * @return this builder + **/ + public Builder usageType(String usageType) { + this.usageType = usageType; + this.__explicitlySet__.add("usageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StorageResourceConfiguration build() { + StorageResourceConfiguration model = + new StorageResourceConfiguration(this.storageType, this.usageType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StorageResourceConfiguration model) { + if (model.wasPropertyExplicitlySet("storageType")) { + this.storageType(model.getStorageType()); + } + if (model.wasPropertyExplicitlySet("usageType")) { + this.usageType(model.getUsageType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public StorageResourceConfiguration(String storageType, String usageType) { + super(); + this.storageType = storageType; + this.usageType = usageType; + } + + /** + * The type of storage resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageType") + private final String storageType; + + /** + * The type of storage resource. + * @return the value + **/ + public String getStorageType() { + return storageType; + } + + /** + * The type of usage for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usageType") + private final String usageType; + + /** + * The type of usage for the resource. + * @return the value + **/ + public String getUsageType() { + return usageType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StorageResourceConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", storageType=").append(String.valueOf(this.storageType)); + sb.append(", usageType=").append(String.valueOf(this.usageType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StorageResourceConfiguration)) { + return false; + } + + StorageResourceConfiguration other = (StorageResourceConfiguration) o; + return java.util.Objects.equals(this.storageType, other.storageType) + && java.util.Objects.equals(this.usageType, other.usageType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.storageType == null ? 43 : this.storageType.hashCode()); + result = (result * PRIME) + (this.usageType == null ? 43 : this.usageType.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/UpdateOccMetricAlarmDetails.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/UpdateOccMetricAlarmDetails.java new file mode 100644 index 00000000000..2f6ab4ddde3 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/UpdateOccMetricAlarmDetails.java @@ -0,0 +1,612 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Fields that can be updated for OccMetricAlarm. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UpdateOccMetricAlarmDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOccMetricAlarmDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "lifecycleState", + "isActive", + "subscribers", + "frequency", + "threshold", + "thresholdType", + "freeformTags", + "definedTags" + }) + public UpdateOccMetricAlarmDetails( + String displayName, + String description, + LifecycleState lifecycleState, + Boolean isActive, + java.util.List subscribers, + OccMetricAlarm.Frequency frequency, + Integer threshold, + ThresholdType thresholdType, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.isActive = isActive; + this.subscribers = subscribers; + this.frequency = frequency; + this.threshold = threshold; + this.thresholdType = thresholdType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Human-readable name for the alarm. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description for the alarm. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Alarm active status. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @param subscribers the value to set + * @return this builder + **/ + public Builder subscribers(java.util.List subscribers) { + this.subscribers = subscribers; + this.__explicitlySet__.add("subscribers"); + return this; + } + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private OccMetricAlarm.Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @param frequency the value to set + * @return this builder + **/ + public Builder frequency(OccMetricAlarm.Frequency frequency) { + this.frequency = frequency; + this.__explicitlySet__.add("frequency"); + return this; + } + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @param threshold the value to set + * @return this builder + **/ + public Builder threshold(Integer threshold) { + this.threshold = threshold; + this.__explicitlySet__.add("threshold"); + return this; + } + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @param thresholdType the value to set + * @return this builder + **/ + public Builder thresholdType(ThresholdType thresholdType) { + this.thresholdType = thresholdType; + this.__explicitlySet__.add("thresholdType"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOccMetricAlarmDetails build() { + UpdateOccMetricAlarmDetails model = + new UpdateOccMetricAlarmDetails( + this.displayName, + this.description, + this.lifecycleState, + this.isActive, + this.subscribers, + this.frequency, + this.threshold, + this.thresholdType, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOccMetricAlarmDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("subscribers")) { + this.subscribers(model.getSubscribers()); + } + if (model.wasPropertyExplicitlySet("frequency")) { + this.frequency(model.getFrequency()); + } + if (model.wasPropertyExplicitlySet("threshold")) { + this.threshold(model.getThreshold()); + } + if (model.wasPropertyExplicitlySet("thresholdType")) { + this.thresholdType(model.getThresholdType()); + } + 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); + } + + /** + * Human-readable name for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Human-readable name for the alarm. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description for the alarm. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description for the alarm. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current lifecycle state of the resource. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current lifecycle state of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Alarm active status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Alarm active status. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * List of topic OCIDs for notifications. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscribers") + private final java.util.List subscribers; + + /** + * List of topic OCIDs for notifications. + * @return the value + **/ + public java.util.List getSubscribers() { + return subscribers; + } + + /** + * Frequency at which notifications should be sent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("frequency") + private final OccMetricAlarm.Frequency frequency; + + /** + * Frequency at which notifications should be sent. + * @return the value + **/ + public OccMetricAlarm.Frequency getFrequency() { + return frequency; + } + + /** + * Threshold at which alarm must be triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("threshold") + private final Integer threshold; + + /** + * Threshold at which alarm must be triggered. + * @return the value + **/ + public Integer getThreshold() { + return threshold; + } + + /** + * Units in which threshold is being stored. + **/ + public enum ThresholdType { + Percentage("PERCENTAGE"), + Units("UNITS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ThresholdType v : ThresholdType.values()) { + map.put(v.getValue(), v); + } + } + + ThresholdType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ThresholdType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ThresholdType: " + key); + } + }; + /** + * Units in which threshold is being stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("thresholdType") + private final ThresholdType thresholdType; + + /** + * Units in which threshold is being stored. + * @return the value + **/ + public ThresholdType getThresholdType() { + return thresholdType; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOccMetricAlarmDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", subscribers=").append(String.valueOf(this.subscribers)); + sb.append(", frequency=").append(String.valueOf(this.frequency)); + sb.append(", threshold=").append(String.valueOf(this.threshold)); + sb.append(", thresholdType=").append(String.valueOf(this.thresholdType)); + 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 UpdateOccMetricAlarmDetails)) { + return false; + } + + UpdateOccMetricAlarmDetails other = (UpdateOccMetricAlarmDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.subscribers, other.subscribers) + && java.util.Objects.equals(this.frequency, other.frequency) + && java.util.Objects.equals(this.threshold, other.threshold) + && java.util.Objects.equals(this.thresholdType, other.thresholdType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); + result = (result * PRIME) + (this.subscribers == null ? 43 : this.subscribers.hashCode()); + result = (result * PRIME) + (this.frequency == null ? 43 : this.frequency.hashCode()); + result = (result * PRIME) + (this.threshold == null ? 43 : this.threshold.hashCode()); + result = + (result * PRIME) + + (this.thresholdType == null ? 43 : this.thresholdType.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/CreateOccMetricAlarmRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/CreateOccMetricAlarmRequest.java new file mode 100644 index 00000000000..f3f396ca805 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/CreateOccMetricAlarmRequest.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use CreateOccMetricAlarmRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateOccMetricAlarmRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.demandsignal.model.CreateOccMetricAlarmDetails> { + + /** + * The details for creating a new OccMetricAlarm. + */ + private com.oracle.bmc.demandsignal.model.CreateOccMetricAlarmDetails + createOccMetricAlarmDetails; + + /** + * The details for creating a new OccMetricAlarm. + */ + public com.oracle.bmc.demandsignal.model.CreateOccMetricAlarmDetails + getCreateOccMetricAlarmDetails() { + return createOccMetricAlarmDetails; + } + /** + * 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.CreateOccMetricAlarmDetails getBody$() { + return createOccMetricAlarmDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOccMetricAlarmRequest, + com.oracle.bmc.demandsignal.model.CreateOccMetricAlarmDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The details for creating a new OccMetricAlarm. + */ + private com.oracle.bmc.demandsignal.model.CreateOccMetricAlarmDetails + createOccMetricAlarmDetails = null; + + /** + * The details for creating a new OccMetricAlarm. + * @param createOccMetricAlarmDetails the value to set + * @return this builder instance + */ + public Builder createOccMetricAlarmDetails( + com.oracle.bmc.demandsignal.model.CreateOccMetricAlarmDetails + createOccMetricAlarmDetails) { + this.createOccMetricAlarmDetails = createOccMetricAlarmDetails; + 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(CreateOccMetricAlarmRequest o) { + createOccMetricAlarmDetails(o.getCreateOccMetricAlarmDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOccMetricAlarmRequest 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 CreateOccMetricAlarmRequest + */ + public CreateOccMetricAlarmRequest build() { + CreateOccMetricAlarmRequest 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.CreateOccMetricAlarmDetails body) { + createOccMetricAlarmDetails(body); + return this; + } + + /** + * Build the instance of CreateOccMetricAlarmRequest 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 CreateOccMetricAlarmRequest + */ + public CreateOccMetricAlarmRequest buildWithoutInvocationCallback() { + CreateOccMetricAlarmRequest request = new CreateOccMetricAlarmRequest(); + request.createOccMetricAlarmDetails = createOccMetricAlarmDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOccMetricAlarmRequest(createOccMetricAlarmDetails, 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() + .createOccMetricAlarmDetails(createOccMetricAlarmDetails) + .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(",createOccMetricAlarmDetails=") + .append(String.valueOf(this.createOccMetricAlarmDetails)); + 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 CreateOccMetricAlarmRequest)) { + return false; + } + + CreateOccMetricAlarmRequest other = (CreateOccMetricAlarmRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOccMetricAlarmDetails, other.createOccMetricAlarmDetails) + && 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.createOccMetricAlarmDetails == null + ? 43 + : this.createOccMetricAlarmDetails.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/DeleteOccMetricAlarmRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/DeleteOccMetricAlarmRequest.java new file mode 100644 index 00000000000..baf76a5a7a9 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/DeleteOccMetricAlarmRequest.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use DeleteOccMetricAlarmRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteOccMetricAlarmRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + private String occMetricAlarmId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + public String getOccMetricAlarmId() { + return occMetricAlarmId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteOccMetricAlarmRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + private String occMetricAlarmId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + * @param occMetricAlarmId the value to set + * @return this builder instance + */ + public Builder occMetricAlarmId(String occMetricAlarmId) { + this.occMetricAlarmId = occMetricAlarmId; + 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(DeleteOccMetricAlarmRequest o) { + occMetricAlarmId(o.getOccMetricAlarmId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOccMetricAlarmRequest 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 DeleteOccMetricAlarmRequest + */ + public DeleteOccMetricAlarmRequest build() { + DeleteOccMetricAlarmRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOccMetricAlarmRequest 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 DeleteOccMetricAlarmRequest + */ + public DeleteOccMetricAlarmRequest buildWithoutInvocationCallback() { + DeleteOccMetricAlarmRequest request = new DeleteOccMetricAlarmRequest(); + request.occMetricAlarmId = occMetricAlarmId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOccMetricAlarmRequest(occMetricAlarmId, 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() + .occMetricAlarmId(occMetricAlarmId) + .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(",occMetricAlarmId=").append(String.valueOf(this.occMetricAlarmId)); + 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 DeleteOccMetricAlarmRequest)) { + return false; + } + + DeleteOccMetricAlarmRequest other = (DeleteOccMetricAlarmRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occMetricAlarmId, other.occMetricAlarmId) + && 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.occMetricAlarmId == null ? 43 : this.occMetricAlarmId.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/GetOccMetricAlarmRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/GetOccMetricAlarmRequest.java new file mode 100644 index 00000000000..3aa5e4a6469 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/GetOccMetricAlarmRequest.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use GetOccMetricAlarmRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetOccMetricAlarmRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + private String occMetricAlarmId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + public String getOccMetricAlarmId() { + return occMetricAlarmId; + } + /** + * 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< + GetOccMetricAlarmRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + private String occMetricAlarmId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + * @param occMetricAlarmId the value to set + * @return this builder instance + */ + public Builder occMetricAlarmId(String occMetricAlarmId) { + this.occMetricAlarmId = occMetricAlarmId; + 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(GetOccMetricAlarmRequest o) { + occMetricAlarmId(o.getOccMetricAlarmId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOccMetricAlarmRequest 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 GetOccMetricAlarmRequest + */ + public GetOccMetricAlarmRequest build() { + GetOccMetricAlarmRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOccMetricAlarmRequest 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 GetOccMetricAlarmRequest + */ + public GetOccMetricAlarmRequest buildWithoutInvocationCallback() { + GetOccMetricAlarmRequest request = new GetOccMetricAlarmRequest(); + request.occMetricAlarmId = occMetricAlarmId; + request.opcRequestId = opcRequestId; + return request; + // new GetOccMetricAlarmRequest(occMetricAlarmId, 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().occMetricAlarmId(occMetricAlarmId).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(",occMetricAlarmId=").append(String.valueOf(this.occMetricAlarmId)); + 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 GetOccMetricAlarmRequest)) { + return false; + } + + GetOccMetricAlarmRequest other = (GetOccMetricAlarmRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occMetricAlarmId, other.occMetricAlarmId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occMetricAlarmId == null ? 43 : this.occMetricAlarmId.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/ListOccMetricAlarmsRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ListOccMetricAlarmsRequest.java new file mode 100644 index 00000000000..45aad909759 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ListOccMetricAlarmsRequest.java @@ -0,0 +1,475 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListOccMetricAlarmsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListOccMetricAlarmsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName; + + /** + * A filter to return only resources that match the given display name exactly. + */ + public String getDisplayName() { + return displayName; + } + /** + * Filter to list only active or inactive alarms. + */ + private Boolean isActive; + + /** + * Filter to list only active or inactive alarms. + */ + public Boolean getIsActive() { + return isActive; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.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. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccMetricAlarmsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filter to list only active or inactive alarms. + */ + private Boolean isActive = null; + + /** + * Filter to list only active or inactive alarms. + * @param isActive the value to set + * @return this builder instance + */ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.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 field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListOccMetricAlarmsRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + isActive(o.getIsActive()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccMetricAlarmsRequest 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 ListOccMetricAlarmsRequest + */ + public ListOccMetricAlarmsRequest build() { + ListOccMetricAlarmsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccMetricAlarmsRequest 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 ListOccMetricAlarmsRequest + */ + public ListOccMetricAlarmsRequest buildWithoutInvocationCallback() { + ListOccMetricAlarmsRequest request = new ListOccMetricAlarmsRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.isActive = isActive; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListOccMetricAlarmsRequest(compartmentId, displayName, isActive, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .isActive(isActive) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",isActive=").append(String.valueOf(this.isActive)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccMetricAlarmsRequest)) { + return false; + } + + ListOccMetricAlarmsRequest other = (ListOccMetricAlarmsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.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/UpdateOccMetricAlarmRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/UpdateOccMetricAlarmRequest.java new file mode 100644 index 00000000000..d1fdb31634a --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/UpdateOccMetricAlarmRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use UpdateOccMetricAlarmRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateOccMetricAlarmRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + private String occMetricAlarmId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + public String getOccMetricAlarmId() { + return occMetricAlarmId; + } + /** + * The details to update the specified OccMetricAlarm. + */ + private com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails + updateOccMetricAlarmDetails; + + /** + * The details to update the specified OccMetricAlarm. + */ + public com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails + getUpdateOccMetricAlarmDetails() { + return updateOccMetricAlarmDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that 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.UpdateOccMetricAlarmDetails getBody$() { + return updateOccMetricAlarmDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOccMetricAlarmRequest, + com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + */ + private String occMetricAlarmId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccMetricAlarm. + * @param occMetricAlarmId the value to set + * @return this builder instance + */ + public Builder occMetricAlarmId(String occMetricAlarmId) { + this.occMetricAlarmId = occMetricAlarmId; + return this; + } + + /** + * The details to update the specified OccMetricAlarm. + */ + private com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails + updateOccMetricAlarmDetails = null; + + /** + * The details to update the specified OccMetricAlarm. + * @param updateOccMetricAlarmDetails the value to set + * @return this builder instance + */ + public Builder updateOccMetricAlarmDetails( + com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails + updateOccMetricAlarmDetails) { + this.updateOccMetricAlarmDetails = updateOccMetricAlarmDetails; + 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(UpdateOccMetricAlarmRequest o) { + occMetricAlarmId(o.getOccMetricAlarmId()); + updateOccMetricAlarmDetails(o.getUpdateOccMetricAlarmDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOccMetricAlarmRequest 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 UpdateOccMetricAlarmRequest + */ + public UpdateOccMetricAlarmRequest build() { + UpdateOccMetricAlarmRequest 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.UpdateOccMetricAlarmDetails body) { + updateOccMetricAlarmDetails(body); + return this; + } + + /** + * Build the instance of UpdateOccMetricAlarmRequest 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 UpdateOccMetricAlarmRequest + */ + public UpdateOccMetricAlarmRequest buildWithoutInvocationCallback() { + UpdateOccMetricAlarmRequest request = new UpdateOccMetricAlarmRequest(); + request.occMetricAlarmId = occMetricAlarmId; + request.updateOccMetricAlarmDetails = updateOccMetricAlarmDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOccMetricAlarmRequest(occMetricAlarmId, updateOccMetricAlarmDetails, 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() + .occMetricAlarmId(occMetricAlarmId) + .updateOccMetricAlarmDetails(updateOccMetricAlarmDetails) + .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(",occMetricAlarmId=").append(String.valueOf(this.occMetricAlarmId)); + sb.append(",updateOccMetricAlarmDetails=") + .append(String.valueOf(this.updateOccMetricAlarmDetails)); + 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 UpdateOccMetricAlarmRequest)) { + return false; + } + + UpdateOccMetricAlarmRequest other = (UpdateOccMetricAlarmRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occMetricAlarmId, other.occMetricAlarmId) + && java.util.Objects.equals( + this.updateOccMetricAlarmDetails, other.updateOccMetricAlarmDetails) + && 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.occMetricAlarmId == null ? 43 : this.occMetricAlarmId.hashCode()); + result = + (result * PRIME) + + (this.updateOccMetricAlarmDetails == null + ? 43 + : this.updateOccMetricAlarmDetails.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/CreateOccMetricAlarmResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/CreateOccMetricAlarmResponse.java new file mode 100644 index 00000000000..92eedbc1e35 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/CreateOccMetricAlarmResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateOccMetricAlarmResponse 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 OccMetricAlarm instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm; + + /** + * The returned OccMetricAlarm instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccMetricAlarm getOccMetricAlarm() { + return occMetricAlarm; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "occMetricAlarm" + }) + private CreateOccMetricAlarmResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.occMetricAlarm = occMetricAlarm; + } + + 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 OccMetricAlarm instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm; + + /** + * The returned OccMetricAlarm instance. + * @param occMetricAlarm the value to set + * @return this builder + */ + public Builder occMetricAlarm( + com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm) { + this.occMetricAlarm = occMetricAlarm; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateOccMetricAlarmResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + occMetricAlarm(o.getOccMetricAlarm()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateOccMetricAlarmResponse build() { + return new CreateOccMetricAlarmResponse( + __httpStatusCode__, headers, opcRequestId, etag, occMetricAlarm); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occMetricAlarm=").append(String.valueOf(occMetricAlarm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccMetricAlarmResponse)) { + return false; + } + + CreateOccMetricAlarmResponse other = (CreateOccMetricAlarmResponse) 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.occMetricAlarm, other.occMetricAlarm); + } + + @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.occMetricAlarm == null ? 43 : this.occMetricAlarm.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/DeleteOccMetricAlarmResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/DeleteOccMetricAlarmResponse.java new file mode 100644 index 00000000000..954d1de934c --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/DeleteOccMetricAlarmResponse.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteOccMetricAlarmResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteOccMetricAlarmResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteOccMetricAlarmResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteOccMetricAlarmResponse build() { + return new DeleteOccMetricAlarmResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteOccMetricAlarmResponse)) { + return false; + } + + DeleteOccMetricAlarmResponse other = (DeleteOccMetricAlarmResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/GetOccMetricAlarmResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/GetOccMetricAlarmResponse.java new file mode 100644 index 00000000000..792189e7c4e --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/GetOccMetricAlarmResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetOccMetricAlarmResponse 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 OccMetricAlarm instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm; + + /** + * The returned OccMetricAlarm instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccMetricAlarm getOccMetricAlarm() { + return occMetricAlarm; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "occMetricAlarm" + }) + private GetOccMetricAlarmResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.occMetricAlarm = occMetricAlarm; + } + + 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 OccMetricAlarm instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm; + + /** + * The returned OccMetricAlarm instance. + * @param occMetricAlarm the value to set + * @return this builder + */ + public Builder occMetricAlarm( + com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm) { + this.occMetricAlarm = occMetricAlarm; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetOccMetricAlarmResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + occMetricAlarm(o.getOccMetricAlarm()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetOccMetricAlarmResponse build() { + return new GetOccMetricAlarmResponse( + __httpStatusCode__, headers, opcRequestId, etag, occMetricAlarm); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occMetricAlarm=").append(String.valueOf(occMetricAlarm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOccMetricAlarmResponse)) { + return false; + } + + GetOccMetricAlarmResponse other = (GetOccMetricAlarmResponse) 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.occMetricAlarm, other.occMetricAlarm); + } + + @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.occMetricAlarm == null ? 43 : this.occMetricAlarm.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ListOccMetricAlarmsResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ListOccMetricAlarmsResponse.java new file mode 100644 index 00000000000..0ee1b3d96c3 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ListOccMetricAlarmsResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListOccMetricAlarmsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned OccMetricAlarmCollection instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarmCollection occMetricAlarmCollection; + + /** + * The returned OccMetricAlarmCollection instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccMetricAlarmCollection + getOccMetricAlarmCollection() { + return occMetricAlarmCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occMetricAlarmCollection" + }) + private ListOccMetricAlarmsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.demandsignal.model.OccMetricAlarmCollection occMetricAlarmCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occMetricAlarmCollection = occMetricAlarmCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned OccMetricAlarmCollection instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarmCollection occMetricAlarmCollection; + + /** + * The returned OccMetricAlarmCollection instance. + * @param occMetricAlarmCollection the value to set + * @return this builder + */ + public Builder occMetricAlarmCollection( + com.oracle.bmc.demandsignal.model.OccMetricAlarmCollection + occMetricAlarmCollection) { + this.occMetricAlarmCollection = occMetricAlarmCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListOccMetricAlarmsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occMetricAlarmCollection(o.getOccMetricAlarmCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListOccMetricAlarmsResponse build() { + return new ListOccMetricAlarmsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occMetricAlarmCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occMetricAlarmCollection=").append(String.valueOf(occMetricAlarmCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccMetricAlarmsResponse)) { + return false; + } + + ListOccMetricAlarmsResponse other = (ListOccMetricAlarmsResponse) 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.occMetricAlarmCollection, other.occMetricAlarmCollection); + } + + @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.occMetricAlarmCollection == null + ? 43 + : this.occMetricAlarmCollection.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/UpdateOccMetricAlarmResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/UpdateOccMetricAlarmResponse.java new file mode 100644 index 00000000000..1a21fdb9dd1 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/UpdateOccMetricAlarmResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateOccMetricAlarmResponse 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 OccMetricAlarm instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm; + + /** + * The returned OccMetricAlarm instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccMetricAlarm getOccMetricAlarm() { + return occMetricAlarm; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "occMetricAlarm" + }) + private UpdateOccMetricAlarmResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.occMetricAlarm = occMetricAlarm; + } + + 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 OccMetricAlarm instance. + */ + private com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm; + + /** + * The returned OccMetricAlarm instance. + * @param occMetricAlarm the value to set + * @return this builder + */ + public Builder occMetricAlarm( + com.oracle.bmc.demandsignal.model.OccMetricAlarm occMetricAlarm) { + this.occMetricAlarm = occMetricAlarm; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateOccMetricAlarmResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + occMetricAlarm(o.getOccMetricAlarm()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateOccMetricAlarmResponse build() { + return new UpdateOccMetricAlarmResponse( + __httpStatusCode__, headers, opcRequestId, etag, occMetricAlarm); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occMetricAlarm=").append(String.valueOf(occMetricAlarm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccMetricAlarmResponse)) { + return false; + } + + UpdateOccMetricAlarmResponse other = (UpdateOccMetricAlarmResponse) 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.occMetricAlarm, other.occMetricAlarm); + } + + @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.occMetricAlarm == null ? 43 : this.occMetricAlarm.hashCode()); + return result; + } +} diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 23094da81b9..300d0f79c88 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 82cbb8b7434..ff7015dd7d5 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-devops @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 8cdb4ee56ae..baeb145c65c 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 05253eb4222..15da6ed17fc 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 37047486071..ef32ee4f130 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java index ec71c825d5b..537596fdf36 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java @@ -32,18 +32,25 @@ public static class Builder { * The admin password for the catalog associated with Globally distributed database. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The admin password for the catalog associated with Globally distributed database. * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** * The details required for creation of the peer for the ExadbXs infrastructure based catalog. **/ @@ -244,6 +251,30 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( DbStorageVaultDetails dbStorageVaultDetails, VmClusterDetails vmClusterDetails) { super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.peerDetails = peerDetails; + this.shardSpace = shardSpace; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + char[] adminPassword, + java.util.List peerDetails, + String shardSpace, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String availabilityDomain, + DbStorageVaultDetails dbStorageVaultDetails, + VmClusterDetails vmClusterDetails) { + super(); this.adminPassword = adminPassword; this.peerDetails = peerDetails; this.shardSpace = shardSpace; @@ -259,13 +290,25 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( * The admin password for the catalog associated with Globally distributed database. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The admin password for the catalog associated with Globally distributed database. * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java index 3cdb5a30ba7..16d740b1dd7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java @@ -32,18 +32,25 @@ public static class Builder { * The admin password for the shard associated with Globally distributed database. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The admin password for the shard associated with Globally distributed database. * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** * The details required for creation of the peer for the ExadbXs infrastructure based shard. **/ @@ -244,6 +251,30 @@ public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( DbStorageVaultDetails dbStorageVaultDetails, VmClusterDetails vmClusterDetails) { super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.peerDetails = peerDetails; + this.shardSpace = shardSpace; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + char[] adminPassword, + java.util.List peerDetails, + String shardSpace, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String availabilityDomain, + DbStorageVaultDetails dbStorageVaultDetails, + VmClusterDetails vmClusterDetails) { + super(); this.adminPassword = adminPassword; this.peerDetails = peerDetails; this.shardSpace = shardSpace; @@ -259,13 +290,25 @@ public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( * The admin password for the shard associated with Globally distributed database. **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The admin password for the shard associated with Globally distributed database. * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 824acbe9151..15e620662e9 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.91.0 + 2.93.0 diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java index d52cb3289c0..7267938f6dc 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java @@ -23,6 +23,20 @@ public final class DynectMigrationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public DynectMigrationDetails( + String customerName, + String username, + String password, + java.util.Map> httpRedirectReplacements) { + super(); + this.customerName = customerName; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.httpRedirectReplacements = httpRedirectReplacements; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "customerName", "username", @@ -32,7 +46,7 @@ public final class DynectMigrationDetails public DynectMigrationDetails( String customerName, String username, - String password, + char[] password, java.util.Map> httpRedirectReplacements) { super(); this.customerName = customerName; @@ -84,7 +98,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * DynECT API password for the provided username. @@ -92,11 +106,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * A map of fully-qualified domain names (FQDNs) to an array of {@code MigrationReplacement} objects. * @@ -201,14 +222,27 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * DynECT API password for the provided username. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * DynECT API password for the provided username. * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index ea030b3ce4e..7e01a5fde39 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 1bd4a57bd92..afd1b4866ac 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index ad0e99baa55..53d9b308ad4 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-emwarehouse @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index e716cbdc19c..dc12753fb2d 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,18 +19,18 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.91.0 + 2.93.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.91.0 + 2.93.0 com.fasterxml.jackson.core @@ -49,5 +49,10 @@ jersey-media-json-jackson test + + org.mockito + mockito-core + test + diff --git a/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/SerializeHeader.java b/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/SerializeHeader.java index ee2c2c49e77..3c27bdad076 100644 --- a/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/SerializeHeader.java +++ b/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/SerializeHeader.java @@ -18,7 +18,14 @@ public class SerializeHeader { private final MasterKeyProvider provider; private static final int INITIAL_OFFSET = 6; //version(short) + header_size(int) + // Upper bound on the JSON header allocation. The header carries key metadata, + // IV and optional AAD context; legitimate values are far below this limit. + private static final int MAX_HEADER_SIZE = 2 * 1024 * 1024; // 2 MB private static final short VERSION = 1; + private static final String INVALID_HEADER_READ_SIZE_MESSAGE = + "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."; + private static final String INVALID_HEADER_CREATE_SIZE_MESSAGE = + "Failed to create a valid encryption header size. Reduce the encryption context size."; private static final ObjectMapper OBJECT_MAPPER = com.oracle.bmc.http.Serialization.getObjectMapper(); @@ -31,11 +38,13 @@ public EncryptionHeader createHeader( DataKey dataKey, byte[] IVbytes, Map context) { EncryptionHeader encryptionHeader = createEncryptionHeader(dataKey, IVbytes, context); String jsonHeader = serializeJsonHeader(encryptionHeader); - int headerLength = jsonHeader.getBytes().length; + byte[] jsonHeaderBytes = jsonHeader.getBytes(); + int headerLength = + validateHeaderSize(jsonHeaderBytes.length, INVALID_HEADER_CREATE_SIZE_MESSAGE); ByteBuffer buffer = ByteBuffer.allocate(INITIAL_OFFSET + headerLength); buffer.putShort(VERSION); buffer.putInt(headerLength); - buffer.put(jsonHeader.getBytes()); + buffer.put(jsonHeaderBytes); byte[] headerBytes = buffer.array(); encryptionHeader.setHeaderBytes(headerBytes); return encryptionHeader; @@ -121,10 +130,12 @@ public int getHeaderSize(byte[] data) { + VERSION + "). Check if this encrypted file has the correct format."); } - int size = introHeader.getInt(); - if (size <= 0) { - throw new RuntimeException( - "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."); + return validateHeaderSize(introHeader.getInt(), INVALID_HEADER_READ_SIZE_MESSAGE); + } + + private int validateHeaderSize(int size, String errorMessage) { + if (size <= 0 || size > MAX_HEADER_SIZE) { + throw new IllegalArgumentException(errorMessage); } return size; } diff --git a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/OciCryptoTest.java b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/OciCryptoTest.java new file mode 100644 index 00000000000..7eadca22c90 --- /dev/null +++ b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/OciCryptoTest.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.encryption; + +import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.encryption.internal.CryptoAlgorithm; +import com.oracle.bmc.encryption.internal.DataKey; +import java.io.ByteArrayInputStream; +import java.nio.ByteBuffer; +import java.util.Arrays; +import java.util.Base64; +import java.util.LinkedHashMap; +import java.util.Map; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +public class OciCryptoTest { + private static final int MAX_HEADER_SIZE = 2 * 1024 * 1024; + private static final String INVALID_HEADER_SIZE_MESSAGE = + "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."; + private static final String INVALID_HEADER_CREATION_SIZE_MESSAGE = + "Failed to create a valid encryption header size. Reduce the encryption context size."; + + @Test + public void testDecryptData_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + OciCrypto ociCrypto = new OciCrypto(); + + assertInvalidHeaderSizeException( + () -> + ociCrypto.decryptData( + new CountingMasterKeyProvider(), + createPayloadWithHeaderSize(MAX_HEADER_SIZE + 1))); + } + + @Test + public void + testCreateDecryptingStream_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + OciCrypto ociCrypto = new OciCrypto(); + + assertInvalidHeaderSizeException( + () -> + ociCrypto.createDecryptingStream( + new CountingMasterKeyProvider(), + new ByteArrayInputStream( + createPayloadWithHeaderSize(MAX_HEADER_SIZE + 1)))); + } + + @Test + public void + testEncryptData_ThrowsIllegalArgumentException_WhenContextProducesHeaderExceedingMaxHeaderSize() + throws Exception { + OciCrypto ociCrypto = new OciCrypto(); + + assertInvalidHeaderCreationSizeException( + () -> + ociCrypto.encryptData( + createEncryptingMasterKeyProvider(), + new byte[] {1, 2, 3}, + createOversizedContext())); + } + + @Test + public void + testCreateEncryptingStream_ThrowsIllegalArgumentException_WhenContextProducesHeaderExceedingMaxHeaderSize() + throws Exception { + OciCrypto ociCrypto = new OciCrypto(); + + assertInvalidHeaderCreationSizeException( + () -> + ociCrypto.createEncryptingStream( + createEncryptingMasterKeyProvider(), + new ByteArrayInputStream(new byte[] {1, 2, 3}), + createOversizedContext())); + } + + private static byte[] createPayloadWithHeaderSize(int headerSize) { + ByteBuffer buffer = ByteBuffer.allocate(6); + buffer.putShort((short) 1); + buffer.putInt(headerSize); + return buffer.array(); + } + + private static MasterKeyProvider + createEncryptingMasterKeyProvider() { + KmsMasterKey masterKey = mock(KmsMasterKey.class); + when(masterKey.generateDataEncryptionKey(CryptoAlgorithm.AES_256_GCM_IV12_TAG16)) + .thenReturn(createDataKey()); + when(masterKey.getRegion()).thenReturn("us-phoenix-1"); + when(masterKey.getVaultId()).thenReturn("test-vault-id"); + when(masterKey.getKmsMasterKeyId()).thenReturn("test-master-key-id"); + + return new MasterKeyProvider() { + @Override + public KmsMasterKey getMasterKey() { + return masterKey; + } + + @Override + public AbstractAuthenticationDetailsProvider getAuthenticationProvider() { + return null; + } + + @Override + public CryptoAlgorithm getCryptoAlgorithm() { + return CryptoAlgorithm.AES_256_GCM_IV12_TAG16; + } + }; + } + + private static DataKey createDataKey() { + return new DataKey( + "ciphertext", + Base64.getEncoder().encodeToString(new byte[32]), + "plaintextChecksum"); + } + + private static Map createOversizedContext() { + Map context = new LinkedHashMap<>(); + context.put("key1", createString(MAX_HEADER_SIZE)); + return context; + } + + private static String createString(int size) { + char[] chars = new char[size]; + Arrays.fill(chars, 'a'); + return new String(chars); + } + + private static void assertInvalidHeaderSizeException(ThrowingRunnable runnable) { + try { + runnable.run(); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_SIZE_MESSAGE, e.getMessage()); + } catch (Exception e) { + fail("Expected IllegalArgumentException but got " + e.getClass().getName()); + } + } + + private static void assertInvalidHeaderCreationSizeException(ThrowingRunnable runnable) { + try { + runnable.run(); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_CREATION_SIZE_MESSAGE, e.getMessage()); + } catch (Exception e) { + fail("Expected IllegalArgumentException but got " + e.getClass().getName()); + } + } + + private interface ThrowingRunnable { + void run() throws Exception; + } + + private static final class CountingMasterKeyProvider + implements MasterKeyProvider { + @Override + public MasterKey getMasterKey() { + return null; + } + + @Override + public AbstractAuthenticationDetailsProvider getAuthenticationProvider() { + return null; + } + + @Override + public CryptoAlgorithm getCryptoAlgorithm() { + return CryptoAlgorithm.AES_256_GCM_IV12_TAG16; + } + } +} diff --git a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java new file mode 100644 index 00000000000..8d44c6e1b7e --- /dev/null +++ b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.encryption.internal; + +import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.encryption.MasterKey; +import com.oracle.bmc.encryption.MasterKeyProvider; +import java.io.ByteArrayInputStream; +import java.nio.ByteBuffer; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; + +public class DecryptionHandlerTest { + private static final int MAX_HEADER_SIZE = 2 * 1024 * 1024; + private static final String INVALID_HEADER_SIZE_MESSAGE = + "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."; + + @Test + public void testDecrypt_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(); + DecryptionHandler handler = new DecryptionHandler(provider); + + try { + handler.decrypt(createPayloadWithHeaderSize(MAX_HEADER_SIZE + 1)); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_SIZE_MESSAGE, e.getMessage()); + } + } + + @Test + public void testDecrypt_DoesNotCallMasterKeyProvider_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(); + DecryptionHandler handler = new DecryptionHandler(provider); + + try { + handler.decrypt(createPayloadWithHeaderSize(MAX_HEADER_SIZE + 1)); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_SIZE_MESSAGE, e.getMessage()); + } + + assertEquals(0, provider.getMasterKeyCalls); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void + testGetDecryptInputStream_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(); + DecryptionHandler handler = new DecryptionHandler(provider); + + try { + handler.getDecryptInputStream( + new ByteArrayInputStream(createPayloadWithHeaderSize(MAX_HEADER_SIZE + 1))); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_SIZE_MESSAGE, e.getMessage()); + } + } + + @Test + public void + testGetDecryptInputStream_DoesNotCallMasterKeyProvider_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(); + DecryptionHandler handler = new DecryptionHandler(provider); + + try { + handler.getDecryptInputStream( + new ByteArrayInputStream(createPayloadWithHeaderSize(MAX_HEADER_SIZE + 1))); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_SIZE_MESSAGE, e.getMessage()); + } + + assertEquals(0, provider.getMasterKeyCalls); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + private static byte[] createPayloadWithHeaderSize(int headerSize) { + ByteBuffer buffer = ByteBuffer.allocate(6); + buffer.putShort((short) 1); + buffer.putInt(headerSize); + return buffer.array(); + } + + private static final class CountingMasterKeyProvider + implements MasterKeyProvider { + private int getMasterKeyCalls = 0; + private int getAuthenticationProviderCalls = 0; + + @Override + public MasterKey getMasterKey() { + getMasterKeyCalls++; + return null; + } + + @Override + public AbstractAuthenticationDetailsProvider getAuthenticationProvider() { + getAuthenticationProviderCalls++; + return null; + } + + @Override + public CryptoAlgorithm getCryptoAlgorithm() { + return CryptoAlgorithm.AES_256_GCM_IV12_TAG16; + } + } +} diff --git a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/SerializeHeaderTest.java b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/SerializeHeaderTest.java index 6579f6acbbe..5a9b8d1fd1a 100644 --- a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/SerializeHeaderTest.java +++ b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/SerializeHeaderTest.java @@ -4,14 +4,31 @@ */ package com.oracle.bmc.encryption.internal; +import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.encryption.KmsMasterKey; +import com.oracle.bmc.encryption.MasterKeyProvider; + +import java.io.ByteArrayInputStream; +import java.nio.ByteBuffer; +import java.util.Arrays; +import java.util.Base64; import java.util.LinkedHashMap; import java.util.Map; import org.junit.Test; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; public class SerializeHeaderTest { + private static final int MAX_HEADER_SIZE = 2 * 1024 * 1024; + private static final String INVALID_HEADER_SIZE_MESSAGE = + "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."; + private static final String INVALID_HEADER_CREATION_SIZE_MESSAGE = + "Failed to create a valid encryption header size. Reduce the encryption context size."; + @Test public void testCreateEncryptionHeader_NullContext() { Map context = null; @@ -51,4 +68,186 @@ public void testCreateEncryptionHeader_NestedContext() { "{\"key1\":\"value1\",\"key2\":\"value2\",\"key3\":{\"nestedkey1\":\"nestedvalue1\",\"nestedkey2\":\"nestedvalue2\"}}", SerializeHeader.mapToJson(context)); } + + @Test + public void testCreateHeader_CreatesReadableHeader_WhenSerializedHeaderIsWithinLimit() + throws Exception { + SerializeHeader serializeHeader = createSerializeHeader(); + Map context = new LinkedHashMap<>(); + context.put("key1", "value1"); + + EncryptionHeader createdHeader = + serializeHeader.createHeader(createDataKey(), createIvBytes(), context); + EncryptionHeader readHeader = + serializeHeader.readHeader( + new ByteArrayInputStream(createdHeader.getHeaderBytes())); + + assertEquals(createdHeader.getEncryptionKey(), readHeader.getEncryptionKey()); + assertEquals(createdHeader.getIV(), readHeader.getIV()); + assertEquals(context, readHeader.getContext()); + } + + @Test + public void + testCreateHeader_ThrowsIllegalArgumentException_WhenSerializedHeaderExceedsMaxHeaderSize() { + SerializeHeader serializeHeader = createSerializeHeader(); + + assertInvalidHeaderCreationSizeException( + () -> + serializeHeader.createHeader( + createDataKey(), createIvBytes(), createOversizedContext())); + } + + @Test + public void testGetHeaderSize_ReturnsValidSize_WhenHeaderIsWithinLimit() { + SerializeHeader serializeHeader = new SerializeHeader(null); + + assertEquals(1024, serializeHeader.getHeaderSize(createHeaderIntro((short) 1, 1024))); + } + + @Test + public void testGetHeaderSize_ReturnsMaxHeaderSize_WhenHeaderEqualsLimit() { + SerializeHeader serializeHeader = new SerializeHeader(null); + + assertEquals( + MAX_HEADER_SIZE, + serializeHeader.getHeaderSize(createHeaderIntro((short) 1, MAX_HEADER_SIZE))); + } + + @Test + public void testGetHeaderSize_ThrowsIllegalArgumentException_WhenHeaderSizeIsZero() { + SerializeHeader serializeHeader = new SerializeHeader(null); + + assertInvalidHeaderSizeException( + () -> serializeHeader.getHeaderSize(createHeaderIntro((short) 1, 0))); + } + + @Test + public void testGetHeaderSize_ThrowsIllegalArgumentException_WhenHeaderSizeIsNegative() { + SerializeHeader serializeHeader = new SerializeHeader(null); + + assertInvalidHeaderSizeException( + () -> serializeHeader.getHeaderSize(createHeaderIntro((short) 1, -1))); + } + + @Test + public void + testGetHeaderSize_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() { + SerializeHeader serializeHeader = new SerializeHeader(null); + + assertInvalidHeaderSizeException( + () -> + serializeHeader.getHeaderSize( + createHeaderIntro((short) 1, MAX_HEADER_SIZE + 1))); + } + + @Test + public void testGetHeaderSize_ThrowsRuntimeException_WhenVersionIsInvalid() { + SerializeHeader serializeHeader = new SerializeHeader(null); + + try { + serializeHeader.getHeaderSize(createHeaderIntro((short) 2, 1024)); + fail("Expected RuntimeException"); + } catch (RuntimeException e) { + assertEquals( + "Encryption header from the encrypted file (2) doesn't match expected version (1). Check if this encrypted file has the correct format.", + e.getMessage()); + } + } + + @Test + public void testReadHeader_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() + throws Exception { + SerializeHeader serializeHeader = new SerializeHeader(null); + + assertInvalidHeaderSizeException( + () -> + serializeHeader.readHeader( + new ByteArrayInputStream( + createHeaderIntro((short) 1, MAX_HEADER_SIZE + 1)))); + } + + private static byte[] createHeaderIntro(short version, int size) { + ByteBuffer buffer = ByteBuffer.allocate(6); + buffer.putShort(version); + buffer.putInt(size); + return buffer.array(); + } + + private static SerializeHeader createSerializeHeader() { + KmsMasterKey masterKey = mock(KmsMasterKey.class); + when(masterKey.getRegion()).thenReturn("us-phoenix-1"); + when(masterKey.getVaultId()).thenReturn("test-vault-id"); + when(masterKey.getKmsMasterKeyId()).thenReturn("test-master-key-id"); + + MasterKeyProvider provider = + new MasterKeyProvider() { + @Override + public KmsMasterKey getMasterKey() { + return masterKey; + } + + @Override + public AbstractAuthenticationDetailsProvider getAuthenticationProvider() { + return null; + } + + @Override + public CryptoAlgorithm getCryptoAlgorithm() { + return CryptoAlgorithm.AES_256_GCM_IV12_TAG16; + } + }; + return new SerializeHeader(provider); + } + + private static DataKey createDataKey() { + return new DataKey( + "ciphertext", + Base64.getEncoder().encodeToString(new byte[32]), + "plaintextChecksum"); + } + + private static byte[] createIvBytes() { + byte[] ivBytes = new byte[12]; + Arrays.fill(ivBytes, (byte) 1); + return ivBytes; + } + + private static Map createOversizedContext() { + Map context = new LinkedHashMap<>(); + context.put("key1", createString(MAX_HEADER_SIZE)); + return context; + } + + private static String createString(int size) { + char[] chars = new char[size]; + Arrays.fill(chars, 'a'); + return new String(chars); + } + + private static void assertInvalidHeaderSizeException(ThrowingRunnable runnable) { + try { + runnable.run(); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_SIZE_MESSAGE, e.getMessage()); + } catch (Exception e) { + fail("Expected IllegalArgumentException but got " + e.getClass().getName()); + } + } + + private static void assertInvalidHeaderCreationSizeException(ThrowingRunnable runnable) { + try { + runnable.run(); + fail("Expected IllegalArgumentException"); + } catch (IllegalArgumentException e) { + assertEquals(INVALID_HEADER_CREATION_SIZE_MESSAGE, e.getMessage()); + } catch (Exception e) { + fail("Expected IllegalArgumentException but got " + e.getClass().getName()); + } + } + + private interface ThrowingRunnable { + void run() throws Exception; + } } diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index fd998288177..f1cbc3946d1 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.91.0 + 2.93.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 062f3bc8222..31783d17071 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-events @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/Events.java b/bmc-events/src/main/java/com/oracle/bmc/events/Events.java index 17f3ebfb859..938c9c14a81 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/Events.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/Events.java @@ -61,6 +61,13 @@ public interface Events extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Moves a rule into a different compartment within the same tenancy. For information about moving * resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsync.java b/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsync.java index eb251b1499e..72855fa3332 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsync.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsync.java @@ -60,6 +60,13 @@ public interface EventsAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Moves a rule into a different compartment within the same tenancy. For information about moving * resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java b/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java index d158fcffd38..6c9f93b5aa2 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java @@ -32,7 +32,9 @@ public class EventsAsyncClient implements EventsAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(EventsClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://events.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://events.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("events") .build(); private static final org.slf4j.Logger LOG = @@ -52,6 +54,7 @@ public class EventsAsyncClient implements EventsAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -304,6 +307,9 @@ public EventsAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -464,6 +470,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/EventsClient.java b/bmc-events/src/main/java/com/oracle/bmc/events/EventsClient.java index 9aa5ed34eda..eec1b6a344e 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/EventsClient.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/EventsClient.java @@ -20,7 +20,9 @@ public class EventsClient implements Events { com.oracle.bmc.Services.serviceBuilder() .serviceName(EventsClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://events.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://events.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("events") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -51,6 +53,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -381,6 +384,9 @@ protected EventsClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -553,6 +559,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ChangeRuleCompartmentConverter.java b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ChangeRuleCompartmentConverter.java index 247e7a32799..d94fa97fd3d 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ChangeRuleCompartmentConverter.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ChangeRuleCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeRuleCompartmentDetails(), "changeRuleCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ruleId", request.getRuleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20181201") .path("rules") .path( diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/CreateRuleConverter.java b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/CreateRuleConverter.java index 0ab1e44be01..61bb4753a31 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/CreateRuleConverter.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/CreateRuleConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateRuleDetails(), "createRuleDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("rules"); + newBaseTarget.path("/20181201").path("rules"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/DeleteRuleConverter.java b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/DeleteRuleConverter.java index e29f4987c1b..a6c9adc88b4 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/DeleteRuleConverter.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/DeleteRuleConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getRuleId(), "ruleId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ruleId", request.getRuleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20181201") .path("rules") .path( diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/GetRuleConverter.java b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/GetRuleConverter.java index 37c8bcd98af..314d6e06f8a 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/GetRuleConverter.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/GetRuleConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getRuleId(), "ruleId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ruleId", request.getRuleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20181201") .path("rules") .path( diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ListRulesConverter.java b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ListRulesConverter.java index 7fe1c77eaec..757f45e5bbd 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ListRulesConverter.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/ListRulesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("rules"); + newBaseTarget.path("/20181201").path("rules"); target = target.queryParam( diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/UpdateRuleConverter.java b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/UpdateRuleConverter.java index 1a141b71f43..96afed21f74 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/UpdateRuleConverter.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/internal/http/UpdateRuleConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getRuleId(), "ruleId must not be blank"); Validate.notNull(request.getUpdateRuleDetails(), "updateRuleDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ruleId", request.getRuleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20181201") .path("rules") .path( diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/model/CreateRuleDetails.java b/bmc-events/src/main/java/com/oracle/bmc/events/model/CreateRuleDetails.java index b7ede53bf77..6a731d9c002 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/model/CreateRuleDetails.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/model/CreateRuleDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.events.model; /** - * Object used to create a rule. + * Object used to create an events1.0 rule and events2.0 system rule. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-examples/gradle-example/.gradle/8.9/checksums/checksums.lock b/bmc-examples/gradle-example/.gradle/8.9/checksums/checksums.lock new file mode 100644 index 00000000000..62116acb2fe Binary files /dev/null and b/bmc-examples/gradle-example/.gradle/8.9/checksums/checksums.lock differ diff --git a/bmc-examples/gradle-example/.gradle/8.9/dependencies-accessors/gc.properties b/bmc-examples/gradle-example/.gradle/8.9/dependencies-accessors/gc.properties new file mode 100644 index 00000000000..c8cc35a44a0 --- /dev/null +++ b/bmc-examples/gradle-example/.gradle/8.9/dependencies-accessors/gc.properties @@ -0,0 +1,5 @@ +# +# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + diff --git a/bmc-examples/gradle-example/.gradle/8.9/executionHistory/executionHistory.lock b/bmc-examples/gradle-example/.gradle/8.9/executionHistory/executionHistory.lock new file mode 100644 index 00000000000..39b545a5345 Binary files /dev/null and b/bmc-examples/gradle-example/.gradle/8.9/executionHistory/executionHistory.lock differ diff --git a/bmc-examples/gradle-example/.gradle/8.9/fileChanges/last-build.bin b/bmc-examples/gradle-example/.gradle/8.9/fileChanges/last-build.bin new file mode 100644 index 00000000000..f76dd238ade Binary files /dev/null and b/bmc-examples/gradle-example/.gradle/8.9/fileChanges/last-build.bin differ diff --git a/bmc-examples/gradle-example/.gradle/8.9/fileHashes/fileHashes.lock b/bmc-examples/gradle-example/.gradle/8.9/fileHashes/fileHashes.lock new file mode 100644 index 00000000000..a9a0d10a405 Binary files /dev/null and b/bmc-examples/gradle-example/.gradle/8.9/fileHashes/fileHashes.lock differ diff --git a/bmc-examples/gradle-example/.gradle/8.9/gc.properties b/bmc-examples/gradle-example/.gradle/8.9/gc.properties new file mode 100644 index 00000000000..c8cc35a44a0 --- /dev/null +++ b/bmc-examples/gradle-example/.gradle/8.9/gc.properties @@ -0,0 +1,5 @@ +# +# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + diff --git a/bmc-examples/gradle-example/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/bmc-examples/gradle-example/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 00000000000..76b87c1cb21 Binary files /dev/null and b/bmc-examples/gradle-example/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/bmc-examples/gradle-example/.gradle/buildOutputCleanup/cache.properties b/bmc-examples/gradle-example/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 00000000000..c03ed66a3ac --- /dev/null +++ b/bmc-examples/gradle-example/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,7 @@ +# +# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +#Thu Apr 02 16:57:11 IST 2026 +gradle.version=8.9 diff --git a/bmc-examples/gradle-example/.gradle/vcs-1/gc.properties b/bmc-examples/gradle-example/.gradle/vcs-1/gc.properties new file mode 100644 index 00000000000..c8cc35a44a0 --- /dev/null +++ b/bmc-examples/gradle-example/.gradle/vcs-1/gc.properties @@ -0,0 +1,5 @@ +# +# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 31163c43541..e4012e83710 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-examples @@ -28,7 +28,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.91.0 + 2.93.0 pom import @@ -745,5 +745,13 @@ com.oracle.oci.sdk oci-java-sdk-containerregistry + + com.oracle.oci.sdk + oci-java-sdk-databasetoolsruntime + + + com.oracle.oci.sdk + oci-java-sdk-costad + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index caaa5a290b9..e4b67bcb4a3 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateSnapshotDetails.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateSnapshotDetails.java index c5643c434a1..f90e4aa2820 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateSnapshotDetails.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateSnapshotDetails.java @@ -26,6 +26,7 @@ public final class CreateSnapshotDetails "fileSystemId", "name", "expirationTime", + "lockDurationDetails", "freeformTags", "definedTags", "locks" @@ -34,6 +35,7 @@ public CreateSnapshotDetails( String fileSystemId, String name, java.util.Date expirationTime, + LockDurationDetails lockDurationDetails, java.util.Map freeformTags, java.util.Map> definedTags, java.util.List locks) { @@ -41,6 +43,7 @@ public CreateSnapshotDetails( this.fileSystemId = fileSystemId; this.name = name; this.expirationTime = expirationTime; + this.lockDurationDetails = lockDurationDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; this.locks = locks; @@ -110,6 +113,15 @@ public Builder expirationTime(java.util.Date expirationTime) { this.__explicitlySet__.add("expirationTime"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private LockDurationDetails lockDurationDetails; + + public Builder lockDurationDetails(LockDurationDetails lockDurationDetails) { + this.lockDurationDetails = lockDurationDetails; + this.__explicitlySet__.add("lockDurationDetails"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -183,6 +195,7 @@ public CreateSnapshotDetails build() { this.fileSystemId, this.name, this.expirationTime, + this.lockDurationDetails, this.freeformTags, this.definedTags, this.locks); @@ -203,6 +216,9 @@ public Builder copy(CreateSnapshotDetails model) { if (model.wasPropertyExplicitlySet("expirationTime")) { this.expirationTime(model.getExpirationTime()); } + if (model.wasPropertyExplicitlySet("lockDurationDetails")) { + this.lockDurationDetails(model.getLockDurationDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -283,6 +299,13 @@ public java.util.Date getExpirationTime() { return expirationTime; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private final LockDurationDetails lockDurationDetails; + + public LockDurationDetails getLockDurationDetails() { + return lockDurationDetails; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -356,6 +379,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("fileSystemId=").append(String.valueOf(this.fileSystemId)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", expirationTime=").append(String.valueOf(this.expirationTime)); + sb.append(", lockDurationDetails=").append(String.valueOf(this.lockDurationDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", locks=").append(String.valueOf(this.locks)); @@ -376,6 +400,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.fileSystemId, other.fileSystemId) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.expirationTime, other.expirationTime) + && java.util.Objects.equals(this.lockDurationDetails, other.lockDurationDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.locks, other.locks) @@ -391,6 +416,11 @@ public int hashCode() { result = (result * PRIME) + (this.expirationTime == null ? 43 : this.expirationTime.hashCode()); + result = + (result * PRIME) + + (this.lockDurationDetails == null + ? 43 + : this.lockDurationDetails.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()); diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/LockDurationDetails.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/LockDurationDetails.java new file mode 100644 index 00000000000..966d3cf9aee --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/LockDurationDetails.java @@ -0,0 +1,330 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.model; + +/** + * Details for setting a retention date or legal hold. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LockDurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LockDurationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"coolOffDuration", "lockDuration", "lockMode"}) + public LockDurationDetails(Integer coolOffDuration, Integer lockDuration, LockMode lockMode) { + super(); + this.coolOffDuration = coolOffDuration; + this.lockDuration = lockDuration; + this.lockMode = lockMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * For snapshots in compliance mode, a cooling-off period (measured in days) begins. + * During this time, you can still edit or remove the lock. Once this period ends, + * the snapshot becomes immutable until the specified retention date expires, permanently + * preventing any deletion or modification. The cool off duration can be set for a minimum of + * 0 days and a maximum of 365. It defaults to 14 days if not set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffDuration") + private Integer coolOffDuration; + + /** + * For snapshots in compliance mode, a cooling-off period (measured in days) begins. + * During this time, you can still edit or remove the lock. Once this period ends, + * the snapshot becomes immutable until the specified retention date expires, permanently + * preventing any deletion or modification. The cool off duration can be set for a minimum of + * 0 days and a maximum of 365. It defaults to 14 days if not set. + * + * @param coolOffDuration the value to set + * @return this builder + **/ + public Builder coolOffDuration(Integer coolOffDuration) { + this.coolOffDuration = coolOffDuration; + this.__explicitlySet__.add("coolOffDuration"); + return this; + } + /** + * The retention period (measured in days) defines how long a snapshot remains locked, + * preventing user modifications or deletions. In governance mode this period can be adjusted, + * but in compliance mode it becomes permanent after a cool-off period. + * Snapshots can be locked for a minimum of 0 days and a maximum of 36,500 days. + * A value of 0 days stands for an indefinite retention period and it is used for a legal hold. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lockDuration") + private Integer lockDuration; + + /** + * The retention period (measured in days) defines how long a snapshot remains locked, + * preventing user modifications or deletions. In governance mode this period can be adjusted, + * but in compliance mode it becomes permanent after a cool-off period. + * Snapshots can be locked for a minimum of 0 days and a maximum of 36,500 days. + * A value of 0 days stands for an indefinite retention period and it is used for a legal hold. + * + * @param lockDuration the value to set + * @return this builder + **/ + public Builder lockDuration(Integer lockDuration) { + this.lockDuration = lockDuration; + this.__explicitlySet__.add("lockDuration"); + return this; + } + /** + * Can be GOVERNANCE or COMPLIANCE. + * GOVERNANCE MODE: locks snapshots based on either a retention period or a legal hold. + * COMPLIANCE MODE: the customer can only remove the snapshot during its cooling-off period. + * Once that time ends, the snapshot becomes immutable; customers cannot delete or modify it + * until its set retention date passes. After the snapshot is locked, customers can only + * increase its retention period. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lockMode") + private LockMode lockMode; + + /** + * Can be GOVERNANCE or COMPLIANCE. + * GOVERNANCE MODE: locks snapshots based on either a retention period or a legal hold. + * COMPLIANCE MODE: the customer can only remove the snapshot during its cooling-off period. + * Once that time ends, the snapshot becomes immutable; customers cannot delete or modify it + * until its set retention date passes. After the snapshot is locked, customers can only + * increase its retention period. + * + * @param lockMode the value to set + * @return this builder + **/ + public Builder lockMode(LockMode lockMode) { + this.lockMode = lockMode; + this.__explicitlySet__.add("lockMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LockDurationDetails build() { + LockDurationDetails model = + new LockDurationDetails(this.coolOffDuration, this.lockDuration, this.lockMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LockDurationDetails model) { + if (model.wasPropertyExplicitlySet("coolOffDuration")) { + this.coolOffDuration(model.getCoolOffDuration()); + } + if (model.wasPropertyExplicitlySet("lockDuration")) { + this.lockDuration(model.getLockDuration()); + } + if (model.wasPropertyExplicitlySet("lockMode")) { + this.lockMode(model.getLockMode()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * For snapshots in compliance mode, a cooling-off period (measured in days) begins. + * During this time, you can still edit or remove the lock. Once this period ends, + * the snapshot becomes immutable until the specified retention date expires, permanently + * preventing any deletion or modification. The cool off duration can be set for a minimum of + * 0 days and a maximum of 365. It defaults to 14 days if not set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffDuration") + private final Integer coolOffDuration; + + /** + * For snapshots in compliance mode, a cooling-off period (measured in days) begins. + * During this time, you can still edit or remove the lock. Once this period ends, + * the snapshot becomes immutable until the specified retention date expires, permanently + * preventing any deletion or modification. The cool off duration can be set for a minimum of + * 0 days and a maximum of 365. It defaults to 14 days if not set. + * + * @return the value + **/ + public Integer getCoolOffDuration() { + return coolOffDuration; + } + + /** + * The retention period (measured in days) defines how long a snapshot remains locked, + * preventing user modifications or deletions. In governance mode this period can be adjusted, + * but in compliance mode it becomes permanent after a cool-off period. + * Snapshots can be locked for a minimum of 0 days and a maximum of 36,500 days. + * A value of 0 days stands for an indefinite retention period and it is used for a legal hold. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lockDuration") + private final Integer lockDuration; + + /** + * The retention period (measured in days) defines how long a snapshot remains locked, + * preventing user modifications or deletions. In governance mode this period can be adjusted, + * but in compliance mode it becomes permanent after a cool-off period. + * Snapshots can be locked for a minimum of 0 days and a maximum of 36,500 days. + * A value of 0 days stands for an indefinite retention period and it is used for a legal hold. + * + * @return the value + **/ + public Integer getLockDuration() { + return lockDuration; + } + + /** + * Can be GOVERNANCE or COMPLIANCE. + * GOVERNANCE MODE: locks snapshots based on either a retention period or a legal hold. + * COMPLIANCE MODE: the customer can only remove the snapshot during its cooling-off period. + * Once that time ends, the snapshot becomes immutable; customers cannot delete or modify it + * until its set retention date passes. After the snapshot is locked, customers can only + * increase its retention period. + * + **/ + public enum LockMode { + Governance("GOVERNANCE"), + Compliance("COMPLIANCE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LockMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LockMode v : LockMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LockMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LockMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LockMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Can be GOVERNANCE or COMPLIANCE. + * GOVERNANCE MODE: locks snapshots based on either a retention period or a legal hold. + * COMPLIANCE MODE: the customer can only remove the snapshot during its cooling-off period. + * Once that time ends, the snapshot becomes immutable; customers cannot delete or modify it + * until its set retention date passes. After the snapshot is locked, customers can only + * increase its retention period. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lockMode") + private final LockMode lockMode; + + /** + * Can be GOVERNANCE or COMPLIANCE. + * GOVERNANCE MODE: locks snapshots based on either a retention period or a legal hold. + * COMPLIANCE MODE: the customer can only remove the snapshot during its cooling-off period. + * Once that time ends, the snapshot becomes immutable; customers cannot delete or modify it + * until its set retention date passes. After the snapshot is locked, customers can only + * increase its retention period. + * + * @return the value + **/ + public LockMode getLockMode() { + return lockMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LockDurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("coolOffDuration=").append(String.valueOf(this.coolOffDuration)); + sb.append(", lockDuration=").append(String.valueOf(this.lockDuration)); + sb.append(", lockMode=").append(String.valueOf(this.lockMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LockDurationDetails)) { + return false; + } + + LockDurationDetails other = (LockDurationDetails) o; + return java.util.Objects.equals(this.coolOffDuration, other.coolOffDuration) + && java.util.Objects.equals(this.lockDuration, other.lockDuration) + && java.util.Objects.equals(this.lockMode, other.lockMode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.coolOffDuration == null ? 43 : this.coolOffDuration.hashCode()); + result = (result * PRIME) + (this.lockDuration == null ? 43 : this.lockDuration.hashCode()); + result = (result * PRIME) + (this.lockMode == null ? 43 : this.lockMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java index 8942c56d863..0d928881215 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java @@ -32,6 +32,8 @@ public final class Snapshot extends com.oracle.bmc.http.internal.ExplicitlySetBm "isCloneSource", "lifecycleDetails", "locks", + "lockDurationDetails", + "timeLocked", "freeformTags", "definedTags", "systemTags", @@ -50,6 +52,8 @@ public Snapshot( Boolean isCloneSource, String lifecycleDetails, java.util.List locks, + LockDurationDetails lockDurationDetails, + java.util.Date timeLocked, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -67,6 +71,8 @@ public Snapshot( this.isCloneSource = isCloneSource; this.lifecycleDetails = lifecycleDetails; this.locks = locks; + this.lockDurationDetails = lockDurationDetails; + this.timeLocked = timeLocked; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -306,6 +312,35 @@ public Builder locks(java.util.List locks) { this.__explicitlySet__.add("locks"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private LockDurationDetails lockDurationDetails; + + public Builder lockDurationDetails(LockDurationDetails lockDurationDetails) { + this.lockDurationDetails = lockDurationDetails; + this.__explicitlySet__.add("lockDurationDetails"); + return this; + } + /** + * The date and time as per [RFC 3339](https://tools.ietf.org/html/rfc3339) when this snapshot was locked. + * It is a read-only property because the user should not be able to set it, it is set by our service. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLocked") + private java.util.Date timeLocked; + + /** + * The date and time as per [RFC 3339](https://tools.ietf.org/html/rfc3339) when this snapshot was locked. + * It is a read-only property because the user should not be able to set it, it is set by our service. + * + * @param timeLocked the value to set + * @return this builder + **/ + public Builder timeLocked(java.util.Date timeLocked) { + this.timeLocked = timeLocked; + this.__explicitlySet__.add("timeLocked"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -425,6 +460,8 @@ public Snapshot build() { this.isCloneSource, this.lifecycleDetails, this.locks, + this.lockDurationDetails, + this.timeLocked, this.freeformTags, this.definedTags, this.systemTags, @@ -471,6 +508,12 @@ public Builder copy(Snapshot model) { if (model.wasPropertyExplicitlySet("locks")) { this.locks(model.getLocks()); } + if (model.wasPropertyExplicitlySet("lockDurationDetails")) { + this.lockDurationDetails(model.getLockDurationDetails()); + } + if (model.wasPropertyExplicitlySet("timeLocked")) { + this.timeLocked(model.getTimeLocked()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -809,6 +852,31 @@ public java.util.List getLocks() { return locks; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private final LockDurationDetails lockDurationDetails; + + public LockDurationDetails getLockDurationDetails() { + return lockDurationDetails; + } + + /** + * The date and time as per [RFC 3339](https://tools.ietf.org/html/rfc3339) when this snapshot was locked. + * It is a read-only property because the user should not be able to set it, it is set by our service. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLocked") + private final java.util.Date timeLocked; + + /** + * The date and time as per [RFC 3339](https://tools.ietf.org/html/rfc3339) when this snapshot was locked. + * It is a read-only property because the user should not be able to set it, it is set by our service. + * + * @return the value + **/ + public java.util.Date getTimeLocked() { + return timeLocked; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -924,6 +992,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isCloneSource=").append(String.valueOf(this.isCloneSource)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(", lockDurationDetails=").append(String.valueOf(this.lockDurationDetails)); + sb.append(", timeLocked=").append(String.valueOf(this.timeLocked)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -955,6 +1025,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isCloneSource, other.isCloneSource) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.locks, other.locks) + && java.util.Objects.equals(this.lockDurationDetails, other.lockDurationDetails) + && java.util.Objects.equals(this.timeLocked, other.timeLocked) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -985,6 +1057,12 @@ public int hashCode() { (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = + (result * PRIME) + + (this.lockDurationDetails == null + ? 43 + : this.lockDurationDetails.hashCode()); + result = (result * PRIME) + (this.timeLocked == null ? 43 : this.timeLocked.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-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSchedule.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSchedule.java index 1448608297e..31d94f1e338 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSchedule.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSchedule.java @@ -30,7 +30,8 @@ public final class SnapshotSchedule extends com.oracle.bmc.http.internal.Explici "hourOfDay", "dayOfWeek", "dayOfMonth", - "month" + "month", + "lockDurationDetails" }) public SnapshotSchedule( String schedulePrefix, @@ -41,7 +42,8 @@ public SnapshotSchedule( Integer hourOfDay, DayOfWeek dayOfWeek, Integer dayOfMonth, - Month month) { + Month month, + LockDurationDetails lockDurationDetails) { super(); this.schedulePrefix = schedulePrefix; this.timeScheduleStart = timeScheduleStart; @@ -52,6 +54,7 @@ public SnapshotSchedule( this.dayOfWeek = dayOfWeek; this.dayOfMonth = dayOfMonth; this.month = month; + this.lockDurationDetails = lockDurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -241,6 +244,15 @@ public Builder month(Month month) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private LockDurationDetails lockDurationDetails; + + public Builder lockDurationDetails(LockDurationDetails lockDurationDetails) { + this.lockDurationDetails = lockDurationDetails; + this.__explicitlySet__.add("lockDurationDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -255,7 +267,8 @@ public SnapshotSchedule build() { this.hourOfDay, this.dayOfWeek, this.dayOfMonth, - this.month); + this.month, + this.lockDurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -291,6 +304,9 @@ public Builder copy(SnapshotSchedule model) { if (model.wasPropertyExplicitlySet("month")) { this.month(model.getMonth()); } + if (model.wasPropertyExplicitlySet("lockDurationDetails")) { + this.lockDurationDetails(model.getLockDurationDetails()); + } return this; } } @@ -686,6 +702,13 @@ public Month getMonth() { return month; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private final LockDurationDetails lockDurationDetails; + + public LockDurationDetails getLockDurationDetails() { + return lockDurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -710,6 +733,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", dayOfMonth=").append(String.valueOf(this.dayOfMonth)); sb.append(", month=").append(String.valueOf(this.month)); + sb.append(", lockDurationDetails=").append(String.valueOf(this.lockDurationDetails)); sb.append(")"); return sb.toString(); } @@ -734,6 +758,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals(this.dayOfMonth, other.dayOfMonth) && java.util.Objects.equals(this.month, other.month) + && java.util.Objects.equals(this.lockDurationDetails, other.lockDurationDetails) && super.equals(other); } @@ -758,6 +783,11 @@ public int hashCode() { result = (result * PRIME) + (this.dayOfWeek == null ? 43 : this.dayOfWeek.hashCode()); result = (result * PRIME) + (this.dayOfMonth == null ? 43 : this.dayOfMonth.hashCode()); result = (result * PRIME) + (this.month == null ? 43 : this.month.hashCode()); + result = + (result * PRIME) + + (this.lockDurationDetails == null + ? 43 + : this.lockDurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java index 213110fdbd1..729c390d45a 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java @@ -27,6 +27,7 @@ public final class SnapshotSummary extends com.oracle.bmc.http.internal.Explicit "name", "timeCreated", "locks", + "lockDurationDetails", "snapshotType", "snapshotTime", "expirationTime", @@ -44,6 +45,7 @@ public SnapshotSummary( String name, java.util.Date timeCreated, java.util.List locks, + LockDurationDetails lockDurationDetails, SnapshotType snapshotType, java.util.Date snapshotTime, java.util.Date expirationTime, @@ -60,6 +62,7 @@ public SnapshotSummary( this.name = name; this.timeCreated = timeCreated; this.locks = locks; + this.lockDurationDetails = lockDurationDetails; this.snapshotType = snapshotType; this.snapshotTime = snapshotTime; this.expirationTime = expirationTime; @@ -189,6 +192,15 @@ public Builder locks(java.util.List locks) { this.__explicitlySet__.add("locks"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private LockDurationDetails lockDurationDetails; + + public Builder lockDurationDetails(LockDurationDetails lockDurationDetails) { + this.lockDurationDetails = lockDurationDetails; + this.__explicitlySet__.add("lockDurationDetails"); + return this; + } /** * Specifies the generation type of the snapshot. * @@ -397,6 +409,7 @@ public SnapshotSummary build() { this.name, this.timeCreated, this.locks, + this.lockDurationDetails, this.snapshotType, this.snapshotTime, this.expirationTime, @@ -432,6 +445,9 @@ public Builder copy(SnapshotSummary model) { if (model.wasPropertyExplicitlySet("locks")) { this.locks(model.getLocks()); } + if (model.wasPropertyExplicitlySet("lockDurationDetails")) { + this.lockDurationDetails(model.getLockDurationDetails()); + } if (model.wasPropertyExplicitlySet("snapshotType")) { this.snapshotType(model.getSnapshotType()); } @@ -628,6 +644,13 @@ public java.util.List getLocks() { return locks; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private final LockDurationDetails lockDurationDetails; + + public LockDurationDetails getLockDurationDetails() { + return lockDurationDetails; + } + /** * Specifies the generation type of the snapshot. * @@ -874,6 +897,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", name=").append(String.valueOf(this.name)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(", lockDurationDetails=").append(String.valueOf(this.lockDurationDetails)); sb.append(", snapshotType=").append(String.valueOf(this.snapshotType)); sb.append(", snapshotTime=").append(String.valueOf(this.snapshotTime)); sb.append(", expirationTime=").append(String.valueOf(this.expirationTime)); @@ -903,6 +927,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.locks, other.locks) + && java.util.Objects.equals(this.lockDurationDetails, other.lockDurationDetails) && java.util.Objects.equals(this.snapshotType, other.snapshotType) && java.util.Objects.equals(this.snapshotTime, other.snapshotTime) && java.util.Objects.equals(this.expirationTime, other.expirationTime) @@ -927,6 +952,11 @@ public int hashCode() { result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); + result = + (result * PRIME) + + (this.lockDurationDetails == null + ? 43 + : this.lockDurationDetails.hashCode()); result = (result * PRIME) + (this.snapshotType == null ? 43 : this.snapshotType.hashCode()); result = (result * PRIME) + (this.snapshotTime == null ? 43 : this.snapshotTime.hashCode()); result = diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpdateSnapshotDetails.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpdateSnapshotDetails.java index 17b0fd765a2..a2a6d3478be 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpdateSnapshotDetails.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpdateSnapshotDetails.java @@ -22,15 +22,22 @@ public final class UpdateSnapshotDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"freeformTags", "definedTags", "expirationTime"}) + @java.beans.ConstructorProperties({ + "freeformTags", + "definedTags", + "expirationTime", + "lockDurationDetails" + }) public UpdateSnapshotDetails( java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Date expirationTime) { + java.util.Date expirationTime, + LockDurationDetails lockDurationDetails) { super(); this.freeformTags = freeformTags; this.definedTags = definedTags; this.expirationTime = expirationTime; + this.lockDurationDetails = lockDurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -105,13 +112,25 @@ public Builder expirationTime(java.util.Date expirationTime) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private LockDurationDetails lockDurationDetails; + + public Builder lockDurationDetails(LockDurationDetails lockDurationDetails) { + this.lockDurationDetails = lockDurationDetails; + this.__explicitlySet__.add("lockDurationDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateSnapshotDetails build() { UpdateSnapshotDetails model = new UpdateSnapshotDetails( - this.freeformTags, this.definedTags, this.expirationTime); + this.freeformTags, + this.definedTags, + this.expirationTime, + this.lockDurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -129,6 +148,9 @@ public Builder copy(UpdateSnapshotDetails model) { if (model.wasPropertyExplicitlySet("expirationTime")) { this.expirationTime(model.getExpirationTime()); } + if (model.wasPropertyExplicitlySet("lockDurationDetails")) { + this.lockDurationDetails(model.getLockDurationDetails()); + } return this; } } @@ -206,6 +228,13 @@ public java.util.Date getExpirationTime() { return expirationTime; } + @com.fasterxml.jackson.annotation.JsonProperty("lockDurationDetails") + private final LockDurationDetails lockDurationDetails; + + public LockDurationDetails getLockDurationDetails() { + return lockDurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -223,6 +252,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", expirationTime=").append(String.valueOf(this.expirationTime)); + sb.append(", lockDurationDetails=").append(String.valueOf(this.lockDurationDetails)); sb.append(")"); return sb.toString(); } @@ -240,6 +270,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.expirationTime, other.expirationTime) + && java.util.Objects.equals(this.lockDurationDetails, other.lockDurationDetails) && super.equals(other); } @@ -252,6 +283,11 @@ public int hashCode() { result = (result * PRIME) + (this.expirationTime == null ? 43 : this.expirationTime.hashCode()); + result = + (result * PRIME) + + (this.lockDurationDetails == null + ? 43 + : this.lockDurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 03a84661e46..4c956977335 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java index 0299a400ef1..d655903f930 100644 --- a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java @@ -19,8 +19,16 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class Variable extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "value"}) public Variable(String name, String value) { + super(); + this.name = name; + this.value = value != null ? value.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public Variable(String name, char[] value) { super(); this.name = name; this.value = value; @@ -48,19 +56,25 @@ public Builder name(String name) { * The value corresponding to the variable name. **/ @com.fasterxml.jackson.annotation.JsonProperty("value") - private String value; + private char[] value; /** * The value corresponding to the variable name. * @param value the value to set * @return this builder **/ - public Builder value(String value) { + public Builder value(char[] value) { this.value = value; this.__explicitlySet__.add("value"); return this; } + public Builder value(String value) { + this.value = value != null ? value.toCharArray() : null; + this.__explicitlySet__.add("value"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -113,13 +127,25 @@ public String getName() { * The value corresponding to the variable name. **/ @com.fasterxml.jackson.annotation.JsonProperty("value") - private final String value; + private final char[] value; + + /** + * The value corresponding to the variable name. + * return the value + * @Deprecated - Use getValue__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getValue() { + return value != null ? new String(value) : null; + } /** * The value corresponding to the variable name. * @return the value **/ - public String getValue() { + @com.fasterxml.jackson.annotation.JsonProperty("value") + public char[] getValue__AsCharArray() { return value; } diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 5b770c39699..d6d359c632a 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index aec7f8c1558..e8ff6d81744 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.91.0 + 2.93.0 pom import @@ -691,5 +691,13 @@ com.oracle.oci.sdk oci-java-sdk-containerregistry + + com.oracle.oci.sdk + oci-java-sdk-databasetoolsruntime + + + com.oracle.oci.sdk + oci-java-sdk-costad + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 86b6e5c6e1b..65d48e5e5e1 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-functions @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java index 40556b25fdc..d6299c54eb9 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java @@ -31,6 +31,7 @@ public final class Application extends com.oracle.bmc.http.internal.ExplicitlySe "networkSecurityGroupIds", "syslogUrl", "traceConfig", + "logging", "freeformTags", "definedTags", "timeCreated", @@ -49,6 +50,7 @@ public Application( java.util.List networkSecurityGroupIds, String syslogUrl, ApplicationTraceConfig traceConfig, + ApplicationLoggingConfig logging, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Date timeCreated, @@ -66,6 +68,7 @@ public Application( this.networkSecurityGroupIds = networkSecurityGroupIds; this.syslogUrl = syslogUrl; this.traceConfig = traceConfig; + this.logging = logging; this.freeformTags = freeformTags; this.definedTags = definedTags; this.timeCreated = timeCreated; @@ -273,6 +276,15 @@ public Builder traceConfig(ApplicationTraceConfig traceConfig) { this.__explicitlySet__.add("traceConfig"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private ApplicationLoggingConfig logging; + + public Builder logging(ApplicationLoggingConfig logging) { + this.logging = logging; + this.__explicitlySet__.add("logging"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -417,6 +429,7 @@ public Application build() { this.networkSecurityGroupIds, this.syslogUrl, this.traceConfig, + this.logging, this.freeformTags, this.definedTags, this.timeCreated, @@ -461,6 +474,9 @@ public Builder copy(Application model) { if (model.wasPropertyExplicitlySet("traceConfig")) { this.traceConfig(model.getTraceConfig()); } + if (model.wasPropertyExplicitlySet("logging")) { + this.logging(model.getLogging()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -778,6 +794,13 @@ public ApplicationTraceConfig getTraceConfig() { return traceConfig; } + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private final ApplicationLoggingConfig logging; + + public ApplicationLoggingConfig getLogging() { + return logging; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -916,6 +939,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.networkSecurityGroupIds)); sb.append(", syslogUrl=").append(String.valueOf(this.syslogUrl)); sb.append(", traceConfig=").append(String.valueOf(this.traceConfig)); + sb.append(", logging=").append(String.valueOf(this.logging)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -947,6 +971,7 @@ public boolean equals(Object o) { this.networkSecurityGroupIds, other.networkSecurityGroupIds) && java.util.Objects.equals(this.syslogUrl, other.syslogUrl) && java.util.Objects.equals(this.traceConfig, other.traceConfig) + && java.util.Objects.equals(this.logging, other.logging) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -978,6 +1003,7 @@ public int hashCode() { : this.networkSecurityGroupIds.hashCode()); result = (result * PRIME) + (this.syslogUrl == null ? 43 : this.syslogUrl.hashCode()); result = (result * PRIME) + (this.traceConfig == null ? 43 : this.traceConfig.hashCode()); + result = (result * PRIME) + (this.logging == null ? 43 : this.logging.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java new file mode 100644 index 00000000000..e3e4030e8ab --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * Set logging configuration for an application. This is only used if Service Logs for the application are enabled in the OCI Logging service. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApplicationLoggingConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ApplicationLoggingConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"lineFormat"}) + public ApplicationLoggingConfig(LineFormat lineFormat) { + super(); + this.lineFormat = lineFormat; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specify the format of log lines emitted by functions in this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lineFormat") + private LineFormat lineFormat; + + /** + * Specify the format of log lines emitted by functions in this application. + * + * @param lineFormat the value to set + * @return this builder + **/ + public Builder lineFormat(LineFormat lineFormat) { + this.lineFormat = lineFormat; + this.__explicitlySet__.add("lineFormat"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApplicationLoggingConfig build() { + ApplicationLoggingConfig model = new ApplicationLoggingConfig(this.lineFormat); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApplicationLoggingConfig model) { + if (model.wasPropertyExplicitlySet("lineFormat")) { + this.lineFormat(model.getLineFormat()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specify the format of log lines emitted by functions in this application. + * + **/ + public enum LineFormat { + Json("JSON"), + PlainText("PLAIN_TEXT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LineFormat.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LineFormat v : LineFormat.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LineFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LineFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LineFormat', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specify the format of log lines emitted by functions in this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lineFormat") + private final LineFormat lineFormat; + + /** + * Specify the format of log lines emitted by functions in this application. + * + * @return the value + **/ + public LineFormat getLineFormat() { + return lineFormat; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ApplicationLoggingConfig("); + sb.append("super=").append(super.toString()); + sb.append("lineFormat=").append(String.valueOf(this.lineFormat)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApplicationLoggingConfig)) { + return false; + } + + ApplicationLoggingConfig other = (ApplicationLoggingConfig) o; + return java.util.Objects.equals(this.lineFormat, other.lineFormat) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.lineFormat == null ? 43 : this.lineFormat.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java index 6ca87ee79a1..5e29266b450 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java @@ -31,6 +31,7 @@ public final class ApplicationSummary extends com.oracle.bmc.http.internal.Expli "shape", "networkSecurityGroupIds", "traceConfig", + "logging", "freeformTags", "definedTags", "timeCreated", @@ -47,6 +48,7 @@ public ApplicationSummary( Shape shape, java.util.List networkSecurityGroupIds, ApplicationTraceConfig traceConfig, + ApplicationLoggingConfig logging, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Date timeCreated, @@ -62,6 +64,7 @@ public ApplicationSummary( this.shape = shape; this.networkSecurityGroupIds = networkSecurityGroupIds; this.traceConfig = traceConfig; + this.logging = logging; this.freeformTags = freeformTags; this.definedTags = definedTags; this.timeCreated = timeCreated; @@ -215,6 +218,15 @@ public Builder traceConfig(ApplicationTraceConfig traceConfig) { this.__explicitlySet__.add("traceConfig"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private ApplicationLoggingConfig logging; + + public Builder logging(ApplicationLoggingConfig logging) { + this.logging = logging; + this.__explicitlySet__.add("logging"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -357,6 +369,7 @@ public ApplicationSummary build() { this.shape, this.networkSecurityGroupIds, this.traceConfig, + this.logging, this.freeformTags, this.definedTags, this.timeCreated, @@ -395,6 +408,9 @@ public Builder copy(ApplicationSummary model) { if (model.wasPropertyExplicitlySet("traceConfig")) { this.traceConfig(model.getTraceConfig()); } + if (model.wasPropertyExplicitlySet("logging")) { + this.logging(model.getLogging()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -608,6 +624,13 @@ public ApplicationTraceConfig getTraceConfig() { return traceConfig; } + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private final ApplicationLoggingConfig logging; + + public ApplicationLoggingConfig getLogging() { + return logging; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -744,6 +767,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkSecurityGroupIds=") .append(String.valueOf(this.networkSecurityGroupIds)); sb.append(", traceConfig=").append(String.valueOf(this.traceConfig)); + sb.append(", logging=").append(String.valueOf(this.logging)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -773,6 +797,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.networkSecurityGroupIds, other.networkSecurityGroupIds) && java.util.Objects.equals(this.traceConfig, other.traceConfig) + && java.util.Objects.equals(this.logging, other.logging) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -802,6 +827,7 @@ public int hashCode() { ? 43 : this.networkSecurityGroupIds.hashCode()); result = (result * PRIME) + (this.traceConfig == null ? 43 : this.traceConfig.hashCode()); + result = (result * PRIME) + (this.logging == null ? 43 : this.logging.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java index f719b100492..bcdbd4a84eb 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java @@ -32,6 +32,7 @@ public final class CreateApplicationDetails "networkSecurityGroupIds", "syslogUrl", "traceConfig", + "logging", "freeformTags", "definedTags", "imagePolicyConfig", @@ -46,6 +47,7 @@ public CreateApplicationDetails( java.util.List networkSecurityGroupIds, String syslogUrl, ApplicationTraceConfig traceConfig, + ApplicationLoggingConfig logging, java.util.Map freeformTags, java.util.Map> definedTags, ImagePolicyConfig imagePolicyConfig, @@ -59,6 +61,7 @@ public CreateApplicationDetails( this.networkSecurityGroupIds = networkSecurityGroupIds; this.syslogUrl = syslogUrl; this.traceConfig = traceConfig; + this.logging = logging; this.freeformTags = freeformTags; this.definedTags = definedTags; this.imagePolicyConfig = imagePolicyConfig; @@ -228,6 +231,15 @@ public Builder traceConfig(ApplicationTraceConfig traceConfig) { this.__explicitlySet__.add("traceConfig"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private ApplicationLoggingConfig logging; + + public Builder logging(ApplicationLoggingConfig logging) { + this.logging = logging; + this.__explicitlySet__.add("logging"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -324,6 +336,7 @@ public CreateApplicationDetails build() { this.networkSecurityGroupIds, this.syslogUrl, this.traceConfig, + this.logging, this.freeformTags, this.definedTags, this.imagePolicyConfig, @@ -360,6 +373,9 @@ public Builder copy(CreateApplicationDetails model) { if (model.wasPropertyExplicitlySet("traceConfig")) { this.traceConfig(model.getTraceConfig()); } + if (model.wasPropertyExplicitlySet("logging")) { + this.logging(model.getLogging()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -573,6 +589,13 @@ public ApplicationTraceConfig getTraceConfig() { return traceConfig; } + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private final ApplicationLoggingConfig logging; + + public ApplicationLoggingConfig getLogging() { + return logging; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -667,6 +690,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.networkSecurityGroupIds)); sb.append(", syslogUrl=").append(String.valueOf(this.syslogUrl)); sb.append(", traceConfig=").append(String.valueOf(this.traceConfig)); + sb.append(", logging=").append(String.valueOf(this.logging)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", imagePolicyConfig=").append(String.valueOf(this.imagePolicyConfig)); @@ -694,6 +718,7 @@ public boolean equals(Object o) { this.networkSecurityGroupIds, other.networkSecurityGroupIds) && java.util.Objects.equals(this.syslogUrl, other.syslogUrl) && java.util.Objects.equals(this.traceConfig, other.traceConfig) + && java.util.Objects.equals(this.logging, other.logging) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.imagePolicyConfig, other.imagePolicyConfig) @@ -719,6 +744,7 @@ public int hashCode() { : this.networkSecurityGroupIds.hashCode()); result = (result * PRIME) + (this.syslogUrl == null ? 43 : this.syslogUrl.hashCode()); result = (result * PRIME) + (this.traceConfig == null ? 43 : this.traceConfig.hashCode()); + result = (result * PRIME) + (this.logging == null ? 43 : this.logging.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java index c971079a766..bb5bd22e8ad 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java @@ -28,6 +28,7 @@ public final class UpdateApplicationDetails "networkSecurityGroupIds", "syslogUrl", "traceConfig", + "logging", "freeformTags", "definedTags", "imagePolicyConfig", @@ -38,6 +39,7 @@ public UpdateApplicationDetails( java.util.List networkSecurityGroupIds, String syslogUrl, ApplicationTraceConfig traceConfig, + ApplicationLoggingConfig logging, java.util.Map freeformTags, java.util.Map> definedTags, ImagePolicyConfig imagePolicyConfig, @@ -47,6 +49,7 @@ public UpdateApplicationDetails( this.networkSecurityGroupIds = networkSecurityGroupIds; this.syslogUrl = syslogUrl; this.traceConfig = traceConfig; + this.logging = logging; this.freeformTags = freeformTags; this.definedTags = definedTags; this.imagePolicyConfig = imagePolicyConfig; @@ -136,6 +139,15 @@ public Builder traceConfig(ApplicationTraceConfig traceConfig) { this.__explicitlySet__.add("traceConfig"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private ApplicationLoggingConfig logging; + + public Builder logging(ApplicationLoggingConfig logging) { + this.logging = logging; + this.__explicitlySet__.add("logging"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -228,6 +240,7 @@ public UpdateApplicationDetails build() { this.networkSecurityGroupIds, this.syslogUrl, this.traceConfig, + this.logging, this.freeformTags, this.definedTags, this.imagePolicyConfig, @@ -252,6 +265,9 @@ public Builder copy(UpdateApplicationDetails model) { if (model.wasPropertyExplicitlySet("traceConfig")) { this.traceConfig(model.getTraceConfig()); } + if (model.wasPropertyExplicitlySet("logging")) { + this.logging(model.getLogging()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -352,6 +368,13 @@ public ApplicationTraceConfig getTraceConfig() { return traceConfig; } + @com.fasterxml.jackson.annotation.JsonProperty("logging") + private final ApplicationLoggingConfig logging; + + public ApplicationLoggingConfig getLogging() { + return logging; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -442,6 +465,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.networkSecurityGroupIds)); sb.append(", syslogUrl=").append(String.valueOf(this.syslogUrl)); sb.append(", traceConfig=").append(String.valueOf(this.traceConfig)); + sb.append(", logging=").append(String.valueOf(this.logging)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", imagePolicyConfig=").append(String.valueOf(this.imagePolicyConfig)); @@ -465,6 +489,7 @@ public boolean equals(Object o) { this.networkSecurityGroupIds, other.networkSecurityGroupIds) && java.util.Objects.equals(this.syslogUrl, other.syslogUrl) && java.util.Objects.equals(this.traceConfig, other.traceConfig) + && java.util.Objects.equals(this.logging, other.logging) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.imagePolicyConfig, other.imagePolicyConfig) @@ -484,6 +509,7 @@ public int hashCode() { : this.networkSecurityGroupIds.hashCode()); result = (result * PRIME) + (this.syslogUrl == null ? 43 : this.syslogUrl.hashCode()); result = (result * PRIME) + (this.traceConfig == null ? 43 : this.traceConfig.hashCode()); + result = (result * PRIME) + (this.logging == null ? 43 : this.logging.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 56e16ed5d76..b3ef93cea38 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-fusionapps @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 e13012639df..597f3215b82 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 @@ -103,6 +103,18 @@ ChangeFusionEnvironmentFamilyCompartmentResponse changeFusionEnvironmentFamilyCo CreateDataMaskingActivityResponse createDataMaskingActivity( CreateDataMaskingActivityRequest request); + /** + * Creates an email Subdomain for a brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateEmailSubdomain API. + */ + CreateEmailSubdomainResponse createEmailSubdomain(CreateEmailSubdomainRequest request); + /** * Creates a new FusionEnvironment. * @@ -143,6 +155,30 @@ CreateFusionEnvironmentAdminUserResponse createFusionEnvironmentAdminUser( CreateFusionEnvironmentFamilyResponse createFusionEnvironmentFamily( CreateFusionEnvironmentFamilyRequest request); + /** + * Creates a marketing brand for 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 CreateMarketingBrand API. + */ + CreateMarketingBrandResponse createMarketingBrand(CreateMarketingBrandRequest request); + + /** + * Creates a microsite for brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateMicrosite API. + */ + CreateMicrositeResponse createMicrosite(CreateMicrositeRequest request); + /** * Creates a new RefreshActivity. * @@ -169,6 +205,45 @@ CreateFusionEnvironmentFamilyResponse createFusionEnvironmentFamily( */ CreateServiceAttachmentResponse createServiceAttachment(CreateServiceAttachmentRequest request); + /** + * Create a VanityDomain + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateVanityDomain API. + */ + CreateVanityDomainResponse createVanityDomain(CreateVanityDomainRequest request); + + /** + * Create a VanityDomainActivity + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateVanityDomainActivity API. + */ + CreateVanityDomainActivityResponse createVanityDomainActivity( + CreateVanityDomainActivityRequest request); + + /** + * Delete an email subdomain for a brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteEmailSubdomain API. + */ + DeleteEmailSubdomainResponse deleteEmailSubdomain(DeleteEmailSubdomainRequest request); + /** * Deletes the Fusion environment identified by it's OCID. * @param request The request object containing the details to send @@ -207,6 +282,30 @@ DeleteFusionEnvironmentAdminUserResponse deleteFusionEnvironmentAdminUser( DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( DeleteFusionEnvironmentFamilyRequest request); + /** + * Deletes a Marketing brand for 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 DeleteMarketingBrand API. + */ + DeleteMarketingBrandResponse deleteMarketingBrand(DeleteMarketingBrandRequest request); + + /** + * Delete microsite for a brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteMicrosite API. + */ + DeleteMicrositeResponse deleteMicrosite(DeleteMicrositeRequest request); + /** * Deletes a scheduled RefreshActivity resource by identifier * @param request The request object containing the details to send @@ -231,6 +330,20 @@ DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( */ DeleteServiceAttachmentResponse deleteServiceAttachment(DeleteServiceAttachmentRequest request); + /** + * Deletes a VanityDomainActivity + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteVanityDomainActivity API. + */ + DeleteVanityDomainActivityResponse deleteVanityDomainActivity( + DeleteVanityDomainActivityRequest request); + /** * Begin the process of showing the details about where to retrieve data extract for a Fusion environment. * @@ -256,6 +369,43 @@ DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( */ GetDataMaskingActivityResponse getDataMaskingActivity(GetDataMaskingActivityRequest request); + /** + * Gets an email subdomain for the brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetEmailSubdomain API. + */ + GetEmailSubdomainResponse getEmailSubdomain(GetEmailSubdomainRequest request); + + /** + * Gets a CSR for email subdomain for a brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetEmailSubdomainCsr API. + */ + GetEmailSubdomainCsrResponse getEmailSubdomainCsr(GetEmailSubdomainCsrRequest request); + + /** + * Get all DNS records for emailSubdomain + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetEmailSubdomainDnsConfig API. + */ + GetEmailSubdomainDnsConfigResponse getEmailSubdomainDnsConfig( + GetEmailSubdomainDnsConfigRequest request); + /** * Gets a FusionEnvironment by identifier * @param request The request object containing the details to send @@ -321,6 +471,42 @@ GetFusionEnvironmentFamilyLimitsAndUsageResponse getFusionEnvironmentFamilyLimit GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( GetFusionEnvironmentStatusRequest request); + /** + * Gets a Marketing Brand by identifier + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetMarketingBrand API. + */ + GetMarketingBrandResponse getMarketingBrand(GetMarketingBrandRequest request); + + /** + * Get the microsite for the brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetMicrosite API. + */ + GetMicrositeResponse getMicrosite(GetMicrositeRequest request); + + /** + * Get DNS records for microsite + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetMicrositeDnsConfig API. + */ + GetMicrositeDnsConfigResponse getMicrositeDnsConfig(GetMicrositeDnsConfigRequest request); + /** * Gets a RefreshActivity by identifier * @param request The request object containing the details to send @@ -357,6 +543,32 @@ GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( */ GetServiceAttachmentResponse getServiceAttachment(GetServiceAttachmentRequest request); + /** + * Gets a VanityDomain + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetVanityDomain API. + */ + GetVanityDomainResponse getVanityDomain(GetVanityDomainRequest request); + + /** + * Gets a VanityDomainActivity + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetVanityDomainActivity API. + */ + GetVanityDomainActivityResponse getVanityDomainActivity(GetVanityDomainActivityRequest request); + /** * Gets the status of the work request with the given ID. * @param request The request object containing the details to send @@ -408,6 +620,18 @@ GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( ListDataMaskingActivitiesResponse listDataMaskingActivities( ListDataMaskingActivitiesRequest request); + /** + * Returns a list of email subdomains for a brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListEmailSubdomains API. + */ + ListEmailSubdomainsResponse listEmailSubdomains(ListEmailSubdomainsRequest request); + /** * Returns a list of FusionEnvironmentFamilies. * @@ -435,6 +659,30 @@ ListFusionEnvironmentFamiliesResponse listFusionEnvironmentFamilies( */ ListFusionEnvironmentsResponse listFusionEnvironments(ListFusionEnvironmentsRequest request); + /** + * Returns a list of marketing brands + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListMarketingBrands API. + */ + ListMarketingBrandsResponse listMarketingBrands(ListMarketingBrandsRequest request); + + /** + * Returns a list of microsites + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListMicrosites API. + */ + ListMicrositesResponse listMicrosites(ListMicrositesRequest request); + /** * Returns a list of RefreshActivities. * @@ -487,6 +735,19 @@ ListFusionEnvironmentFamiliesResponse listFusionEnvironmentFamilies( ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( ListTimeAvailableForRefreshesRequest request); + /** + * Lists all VanityDomains. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListVanityDomains API. + */ + ListVanityDomainsResponse listVanityDomains(ListVanityDomainsRequest request); + /** * Return a (paginated) list of errors for a given work request. * @@ -526,6 +787,19 @@ ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Request Email Subdomain CSR + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RequestEmailSubdomainCsr API. + */ + RequestEmailSubdomainCsrResponse requestEmailSubdomainCsr( + RequestEmailSubdomainCsrRequest request); + /** * Reset FusionEnvironment admin password. This API will be deprecated on Mon, 15 Jan 2024 01:00:00 GMT. Users can reset password themselves, FAaaS will no longer provide an API for this. * @param request The request object containing the details to send @@ -539,6 +813,32 @@ ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( ResetFusionEnvironmentPasswordResponse resetFusionEnvironmentPassword( ResetFusionEnvironmentPasswordRequest request); + /** + * Submit Vanity Domain Validation + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use SubmitVanityDomainValidation API. + */ + SubmitVanityDomainValidationResponse submitVanityDomainValidation( + SubmitVanityDomainValidationRequest request); + + /** + * Updates an email subdomain + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateEmailSubdomain API. + */ + UpdateEmailSubdomainResponse updateEmailSubdomain(UpdateEmailSubdomainRequest request); + /** * Updates the FusionEnvironment * @param request The request object containing the details to send @@ -564,6 +864,30 @@ ResetFusionEnvironmentPasswordResponse resetFusionEnvironmentPassword( UpdateFusionEnvironmentFamilyResponse updateFusionEnvironmentFamily( UpdateFusionEnvironmentFamilyRequest request); + /** + * Updates a Marketing Brand + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateMarketingBrand API. + */ + UpdateMarketingBrandResponse updateMarketingBrand(UpdateMarketingBrandRequest request); + + /** + * Updates an microsite + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateMicrosite API. + */ + UpdateMicrositeResponse updateMicrosite(UpdateMicrositeRequest request); + /** * Updates a scheduled RefreshActivity. * @@ -577,6 +901,100 @@ UpdateFusionEnvironmentFamilyResponse updateFusionEnvironmentFamily( */ UpdateRefreshActivityResponse updateRefreshActivity(UpdateRefreshActivityRequest request); + /** + * Updates a VanityDomain + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateVanityDomain API. + */ + UpdateVanityDomainResponse updateVanityDomain(UpdateVanityDomainRequest request); + + /** + * Updates a VanityDomainActivity + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateVanityDomainActivity API. + */ + UpdateVanityDomainActivityResponse updateVanityDomainActivity( + UpdateVanityDomainActivityRequest request); + + /** + * upload certificate for emailSubdomain + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UploadEmailSubdomainCertificate API. + */ + UploadEmailSubdomainCertificateResponse uploadEmailSubdomainCertificate( + UploadEmailSubdomainCertificateRequest request); + + /** + * Upload Vanity Domain certificate + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UploadVanityDomainCertificate API. + */ + UploadVanityDomainCertificateResponse uploadVanityDomainCertificate( + UploadVanityDomainCertificateRequest request); + + /** + * Validate and configure certificate for emailSubdomain + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateAndConfigureEmailSubdomainCertificate API. + */ + ValidateAndConfigureEmailSubdomainCertificateResponse + validateAndConfigureEmailSubdomainCertificate( + ValidateAndConfigureEmailSubdomainCertificateRequest request); + + /** + * Validate and configure DNS records for emailSubdomain + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateAndConfigureEmailSubdomainDns API. + */ + ValidateAndConfigureEmailSubdomainDnsResponse validateAndConfigureEmailSubdomainDns( + ValidateAndConfigureEmailSubdomainDnsRequest request); + + /** + * Validate and configure DNS records for microsite + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateAndConfigureMicrositeDns API. + */ + ValidateAndConfigureMicrositeDnsResponse validateAndConfigureMicrositeDns( + ValidateAndConfigureMicrositeDnsRequest request); + /** * Verify whether a service instance can be attached to the fusion pod * 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 85d8ff117d5..b0d3dc99b77 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 @@ -115,6 +115,22 @@ java.util.concurrent.Future createDataMasking CreateDataMaskingActivityRequest, CreateDataMaskingActivityResponse> handler); + /** + * Creates an email Subdomain for a brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createEmailSubdomain( + CreateEmailSubdomainRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateEmailSubdomainRequest, CreateEmailSubdomainResponse> + handler); + /** * Creates a new FusionEnvironment. * @@ -169,6 +185,37 @@ java.util.concurrent.Future createFusionEnviron CreateFusionEnvironmentFamilyResponse> handler); + /** + * Creates a marketing brand for 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 createMarketingBrand( + CreateMarketingBrandRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateMarketingBrandRequest, CreateMarketingBrandResponse> + handler); + + /** + * Creates a microsite for brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createMicrosite( + CreateMicrositeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Creates a new RefreshActivity. * @@ -203,6 +250,56 @@ java.util.concurrent.Future createServiceAttach CreateServiceAttachmentRequest, CreateServiceAttachmentResponse> handler); + /** + * Create a VanityDomain + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createVanityDomain( + CreateVanityDomainRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainRequest, CreateVanityDomainResponse> + handler); + + /** + * Create a VanityDomainActivity + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createVanityDomainActivity( + CreateVanityDomainActivityRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainActivityRequest, CreateVanityDomainActivityResponse> + handler); + + /** + * Delete an email subdomain for a brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteEmailSubdomain( + DeleteEmailSubdomainRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteEmailSubdomainRequest, DeleteEmailSubdomainResponse> + handler); + /** * Deletes the Fusion environment identified by it's OCID. * @@ -255,6 +352,37 @@ java.util.concurrent.Future deleteFusionEnviron DeleteFusionEnvironmentFamilyResponse> handler); + /** + * Deletes a Marketing brand for 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 deleteMarketingBrand( + DeleteMarketingBrandRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteMarketingBrandRequest, DeleteMarketingBrandResponse> + handler); + + /** + * Delete microsite for a brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteMicrosite( + DeleteMicrositeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Deletes a scheduled RefreshActivity resource by identifier * @@ -287,6 +415,23 @@ java.util.concurrent.Future deleteServiceAttach DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse> handler); + /** + * Deletes a VanityDomainActivity + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteVanityDomainActivity( + DeleteVanityDomainActivityRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteVanityDomainActivityRequest, DeleteVanityDomainActivityResponse> + handler); + /** * Begin the process of showing the details about where to retrieve data extract for a Fusion environment. * @@ -320,6 +465,54 @@ java.util.concurrent.Future getDataMaskingActivi GetDataMaskingActivityRequest, GetDataMaskingActivityResponse> handler); + /** + * Gets an email subdomain for the brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getEmailSubdomain( + GetEmailSubdomainRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainRequest, GetEmailSubdomainResponse> + handler); + + /** + * Gets a CSR for email subdomain for a brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getEmailSubdomainCsr( + GetEmailSubdomainCsrRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainCsrRequest, GetEmailSubdomainCsrResponse> + handler); + + /** + * Get all DNS records for emailSubdomain + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getEmailSubdomainDnsConfig( + GetEmailSubdomainDnsConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainDnsConfigRequest, GetEmailSubdomainDnsConfigResponse> + handler); + /** * Gets a FusionEnvironment by identifier * @@ -404,6 +597,53 @@ java.util.concurrent.Future getFusionEnviron GetFusionEnvironmentStatusRequest, GetFusionEnvironmentStatusResponse> handler); + /** + * Gets a Marketing Brand by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getMarketingBrand( + GetMarketingBrandRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMarketingBrandRequest, GetMarketingBrandResponse> + handler); + + /** + * Get the microsite for the brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getMicrosite( + GetMicrositeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Get DNS records for microsite + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getMicrositeDnsConfig( + GetMicrositeDnsConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMicrositeDnsConfigRequest, GetMicrositeDnsConfigResponse> + handler); + /** * Gets a RefreshActivity by identifier * @@ -452,6 +692,39 @@ java.util.concurrent.Future getServiceAttachment( GetServiceAttachmentRequest, GetServiceAttachmentResponse> handler); + /** + * Gets a VanityDomain + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getVanityDomain( + GetVanityDomainRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a VanityDomainActivity + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getVanityDomainActivity( + GetVanityDomainActivityRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + handler); + /** * Gets the status of the work request with the given ID. * @@ -515,6 +788,22 @@ java.util.concurrent.Future listDataMaskingAc ListDataMaskingActivitiesRequest, ListDataMaskingActivitiesResponse> handler); + /** + * Returns a list of email subdomains for a brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listEmailSubdomains( + ListEmailSubdomainsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse> + handler); + /** * Returns a list of FusionEnvironmentFamilies. * @@ -551,6 +840,37 @@ java.util.concurrent.Future listFusionEnvironmen ListFusionEnvironmentsRequest, ListFusionEnvironmentsResponse> handler); + /** + * Returns a list of marketing brands + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listMarketingBrands( + ListMarketingBrandsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMarketingBrandsRequest, ListMarketingBrandsResponse> + handler); + + /** + * Returns a list of microsites + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listMicrosites( + ListMicrositesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Returns a list of RefreshActivities. * @@ -620,6 +940,23 @@ java.util.concurrent.Future listServiceAttachmen ListTimeAvailableForRefreshesResponse> handler); + /** + * Lists all VanityDomains. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listVanityDomains( + ListVanityDomainsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListVanityDomainsRequest, ListVanityDomainsResponse> + handler); + /** * Return a (paginated) list of errors for a given work request. * @@ -670,6 +1007,22 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Request Email Subdomain CSR + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future requestEmailSubdomainCsr( + RequestEmailSubdomainCsrRequest request, + com.oracle.bmc.responses.AsyncHandler< + RequestEmailSubdomainCsrRequest, RequestEmailSubdomainCsrResponse> + handler); + /** * Reset FusionEnvironment admin password. This API will be deprecated on Mon, 15 Jan 2024 01:00:00 GMT. Users can reset password themselves, FAaaS will no longer provide an API for this. * @@ -688,6 +1041,40 @@ java.util.concurrent.Future listWorkRequests( ResetFusionEnvironmentPasswordResponse> handler); + /** + * Submit Vanity Domain Validation + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future submitVanityDomainValidation( + SubmitVanityDomainValidationRequest request, + com.oracle.bmc.responses.AsyncHandler< + SubmitVanityDomainValidationRequest, + SubmitVanityDomainValidationResponse> + handler); + + /** + * Updates an email subdomain + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateEmailSubdomain( + UpdateEmailSubdomainRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateEmailSubdomainRequest, UpdateEmailSubdomainResponse> + handler); + /** * Updates the FusionEnvironment * @@ -722,6 +1109,37 @@ java.util.concurrent.Future updateFusionEnviron UpdateFusionEnvironmentFamilyResponse> handler); + /** + * Updates a Marketing Brand + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateMarketingBrand( + UpdateMarketingBrandRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateMarketingBrandRequest, UpdateMarketingBrandResponse> + handler); + + /** + * Updates an microsite + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateMicrosite( + UpdateMicrositeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Updates a scheduled RefreshActivity. * @@ -739,6 +1157,131 @@ java.util.concurrent.Future updateRefreshActivity UpdateRefreshActivityRequest, UpdateRefreshActivityResponse> handler); + /** + * Updates a VanityDomain + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateVanityDomain( + UpdateVanityDomainRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainRequest, UpdateVanityDomainResponse> + handler); + + /** + * Updates a VanityDomainActivity + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateVanityDomainActivity( + UpdateVanityDomainActivityRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainActivityRequest, UpdateVanityDomainActivityResponse> + handler); + + /** + * upload certificate for emailSubdomain + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + uploadEmailSubdomainCertificate( + UploadEmailSubdomainCertificateRequest request, + com.oracle.bmc.responses.AsyncHandler< + UploadEmailSubdomainCertificateRequest, + UploadEmailSubdomainCertificateResponse> + handler); + + /** + * Upload Vanity Domain certificate + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + uploadVanityDomainCertificate( + UploadVanityDomainCertificateRequest request, + com.oracle.bmc.responses.AsyncHandler< + UploadVanityDomainCertificateRequest, + UploadVanityDomainCertificateResponse> + handler); + + /** + * Validate and configure certificate for emailSubdomain + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + validateAndConfigureEmailSubdomainCertificate( + ValidateAndConfigureEmailSubdomainCertificateRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainCertificateRequest, + ValidateAndConfigureEmailSubdomainCertificateResponse> + handler); + + /** + * Validate and configure DNS records for emailSubdomain + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + validateAndConfigureEmailSubdomainDns( + ValidateAndConfigureEmailSubdomainDnsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainDnsRequest, + ValidateAndConfigureEmailSubdomainDnsResponse> + handler); + + /** + * Validate and configure DNS records for microsite + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + validateAndConfigureMicrositeDns( + ValidateAndConfigureMicrositeDnsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureMicrositeDnsRequest, + ValidateAndConfigureMicrositeDnsResponse> + handler); + /** * Verify whether a service instance can be attached to the fusion pod * 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 db74617cbd0..5601bfe432c 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 @@ -646,6 +646,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createEmailSubdomain( + CreateEmailSubdomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateEmailSubdomainRequest, CreateEmailSubdomainResponse> + handler) { + LOG.trace("Called async createEmailSubdomain"); + final CreateEmailSubdomainRequest interceptedRequest = + CreateEmailSubdomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateEmailSubdomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "CreateEmailSubdomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/CreateEmailSubdomain"); + final java.util.function.Function + transformer = + CreateEmailSubdomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateEmailSubdomainRequest, CreateEmailSubdomainResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateEmailSubdomainRequest, CreateEmailSubdomainResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateEmailSubdomainDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateEmailSubdomainRequest, CreateEmailSubdomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createFusionEnvironment( CreateFusionEnvironmentRequest request, @@ -816,6 +869,111 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createMarketingBrand( + CreateMarketingBrandRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateMarketingBrandRequest, CreateMarketingBrandResponse> + handler) { + LOG.trace("Called async createMarketingBrand"); + final CreateMarketingBrandRequest interceptedRequest = + CreateMarketingBrandConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateMarketingBrandConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "CreateMarketingBrand", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/CreateMarketingBrand"); + final java.util.function.Function + transformer = + CreateMarketingBrandConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateMarketingBrandRequest, CreateMarketingBrandResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateMarketingBrandRequest, CreateMarketingBrandResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateMarketingBrandDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateMarketingBrandRequest, CreateMarketingBrandResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createMicrosite( + CreateMicrositeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateMicrositeRequest, CreateMicrositeResponse> + handler) { + LOG.trace("Called async createMicrosite"); + final CreateMicrositeRequest interceptedRequest = + CreateMicrositeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateMicrositeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "CreateMicrosite", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/CreateMicrosite"); + final java.util.function.Function + transformer = + CreateMicrositeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateMicrositeRequest, CreateMicrositeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateMicrositeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateMicrositeRequest, CreateMicrositeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createRefreshActivity( CreateRefreshActivityRequest request, @@ -923,6 +1081,162 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createVanityDomain( + CreateVanityDomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainRequest, CreateVanityDomainResponse> + handler) { + LOG.trace("Called async createVanityDomain"); + final CreateVanityDomainRequest interceptedRequest = + CreateVanityDomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVanityDomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "CreateVanityDomain", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + CreateVanityDomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainRequest, CreateVanityDomainResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateVanityDomainDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateVanityDomainRequest, CreateVanityDomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createVanityDomainActivity( + CreateVanityDomainActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainActivityRequest, + CreateVanityDomainActivityResponse> + handler) { + LOG.trace("Called async createVanityDomainActivity"); + final CreateVanityDomainActivityRequest interceptedRequest = + CreateVanityDomainActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVanityDomainActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "CreateVanityDomainActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/CreateVanityDomainActivity"); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateVanityDomainActivityResponse> + transformer = + CreateVanityDomainActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainActivityRequest, CreateVanityDomainActivityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateVanityDomainActivityRequest, + CreateVanityDomainActivityResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateVanityDomainActivityDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateVanityDomainActivityRequest, CreateVanityDomainActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteEmailSubdomain( + DeleteEmailSubdomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteEmailSubdomainRequest, DeleteEmailSubdomainResponse> + handler) { + LOG.trace("Called async deleteEmailSubdomain"); + final DeleteEmailSubdomainRequest interceptedRequest = + DeleteEmailSubdomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteEmailSubdomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "DeleteEmailSubdomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/DeleteEmailSubdomain"); + final java.util.function.Function + transformer = + DeleteEmailSubdomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteEmailSubdomainRequest, DeleteEmailSubdomainResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteEmailSubdomainRequest, DeleteEmailSubdomainResponse>, + 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< + DeleteEmailSubdomainRequest, DeleteEmailSubdomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteFusionEnvironment( DeleteFusionEnvironmentRequest request, @@ -1076,40 +1390,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future deleteRefreshActivity( - DeleteRefreshActivityRequest request, + public java.util.concurrent.Future deleteMarketingBrand( + DeleteMarketingBrandRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteRefreshActivityRequest, DeleteRefreshActivityResponse> + DeleteMarketingBrandRequest, DeleteMarketingBrandResponse> handler) { - LOG.trace("Called async deleteRefreshActivity"); - final DeleteRefreshActivityRequest interceptedRequest = - DeleteRefreshActivityConverter.interceptRequest(request); + LOG.trace("Called async deleteMarketingBrand"); + final DeleteMarketingBrandRequest interceptedRequest = + DeleteMarketingBrandConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteRefreshActivityConverter.fromRequest(client, interceptedRequest); + DeleteMarketingBrandConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "DeleteRefreshActivity", + "DeleteMarketingBrand", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/DeleteRefreshActivity"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/DeleteMarketingBrand"); + final java.util.function.Function transformer = - DeleteRefreshActivityConverter.fromResponse( + DeleteMarketingBrandConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - DeleteRefreshActivityRequest, DeleteRefreshActivityResponse> + DeleteMarketingBrandRequest, DeleteMarketingBrandResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteRefreshActivityRequest, DeleteRefreshActivityResponse>, - java.util.concurrent.Future> + DeleteMarketingBrandRequest, DeleteMarketingBrandResponse>, + 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< - DeleteRefreshActivityRequest, DeleteRefreshActivityResponse>( + DeleteMarketingBrandRequest, DeleteMarketingBrandResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1123,41 +1437,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future deleteServiceAttachment( - DeleteServiceAttachmentRequest request, + public java.util.concurrent.Future deleteMicrosite( + DeleteMicrositeRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse> + DeleteMicrositeRequest, DeleteMicrositeResponse> handler) { - LOG.trace("Called async deleteServiceAttachment"); - final DeleteServiceAttachmentRequest interceptedRequest = - DeleteServiceAttachmentConverter.interceptRequest(request); + LOG.trace("Called async deleteMicrosite"); + final DeleteMicrositeRequest interceptedRequest = + DeleteMicrositeConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteServiceAttachmentConverter.fromRequest(client, interceptedRequest); + DeleteMicrositeConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "DeleteServiceAttachment", + "DeleteMicrosite", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/DeleteServiceAttachment"); - final java.util.function.Function< - javax.ws.rs.core.Response, DeleteServiceAttachmentResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/DeleteMicrosite"); + final java.util.function.Function transformer = - DeleteServiceAttachmentConverter.fromResponse( + DeleteMicrositeConverter.fromResponse( java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse> + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse>, - java.util.concurrent.Future> + DeleteMicrositeRequest, DeleteMicrositeResponse>, + 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< - DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse>( + DeleteMicrositeRequest, DeleteMicrositeResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1171,13 +1483,159 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future generateExtractDetails( - GenerateExtractDetailsRequest request, + public java.util.concurrent.Future deleteRefreshActivity( + DeleteRefreshActivityRequest request, final com.oracle.bmc.responses.AsyncHandler< - GenerateExtractDetailsRequest, GenerateExtractDetailsResponse> + DeleteRefreshActivityRequest, DeleteRefreshActivityResponse> handler) { - LOG.trace("Called async generateExtractDetails"); - final GenerateExtractDetailsRequest interceptedRequest = + LOG.trace("Called async deleteRefreshActivity"); + final DeleteRefreshActivityRequest interceptedRequest = + DeleteRefreshActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteRefreshActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "DeleteRefreshActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/DeleteRefreshActivity"); + final java.util.function.Function + transformer = + DeleteRefreshActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteRefreshActivityRequest, DeleteRefreshActivityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteRefreshActivityRequest, DeleteRefreshActivityResponse>, + 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< + DeleteRefreshActivityRequest, DeleteRefreshActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteServiceAttachment( + DeleteServiceAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse> + handler) { + LOG.trace("Called async deleteServiceAttachment"); + final DeleteServiceAttachmentRequest interceptedRequest = + DeleteServiceAttachmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteServiceAttachmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "DeleteServiceAttachment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/DeleteServiceAttachment"); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteServiceAttachmentResponse> + transformer = + DeleteServiceAttachmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse>, + 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< + DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteVanityDomainActivity( + DeleteVanityDomainActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVanityDomainActivityRequest, + DeleteVanityDomainActivityResponse> + handler) { + LOG.trace("Called async deleteVanityDomainActivity"); + final DeleteVanityDomainActivityRequest interceptedRequest = + DeleteVanityDomainActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVanityDomainActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "DeleteVanityDomainActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/DeleteVanityDomainActivity"); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteVanityDomainActivityResponse> + transformer = + DeleteVanityDomainActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteVanityDomainActivityRequest, DeleteVanityDomainActivityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteVanityDomainActivityRequest, + DeleteVanityDomainActivityResponse>, + 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< + DeleteVanityDomainActivityRequest, DeleteVanityDomainActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @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); @@ -1264,6 +1722,150 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getEmailSubdomain( + GetEmailSubdomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainRequest, GetEmailSubdomainResponse> + handler) { + LOG.trace("Called async getEmailSubdomain"); + final GetEmailSubdomainRequest interceptedRequest = + GetEmailSubdomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEmailSubdomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetEmailSubdomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/GetEmailSubdomain"); + final java.util.function.Function + transformer = + GetEmailSubdomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainRequest, GetEmailSubdomainResponse>, + 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< + GetEmailSubdomainRequest, GetEmailSubdomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getEmailSubdomainCsr( + GetEmailSubdomainCsrRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainCsrRequest, GetEmailSubdomainCsrResponse> + handler) { + LOG.trace("Called async getEmailSubdomainCsr"); + final GetEmailSubdomainCsrRequest interceptedRequest = + GetEmailSubdomainCsrConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEmailSubdomainCsrConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetEmailSubdomainCsr", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/GetEmailSubdomainCsr"); + final java.util.function.Function + transformer = + GetEmailSubdomainCsrConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainCsrRequest, GetEmailSubdomainCsrResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainCsrRequest, GetEmailSubdomainCsrResponse>, + 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< + GetEmailSubdomainCsrRequest, GetEmailSubdomainCsrResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getEmailSubdomainDnsConfig( + GetEmailSubdomainDnsConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainDnsConfigRequest, + GetEmailSubdomainDnsConfigResponse> + handler) { + LOG.trace("Called async getEmailSubdomainDnsConfig"); + final GetEmailSubdomainDnsConfigRequest interceptedRequest = + GetEmailSubdomainDnsConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEmailSubdomainDnsConfigConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetEmailSubdomainDnsConfig", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/GetEmailSubdomainDnsConfig"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetEmailSubdomainDnsConfigResponse> + transformer = + GetEmailSubdomainDnsConfigConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainDnsConfigRequest, GetEmailSubdomainDnsConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetEmailSubdomainDnsConfigRequest, + GetEmailSubdomainDnsConfigResponse>, + 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< + GetEmailSubdomainDnsConfigRequest, GetEmailSubdomainDnsConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getFusionEnvironment( GetFusionEnvironmentRequest request, @@ -1525,39 +2127,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getRefreshActivity( - GetRefreshActivityRequest request, + public java.util.concurrent.Future getMarketingBrand( + GetMarketingBrandRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetRefreshActivityRequest, GetRefreshActivityResponse> + GetMarketingBrandRequest, GetMarketingBrandResponse> handler) { - LOG.trace("Called async getRefreshActivity"); - final GetRefreshActivityRequest interceptedRequest = - GetRefreshActivityConverter.interceptRequest(request); + LOG.trace("Called async getMarketingBrand"); + final GetMarketingBrandRequest interceptedRequest = + GetMarketingBrandConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetRefreshActivityConverter.fromRequest(client, interceptedRequest); + GetMarketingBrandConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetRefreshActivity", + "GetMarketingBrand", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/GetRefreshActivity"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/GetMarketingBrand"); + final java.util.function.Function transformer = - GetRefreshActivityConverter.fromResponse( + GetMarketingBrandConverter.fromResponse( java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetRefreshActivityRequest, GetRefreshActivityResponse>, - java.util.concurrent.Future> + GetMarketingBrandRequest, GetMarketingBrandResponse>, + 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< - GetRefreshActivityRequest, GetRefreshActivityResponse>( + GetMarketingBrandRequest, GetMarketingBrandResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1571,28 +2173,165 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getScheduledActivity( - GetScheduledActivityRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetScheduledActivityRequest, GetScheduledActivityResponse> + public java.util.concurrent.Future getMicrosite( + GetMicrositeRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { - LOG.trace("Called async getScheduledActivity"); - final GetScheduledActivityRequest interceptedRequest = - GetScheduledActivityConverter.interceptRequest(request); + LOG.trace("Called async getMicrosite"); + final GetMicrositeRequest interceptedRequest = + GetMicrositeConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetScheduledActivityConverter.fromRequest(client, interceptedRequest); + GetMicrositeConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetScheduledActivity", + "GetMicrosite", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/GetScheduledActivity"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/GetMicrosite"); + final java.util.function.Function transformer = - GetScheduledActivityConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetScheduledActivityRequest, GetScheduledActivityResponse> + GetMicrositeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetMicrositeRequest, GetMicrositeResponse>, + 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< + GetMicrositeRequest, GetMicrositeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getMicrositeDnsConfig( + GetMicrositeDnsConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMicrositeDnsConfigRequest, GetMicrositeDnsConfigResponse> + handler) { + LOG.trace("Called async getMicrositeDnsConfig"); + final GetMicrositeDnsConfigRequest interceptedRequest = + GetMicrositeDnsConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMicrositeDnsConfigConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetMicrositeDnsConfig", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/GetMicrositeDnsConfig"); + final java.util.function.Function + transformer = + GetMicrositeDnsConfigConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetMicrositeDnsConfigRequest, GetMicrositeDnsConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetMicrositeDnsConfigRequest, GetMicrositeDnsConfigResponse>, + 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< + GetMicrositeDnsConfigRequest, GetMicrositeDnsConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getRefreshActivity( + GetRefreshActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetRefreshActivityRequest, GetRefreshActivityResponse> + handler) { + LOG.trace("Called async getRefreshActivity"); + final GetRefreshActivityRequest interceptedRequest = + GetRefreshActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRefreshActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetRefreshActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/GetRefreshActivity"); + final java.util.function.Function + transformer = + GetRefreshActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetRefreshActivityRequest, GetRefreshActivityResponse>, + 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< + GetRefreshActivityRequest, GetRefreshActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getScheduledActivity( + GetScheduledActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetScheduledActivityRequest, GetScheduledActivityResponse> + handler) { + LOG.trace("Called async getScheduledActivity"); + final GetScheduledActivityRequest interceptedRequest = + GetScheduledActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetScheduledActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetScheduledActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/GetScheduledActivity"); + final java.util.function.Function + transformer = + GetScheduledActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetScheduledActivityRequest, GetScheduledActivityResponse> handlerToUse = handler; java.util.function.Function< @@ -1664,6 +2403,100 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getVanityDomain( + GetVanityDomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetVanityDomainRequest, GetVanityDomainResponse> + handler) { + LOG.trace("Called async getVanityDomain"); + final GetVanityDomainRequest interceptedRequest = + GetVanityDomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVanityDomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetVanityDomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/GetVanityDomain"); + final java.util.function.Function + transformer = + GetVanityDomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetVanityDomainRequest, GetVanityDomainResponse>, + 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< + GetVanityDomainRequest, GetVanityDomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getVanityDomainActivity( + GetVanityDomainActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + handler) { + LOG.trace("Called async getVanityDomainActivity"); + final GetVanityDomainActivityRequest interceptedRequest = + GetVanityDomainActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVanityDomainActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetVanityDomainActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/GetVanityDomainActivity"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetVanityDomainActivityResponse> + transformer = + GetVanityDomainActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse>, + 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< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -1849,6 +2682,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listEmailSubdomains( + ListEmailSubdomainsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse> + handler) { + LOG.trace("Called async listEmailSubdomains"); + final ListEmailSubdomainsRequest interceptedRequest = + ListEmailSubdomainsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEmailSubdomainsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ListEmailSubdomains", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/ListEmailSubdomains"); + final java.util.function.Function + transformer = + ListEmailSubdomainsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse>, + 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< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listFusionEnvironmentFamilies( @@ -1948,40 +2828,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listRefreshActivities( - ListRefreshActivitiesRequest request, + public java.util.concurrent.Future listMarketingBrands( + ListMarketingBrandsRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListRefreshActivitiesRequest, ListRefreshActivitiesResponse> + ListMarketingBrandsRequest, ListMarketingBrandsResponse> handler) { - LOG.trace("Called async listRefreshActivities"); - final ListRefreshActivitiesRequest interceptedRequest = - ListRefreshActivitiesConverter.interceptRequest(request); + LOG.trace("Called async listMarketingBrands"); + final ListMarketingBrandsRequest interceptedRequest = + ListMarketingBrandsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListRefreshActivitiesConverter.fromRequest(client, interceptedRequest); + ListMarketingBrandsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListRefreshActivities", + "ListMarketingBrands", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/ListRefreshActivities"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/ListMarketingBrands"); + final java.util.function.Function transformer = - ListRefreshActivitiesConverter.fromResponse( + ListMarketingBrandsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListRefreshActivitiesRequest, ListRefreshActivitiesResponse> + ListMarketingBrandsRequest, ListMarketingBrandsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListRefreshActivitiesRequest, ListRefreshActivitiesResponse>, - java.util.concurrent.Future> + ListMarketingBrandsRequest, ListMarketingBrandsResponse>, + 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< - ListRefreshActivitiesRequest, ListRefreshActivitiesResponse>( + ListMarketingBrandsRequest, ListMarketingBrandsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1995,41 +2875,38 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listScheduledActivities( - ListScheduledActivitiesRequest request, + public java.util.concurrent.Future listMicrosites( + ListMicrositesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListScheduledActivitiesRequest, ListScheduledActivitiesResponse> + ListMicrositesRequest, ListMicrositesResponse> handler) { - LOG.trace("Called async listScheduledActivities"); - final ListScheduledActivitiesRequest interceptedRequest = - ListScheduledActivitiesConverter.interceptRequest(request); + LOG.trace("Called async listMicrosites"); + final ListMicrositesRequest interceptedRequest = + ListMicrositesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListScheduledActivitiesConverter.fromRequest(client, interceptedRequest); + ListMicrositesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListScheduledActivities", + "ListMicrosites", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/ListScheduledActivities"); - final java.util.function.Function< - javax.ws.rs.core.Response, ListScheduledActivitiesResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/ListMicrosites"); + final java.util.function.Function transformer = - ListScheduledActivitiesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListScheduledActivitiesRequest, ListScheduledActivitiesResponse> + ListMicrositesConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListScheduledActivitiesRequest, ListScheduledActivitiesResponse>, - java.util.concurrent.Future> + ListMicrositesRequest, ListMicrositesResponse>, + 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< - ListScheduledActivitiesRequest, ListScheduledActivitiesResponse>( + ListMicrositesRequest, ListMicrositesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2043,10 +2920,105 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listServiceAttachments( - ListServiceAttachmentsRequest request, + public java.util.concurrent.Future listRefreshActivities( + ListRefreshActivitiesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListServiceAttachmentsRequest, ListServiceAttachmentsResponse> + ListRefreshActivitiesRequest, ListRefreshActivitiesResponse> + handler) { + LOG.trace("Called async listRefreshActivities"); + final ListRefreshActivitiesRequest interceptedRequest = + ListRefreshActivitiesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRefreshActivitiesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ListRefreshActivities", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/ListRefreshActivities"); + final java.util.function.Function + transformer = + ListRefreshActivitiesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListRefreshActivitiesRequest, ListRefreshActivitiesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListRefreshActivitiesRequest, ListRefreshActivitiesResponse>, + 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< + ListRefreshActivitiesRequest, ListRefreshActivitiesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listScheduledActivities( + ListScheduledActivitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListScheduledActivitiesRequest, ListScheduledActivitiesResponse> + handler) { + LOG.trace("Called async listScheduledActivities"); + final ListScheduledActivitiesRequest interceptedRequest = + ListScheduledActivitiesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListScheduledActivitiesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ListScheduledActivities", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/ListScheduledActivities"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListScheduledActivitiesResponse> + transformer = + ListScheduledActivitiesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListScheduledActivitiesRequest, ListScheduledActivitiesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListScheduledActivitiesRequest, ListScheduledActivitiesResponse>, + 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< + ListScheduledActivitiesRequest, ListScheduledActivitiesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listServiceAttachments( + ListServiceAttachmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListServiceAttachmentsRequest, ListServiceAttachmentsResponse> handler) { LOG.trace("Called async listServiceAttachments"); final ListServiceAttachmentsRequest interceptedRequest = @@ -2140,6 +3112,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listVanityDomains( + ListVanityDomainsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVanityDomainsRequest, ListVanityDomainsResponse> + handler) { + LOG.trace("Called async listVanityDomains"); + final ListVanityDomainsRequest interceptedRequest = + ListVanityDomainsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListVanityDomainsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ListVanityDomains", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/ListVanityDomains"); + final java.util.function.Function + transformer = + ListVanityDomainsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListVanityDomainsRequest, ListVanityDomainsResponse>, + 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< + ListVanityDomainsRequest, ListVanityDomainsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, @@ -2280,6 +3298,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future requestEmailSubdomainCsr( + RequestEmailSubdomainCsrRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RequestEmailSubdomainCsrRequest, RequestEmailSubdomainCsrResponse> + handler) { + LOG.trace("Called async requestEmailSubdomainCsr"); + final RequestEmailSubdomainCsrRequest interceptedRequest = + RequestEmailSubdomainCsrConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RequestEmailSubdomainCsrConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "RequestEmailSubdomainCsr", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/RequestEmailSubdomainCsr"); + final java.util.function.Function< + javax.ws.rs.core.Response, RequestEmailSubdomainCsrResponse> + transformer = + RequestEmailSubdomainCsrConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RequestEmailSubdomainCsrRequest, RequestEmailSubdomainCsrResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RequestEmailSubdomainCsrRequest, RequestEmailSubdomainCsrResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRequestEmailSubdomainCsrDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RequestEmailSubdomainCsrRequest, RequestEmailSubdomainCsrResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future resetFusionEnvironmentPassword( @@ -2338,6 +3409,109 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + submitVanityDomainValidation( + SubmitVanityDomainValidationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SubmitVanityDomainValidationRequest, + SubmitVanityDomainValidationResponse> + handler) { + LOG.trace("Called async submitVanityDomainValidation"); + final SubmitVanityDomainValidationRequest interceptedRequest = + SubmitVanityDomainValidationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SubmitVanityDomainValidationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "SubmitVanityDomainValidation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/SubmitVanityDomainValidation"); + final java.util.function.Function< + javax.ws.rs.core.Response, SubmitVanityDomainValidationResponse> + transformer = + SubmitVanityDomainValidationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + SubmitVanityDomainValidationRequest, SubmitVanityDomainValidationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + SubmitVanityDomainValidationRequest, + SubmitVanityDomainValidationResponse>, + 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< + SubmitVanityDomainValidationRequest, SubmitVanityDomainValidationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateEmailSubdomain( + UpdateEmailSubdomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateEmailSubdomainRequest, UpdateEmailSubdomainResponse> + handler) { + LOG.trace("Called async updateEmailSubdomain"); + final UpdateEmailSubdomainRequest interceptedRequest = + UpdateEmailSubdomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateEmailSubdomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UpdateEmailSubdomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/UpdateEmailSubdomain"); + final java.util.function.Function + transformer = + UpdateEmailSubdomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateEmailSubdomainRequest, UpdateEmailSubdomainResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateEmailSubdomainRequest, UpdateEmailSubdomainResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateEmailSubdomainDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateEmailSubdomainRequest, UpdateEmailSubdomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateFusionEnvironment( UpdateFusionEnvironmentRequest request, @@ -2448,45 +3622,532 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future updateRefreshActivity( - UpdateRefreshActivityRequest request, + public java.util.concurrent.Future updateMarketingBrand( + UpdateMarketingBrandRequest request, final com.oracle.bmc.responses.AsyncHandler< - UpdateRefreshActivityRequest, UpdateRefreshActivityResponse> + UpdateMarketingBrandRequest, UpdateMarketingBrandResponse> handler) { - LOG.trace("Called async updateRefreshActivity"); - final UpdateRefreshActivityRequest interceptedRequest = - UpdateRefreshActivityConverter.interceptRequest(request); + LOG.trace("Called async updateMarketingBrand"); + final UpdateMarketingBrandRequest interceptedRequest = + UpdateMarketingBrandConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateRefreshActivityConverter.fromRequest(client, interceptedRequest); + UpdateMarketingBrandConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "UpdateRefreshActivity", + "UpdateMarketingBrand", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/UpdateRefreshActivityDetails/UpdateRefreshActivity"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/UpdateMarketingBrand"); + final java.util.function.Function transformer = - UpdateRefreshActivityConverter.fromResponse( + UpdateMarketingBrandConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - UpdateRefreshActivityRequest, UpdateRefreshActivityResponse> + UpdateMarketingBrandRequest, UpdateMarketingBrandResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - UpdateRefreshActivityRequest, UpdateRefreshActivityResponse>, - java.util.concurrent.Future> + UpdateMarketingBrandRequest, UpdateMarketingBrandResponse>, + java.util.concurrent.Future> futureSupplier = client.putFutureSupplier( interceptedRequest, - interceptedRequest.getUpdateRefreshActivityDetails(), + interceptedRequest.getUpdateMarketingBrandDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateRefreshActivityRequest, UpdateRefreshActivityResponse>( + UpdateMarketingBrandRequest, UpdateMarketingBrandResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateMicrosite( + UpdateMicrositeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateMicrositeRequest, UpdateMicrositeResponse> + handler) { + LOG.trace("Called async updateMicrosite"); + final UpdateMicrositeRequest interceptedRequest = + UpdateMicrositeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateMicrositeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UpdateMicrosite", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/UpdateMicrosite"); + final java.util.function.Function + transformer = + UpdateMicrositeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateMicrositeRequest, UpdateMicrositeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateMicrositeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateMicrositeRequest, UpdateMicrositeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateRefreshActivity( + UpdateRefreshActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateRefreshActivityRequest, UpdateRefreshActivityResponse> + handler) { + LOG.trace("Called async updateRefreshActivity"); + final UpdateRefreshActivityRequest interceptedRequest = + UpdateRefreshActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRefreshActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UpdateRefreshActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/UpdateRefreshActivityDetails/UpdateRefreshActivity"); + final java.util.function.Function + transformer = + UpdateRefreshActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateRefreshActivityRequest, UpdateRefreshActivityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateRefreshActivityRequest, UpdateRefreshActivityResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateRefreshActivityDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateRefreshActivityRequest, UpdateRefreshActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateVanityDomain( + UpdateVanityDomainRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainRequest, UpdateVanityDomainResponse> + handler) { + LOG.trace("Called async updateVanityDomain"); + final UpdateVanityDomainRequest interceptedRequest = + UpdateVanityDomainConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateVanityDomainConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UpdateVanityDomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/UpdateVanityDomain"); + final java.util.function.Function + transformer = + UpdateVanityDomainConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainRequest, UpdateVanityDomainResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateVanityDomainDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateVanityDomainRequest, UpdateVanityDomainResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateVanityDomainActivity( + UpdateVanityDomainActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainActivityRequest, + UpdateVanityDomainActivityResponse> + handler) { + LOG.trace("Called async updateVanityDomainActivity"); + final UpdateVanityDomainActivityRequest interceptedRequest = + UpdateVanityDomainActivityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateVanityDomainActivityConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UpdateVanityDomainActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/UpdateVanityDomainActivity"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateVanityDomainActivityResponse> + transformer = + UpdateVanityDomainActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainActivityRequest, UpdateVanityDomainActivityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateVanityDomainActivityRequest, + UpdateVanityDomainActivityResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateVanityDomainActivityDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateVanityDomainActivityRequest, UpdateVanityDomainActivityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + uploadEmailSubdomainCertificate( + UploadEmailSubdomainCertificateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UploadEmailSubdomainCertificateRequest, + UploadEmailSubdomainCertificateResponse> + handler) { + LOG.trace("Called async uploadEmailSubdomainCertificate"); + final UploadEmailSubdomainCertificateRequest interceptedRequest = + UploadEmailSubdomainCertificateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UploadEmailSubdomainCertificateConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UploadEmailSubdomainCertificate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/UploadEmailSubdomainCertificate"); + final java.util.function.Function< + javax.ws.rs.core.Response, UploadEmailSubdomainCertificateResponse> + transformer = + UploadEmailSubdomainCertificateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UploadEmailSubdomainCertificateRequest, + UploadEmailSubdomainCertificateResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UploadEmailSubdomainCertificateRequest, + UploadEmailSubdomainCertificateResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getUploadEmailSubdomainCertificateDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UploadEmailSubdomainCertificateRequest, + UploadEmailSubdomainCertificateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + uploadVanityDomainCertificate( + UploadVanityDomainCertificateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UploadVanityDomainCertificateRequest, + UploadVanityDomainCertificateResponse> + handler) { + LOG.trace("Called async uploadVanityDomainCertificate"); + final UploadVanityDomainCertificateRequest interceptedRequest = + UploadVanityDomainCertificateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UploadVanityDomainCertificateConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "UploadVanityDomainCertificate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/UploadVanityDomainCertificate"); + final java.util.function.Function< + javax.ws.rs.core.Response, UploadVanityDomainCertificateResponse> + transformer = + UploadVanityDomainCertificateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UploadVanityDomainCertificateRequest, UploadVanityDomainCertificateResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UploadVanityDomainCertificateRequest, + UploadVanityDomainCertificateResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getUploadVanityDomainCertificateDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UploadVanityDomainCertificateRequest, UploadVanityDomainCertificateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + validateAndConfigureEmailSubdomainCertificate( + ValidateAndConfigureEmailSubdomainCertificateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainCertificateRequest, + ValidateAndConfigureEmailSubdomainCertificateResponse> + handler) { + LOG.trace("Called async validateAndConfigureEmailSubdomainCertificate"); + final ValidateAndConfigureEmailSubdomainCertificateRequest interceptedRequest = + ValidateAndConfigureEmailSubdomainCertificateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateAndConfigureEmailSubdomainCertificateConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ValidateAndConfigureEmailSubdomainCertificate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/ValidateAndConfigureEmailSubdomainCertificate"); + final java.util.function.Function< + javax.ws.rs.core.Response, + ValidateAndConfigureEmailSubdomainCertificateResponse> + transformer = + ValidateAndConfigureEmailSubdomainCertificateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainCertificateRequest, + ValidateAndConfigureEmailSubdomainCertificateResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainCertificateRequest, + ValidateAndConfigureEmailSubdomainCertificateResponse>, + java.util.concurrent.Future< + ValidateAndConfigureEmailSubdomainCertificateResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ValidateAndConfigureEmailSubdomainCertificateRequest, + ValidateAndConfigureEmailSubdomainCertificateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + validateAndConfigureEmailSubdomainDns( + ValidateAndConfigureEmailSubdomainDnsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainDnsRequest, + ValidateAndConfigureEmailSubdomainDnsResponse> + handler) { + LOG.trace("Called async validateAndConfigureEmailSubdomainDns"); + final ValidateAndConfigureEmailSubdomainDnsRequest interceptedRequest = + ValidateAndConfigureEmailSubdomainDnsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateAndConfigureEmailSubdomainDnsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ValidateAndConfigureEmailSubdomainDns", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/ValidateAndConfigureEmailSubdomainDns"); + final java.util.function.Function< + javax.ws.rs.core.Response, ValidateAndConfigureEmailSubdomainDnsResponse> + transformer = + ValidateAndConfigureEmailSubdomainDnsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainDnsRequest, + ValidateAndConfigureEmailSubdomainDnsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureEmailSubdomainDnsRequest, + ValidateAndConfigureEmailSubdomainDnsResponse>, + 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< + ValidateAndConfigureEmailSubdomainDnsRequest, + ValidateAndConfigureEmailSubdomainDnsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + validateAndConfigureMicrositeDns( + ValidateAndConfigureMicrositeDnsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureMicrositeDnsRequest, + ValidateAndConfigureMicrositeDnsResponse> + handler) { + LOG.trace("Called async validateAndConfigureMicrositeDns"); + final ValidateAndConfigureMicrositeDnsRequest interceptedRequest = + ValidateAndConfigureMicrositeDnsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateAndConfigureMicrositeDnsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ValidateAndConfigureMicrositeDns", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/ValidateAndConfigureMicrositeDns"); + final java.util.function.Function< + javax.ws.rs.core.Response, ValidateAndConfigureMicrositeDnsResponse> + transformer = + ValidateAndConfigureMicrositeDnsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureMicrositeDnsRequest, + ValidateAndConfigureMicrositeDnsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateAndConfigureMicrositeDnsRequest, + ValidateAndConfigureMicrositeDnsResponse>, + 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< + ValidateAndConfigureMicrositeDnsRequest, + ValidateAndConfigureMicrositeDnsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, 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 4621ae83c41..da5f71ba9da 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 @@ -694,6 +694,48 @@ public CreateDataMaskingActivityResponse createDataMaskingActivity( }); } + @Override + public CreateEmailSubdomainResponse createEmailSubdomain(CreateEmailSubdomainRequest request) { + LOG.trace("Called createEmailSubdomain"); + final CreateEmailSubdomainRequest interceptedRequest = + CreateEmailSubdomainConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateEmailSubdomainConverter.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( + "FusionApplications", + "CreateEmailSubdomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/CreateEmailSubdomain"); + java.util.function.Function + transformer = + CreateEmailSubdomainConverter.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.getCreateEmailSubdomainDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateFusionEnvironmentResponse createFusionEnvironment( CreateFusionEnvironmentRequest request) { @@ -828,13 +870,12 @@ public CreateFusionEnvironmentFamilyResponse createFusionEnvironmentFamily( } @Override - public CreateRefreshActivityResponse createRefreshActivity( - CreateRefreshActivityRequest request) { - LOG.trace("Called createRefreshActivity"); - final CreateRefreshActivityRequest interceptedRequest = - CreateRefreshActivityConverter.interceptRequest(request); + public CreateMarketingBrandResponse createMarketingBrand(CreateMarketingBrandRequest request) { + LOG.trace("Called createMarketingBrand"); + final CreateMarketingBrandRequest interceptedRequest = + CreateMarketingBrandConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateRefreshActivityConverter.fromRequest(client, interceptedRequest); + CreateMarketingBrandConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -844,12 +885,12 @@ public CreateRefreshActivityResponse createRefreshActivity( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "CreateRefreshActivity", + "CreateMarketingBrand", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/CreateRefreshActivityDetails/CreateRefreshActivity"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/CreateMarketingBrand"); + java.util.function.Function transformer = - CreateRefreshActivityConverter.fromResponse( + CreateMarketingBrandConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -863,7 +904,7 @@ public CreateRefreshActivityResponse createRefreshActivity( javax.ws.rs.core.Response response = client.post( ib, - retriedRequest.getCreateRefreshActivityDetails(), + retriedRequest.getCreateMarketingBrandDetails(), retriedRequest); return transformer.apply(response); }); @@ -871,13 +912,12 @@ public CreateRefreshActivityResponse createRefreshActivity( } @Override - public CreateServiceAttachmentResponse createServiceAttachment( - CreateServiceAttachmentRequest request) { - LOG.trace("Called createServiceAttachment"); - final CreateServiceAttachmentRequest interceptedRequest = - CreateServiceAttachmentConverter.interceptRequest(request); + public CreateMicrositeResponse createMicrosite(CreateMicrositeRequest request) { + LOG.trace("Called createMicrosite"); + final CreateMicrositeRequest interceptedRequest = + CreateMicrositeConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateServiceAttachmentConverter.fromRequest(client, interceptedRequest); + CreateMicrositeConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -887,12 +927,12 @@ public CreateServiceAttachmentResponse createServiceAttachment( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "CreateServiceAttachment", + "CreateMicrosite", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/CreateServiceAttachment"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/CreateMicrosite"); + java.util.function.Function transformer = - CreateServiceAttachmentConverter.fromResponse( + CreateMicrositeConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -906,7 +946,7 @@ public CreateServiceAttachmentResponse createServiceAttachment( javax.ws.rs.core.Response response = client.post( ib, - retriedRequest.getCreateServiceAttachmentDetails(), + retriedRequest.getCreateMicrositeDetails(), retriedRequest); return transformer.apply(response); }); @@ -914,27 +954,28 @@ public CreateServiceAttachmentResponse createServiceAttachment( } @Override - public DeleteFusionEnvironmentResponse deleteFusionEnvironment( - DeleteFusionEnvironmentRequest request) { - LOG.trace("Called deleteFusionEnvironment"); - final DeleteFusionEnvironmentRequest interceptedRequest = - DeleteFusionEnvironmentConverter.interceptRequest(request); + public CreateRefreshActivityResponse createRefreshActivity( + CreateRefreshActivityRequest request) { + LOG.trace("Called createRefreshActivity"); + final CreateRefreshActivityRequest interceptedRequest = + CreateRefreshActivityConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteFusionEnvironmentConverter.fromRequest(client, interceptedRequest); + CreateRefreshActivityConverter.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( "FusionApplications", - "DeleteFusionEnvironment", + "CreateRefreshActivity", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/DeleteFusionEnvironment"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/CreateRefreshActivityDetails/CreateRefreshActivity"); + java.util.function.Function transformer = - DeleteFusionEnvironmentConverter.fromResponse( + CreateRefreshActivityConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -946,35 +987,38 @@ public DeleteFusionEnvironmentResponse deleteFusionEnvironment( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest.getCreateRefreshActivityDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteFusionEnvironmentAdminUserResponse deleteFusionEnvironmentAdminUser( - DeleteFusionEnvironmentAdminUserRequest request) { - LOG.trace("Called deleteFusionEnvironmentAdminUser"); - final DeleteFusionEnvironmentAdminUserRequest interceptedRequest = - DeleteFusionEnvironmentAdminUserConverter.interceptRequest(request); + public CreateServiceAttachmentResponse createServiceAttachment( + CreateServiceAttachmentRequest request) { + LOG.trace("Called createServiceAttachment"); + final CreateServiceAttachmentRequest interceptedRequest = + CreateServiceAttachmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteFusionEnvironmentAdminUserConverter.fromRequest(client, interceptedRequest); + CreateServiceAttachmentConverter.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( "FusionApplications", - "DeleteFusionEnvironmentAdminUser", + "CreateServiceAttachment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/DeleteFusionEnvironmentAdminUser"); - java.util.function.Function< - javax.ws.rs.core.Response, DeleteFusionEnvironmentAdminUserResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/CreateServiceAttachment"); + java.util.function.Function transformer = - DeleteFusionEnvironmentAdminUserConverter.fromResponse( + CreateServiceAttachmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -986,35 +1030,37 @@ public DeleteFusionEnvironmentAdminUserResponse deleteFusionEnvironmentAdminUser retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest.getCreateServiceAttachmentDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( - DeleteFusionEnvironmentFamilyRequest request) { - LOG.trace("Called deleteFusionEnvironmentFamily"); - final DeleteFusionEnvironmentFamilyRequest interceptedRequest = - DeleteFusionEnvironmentFamilyConverter.interceptRequest(request); + public CreateVanityDomainResponse createVanityDomain(CreateVanityDomainRequest request) { + LOG.trace("Called createVanityDomain"); + final CreateVanityDomainRequest interceptedRequest = + CreateVanityDomainConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteFusionEnvironmentFamilyConverter.fromRequest(client, interceptedRequest); + CreateVanityDomainConverter.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( "FusionApplications", - "DeleteFusionEnvironmentFamily", + "CreateVanityDomain", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/DeleteFusionEnvironmentFamily"); - java.util.function.Function< - javax.ws.rs.core.Response, DeleteFusionEnvironmentFamilyResponse> + ""); + java.util.function.Function transformer = - DeleteFusionEnvironmentFamilyConverter.fromResponse( + CreateVanityDomainConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1026,34 +1072,38 @@ public DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest.getCreateVanityDomainDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteRefreshActivityResponse deleteRefreshActivity( - DeleteRefreshActivityRequest request) { - LOG.trace("Called deleteRefreshActivity"); - final DeleteRefreshActivityRequest interceptedRequest = - DeleteRefreshActivityConverter.interceptRequest(request); + public CreateVanityDomainActivityResponse createVanityDomainActivity( + CreateVanityDomainActivityRequest request) { + LOG.trace("Called createVanityDomainActivity"); + final CreateVanityDomainActivityRequest interceptedRequest = + CreateVanityDomainActivityConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteRefreshActivityConverter.fromRequest(client, interceptedRequest); + CreateVanityDomainActivityConverter.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( "FusionApplications", - "DeleteRefreshActivity", + "CreateVanityDomainActivity", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/DeleteRefreshActivity"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/CreateVanityDomainActivity"); + java.util.function.Function transformer = - DeleteRefreshActivityConverter.fromResponse( + CreateVanityDomainActivityConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1065,20 +1115,23 @@ public DeleteRefreshActivityResponse deleteRefreshActivity( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getCreateVanityDomainActivityDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteServiceAttachmentResponse deleteServiceAttachment( - DeleteServiceAttachmentRequest request) { - LOG.trace("Called deleteServiceAttachment"); - final DeleteServiceAttachmentRequest interceptedRequest = - DeleteServiceAttachmentConverter.interceptRequest(request); + public DeleteEmailSubdomainResponse deleteEmailSubdomain(DeleteEmailSubdomainRequest request) { + LOG.trace("Called deleteEmailSubdomain"); + final DeleteEmailSubdomainRequest interceptedRequest = + DeleteEmailSubdomainConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteServiceAttachmentConverter.fromRequest(client, interceptedRequest); + DeleteEmailSubdomainConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1087,12 +1140,12 @@ public DeleteServiceAttachmentResponse deleteServiceAttachment( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "DeleteServiceAttachment", + "DeleteEmailSubdomain", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/DeleteServiceAttachment"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/DeleteEmailSubdomain"); + java.util.function.Function transformer = - DeleteServiceAttachmentConverter.fromResponse( + DeleteEmailSubdomainConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1111,13 +1164,13 @@ public DeleteServiceAttachmentResponse deleteServiceAttachment( } @Override - public GenerateExtractDetailsResponse generateExtractDetails( - GenerateExtractDetailsRequest request) { - LOG.trace("Called generateExtractDetails"); - final GenerateExtractDetailsRequest interceptedRequest = - GenerateExtractDetailsConverter.interceptRequest(request); + public DeleteFusionEnvironmentResponse deleteFusionEnvironment( + DeleteFusionEnvironmentRequest request) { + LOG.trace("Called deleteFusionEnvironment"); + final DeleteFusionEnvironmentRequest interceptedRequest = + DeleteFusionEnvironmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateExtractDetailsConverter.fromRequest(client, interceptedRequest); + DeleteFusionEnvironmentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1126,12 +1179,12 @@ public GenerateExtractDetailsResponse generateExtractDetails( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GenerateExtractDetails", + "DeleteFusionEnvironment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/GenerateExtractDetails"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/DeleteFusionEnvironment"); + java.util.function.Function transformer = - GenerateExtractDetailsConverter.fromResponse( + DeleteFusionEnvironmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1143,20 +1196,20 @@ public GenerateExtractDetailsResponse generateExtractDetails( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GetDataMaskingActivityResponse getDataMaskingActivity( - GetDataMaskingActivityRequest request) { - LOG.trace("Called getDataMaskingActivity"); - final GetDataMaskingActivityRequest interceptedRequest = - GetDataMaskingActivityConverter.interceptRequest(request); + public DeleteFusionEnvironmentAdminUserResponse deleteFusionEnvironmentAdminUser( + DeleteFusionEnvironmentAdminUserRequest request) { + LOG.trace("Called deleteFusionEnvironmentAdminUser"); + final DeleteFusionEnvironmentAdminUserRequest interceptedRequest = + DeleteFusionEnvironmentAdminUserConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDataMaskingActivityConverter.fromRequest(client, interceptedRequest); + DeleteFusionEnvironmentAdminUserConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1165,12 +1218,13 @@ public GetDataMaskingActivityResponse getDataMaskingActivity( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetDataMaskingActivity", + "DeleteFusionEnvironmentAdminUser", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/DataMaskingActivity/GetDataMaskingActivity"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/DeleteFusionEnvironmentAdminUser"); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteFusionEnvironmentAdminUserResponse> transformer = - GetDataMaskingActivityConverter.fromResponse( + DeleteFusionEnvironmentAdminUserConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1181,19 +1235,21 @@ public GetDataMaskingActivityResponse getDataMaskingActivity( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GetFusionEnvironmentResponse getFusionEnvironment(GetFusionEnvironmentRequest request) { - LOG.trace("Called getFusionEnvironment"); - final GetFusionEnvironmentRequest interceptedRequest = - GetFusionEnvironmentConverter.interceptRequest(request); + public DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( + DeleteFusionEnvironmentFamilyRequest request) { + LOG.trace("Called deleteFusionEnvironmentFamily"); + final DeleteFusionEnvironmentFamilyRequest interceptedRequest = + DeleteFusionEnvironmentFamilyConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetFusionEnvironmentConverter.fromRequest(client, interceptedRequest); + DeleteFusionEnvironmentFamilyConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1202,12 +1258,13 @@ public GetFusionEnvironmentResponse getFusionEnvironment(GetFusionEnvironmentReq com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetFusionEnvironment", + "DeleteFusionEnvironmentFamily", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/GetFusionEnvironment"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/DeleteFusionEnvironmentFamily"); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteFusionEnvironmentFamilyResponse> transformer = - GetFusionEnvironmentConverter.fromResponse( + DeleteFusionEnvironmentFamilyConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1218,20 +1275,20 @@ public GetFusionEnvironmentResponse getFusionEnvironment(GetFusionEnvironmentReq return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( - GetFusionEnvironmentFamilyRequest request) { - LOG.trace("Called getFusionEnvironmentFamily"); - final GetFusionEnvironmentFamilyRequest interceptedRequest = - GetFusionEnvironmentFamilyConverter.interceptRequest(request); + public DeleteMarketingBrandResponse deleteMarketingBrand(DeleteMarketingBrandRequest request) { + LOG.trace("Called deleteMarketingBrand"); + final DeleteMarketingBrandRequest interceptedRequest = + DeleteMarketingBrandConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetFusionEnvironmentFamilyConverter.fromRequest(client, interceptedRequest); + DeleteMarketingBrandConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1240,12 +1297,12 @@ public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetFusionEnvironmentFamily", + "DeleteMarketingBrand", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/GetFusionEnvironmentFamily"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/DeleteMarketingBrand"); + java.util.function.Function transformer = - GetFusionEnvironmentFamilyConverter.fromResponse( + DeleteMarketingBrandConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1256,22 +1313,20 @@ public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GetFusionEnvironmentFamilyLimitsAndUsageResponse - getFusionEnvironmentFamilyLimitsAndUsage( - GetFusionEnvironmentFamilyLimitsAndUsageRequest request) { - LOG.trace("Called getFusionEnvironmentFamilyLimitsAndUsage"); - final GetFusionEnvironmentFamilyLimitsAndUsageRequest interceptedRequest = - GetFusionEnvironmentFamilyLimitsAndUsageConverter.interceptRequest(request); + public DeleteMicrositeResponse deleteMicrosite(DeleteMicrositeRequest request) { + LOG.trace("Called deleteMicrosite"); + final DeleteMicrositeRequest interceptedRequest = + DeleteMicrositeConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetFusionEnvironmentFamilyLimitsAndUsageConverter.fromRequest( - client, interceptedRequest); + DeleteMicrositeConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1280,13 +1335,12 @@ public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetFusionEnvironmentFamilyLimitsAndUsage", + "DeleteMicrosite", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamilyLimitsAndUsage/GetFusionEnvironmentFamilyLimitsAndUsage"); - java.util.function.Function< - javax.ws.rs.core.Response, GetFusionEnvironmentFamilyLimitsAndUsageResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/DeleteMicrosite"); + java.util.function.Function transformer = - GetFusionEnvironmentFamilyLimitsAndUsageConverter.fromResponse( + DeleteMicrositeConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1297,22 +1351,1115 @@ public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GetFusionEnvironmentFamilySubscriptionDetailResponse - getFusionEnvironmentFamilySubscriptionDetail( - GetFusionEnvironmentFamilySubscriptionDetailRequest request) { - LOG.trace("Called getFusionEnvironmentFamilySubscriptionDetail"); - final GetFusionEnvironmentFamilySubscriptionDetailRequest interceptedRequest = - GetFusionEnvironmentFamilySubscriptionDetailConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetFusionEnvironmentFamilySubscriptionDetailConverter.fromRequest( - client, interceptedRequest); + public DeleteRefreshActivityResponse deleteRefreshActivity( + DeleteRefreshActivityRequest request) { + LOG.trace("Called deleteRefreshActivity"); + final DeleteRefreshActivityRequest interceptedRequest = + DeleteRefreshActivityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteRefreshActivityConverter.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", + "DeleteRefreshActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/DeleteRefreshActivity"); + java.util.function.Function + transformer = + DeleteRefreshActivityConverter.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 DeleteServiceAttachmentResponse deleteServiceAttachment( + DeleteServiceAttachmentRequest request) { + LOG.trace("Called deleteServiceAttachment"); + final DeleteServiceAttachmentRequest interceptedRequest = + DeleteServiceAttachmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteServiceAttachmentConverter.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", + "DeleteServiceAttachment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/DeleteServiceAttachment"); + java.util.function.Function + transformer = + DeleteServiceAttachmentConverter.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 DeleteVanityDomainActivityResponse deleteVanityDomainActivity( + DeleteVanityDomainActivityRequest request) { + LOG.trace("Called deleteVanityDomainActivity"); + final DeleteVanityDomainActivityRequest interceptedRequest = + DeleteVanityDomainActivityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVanityDomainActivityConverter.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", + "DeleteVanityDomainActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/DeleteVanityDomainActivity"); + java.util.function.Function + transformer = + DeleteVanityDomainActivityConverter.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 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) { + LOG.trace("Called getDataMaskingActivity"); + final GetDataMaskingActivityRequest interceptedRequest = + GetDataMaskingActivityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataMaskingActivityConverter.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", + "GetDataMaskingActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/DataMaskingActivity/GetDataMaskingActivity"); + java.util.function.Function + transformer = + GetDataMaskingActivityConverter.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 GetEmailSubdomainResponse getEmailSubdomain(GetEmailSubdomainRequest request) { + LOG.trace("Called getEmailSubdomain"); + final GetEmailSubdomainRequest interceptedRequest = + GetEmailSubdomainConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEmailSubdomainConverter.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", + "GetEmailSubdomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/GetEmailSubdomain"); + java.util.function.Function + transformer = + GetEmailSubdomainConverter.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 GetEmailSubdomainCsrResponse getEmailSubdomainCsr(GetEmailSubdomainCsrRequest request) { + LOG.trace("Called getEmailSubdomainCsr"); + final GetEmailSubdomainCsrRequest interceptedRequest = + GetEmailSubdomainCsrConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEmailSubdomainCsrConverter.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", + "GetEmailSubdomainCsr", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/GetEmailSubdomainCsr"); + java.util.function.Function + transformer = + GetEmailSubdomainCsrConverter.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 GetEmailSubdomainDnsConfigResponse getEmailSubdomainDnsConfig( + GetEmailSubdomainDnsConfigRequest request) { + LOG.trace("Called getEmailSubdomainDnsConfig"); + final GetEmailSubdomainDnsConfigRequest interceptedRequest = + GetEmailSubdomainDnsConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEmailSubdomainDnsConfigConverter.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", + "GetEmailSubdomainDnsConfig", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/GetEmailSubdomainDnsConfig"); + java.util.function.Function + transformer = + GetEmailSubdomainDnsConfigConverter.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 GetFusionEnvironmentResponse getFusionEnvironment(GetFusionEnvironmentRequest request) { + LOG.trace("Called getFusionEnvironment"); + final GetFusionEnvironmentRequest interceptedRequest = + GetFusionEnvironmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFusionEnvironmentConverter.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", + "GetFusionEnvironment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/GetFusionEnvironment"); + java.util.function.Function + transformer = + GetFusionEnvironmentConverter.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 GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( + GetFusionEnvironmentFamilyRequest request) { + LOG.trace("Called getFusionEnvironmentFamily"); + final GetFusionEnvironmentFamilyRequest interceptedRequest = + GetFusionEnvironmentFamilyConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFusionEnvironmentFamilyConverter.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", + "GetFusionEnvironmentFamily", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/GetFusionEnvironmentFamily"); + java.util.function.Function + transformer = + GetFusionEnvironmentFamilyConverter.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 GetFusionEnvironmentFamilyLimitsAndUsageResponse + getFusionEnvironmentFamilyLimitsAndUsage( + GetFusionEnvironmentFamilyLimitsAndUsageRequest request) { + LOG.trace("Called getFusionEnvironmentFamilyLimitsAndUsage"); + final GetFusionEnvironmentFamilyLimitsAndUsageRequest interceptedRequest = + GetFusionEnvironmentFamilyLimitsAndUsageConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFusionEnvironmentFamilyLimitsAndUsageConverter.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", + "GetFusionEnvironmentFamilyLimitsAndUsage", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamilyLimitsAndUsage/GetFusionEnvironmentFamilyLimitsAndUsage"); + java.util.function.Function< + javax.ws.rs.core.Response, GetFusionEnvironmentFamilyLimitsAndUsageResponse> + transformer = + GetFusionEnvironmentFamilyLimitsAndUsageConverter.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 GetFusionEnvironmentFamilySubscriptionDetailResponse + getFusionEnvironmentFamilySubscriptionDetail( + GetFusionEnvironmentFamilySubscriptionDetailRequest request) { + LOG.trace("Called getFusionEnvironmentFamilySubscriptionDetail"); + final GetFusionEnvironmentFamilySubscriptionDetailRequest interceptedRequest = + GetFusionEnvironmentFamilySubscriptionDetailConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFusionEnvironmentFamilySubscriptionDetailConverter.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", + "GetFusionEnvironmentFamilySubscriptionDetail", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/GetFusionEnvironmentFamilySubscriptionDetail"); + java.util.function.Function< + javax.ws.rs.core.Response, + GetFusionEnvironmentFamilySubscriptionDetailResponse> + transformer = + GetFusionEnvironmentFamilySubscriptionDetailConverter.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 GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( + GetFusionEnvironmentStatusRequest request) { + LOG.trace("Called getFusionEnvironmentStatus"); + final GetFusionEnvironmentStatusRequest interceptedRequest = + GetFusionEnvironmentStatusConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFusionEnvironmentStatusConverter.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", + "GetFusionEnvironmentStatus", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentStatus/GetFusionEnvironmentStatus"); + java.util.function.Function + transformer = + GetFusionEnvironmentStatusConverter.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 GetMarketingBrandResponse getMarketingBrand(GetMarketingBrandRequest request) { + LOG.trace("Called getMarketingBrand"); + final GetMarketingBrandRequest interceptedRequest = + GetMarketingBrandConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMarketingBrandConverter.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", + "GetMarketingBrand", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/GetMarketingBrand"); + java.util.function.Function + transformer = + GetMarketingBrandConverter.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 GetMicrositeResponse getMicrosite(GetMicrositeRequest request) { + LOG.trace("Called getMicrosite"); + final GetMicrositeRequest interceptedRequest = + GetMicrositeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMicrositeConverter.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", + "GetMicrosite", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/GetMicrosite"); + java.util.function.Function transformer = + GetMicrositeConverter.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 GetMicrositeDnsConfigResponse getMicrositeDnsConfig( + GetMicrositeDnsConfigRequest request) { + LOG.trace("Called getMicrositeDnsConfig"); + final GetMicrositeDnsConfigRequest interceptedRequest = + GetMicrositeDnsConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMicrositeDnsConfigConverter.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", + "GetMicrositeDnsConfig", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/GetMicrositeDnsConfig"); + java.util.function.Function + transformer = + GetMicrositeDnsConfigConverter.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 GetRefreshActivityResponse getRefreshActivity(GetRefreshActivityRequest request) { + LOG.trace("Called getRefreshActivity"); + final GetRefreshActivityRequest interceptedRequest = + GetRefreshActivityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRefreshActivityConverter.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", + "GetRefreshActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/GetRefreshActivity"); + java.util.function.Function + transformer = + GetRefreshActivityConverter.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 GetScheduledActivityResponse getScheduledActivity(GetScheduledActivityRequest request) { + LOG.trace("Called getScheduledActivity"); + final GetScheduledActivityRequest interceptedRequest = + GetScheduledActivityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetScheduledActivityConverter.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", + "GetScheduledActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/GetScheduledActivity"); + java.util.function.Function + transformer = + GetScheduledActivityConverter.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 GetServiceAttachmentResponse getServiceAttachment(GetServiceAttachmentRequest request) { + LOG.trace("Called getServiceAttachment"); + final GetServiceAttachmentRequest interceptedRequest = + GetServiceAttachmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetServiceAttachmentConverter.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", + "GetServiceAttachment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/GetServiceAttachment"); + java.util.function.Function + transformer = + GetServiceAttachmentConverter.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 GetVanityDomainResponse getVanityDomain(GetVanityDomainRequest request) { + LOG.trace("Called getVanityDomain"); + final GetVanityDomainRequest interceptedRequest = + GetVanityDomainConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVanityDomainConverter.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", + "GetVanityDomain", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/GetVanityDomain"); + java.util.function.Function + transformer = + GetVanityDomainConverter.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 GetVanityDomainActivityResponse getVanityDomainActivity( + GetVanityDomainActivityRequest request) { + LOG.trace("Called getVanityDomainActivity"); + final GetVanityDomainActivityRequest interceptedRequest = + GetVanityDomainActivityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVanityDomainActivityConverter.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", + "GetVanityDomainActivity", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/GetVanityDomainActivity"); + java.util.function.Function + transformer = + GetVanityDomainActivityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequest/GetWorkRequest"); + java.util.function.Function transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public 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"); + final ListAdminUsersRequest interceptedRequest = + ListAdminUsersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminUsersConverter.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", + "ListAdminUsers", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/ListAdminUsers"); + java.util.function.Function transformer = + ListAdminUsersConverter.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 ListDataMaskingActivitiesResponse listDataMaskingActivities( + ListDataMaskingActivitiesRequest request) { + LOG.trace("Called listDataMaskingActivities"); + final ListDataMaskingActivitiesRequest interceptedRequest = + ListDataMaskingActivitiesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataMaskingActivitiesConverter.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", + "ListDataMaskingActivities", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/DataMaskingActivity/ListDataMaskingActivities"); + java.util.function.Function + transformer = + ListDataMaskingActivitiesConverter.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 ListEmailSubdomainsResponse listEmailSubdomains(ListEmailSubdomainsRequest request) { + LOG.trace("Called listEmailSubdomains"); + final ListEmailSubdomainsRequest interceptedRequest = + ListEmailSubdomainsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEmailSubdomainsConverter.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", + "ListEmailSubdomains", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/ListEmailSubdomains"); + java.util.function.Function + transformer = + ListEmailSubdomainsConverter.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 ListFusionEnvironmentFamiliesResponse listFusionEnvironmentFamilies( + ListFusionEnvironmentFamiliesRequest request) { + LOG.trace("Called listFusionEnvironmentFamilies"); + final ListFusionEnvironmentFamiliesRequest interceptedRequest = + ListFusionEnvironmentFamiliesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFusionEnvironmentFamiliesConverter.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", + "ListFusionEnvironmentFamilies", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/ListFusionEnvironmentFamilies"); + java.util.function.Function< + javax.ws.rs.core.Response, ListFusionEnvironmentFamiliesResponse> + transformer = + ListFusionEnvironmentFamiliesConverter.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 ListFusionEnvironmentsResponse listFusionEnvironments( + ListFusionEnvironmentsRequest request) { + LOG.trace("Called listFusionEnvironments"); + final ListFusionEnvironmentsRequest interceptedRequest = + ListFusionEnvironmentsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFusionEnvironmentsConverter.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", + "ListFusionEnvironments", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/ListFusionEnvironments"); + java.util.function.Function + transformer = + ListFusionEnvironmentsConverter.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 ListMarketingBrandsResponse listMarketingBrands(ListMarketingBrandsRequest request) { + LOG.trace("Called listMarketingBrands"); + final ListMarketingBrandsRequest interceptedRequest = + ListMarketingBrandsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMarketingBrandsConverter.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", + "ListMarketingBrands", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/ListMarketingBrands"); + java.util.function.Function + transformer = + ListMarketingBrandsConverter.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 ListMicrositesResponse listMicrosites(ListMicrositesRequest request) { + LOG.trace("Called listMicrosites"); + final ListMicrositesRequest interceptedRequest = + ListMicrositesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMicrositesConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1321,14 +2468,48 @@ public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetFusionEnvironmentFamilySubscriptionDetail", + "ListMicrosites", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/GetFusionEnvironmentFamilySubscriptionDetail"); - java.util.function.Function< - javax.ws.rs.core.Response, - GetFusionEnvironmentFamilySubscriptionDetailResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/ListMicrosites"); + java.util.function.Function transformer = + ListMicrositesConverter.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 ListRefreshActivitiesResponse listRefreshActivities( + ListRefreshActivitiesRequest request) { + LOG.trace("Called listRefreshActivities"); + final ListRefreshActivitiesRequest interceptedRequest = + ListRefreshActivitiesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRefreshActivitiesConverter.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", + "ListRefreshActivities", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/ListRefreshActivities"); + java.util.function.Function transformer = - GetFusionEnvironmentFamilySubscriptionDetailConverter.fromResponse( + ListRefreshActivitiesConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1346,13 +2527,13 @@ public GetFusionEnvironmentFamilyResponse getFusionEnvironmentFamily( } @Override - public GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( - GetFusionEnvironmentStatusRequest request) { - LOG.trace("Called getFusionEnvironmentStatus"); - final GetFusionEnvironmentStatusRequest interceptedRequest = - GetFusionEnvironmentStatusConverter.interceptRequest(request); + public ListScheduledActivitiesResponse listScheduledActivities( + ListScheduledActivitiesRequest request) { + LOG.trace("Called listScheduledActivities"); + final ListScheduledActivitiesRequest interceptedRequest = + ListScheduledActivitiesConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetFusionEnvironmentStatusConverter.fromRequest(client, interceptedRequest); + ListScheduledActivitiesConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1361,12 +2542,12 @@ public GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetFusionEnvironmentStatus", + "ListScheduledActivities", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentStatus/GetFusionEnvironmentStatus"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/ListScheduledActivities"); + java.util.function.Function transformer = - GetFusionEnvironmentStatusConverter.fromResponse( + ListScheduledActivitiesConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1384,12 +2565,13 @@ public GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( } @Override - public GetRefreshActivityResponse getRefreshActivity(GetRefreshActivityRequest request) { - LOG.trace("Called getRefreshActivity"); - final GetRefreshActivityRequest interceptedRequest = - GetRefreshActivityConverter.interceptRequest(request); + public ListServiceAttachmentsResponse listServiceAttachments( + ListServiceAttachmentsRequest request) { + LOG.trace("Called listServiceAttachments"); + final ListServiceAttachmentsRequest interceptedRequest = + ListServiceAttachmentsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetRefreshActivityConverter.fromRequest(client, interceptedRequest); + ListServiceAttachmentsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1398,12 +2580,12 @@ public GetRefreshActivityResponse getRefreshActivity(GetRefreshActivityRequest r com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetRefreshActivity", + "ListServiceAttachments", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/GetRefreshActivity"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/ListServiceAttachments"); + java.util.function.Function transformer = - GetRefreshActivityConverter.fromResponse( + ListServiceAttachmentsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1421,12 +2603,13 @@ public GetRefreshActivityResponse getRefreshActivity(GetRefreshActivityRequest r } @Override - public GetScheduledActivityResponse getScheduledActivity(GetScheduledActivityRequest request) { - LOG.trace("Called getScheduledActivity"); - final GetScheduledActivityRequest interceptedRequest = - GetScheduledActivityConverter.interceptRequest(request); + public ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( + ListTimeAvailableForRefreshesRequest request) { + LOG.trace("Called listTimeAvailableForRefreshes"); + final ListTimeAvailableForRefreshesRequest interceptedRequest = + ListTimeAvailableForRefreshesConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetScheduledActivityConverter.fromRequest(client, interceptedRequest); + ListTimeAvailableForRefreshesConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1435,12 +2618,13 @@ public GetScheduledActivityResponse getScheduledActivity(GetScheduledActivityReq com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetScheduledActivity", + "ListTimeAvailableForRefreshes", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/GetScheduledActivity"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/TimeAvailableForRefresh/ListTimeAvailableForRefreshes"); + java.util.function.Function< + javax.ws.rs.core.Response, ListTimeAvailableForRefreshesResponse> transformer = - GetScheduledActivityConverter.fromResponse( + ListTimeAvailableForRefreshesConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1458,12 +2642,12 @@ public GetScheduledActivityResponse getScheduledActivity(GetScheduledActivityReq } @Override - public GetServiceAttachmentResponse getServiceAttachment(GetServiceAttachmentRequest request) { - LOG.trace("Called getServiceAttachment"); - final GetServiceAttachmentRequest interceptedRequest = - GetServiceAttachmentConverter.interceptRequest(request); + public ListVanityDomainsResponse listVanityDomains(ListVanityDomainsRequest request) { + LOG.trace("Called listVanityDomains"); + final ListVanityDomainsRequest interceptedRequest = + ListVanityDomainsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetServiceAttachmentConverter.fromRequest(client, interceptedRequest); + ListVanityDomainsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1472,12 +2656,12 @@ public GetServiceAttachmentResponse getServiceAttachment(GetServiceAttachmentReq com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetServiceAttachment", + "ListVanityDomains", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/GetServiceAttachment"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/ListVanityDomains"); + java.util.function.Function transformer = - GetServiceAttachmentConverter.fromResponse( + ListVanityDomainsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1495,12 +2679,13 @@ public GetServiceAttachmentResponse getServiceAttachment(GetServiceAttachmentReq } @Override - public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { - LOG.trace("Called getWorkRequest"); - final GetWorkRequestRequest interceptedRequest = - GetWorkRequestConverter.interceptRequest(request); + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetWorkRequestConverter.fromRequest(client, interceptedRequest); + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1509,11 +2694,13 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "GetWorkRequest", + "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequest/GetWorkRequest"); - java.util.function.Function transformer = - GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequestError/ListWorkRequestErrors"); + java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -1530,12 +2717,12 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { } @Override - public InitiateExtractResponse initiateExtract(InitiateExtractRequest request) { - LOG.trace("Called initiateExtract"); - final InitiateExtractRequest interceptedRequest = - InitiateExtractConverter.interceptRequest(request); + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - InitiateExtractConverter.fromRequest(client, interceptedRequest); + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1544,12 +2731,87 @@ public InitiateExtractResponse initiateExtract(InitiateExtractRequest request) { com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "InitiateExtract", + "ListWorkRequestLogs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/InitiateExtract"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequestLogEntry/ListWorkRequestLogs"); + java.util.function.Function transformer = - InitiateExtractConverter.fromResponse( + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequest/ListWorkRequests"); + java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RequestEmailSubdomainCsrResponse requestEmailSubdomainCsr( + RequestEmailSubdomainCsrRequest request) { + LOG.trace("Called requestEmailSubdomainCsr"); + final RequestEmailSubdomainCsrRequest interceptedRequest = + RequestEmailSubdomainCsrConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RequestEmailSubdomainCsrConverter.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", + "RequestEmailSubdomainCsr", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/RequestEmailSubdomainCsr"); + java.util.function.Function + transformer = + RequestEmailSubdomainCsrConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1561,32 +2823,40 @@ public InitiateExtractResponse initiateExtract(InitiateExtractRequest request) { retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest.getRequestEmailSubdomainCsrDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListAdminUsersResponse listAdminUsers(ListAdminUsersRequest request) { - LOG.trace("Called listAdminUsers"); - final ListAdminUsersRequest interceptedRequest = - ListAdminUsersConverter.interceptRequest(request); + public ResetFusionEnvironmentPasswordResponse resetFusionEnvironmentPassword( + ResetFusionEnvironmentPasswordRequest request) { + LOG.trace("Called resetFusionEnvironmentPassword"); + final ResetFusionEnvironmentPasswordRequest interceptedRequest = + ResetFusionEnvironmentPasswordConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListAdminUsersConverter.fromRequest(client, interceptedRequest); + ResetFusionEnvironmentPasswordConverter.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( "FusionApplications", - "ListAdminUsers", + "ResetFusionEnvironmentPassword", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/ListAdminUsers"); - java.util.function.Function transformer = - ListAdminUsersConverter.fromResponse(java.util.Optional.of(serviceDetails)); + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/ResetFusionEnvironmentPassword"); + java.util.function.Function< + javax.ws.rs.core.Response, ResetFusionEnvironmentPasswordResponse> + transformer = + ResetFusionEnvironmentPasswordConverter.fromResponse( + java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -1596,20 +2866,25 @@ public ListAdminUsersResponse listAdminUsers(ListAdminUsersRequest request) { return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getResetFusionEnvironmentPasswordDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListDataMaskingActivitiesResponse listDataMaskingActivities( - ListDataMaskingActivitiesRequest request) { - LOG.trace("Called listDataMaskingActivities"); - final ListDataMaskingActivitiesRequest interceptedRequest = - ListDataMaskingActivitiesConverter.interceptRequest(request); + public SubmitVanityDomainValidationResponse submitVanityDomainValidation( + SubmitVanityDomainValidationRequest request) { + LOG.trace("Called submitVanityDomainValidation"); + final SubmitVanityDomainValidationRequest interceptedRequest = + SubmitVanityDomainValidationConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDataMaskingActivitiesConverter.fromRequest(client, interceptedRequest); + SubmitVanityDomainValidationConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1618,12 +2893,12 @@ public ListDataMaskingActivitiesResponse listDataMaskingActivities( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListDataMaskingActivities", + "SubmitVanityDomainValidation", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/DataMaskingActivity/ListDataMaskingActivities"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/SubmitVanityDomainValidation"); + java.util.function.Function transformer = - ListDataMaskingActivitiesConverter.fromResponse( + SubmitVanityDomainValidationConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1634,20 +2909,20 @@ public ListDataMaskingActivitiesResponse listDataMaskingActivities( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public ListFusionEnvironmentFamiliesResponse listFusionEnvironmentFamilies( - ListFusionEnvironmentFamiliesRequest request) { - LOG.trace("Called listFusionEnvironmentFamilies"); - final ListFusionEnvironmentFamiliesRequest interceptedRequest = - ListFusionEnvironmentFamiliesConverter.interceptRequest(request); + public UpdateEmailSubdomainResponse updateEmailSubdomain(UpdateEmailSubdomainRequest request) { + LOG.trace("Called updateEmailSubdomain"); + final UpdateEmailSubdomainRequest interceptedRequest = + UpdateEmailSubdomainConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListFusionEnvironmentFamiliesConverter.fromRequest(client, interceptedRequest); + UpdateEmailSubdomainConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1656,13 +2931,12 @@ public ListFusionEnvironmentFamiliesResponse listFusionEnvironmentFamilies( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListFusionEnvironmentFamilies", + "UpdateEmailSubdomain", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/ListFusionEnvironmentFamilies"); - java.util.function.Function< - javax.ws.rs.core.Response, ListFusionEnvironmentFamiliesResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/UpdateEmailSubdomain"); + java.util.function.Function transformer = - ListFusionEnvironmentFamiliesConverter.fromResponse( + UpdateEmailSubdomainConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1673,20 +2947,24 @@ public ListFusionEnvironmentFamiliesResponse listFusionEnvironmentFamilies( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateEmailSubdomainDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListFusionEnvironmentsResponse listFusionEnvironments( - ListFusionEnvironmentsRequest request) { - LOG.trace("Called listFusionEnvironments"); - final ListFusionEnvironmentsRequest interceptedRequest = - ListFusionEnvironmentsConverter.interceptRequest(request); + public UpdateFusionEnvironmentResponse updateFusionEnvironment( + UpdateFusionEnvironmentRequest request) { + LOG.trace("Called updateFusionEnvironment"); + final UpdateFusionEnvironmentRequest interceptedRequest = + UpdateFusionEnvironmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListFusionEnvironmentsConverter.fromRequest(client, interceptedRequest); + UpdateFusionEnvironmentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1695,12 +2973,12 @@ public ListFusionEnvironmentsResponse listFusionEnvironments( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListFusionEnvironments", + "UpdateFusionEnvironment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/ListFusionEnvironments"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/UpdateFusionEnvironment"); + java.util.function.Function transformer = - ListFusionEnvironmentsConverter.fromResponse( + UpdateFusionEnvironmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1711,20 +2989,24 @@ public ListFusionEnvironmentsResponse listFusionEnvironments( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateFusionEnvironmentDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListRefreshActivitiesResponse listRefreshActivities( - ListRefreshActivitiesRequest request) { - LOG.trace("Called listRefreshActivities"); - final ListRefreshActivitiesRequest interceptedRequest = - ListRefreshActivitiesConverter.interceptRequest(request); + public UpdateFusionEnvironmentFamilyResponse updateFusionEnvironmentFamily( + UpdateFusionEnvironmentFamilyRequest request) { + LOG.trace("Called updateFusionEnvironmentFamily"); + final UpdateFusionEnvironmentFamilyRequest interceptedRequest = + UpdateFusionEnvironmentFamilyConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListRefreshActivitiesConverter.fromRequest(client, interceptedRequest); + UpdateFusionEnvironmentFamilyConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1733,12 +3015,13 @@ public ListRefreshActivitiesResponse listRefreshActivities( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListRefreshActivities", + "UpdateFusionEnvironmentFamily", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/RefreshActivity/ListRefreshActivities"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/UpdateFusionEnvironmentFamily"); + java.util.function.Function< + javax.ws.rs.core.Response, UpdateFusionEnvironmentFamilyResponse> transformer = - ListRefreshActivitiesConverter.fromResponse( + UpdateFusionEnvironmentFamilyConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1749,20 +3032,24 @@ public ListRefreshActivitiesResponse listRefreshActivities( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateFusionEnvironmentFamilyDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListScheduledActivitiesResponse listScheduledActivities( - ListScheduledActivitiesRequest request) { - LOG.trace("Called listScheduledActivities"); - final ListScheduledActivitiesRequest interceptedRequest = - ListScheduledActivitiesConverter.interceptRequest(request); + public UpdateMarketingBrandResponse updateMarketingBrand(UpdateMarketingBrandRequest request) { + LOG.trace("Called updateMarketingBrand"); + final UpdateMarketingBrandRequest interceptedRequest = + UpdateMarketingBrandConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListScheduledActivitiesConverter.fromRequest(client, interceptedRequest); + UpdateMarketingBrandConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1771,12 +3058,12 @@ public ListScheduledActivitiesResponse listScheduledActivities( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListScheduledActivities", + "UpdateMarketingBrand", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ScheduledActivity/ListScheduledActivities"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/MarketingBrand/UpdateMarketingBrand"); + java.util.function.Function transformer = - ListScheduledActivitiesConverter.fromResponse( + UpdateMarketingBrandConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1787,20 +3074,23 @@ public ListScheduledActivitiesResponse listScheduledActivities( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateMarketingBrandDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListServiceAttachmentsResponse listServiceAttachments( - ListServiceAttachmentsRequest request) { - LOG.trace("Called listServiceAttachments"); - final ListServiceAttachmentsRequest interceptedRequest = - ListServiceAttachmentsConverter.interceptRequest(request); + public UpdateMicrositeResponse updateMicrosite(UpdateMicrositeRequest request) { + LOG.trace("Called updateMicrosite"); + final UpdateMicrositeRequest interceptedRequest = + UpdateMicrositeConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListServiceAttachmentsConverter.fromRequest(client, interceptedRequest); + UpdateMicrositeConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1809,12 +3099,12 @@ public ListServiceAttachmentsResponse listServiceAttachments( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListServiceAttachments", + "UpdateMicrosite", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/ServiceAttachment/ListServiceAttachments"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/UpdateMicrosite"); + java.util.function.Function transformer = - ListServiceAttachmentsConverter.fromResponse( + UpdateMicrositeConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1825,20 +3115,24 @@ public ListServiceAttachmentsResponse listServiceAttachments( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateMicrositeDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( - ListTimeAvailableForRefreshesRequest request) { - LOG.trace("Called listTimeAvailableForRefreshes"); - final ListTimeAvailableForRefreshesRequest interceptedRequest = - ListTimeAvailableForRefreshesConverter.interceptRequest(request); + public UpdateRefreshActivityResponse updateRefreshActivity( + UpdateRefreshActivityRequest request) { + LOG.trace("Called updateRefreshActivity"); + final UpdateRefreshActivityRequest interceptedRequest = + UpdateRefreshActivityConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListTimeAvailableForRefreshesConverter.fromRequest(client, interceptedRequest); + UpdateRefreshActivityConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1847,13 +3141,12 @@ public ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListTimeAvailableForRefreshes", + "UpdateRefreshActivity", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/TimeAvailableForRefresh/ListTimeAvailableForRefreshes"); - java.util.function.Function< - javax.ws.rs.core.Response, ListTimeAvailableForRefreshesResponse> + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/UpdateRefreshActivityDetails/UpdateRefreshActivity"); + java.util.function.Function transformer = - ListTimeAvailableForRefreshesConverter.fromResponse( + UpdateRefreshActivityConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1864,20 +3157,23 @@ public ListTimeAvailableForRefreshesResponse listTimeAvailableForRefreshes( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateRefreshActivityDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListWorkRequestErrorsResponse listWorkRequestErrors( - ListWorkRequestErrorsRequest request) { - LOG.trace("Called listWorkRequestErrors"); - final ListWorkRequestErrorsRequest interceptedRequest = - ListWorkRequestErrorsConverter.interceptRequest(request); + public UpdateVanityDomainResponse updateVanityDomain(UpdateVanityDomainRequest request) { + LOG.trace("Called updateVanityDomain"); + final UpdateVanityDomainRequest interceptedRequest = + UpdateVanityDomainConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + UpdateVanityDomainConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1886,12 +3182,12 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListWorkRequestErrors", + "UpdateVanityDomain", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequestError/ListWorkRequestErrors"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/UpdateVanityDomain"); + java.util.function.Function transformer = - ListWorkRequestErrorsConverter.fromResponse( + UpdateVanityDomainConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1902,19 +3198,24 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateVanityDomainDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { - LOG.trace("Called listWorkRequestLogs"); - final ListWorkRequestLogsRequest interceptedRequest = - ListWorkRequestLogsConverter.interceptRequest(request); + public UpdateVanityDomainActivityResponse updateVanityDomainActivity( + UpdateVanityDomainActivityRequest request) { + LOG.trace("Called updateVanityDomainActivity"); + final UpdateVanityDomainActivityRequest interceptedRequest = + UpdateVanityDomainActivityConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + UpdateVanityDomainActivityConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1923,12 +3224,12 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListWorkRequestLogs", + "UpdateVanityDomainActivity", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequestLogEntry/ListWorkRequestLogs"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomainActivity/UpdateVanityDomainActivity"); + java.util.function.Function transformer = - ListWorkRequestLogsConverter.fromResponse( + UpdateVanityDomainActivityConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1939,19 +3240,25 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateVanityDomainActivityDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { - LOG.trace("Called listWorkRequests"); - final ListWorkRequestsRequest interceptedRequest = - ListWorkRequestsConverter.interceptRequest(request); + public UploadEmailSubdomainCertificateResponse uploadEmailSubdomainCertificate( + UploadEmailSubdomainCertificateRequest request) { + LOG.trace("Called uploadEmailSubdomainCertificate"); + final UploadEmailSubdomainCertificateRequest interceptedRequest = + UploadEmailSubdomainCertificateConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + UploadEmailSubdomainCertificateConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1960,12 +3267,13 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "ListWorkRequests", + "UploadEmailSubdomainCertificate", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/WorkRequest/ListWorkRequests"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/UploadEmailSubdomainCertificate"); + java.util.function.Function< + javax.ws.rs.core.Response, UploadEmailSubdomainCertificateResponse> transformer = - ListWorkRequestsConverter.fromResponse( + UploadEmailSubdomainCertificateConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1976,36 +3284,40 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getUploadEmailSubdomainCertificateDetails(), + retriedRequest); return transformer.apply(response); }); }); } @Override - public ResetFusionEnvironmentPasswordResponse resetFusionEnvironmentPassword( - ResetFusionEnvironmentPasswordRequest request) { - LOG.trace("Called resetFusionEnvironmentPassword"); - final ResetFusionEnvironmentPasswordRequest interceptedRequest = - ResetFusionEnvironmentPasswordConverter.interceptRequest(request); + public UploadVanityDomainCertificateResponse uploadVanityDomainCertificate( + UploadVanityDomainCertificateRequest request) { + LOG.trace("Called uploadVanityDomainCertificate"); + final UploadVanityDomainCertificateRequest interceptedRequest = + UploadVanityDomainCertificateConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ResetFusionEnvironmentPasswordConverter.fromRequest(client, interceptedRequest); + UploadVanityDomainCertificateConverter.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( "FusionApplications", - "ResetFusionEnvironmentPassword", + "UploadVanityDomainCertificate", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/ResetFusionEnvironmentPassword"); + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/VanityDomain/UploadVanityDomainCertificate"); java.util.function.Function< - javax.ws.rs.core.Response, ResetFusionEnvironmentPasswordResponse> + javax.ws.rs.core.Response, UploadVanityDomainCertificateResponse> transformer = - ResetFusionEnvironmentPasswordConverter.fromResponse( + UploadVanityDomainCertificateConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -2020,7 +3332,7 @@ public ResetFusionEnvironmentPasswordResponse resetFusionEnvironmentPassword( client.post( ib, retriedRequest - .getResetFusionEnvironmentPasswordDetails(), + .getUploadVanityDomainCertificateDetails(), retriedRequest); return transformer.apply(response); }); @@ -2028,13 +3340,15 @@ public ResetFusionEnvironmentPasswordResponse resetFusionEnvironmentPassword( } @Override - public UpdateFusionEnvironmentResponse updateFusionEnvironment( - UpdateFusionEnvironmentRequest request) { - LOG.trace("Called updateFusionEnvironment"); - final UpdateFusionEnvironmentRequest interceptedRequest = - UpdateFusionEnvironmentConverter.interceptRequest(request); + public ValidateAndConfigureEmailSubdomainCertificateResponse + validateAndConfigureEmailSubdomainCertificate( + ValidateAndConfigureEmailSubdomainCertificateRequest request) { + LOG.trace("Called validateAndConfigureEmailSubdomainCertificate"); + final ValidateAndConfigureEmailSubdomainCertificateRequest interceptedRequest = + ValidateAndConfigureEmailSubdomainCertificateConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateFusionEnvironmentConverter.fromRequest(client, interceptedRequest); + ValidateAndConfigureEmailSubdomainCertificateConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -2043,12 +3357,14 @@ public UpdateFusionEnvironmentResponse updateFusionEnvironment( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "UpdateFusionEnvironment", + "ValidateAndConfigureEmailSubdomainCertificate", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/UpdateFusionEnvironment"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/ValidateAndConfigureEmailSubdomainCertificate"); + java.util.function.Function< + javax.ws.rs.core.Response, + ValidateAndConfigureEmailSubdomainCertificateResponse> transformer = - UpdateFusionEnvironmentConverter.fromResponse( + ValidateAndConfigureEmailSubdomainCertificateConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -2060,23 +3376,21 @@ public UpdateFusionEnvironmentResponse updateFusionEnvironment( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest.getUpdateFusionEnvironmentDetails(), - retriedRequest); + client.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public UpdateFusionEnvironmentFamilyResponse updateFusionEnvironmentFamily( - UpdateFusionEnvironmentFamilyRequest request) { - LOG.trace("Called updateFusionEnvironmentFamily"); - final UpdateFusionEnvironmentFamilyRequest interceptedRequest = - UpdateFusionEnvironmentFamilyConverter.interceptRequest(request); + public ValidateAndConfigureEmailSubdomainDnsResponse validateAndConfigureEmailSubdomainDns( + ValidateAndConfigureEmailSubdomainDnsRequest request) { + LOG.trace("Called validateAndConfigureEmailSubdomainDns"); + final ValidateAndConfigureEmailSubdomainDnsRequest interceptedRequest = + ValidateAndConfigureEmailSubdomainDnsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateFusionEnvironmentFamilyConverter.fromRequest(client, interceptedRequest); + ValidateAndConfigureEmailSubdomainDnsConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -2085,13 +3399,13 @@ public UpdateFusionEnvironmentFamilyResponse updateFusionEnvironmentFamily( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "UpdateFusionEnvironmentFamily", + "ValidateAndConfigureEmailSubdomainDns", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironmentFamily/UpdateFusionEnvironmentFamily"); + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/EmailSubdomain/ValidateAndConfigureEmailSubdomainDns"); java.util.function.Function< - javax.ws.rs.core.Response, UpdateFusionEnvironmentFamilyResponse> + javax.ws.rs.core.Response, ValidateAndConfigureEmailSubdomainDnsResponse> transformer = - UpdateFusionEnvironmentFamilyConverter.fromResponse( + ValidateAndConfigureEmailSubdomainDnsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -2103,24 +3417,20 @@ public UpdateFusionEnvironmentFamilyResponse updateFusionEnvironmentFamily( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest - .getUpdateFusionEnvironmentFamilyDetails(), - retriedRequest); + client.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public UpdateRefreshActivityResponse updateRefreshActivity( - UpdateRefreshActivityRequest request) { - LOG.trace("Called updateRefreshActivity"); - final UpdateRefreshActivityRequest interceptedRequest = - UpdateRefreshActivityConverter.interceptRequest(request); + public ValidateAndConfigureMicrositeDnsResponse validateAndConfigureMicrositeDns( + ValidateAndConfigureMicrositeDnsRequest request) { + LOG.trace("Called validateAndConfigureMicrositeDns"); + final ValidateAndConfigureMicrositeDnsRequest interceptedRequest = + ValidateAndConfigureMicrositeDnsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateRefreshActivityConverter.fromRequest(client, interceptedRequest); + ValidateAndConfigureMicrositeDnsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -2129,12 +3439,13 @@ public UpdateRefreshActivityResponse updateRefreshActivity( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "FusionApplications", - "UpdateRefreshActivity", + "ValidateAndConfigureMicrositeDns", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/UpdateRefreshActivityDetails/UpdateRefreshActivity"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/Microsite/ValidateAndConfigureMicrositeDns"); + java.util.function.Function< + javax.ws.rs.core.Response, ValidateAndConfigureMicrositeDnsResponse> transformer = - UpdateRefreshActivityConverter.fromResponse( + ValidateAndConfigureMicrositeDnsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -2146,10 +3457,7 @@ public UpdateRefreshActivityResponse updateRefreshActivity( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest.getUpdateRefreshActivityDetails(), - retriedRequest); + client.post(ib, retriedRequest); return transformer.apply(response); }); }); diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsPaginators.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsPaginators.java index 39c3e785542..074d3a7e16a 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsPaginators.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsPaginators.java @@ -152,6 +152,119 @@ public ListDataMaskingActivitiesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listEmailSubdomains 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 listEmailSubdomainsResponseIterator( + final ListEmailSubdomainsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListEmailSubdomainsRequest.Builder, ListEmailSubdomainsRequest, + ListEmailSubdomainsResponse>( + new java.util.function.Supplier() { + @Override + public ListEmailSubdomainsRequest.Builder get() { + return ListEmailSubdomainsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListEmailSubdomainsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailSubdomainsRequest.Builder>, + ListEmailSubdomainsRequest>() { + @Override + public ListEmailSubdomainsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailSubdomainsRequest.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< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse>() { + @Override + public ListEmailSubdomainsResponse apply(ListEmailSubdomainsRequest request) { + return client.listEmailSubdomains(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.fusionapps.model.EmailSubdomainSummary} objects + * contained in responses from the listEmailSubdomains 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.fusionapps.model.EmailSubdomainSummary} objects + * contained in responses received from the service. + */ + public Iterable + listEmailSubdomainsRecordIterator(final ListEmailSubdomainsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListEmailSubdomainsRequest.Builder, ListEmailSubdomainsRequest, + ListEmailSubdomainsResponse, com.oracle.bmc.fusionapps.model.EmailSubdomainSummary>( + new java.util.function.Supplier() { + @Override + public ListEmailSubdomainsRequest.Builder get() { + return ListEmailSubdomainsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListEmailSubdomainsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailSubdomainsRequest.Builder>, + ListEmailSubdomainsRequest>() { + @Override + public ListEmailSubdomainsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailSubdomainsRequest.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< + ListEmailSubdomainsRequest, ListEmailSubdomainsResponse>() { + @Override + public ListEmailSubdomainsResponse apply(ListEmailSubdomainsRequest request) { + return client.listEmailSubdomains(request); + } + }, + new java.util.function.Function< + ListEmailSubdomainsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListEmailSubdomainsResponse response) { + return response.getEmailSubdomainCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listFusionEnvironmentFamilies operation. This iterable * will fetch more data from the server as needed. @@ -391,6 +504,229 @@ public ListFusionEnvironmentsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listMarketingBrands 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 listMarketingBrandsResponseIterator( + final ListMarketingBrandsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMarketingBrandsRequest.Builder, ListMarketingBrandsRequest, + ListMarketingBrandsResponse>( + new java.util.function.Supplier() { + @Override + public ListMarketingBrandsRequest.Builder get() { + return ListMarketingBrandsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMarketingBrandsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMarketingBrandsRequest.Builder>, + ListMarketingBrandsRequest>() { + @Override + public ListMarketingBrandsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMarketingBrandsRequest.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< + ListMarketingBrandsRequest, ListMarketingBrandsResponse>() { + @Override + public ListMarketingBrandsResponse apply(ListMarketingBrandsRequest request) { + return client.listMarketingBrands(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.fusionapps.model.MarketingBrandSummary} objects + * contained in responses from the listMarketingBrands 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.fusionapps.model.MarketingBrandSummary} objects + * contained in responses received from the service. + */ + public Iterable + listMarketingBrandsRecordIterator(final ListMarketingBrandsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMarketingBrandsRequest.Builder, ListMarketingBrandsRequest, + ListMarketingBrandsResponse, com.oracle.bmc.fusionapps.model.MarketingBrandSummary>( + new java.util.function.Supplier() { + @Override + public ListMarketingBrandsRequest.Builder get() { + return ListMarketingBrandsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMarketingBrandsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMarketingBrandsRequest.Builder>, + ListMarketingBrandsRequest>() { + @Override + public ListMarketingBrandsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMarketingBrandsRequest.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< + ListMarketingBrandsRequest, ListMarketingBrandsResponse>() { + @Override + public ListMarketingBrandsResponse apply(ListMarketingBrandsRequest request) { + return client.listMarketingBrands(request); + } + }, + new java.util.function.Function< + ListMarketingBrandsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListMarketingBrandsResponse response) { + return response.getMarketingBrandCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listMicrosites 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 listMicrositesResponseIterator( + final ListMicrositesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMicrositesRequest.Builder, ListMicrositesRequest, ListMicrositesResponse>( + new java.util.function.Supplier() { + @Override + public ListMicrositesRequest.Builder get() { + return ListMicrositesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMicrositesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMicrositesRequest.Builder>, + ListMicrositesRequest>() { + @Override + public ListMicrositesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMicrositesRequest.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 ListMicrositesResponse apply(ListMicrositesRequest request) { + return client.listMicrosites(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.fusionapps.model.MicrositeSummary} objects + * contained in responses from the listMicrosites 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.fusionapps.model.MicrositeSummary} objects + * contained in responses received from the service. + */ + public Iterable listMicrositesRecordIterator( + final ListMicrositesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMicrositesRequest.Builder, ListMicrositesRequest, ListMicrositesResponse, + com.oracle.bmc.fusionapps.model.MicrositeSummary>( + new java.util.function.Supplier() { + @Override + public ListMicrositesRequest.Builder get() { + return ListMicrositesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMicrositesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMicrositesRequest.Builder>, + ListMicrositesRequest>() { + @Override + public ListMicrositesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMicrositesRequest.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 ListMicrositesResponse apply(ListMicrositesRequest request) { + return client.listMicrosites(request); + } + }, + new java.util.function.Function< + ListMicrositesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListMicrositesResponse response) { + return response.getMicrositeCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listRefreshActivities operation. This iterable * will fetch more data from the server as needed. @@ -863,6 +1199,119 @@ public ListTimeAvailableForRefreshesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listVanityDomains 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 listVanityDomainsResponseIterator( + final ListVanityDomainsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVanityDomainsRequest.Builder, ListVanityDomainsRequest, + ListVanityDomainsResponse>( + new java.util.function.Supplier() { + @Override + public ListVanityDomainsRequest.Builder get() { + return ListVanityDomainsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVanityDomainsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVanityDomainsRequest.Builder>, + ListVanityDomainsRequest>() { + @Override + public ListVanityDomainsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVanityDomainsRequest.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< + ListVanityDomainsRequest, ListVanityDomainsResponse>() { + @Override + public ListVanityDomainsResponse apply(ListVanityDomainsRequest request) { + return client.listVanityDomains(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.fusionapps.model.VanityDomainSummary} objects + * contained in responses from the listVanityDomains 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.fusionapps.model.VanityDomainSummary} objects + * contained in responses received from the service. + */ + public Iterable + listVanityDomainsRecordIterator(final ListVanityDomainsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVanityDomainsRequest.Builder, ListVanityDomainsRequest, + ListVanityDomainsResponse, com.oracle.bmc.fusionapps.model.VanityDomainSummary>( + new java.util.function.Supplier() { + @Override + public ListVanityDomainsRequest.Builder get() { + return ListVanityDomainsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVanityDomainsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVanityDomainsRequest.Builder>, + ListVanityDomainsRequest>() { + @Override + public ListVanityDomainsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVanityDomainsRequest.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< + ListVanityDomainsRequest, ListVanityDomainsResponse>() { + @Override + public ListVanityDomainsResponse apply(ListVanityDomainsRequest request) { + return client.listVanityDomains(request); + } + }, + new java.util.function.Function< + ListVanityDomainsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListVanityDomainsResponse response) { + return response.getVanityDomainCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsWaiters.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsWaiters.java index ad39b22d29a..1d6d0138ba6 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsWaiters.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsWaiters.java @@ -133,6 +133,109 @@ public boolean test(GetDataMaskingActivityResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forEmailSubdomain( + GetEmailSubdomainRequest request, + com.oracle.bmc.fusionapps.model.EmailSubdomain.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 forEmailSubdomain( + 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 + forEmailSubdomain( + GetEmailSubdomainRequest request, + com.oracle.bmc.fusionapps.model.EmailSubdomain.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 forEmailSubdomain( + 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 + forEmailSubdomain( + GetEmailSubdomainRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fusionapps.model.EmailSubdomain.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 forEmailSubdomain( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for EmailSubdomain. + private com.oracle.bmc.waiter.Waiter + forEmailSubdomain( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetEmailSubdomainRequest request, + final com.oracle.bmc.fusionapps.model.EmailSubdomain.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< + GetEmailSubdomainRequest, GetEmailSubdomainResponse>() { + @Override + public GetEmailSubdomainResponse apply( + GetEmailSubdomainRequest request) { + return client.getEmailSubdomain(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetEmailSubdomainResponse response) { + return targetStatesSet.contains( + response.getEmailSubdomain().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -353,6 +456,206 @@ public boolean test(GetFusionEnvironmentFamilyResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMarketingBrand( + GetMarketingBrandRequest request, + com.oracle.bmc.fusionapps.model.MarketingBrand.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 forMarketingBrand( + 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 + forMarketingBrand( + GetMarketingBrandRequest request, + com.oracle.bmc.fusionapps.model.MarketingBrand.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 forMarketingBrand( + 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 + forMarketingBrand( + GetMarketingBrandRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fusionapps.model.MarketingBrand.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 forMarketingBrand( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MarketingBrand. + private com.oracle.bmc.waiter.Waiter + forMarketingBrand( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMarketingBrandRequest request, + final com.oracle.bmc.fusionapps.model.MarketingBrand.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< + GetMarketingBrandRequest, GetMarketingBrandResponse>() { + @Override + public GetMarketingBrandResponse apply( + GetMarketingBrandRequest request) { + return client.getMarketingBrand(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMarketingBrandResponse response) { + return targetStatesSet.contains( + response.getMarketingBrand().getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forMicrosite( + GetMicrositeRequest request, + com.oracle.bmc.fusionapps.model.Microsite.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 forMicrosite( + 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 forMicrosite( + GetMicrositeRequest request, + com.oracle.bmc.fusionapps.model.Microsite.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 forMicrosite( + 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 forMicrosite( + GetMicrositeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fusionapps.model.Microsite.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 forMicrosite( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Microsite. + private com.oracle.bmc.waiter.Waiter forMicrosite( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMicrositeRequest request, + final com.oracle.bmc.fusionapps.model.Microsite.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< + GetMicrositeRequest, GetMicrositeResponse>() { + @Override + public GetMicrositeResponse apply(GetMicrositeRequest request) { + return client.getMicrosite(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMicrositeResponse response) { + return targetStatesSet.contains( + response.getMicrosite().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -670,6 +973,219 @@ public boolean test(GetServiceAttachmentResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forVanityDomain( + GetVanityDomainRequest request, + com.oracle.bmc.fusionapps.model.VanityDomain.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 forVanityDomain( + 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 + forVanityDomain( + GetVanityDomainRequest request, + com.oracle.bmc.fusionapps.model.VanityDomain.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 forVanityDomain( + 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 + forVanityDomain( + GetVanityDomainRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fusionapps.model.VanityDomain.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 forVanityDomain( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VanityDomain. + private com.oracle.bmc.waiter.Waiter + forVanityDomain( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVanityDomainRequest request, + final com.oracle.bmc.fusionapps.model.VanityDomain.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< + GetVanityDomainRequest, GetVanityDomainResponse>() { + @Override + public GetVanityDomainResponse apply(GetVanityDomainRequest request) { + return client.getVanityDomain(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVanityDomainResponse response) { + return targetStatesSet.contains( + response.getVanityDomain().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fusionapps.model.VanityDomain.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + forVanityDomainActivity( + GetVanityDomainActivityRequest request, + com.oracle.bmc.fusionapps.model.VanityDomainActivity.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 forVanityDomainActivity( + 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< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + forVanityDomainActivity( + GetVanityDomainActivityRequest request, + com.oracle.bmc.fusionapps.model.VanityDomainActivity.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 forVanityDomainActivity( + 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< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + forVanityDomainActivity( + GetVanityDomainActivityRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fusionapps.model.VanityDomainActivity.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 forVanityDomainActivity( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VanityDomainActivity. + private com.oracle.bmc.waiter.Waiter< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse> + forVanityDomainActivity( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVanityDomainActivityRequest request, + final com.oracle.bmc.fusionapps.model.VanityDomainActivity.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< + GetVanityDomainActivityRequest, GetVanityDomainActivityResponse>() { + @Override + public GetVanityDomainActivityResponse apply( + GetVanityDomainActivityRequest request) { + return client.getVanityDomainActivity(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVanityDomainActivityResponse response) { + return targetStatesSet.contains( + response.getVanityDomainActivity().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateEmailSubdomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateEmailSubdomainConverter.java new file mode 100644 index 00000000000..0930ab7867f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateEmailSubdomainConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 CreateEmailSubdomainConverter { + 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(CreateEmailSubdomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.CreateEmailSubdomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.CreateEmailSubdomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.CreateEmailSubdomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notNull( + request.getCreateEmailSubdomainDetails(), + "createEmailSubdomainDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains"); + + 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.fusionapps.responses.CreateEmailSubdomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateEmailSubdomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateEmailSubdomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .CreateEmailSubdomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.CreateEmailSubdomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.CreateEmailSubdomainResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .EmailSubdomain>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.EmailSubdomain + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.EmailSubdomain + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.EmailSubdomain> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.CreateEmailSubdomainResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .CreateEmailSubdomainResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.emailSubdomain(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.CreateEmailSubdomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateMarketingBrandConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateMarketingBrandConverter.java new file mode 100644 index 00000000000..8635cebc658 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateMarketingBrandConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 CreateMarketingBrandConverter { + 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(CreateMarketingBrandConverter.class); + + public static com.oracle.bmc.fusionapps.requests.CreateMarketingBrandRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.CreateMarketingBrandRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.CreateMarketingBrandRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notNull( + request.getCreateMarketingBrandDetails(), + "createMarketingBrandDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands"); + + 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.fusionapps.responses.CreateMarketingBrandResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateMarketingBrandResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateMarketingBrandResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .CreateMarketingBrandResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.CreateMarketingBrandResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.CreateMarketingBrandResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrand>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.MarketingBrand + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.MarketingBrand + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.MarketingBrand> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.CreateMarketingBrandResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .CreateMarketingBrandResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrand(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.CreateMarketingBrandResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateMicrositeConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateMicrositeConverter.java new file mode 100644 index 00000000000..58baa5f3cae --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateMicrositeConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 CreateMicrositeConverter { + 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(CreateMicrositeConverter.class); + + public static com.oracle.bmc.fusionapps.requests.CreateMicrositeRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.CreateMicrositeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.CreateMicrositeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notNull(request.getCreateMicrositeDetails(), "createMicrositeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.Microsite>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.Microsite.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.Microsite + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.Microsite> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .CreateMicrositeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.microsite(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.CreateMicrositeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateVanityDomainActivityConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateVanityDomainActivityConverter.java new file mode 100644 index 00000000000..25139bffcbd --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateVanityDomainActivityConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 CreateVanityDomainActivityConverter { + 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(CreateVanityDomainActivityConverter.class); + + public static com.oracle.bmc.fusionapps.requests.CreateVanityDomainActivityRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.CreateVanityDomainActivityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.CreateVanityDomainActivityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateVanityDomainActivityDetails(), + "createVanityDomainActivityDetails 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("vanityDomainActivities"); + + 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.fusionapps.responses.CreateVanityDomainActivityResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateVanityDomainActivityResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateVanityDomainActivityResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .CreateVanityDomainActivityResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .CreateVanityDomainActivityResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.CreateVanityDomainActivityResponse"); + 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.fusionapps.responses + .CreateVanityDomainActivityResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .CreateVanityDomainActivityResponse + .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)); + } + + java.util.Optional> vanityActivityIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "vanity-activity-id"); + if (vanityActivityIdHeader.isPresent()) { + builder.vanityActivityId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "vanity-activity-id", + vanityActivityIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses + .CreateVanityDomainActivityResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateVanityDomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateVanityDomainConverter.java new file mode 100644 index 00000000000..60c826ce932 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/CreateVanityDomainConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateVanityDomainConverter { + 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(CreateVanityDomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.CreateVanityDomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.CreateVanityDomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.CreateVanityDomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateVanityDomainDetails(), "createVanityDomainDetails 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("vanityDomains"); + + 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.fusionapps.responses.CreateVanityDomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateVanityDomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateVanityDomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.CreateVanityDomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.CreateVanityDomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.CreateVanityDomainResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .VanityDomain>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.VanityDomain + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.VanityDomain + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.VanityDomain> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.CreateVanityDomainResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .CreateVanityDomainResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vanityDomain(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> 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.fusionapps.responses.CreateVanityDomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteEmailSubdomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteEmailSubdomainConverter.java new file mode 100644 index 00000000000..f90629307ac --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteEmailSubdomainConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 DeleteEmailSubdomainConverter { + 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(DeleteEmailSubdomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.DeleteEmailSubdomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.DeleteEmailSubdomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.DeleteEmailSubdomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())); + + 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.fusionapps.responses.DeleteEmailSubdomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteEmailSubdomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteEmailSubdomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .DeleteEmailSubdomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.DeleteEmailSubdomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.DeleteEmailSubdomainResponse"); + 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.fusionapps.responses.DeleteEmailSubdomainResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .DeleteEmailSubdomainResponse.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.fusionapps.responses.DeleteEmailSubdomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteMarketingBrandConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteMarketingBrandConverter.java new file mode 100644 index 00000000000..4f937a6c85c --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteMarketingBrandConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 DeleteMarketingBrandConverter { + 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(DeleteMarketingBrandConverter.class); + + public static com.oracle.bmc.fusionapps.requests.DeleteMarketingBrandRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.DeleteMarketingBrandRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.DeleteMarketingBrandRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())); + + 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.fusionapps.responses.DeleteMarketingBrandResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteMarketingBrandResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteMarketingBrandResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .DeleteMarketingBrandResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.DeleteMarketingBrandResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.DeleteMarketingBrandResponse"); + 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.fusionapps.responses.DeleteMarketingBrandResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .DeleteMarketingBrandResponse.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.fusionapps.responses.DeleteMarketingBrandResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteMicrositeConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteMicrositeConverter.java new file mode 100644 index 00000000000..d76214ccc4b --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteMicrositeConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 DeleteMicrositeConverter { + 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(DeleteMicrositeConverter.class); + + public static com.oracle.bmc.fusionapps.requests.DeleteMicrositeRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.DeleteMicrositeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.DeleteMicrositeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getMicrositeId(), "micrositeId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMicrositeId())); + + 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.fusionapps.responses.DeleteMicrositeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteMicrositeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteMicrositeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteMicrositeResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.DeleteMicrositeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.DeleteMicrositeResponse"); + 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.fusionapps.responses.DeleteMicrositeResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .DeleteMicrositeResponse.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.fusionapps.responses.DeleteMicrositeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteVanityDomainActivityConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteVanityDomainActivityConverter.java new file mode 100644 index 00000000000..4411e0671e5 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/DeleteVanityDomainActivityConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 DeleteVanityDomainActivityConverter { + 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(DeleteVanityDomainActivityConverter.class); + + public static com.oracle.bmc.fusionapps.requests.DeleteVanityDomainActivityRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.DeleteVanityDomainActivityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.DeleteVanityDomainActivityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank( + request.getVanityDomainActivityId(), "vanityDomainActivityId 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("vanityDomainActivities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainActivityId())); + + 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.fusionapps.responses.DeleteVanityDomainActivityResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteVanityDomainActivityResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.DeleteVanityDomainActivityResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .DeleteVanityDomainActivityResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .DeleteVanityDomainActivityResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.DeleteVanityDomainActivityResponse"); + 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.fusionapps.responses + .DeleteVanityDomainActivityResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .DeleteVanityDomainActivityResponse + .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.fusionapps.responses + .DeleteVanityDomainActivityResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainConverter.java new file mode 100644 index 00000000000..8edacefa511 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetEmailSubdomainConverter { + 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(GetEmailSubdomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetEmailSubdomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GetEmailSubdomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetEmailSubdomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())); + + 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.GetEmailSubdomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .EmailSubdomain>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.EmailSubdomain + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.EmailSubdomain + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.EmailSubdomain> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.emailSubdomain(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainCsrConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainCsrConverter.java new file mode 100644 index 00000000000..edde2a1ef54 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainCsrConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetEmailSubdomainCsrConverter { + 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(GetEmailSubdomainCsrConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetEmailSubdomainCsrRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GetEmailSubdomainCsrRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetEmailSubdomainCsrRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())) + .path("csr"); + + 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.GetEmailSubdomainCsrResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainCsrResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainCsrResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainCsrResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.GetEmailSubdomainCsrResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetEmailSubdomainCsrResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainCsrResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainCsrResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrandEmailSubdomainCsr(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainCsrResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainDnsConfigConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainDnsConfigConverter.java new file mode 100644 index 00000000000..20968170761 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetEmailSubdomainDnsConfigConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetEmailSubdomainDnsConfigConverter { + 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(GetEmailSubdomainDnsConfigConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetEmailSubdomainDnsConfigRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.GetEmailSubdomainDnsConfigRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetEmailSubdomainDnsConfigRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())) + .path("dnsConfig"); + + 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.GetEmailSubdomainDnsConfigResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainDnsConfigResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetEmailSubdomainDnsConfigResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainDnsConfigResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainDnsConfigResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetEmailSubdomainDnsConfigResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainDnsConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainDnsConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainDnsConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainDnsConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainDnsConfigResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetEmailSubdomainDnsConfigResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrandEmailSubdomainDnsConfig(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 + .GetEmailSubdomainDnsConfigResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMarketingBrandConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMarketingBrandConverter.java new file mode 100644 index 00000000000..2bb16d79c22 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMarketingBrandConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetMarketingBrandConverter { + 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(GetMarketingBrandConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetMarketingBrandRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GetMarketingBrandRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetMarketingBrandRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())); + + 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.GetMarketingBrandResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrand>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.MarketingBrand + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.MarketingBrand + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.MarketingBrand> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetMarketingBrandResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrand(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GetMarketingBrandResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMicrositeConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMicrositeConverter.java new file mode 100644 index 00000000000..a749f87cd68 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMicrositeConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetMicrositeConverter { + 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(GetMicrositeConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetMicrositeRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GetMicrositeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetMicrositeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getMicrositeId(), "micrositeId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMicrositeId())); + + 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.GetMicrositeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMicrositeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMicrositeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMicrositeResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.GetMicrositeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetMicrositeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.Microsite>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.Microsite.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.Microsite + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.Microsite> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetMicrositeResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetMicrositeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.microsite(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GetMicrositeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMicrositeDnsConfigConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMicrositeDnsConfigConverter.java new file mode 100644 index 00000000000..60136b063b1 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetMicrositeDnsConfigConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetMicrositeDnsConfigConverter { + 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(GetMicrositeDnsConfigConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetMicrositeDnsConfigRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GetMicrositeDnsConfigRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetMicrositeDnsConfigRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getMicrositeId(), "micrositeId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMicrositeId())) + .path("dnsConfig"); + + 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.GetMicrositeDnsConfigResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMicrositeDnsConfigResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetMicrositeDnsConfigResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .GetMicrositeDnsConfigResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.GetMicrositeDnsConfigResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetMicrositeDnsConfigResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandMicrositeDnsConfig>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandMicrositeDnsConfig + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandMicrositeDnsConfig + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandMicrositeDnsConfig> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetMicrositeDnsConfigResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetMicrositeDnsConfigResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrandMicrositeDnsConfig(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.GetMicrositeDnsConfigResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetVanityDomainActivityConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetVanityDomainActivityConverter.java new file mode 100644 index 00000000000..d8234cbcea4 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetVanityDomainActivityConverter.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetVanityDomainActivityConverter { + 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(GetVanityDomainActivityConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetVanityDomainActivityRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.GetVanityDomainActivityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetVanityDomainActivityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank( + request.getVanityDomainActivityId(), "vanityDomainActivityId 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("vanityDomainActivities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainActivityId())); + + 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.GetVanityDomainActivityResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetVanityDomainActivityResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetVanityDomainActivityResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .GetVanityDomainActivityResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .GetVanityDomainActivityResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetVanityDomainActivityResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .VanityDomainActivity>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .VanityDomainActivity + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .VanityDomainActivity + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .VanityDomainActivity> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetVanityDomainActivityResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetVanityDomainActivityResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vanityDomainActivity(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GetVanityDomainActivityResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetVanityDomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetVanityDomainConverter.java new file mode 100644 index 00000000000..a9d14d89bb1 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GetVanityDomainConverter.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetVanityDomainConverter { + 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(GetVanityDomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GetVanityDomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GetVanityDomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GetVanityDomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getVanityDomainId(), "vanityDomainId 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("vanityDomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainId())); + + if (request.getDoesDownloadOriginCsr() != null) { + target = + target.queryParam( + "doesDownloadOriginCsr", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDoesDownloadOriginCsr())); + } + + if (request.getDoesDownloadAkamaiCsr() != null) { + target = + target.queryParam( + "doesDownloadAkamaiCsr", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDoesDownloadAkamaiCsr())); + } + + 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.GetVanityDomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .VanityDomain>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.VanityDomain + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.VanityDomain + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.VanityDomain> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .GetVanityDomainResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vanityDomain(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GetVanityDomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListEmailSubdomainsConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListEmailSubdomainsConverter.java new file mode 100644 index 00000000000..96e7856e53f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListEmailSubdomainsConverter.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ListEmailSubdomainsConverter { + 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(ListEmailSubdomainsConverter.class); + + public static com.oracle.bmc.fusionapps.requests.ListEmailSubdomainsRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.ListEmailSubdomainsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ListEmailSubdomainsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains"); + + if (request.getEmailSubdomainId() != null) { + target = + target.queryParam( + "emailSubdomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEmailSubdomainId())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .EmailSubdomainCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .EmailSubdomainCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .EmailSubdomainCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .EmailSubdomainCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.ListEmailSubdomainsResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .ListEmailSubdomainsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.emailSubdomainCollection(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.fusionapps.responses.ListEmailSubdomainsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListMarketingBrandsConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListMarketingBrandsConverter.java new file mode 100644 index 00000000000..83fd25f79b4 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListMarketingBrandsConverter.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ListMarketingBrandsConverter { + 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(ListMarketingBrandsConverter.class); + + public static com.oracle.bmc.fusionapps.requests.ListMarketingBrandsRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.ListMarketingBrandsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ListMarketingBrandsRequest 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("marketingBrands"); + + if (request.getMarketingBrandId() != null) { + target = + target.queryParam( + "marketingBrandId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMarketingBrandId())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.ListMarketingBrandsResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .ListMarketingBrandsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrandCollection(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.fusionapps.responses.ListMarketingBrandsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListMicrositesConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListMicrositesConverter.java new file mode 100644 index 00000000000..bb50dc93009 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListMicrositesConverter.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ListMicrositesConverter { + 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(ListMicrositesConverter.class); + + public static com.oracle.bmc.fusionapps.requests.ListMicrositesRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.ListMicrositesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ListMicrositesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites"); + + if (request.getMicrositeId() != null) { + target = + target.queryParam( + "micrositeId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMicrositeId())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMicrositesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMicrositesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMicrositesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListMicrositesResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.ListMicrositesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ListMicrositesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MicrositeCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MicrositeCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MicrositeCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.MicrositeCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.ListMicrositesResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .ListMicrositesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.micrositeCollection(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.fusionapps.responses.ListMicrositesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListVanityDomainsConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListVanityDomainsConverter.java new file mode 100644 index 00000000000..80f239da6f8 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ListVanityDomainsConverter.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ListVanityDomainsConverter { + 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(ListVanityDomainsConverter.class); + + public static com.oracle.bmc.fusionapps.requests.ListVanityDomainsRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.ListVanityDomainsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ListVanityDomainsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + Validate.notNull(request.getIsFullVanityDomain(), "isFullVanityDomain is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("vanityDomains"); + + 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())); + } + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + target = + target.queryParam( + "isFullVanityDomain", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsFullVanityDomain())); + + 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.ListVanityDomainsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListVanityDomainsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListVanityDomainsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ListVanityDomainsResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.ListVanityDomainsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ListVanityDomainsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .VanityDomainCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .VanityDomainCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .VanityDomainCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .VanityDomainCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.ListVanityDomainsResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .ListVanityDomainsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vanityDomainCollection(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.fusionapps.responses.ListVanityDomainsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/RequestEmailSubdomainCsrConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/RequestEmailSubdomainCsrConverter.java new file mode 100644 index 00000000000..445b6313424 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/RequestEmailSubdomainCsrConverter.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 RequestEmailSubdomainCsrConverter { + 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(RequestEmailSubdomainCsrConverter.class); + + public static com.oracle.bmc.fusionapps.requests.RequestEmailSubdomainCsrRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.RequestEmailSubdomainCsrRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.RequestEmailSubdomainCsrRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId must not be blank"); + Validate.notNull( + request.getRequestEmailSubdomainCsrDetails(), + "requestEmailSubdomainCsrDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())) + .path("actions") + .path("requestEmailSubdomainCsr"); + + 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.fusionapps.responses.RequestEmailSubdomainCsrResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.RequestEmailSubdomainCsrResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.RequestEmailSubdomainCsrResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .RequestEmailSubdomainCsrResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .RequestEmailSubdomainCsrResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.RequestEmailSubdomainCsrResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrandEmailSubdomainCsr> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.RequestEmailSubdomainCsrResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .RequestEmailSubdomainCsrResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrandEmailSubdomainCsr(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.RequestEmailSubdomainCsrResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/SubmitVanityDomainValidationConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/SubmitVanityDomainValidationConverter.java new file mode 100644 index 00000000000..8a59f95c5eb --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/SubmitVanityDomainValidationConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 SubmitVanityDomainValidationConverter { + 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(SubmitVanityDomainValidationConverter.class); + + public static com.oracle.bmc.fusionapps.requests.SubmitVanityDomainValidationRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.SubmitVanityDomainValidationRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.SubmitVanityDomainValidationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVanityDomainId(), "vanityDomainId must not be blank"); + 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("vanityDomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainId())) + .path("actions") + .path("submitValidation"); + + 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.fusionapps.responses.SubmitVanityDomainValidationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.SubmitVanityDomainValidationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.SubmitVanityDomainValidationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .SubmitVanityDomainValidationResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .SubmitVanityDomainValidationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.SubmitVanityDomainValidationResponse"); + 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.fusionapps.responses + .SubmitVanityDomainValidationResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .SubmitVanityDomainValidationResponse + .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.fusionapps.responses + .SubmitVanityDomainValidationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateEmailSubdomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateEmailSubdomainConverter.java new file mode 100644 index 00000000000..0f3d8a7c3fa --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateEmailSubdomainConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateEmailSubdomainConverter { + 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(UpdateEmailSubdomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UpdateEmailSubdomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.UpdateEmailSubdomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UpdateEmailSubdomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId must not be blank"); + Validate.notNull( + request.getUpdateEmailSubdomainDetails(), + "updateEmailSubdomainDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())); + + 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.fusionapps.responses.UpdateEmailSubdomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateEmailSubdomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateEmailSubdomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .UpdateEmailSubdomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.UpdateEmailSubdomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UpdateEmailSubdomainResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .EmailSubdomain>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.EmailSubdomain + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.EmailSubdomain + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.EmailSubdomain> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.UpdateEmailSubdomainResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .UpdateEmailSubdomainResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.emailSubdomain(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.UpdateEmailSubdomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateMarketingBrandConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateMarketingBrandConverter.java new file mode 100644 index 00000000000..98bdca5978f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateMarketingBrandConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateMarketingBrandConverter { + 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(UpdateMarketingBrandConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UpdateMarketingBrandRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.UpdateMarketingBrandRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UpdateMarketingBrandRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notNull( + request.getUpdateMarketingBrandDetails(), + "updateMarketingBrandDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())); + + 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.fusionapps.responses.UpdateMarketingBrandResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateMarketingBrandResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateMarketingBrandResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .UpdateMarketingBrandResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.UpdateMarketingBrandResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UpdateMarketingBrandResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .MarketingBrand>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.MarketingBrand + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.MarketingBrand + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.MarketingBrand> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.UpdateMarketingBrandResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .UpdateMarketingBrandResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.marketingBrand(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.UpdateMarketingBrandResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateMicrositeConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateMicrositeConverter.java new file mode 100644 index 00000000000..625a597eedb --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateMicrositeConverter.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 UpdateMicrositeConverter { + 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(UpdateMicrositeConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UpdateMicrositeRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.UpdateMicrositeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UpdateMicrositeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getMicrositeId(), "micrositeId must not be blank"); + Validate.notNull(request.getUpdateMicrositeDetails(), "updateMicrositeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMicrositeId())); + + 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.fusionapps.responses.UpdateMicrositeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.Microsite>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.Microsite.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model.Microsite + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model.Microsite> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .UpdateMicrositeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.microsite(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.UpdateMicrositeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateVanityDomainActivityConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateVanityDomainActivityConverter.java new file mode 100644 index 00000000000..04e45e60629 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateVanityDomainActivityConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 UpdateVanityDomainActivityConverter { + 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(UpdateVanityDomainActivityConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UpdateVanityDomainActivityRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.UpdateVanityDomainActivityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UpdateVanityDomainActivityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank( + request.getVanityDomainActivityId(), "vanityDomainActivityId must not be blank"); + Validate.notNull( + request.getUpdateVanityDomainActivityDetails(), + "updateVanityDomainActivityDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("vanityDomainActivities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainActivityId())); + + 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.fusionapps.responses.UpdateVanityDomainActivityResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateVanityDomainActivityResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateVanityDomainActivityResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .UpdateVanityDomainActivityResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .UpdateVanityDomainActivityResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UpdateVanityDomainActivityResponse"); + 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.fusionapps.responses + .UpdateVanityDomainActivityResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .UpdateVanityDomainActivityResponse + .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.fusionapps.responses + .UpdateVanityDomainActivityResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateVanityDomainConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateVanityDomainConverter.java new file mode 100644 index 00000000000..5a22ce23b13 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UpdateVanityDomainConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 UpdateVanityDomainConverter { + 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(UpdateVanityDomainConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UpdateVanityDomainRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.UpdateVanityDomainRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UpdateVanityDomainRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getVanityDomainId(), "vanityDomainId must not be blank"); + Validate.notNull( + request.getUpdateVanityDomainDetails(), "updateVanityDomainDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("vanityDomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainId())); + + 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.fusionapps.responses.UpdateVanityDomainResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateVanityDomainResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateVanityDomainResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UpdateVanityDomainResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses.UpdateVanityDomainResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UpdateVanityDomainResponse"); + 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.fusionapps.responses.UpdateVanityDomainResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .UpdateVanityDomainResponse.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.fusionapps.responses.UpdateVanityDomainResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UploadEmailSubdomainCertificateConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UploadEmailSubdomainCertificateConverter.java new file mode 100644 index 00000000000..98bde352f11 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UploadEmailSubdomainCertificateConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 UploadEmailSubdomainCertificateConverter { + 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(UploadEmailSubdomainCertificateConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UploadEmailSubdomainCertificateRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.UploadEmailSubdomainCertificateRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UploadEmailSubdomainCertificateRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId must not be blank"); + Validate.notNull( + request.getUploadEmailSubdomainCertificateDetails(), + "uploadEmailSubdomainCertificateDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())) + .path("actions") + .path("uploadEmailSubdomainCertificate"); + + 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.fusionapps.responses.UploadEmailSubdomainCertificateResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UploadEmailSubdomainCertificateResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UploadEmailSubdomainCertificateResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .UploadEmailSubdomainCertificateResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .UploadEmailSubdomainCertificateResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UploadEmailSubdomainCertificateResponse"); + 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.fusionapps.responses + .UploadEmailSubdomainCertificateResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .UploadEmailSubdomainCertificateResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses + .UploadEmailSubdomainCertificateResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UploadVanityDomainCertificateConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UploadVanityDomainCertificateConverter.java new file mode 100644 index 00000000000..8948e547781 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/UploadVanityDomainCertificateConverter.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 UploadVanityDomainCertificateConverter { + 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(UploadVanityDomainCertificateConverter.class); + + public static com.oracle.bmc.fusionapps.requests.UploadVanityDomainCertificateRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.UploadVanityDomainCertificateRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.UploadVanityDomainCertificateRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUploadVanityDomainCertificateDetails(), + "uploadVanityDomainCertificateDetails is required"); + Validate.notBlank(request.getVanityDomainId(), "vanityDomainId must not be blank"); + 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("vanityDomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVanityDomainId())) + .path("actions") + .path("uploadCertificate"); + + 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.fusionapps.responses.UploadVanityDomainCertificateResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UploadVanityDomainCertificateResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.UploadVanityDomainCertificateResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .UploadVanityDomainCertificateResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .UploadVanityDomainCertificateResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.UploadVanityDomainCertificateResponse"); + 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.fusionapps.responses + .UploadVanityDomainCertificateResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .UploadVanityDomainCertificateResponse + .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.fusionapps.responses + .UploadVanityDomainCertificateResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureEmailSubdomainCertificateConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureEmailSubdomainCertificateConverter.java new file mode 100644 index 00000000000..11e02f7c270 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureEmailSubdomainCertificateConverter.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ValidateAndConfigureEmailSubdomainCertificateConverter { + 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( + ValidateAndConfigureEmailSubdomainCertificateConverter.class); + + public static com.oracle.bmc.fusionapps.requests + .ValidateAndConfigureEmailSubdomainCertificateRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests + .ValidateAndConfigureEmailSubdomainCertificateRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ValidateAndConfigureEmailSubdomainCertificateRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())) + .path("actions") + .path("validateAndConfigureCertificate"); + + 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.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ValidateAndConfigureEmailSubdomainCertificateResponse"); + 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.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse + .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.fusionapps.responses + .ValidateAndConfigureEmailSubdomainCertificateResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureEmailSubdomainDnsConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureEmailSubdomainDnsConverter.java new file mode 100644 index 00000000000..f8829b73b0b --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureEmailSubdomainDnsConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ValidateAndConfigureEmailSubdomainDnsConverter { + 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(ValidateAndConfigureEmailSubdomainDnsConverter.class); + + public static com.oracle.bmc.fusionapps.requests.ValidateAndConfigureEmailSubdomainDnsRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.ValidateAndConfigureEmailSubdomainDnsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ValidateAndConfigureEmailSubdomainDnsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getEmailSubdomainId(), "emailSubdomainId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("emailSubdomains") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEmailSubdomainId())) + .path("actions") + .path("validateAndConfigureDns"); + + 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.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ValidateAndConfigureEmailSubdomainDnsResponse"); + 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.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse + .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.fusionapps.responses + .ValidateAndConfigureEmailSubdomainDnsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureMicrositeDnsConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureMicrositeDnsConverter.java new file mode 100644 index 00000000000..575e4731af3 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/ValidateAndConfigureMicrositeDnsConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ValidateAndConfigureMicrositeDnsConverter { + 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(ValidateAndConfigureMicrositeDnsConverter.class); + + public static com.oracle.bmc.fusionapps.requests.ValidateAndConfigureMicrositeDnsRequest + interceptRequest( + com.oracle.bmc.fusionapps.requests.ValidateAndConfigureMicrositeDnsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.ValidateAndConfigureMicrositeDnsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + Validate.notBlank(request.getMarketingBrandId(), "marketingBrandId must not be blank"); + Validate.notBlank(request.getMicrositeId(), "micrositeId 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("marketingBrands") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMarketingBrandId())) + .path("microsites") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMicrositeId())) + .path("actions") + .path("validateAndConfigureDns"); + + 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.fusionapps.responses.ValidateAndConfigureMicrositeDnsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.ValidateAndConfigureMicrositeDnsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureMicrositeDnsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureMicrositeDnsResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureMicrositeDnsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.ValidateAndConfigureMicrositeDnsResponse"); + 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.fusionapps.responses + .ValidateAndConfigureMicrositeDnsResponse.Builder + builder = + com.oracle.bmc.fusionapps.responses + .ValidateAndConfigureMicrositeDnsResponse + .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.fusionapps.responses + .ValidateAndConfigureMicrositeDnsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java index 8c55a59f10a..88fea05ed0e 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java @@ -5,7 +5,7 @@ package com.oracle.bmc.fusionapps.model; /** - * Action details + * Action 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 @@ -41,13 +41,13 @@ protected Action(String referenceKey, State state, String description) { } /** - * Unique identifier of the object that represents the action + * Unique identifier of the object that represents the action. **/ @com.fasterxml.jackson.annotation.JsonProperty("referenceKey") private final String referenceKey; /** - * Unique identifier of the object that represents the action + * Unique identifier of the object that represents the action. * @return the value **/ public String getReferenceKey() { @@ -55,7 +55,7 @@ public String getReferenceKey() { } /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. **/ public enum State { Accepted("ACCEPTED"), @@ -105,13 +105,13 @@ public static State create(String key) { } }; /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. **/ @com.fasterxml.jackson.annotation.JsonProperty("state") private final State state; /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. * @return the value **/ public State getState() { @@ -181,7 +181,7 @@ public int hashCode() { } /** - * Type of action + * Type of action. **/ public enum ActionType { QuarterlyUpgrade("QUARTERLY_UPGRADE"), diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/AdditionalEgressRule.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/AdditionalEgressRule.java new file mode 100644 index 00000000000..f642edb8782 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/AdditionalEgressRule.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Additional egress rule. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = AdditionalEgressRule.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AdditionalEgressRule extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "destinationCidr", + "maxDestinationPort", + "minDestinationPort" + }) + public AdditionalEgressRule( + String description, + String destinationCidr, + Integer maxDestinationPort, + Integer minDestinationPort) { + super(); + this.description = description; + this.destinationCidr = destinationCidr; + this.maxDestinationPort = maxDestinationPort; + this.minDestinationPort = minDestinationPort; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Rule description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Rule description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Specifies the destination CIDR block the port should be opened for. Must be IPv4 only, and cannot be part of any private range from [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("destinationCidr") + private String destinationCidr; + + /** + * Specifies the destination CIDR block the port should be opened for. Must be IPv4 only, and cannot be part of any private range from [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918). + * @param destinationCidr the value to set + * @return this builder + **/ + public Builder destinationCidr(String destinationCidr) { + this.destinationCidr = destinationCidr; + this.__explicitlySet__.add("destinationCidr"); + return this; + } + /** + * The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxDestinationPort") + private Integer maxDestinationPort; + + /** + * The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value. + * @param maxDestinationPort the value to set + * @return this builder + **/ + public Builder maxDestinationPort(Integer maxDestinationPort) { + this.maxDestinationPort = maxDestinationPort; + this.__explicitlySet__.add("maxDestinationPort"); + return this; + } + /** + * The minimum port number, which must not be greater than the maximum port number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDestinationPort") + private Integer minDestinationPort; + + /** + * The minimum port number, which must not be greater than the maximum port number. + * @param minDestinationPort the value to set + * @return this builder + **/ + public Builder minDestinationPort(Integer minDestinationPort) { + this.minDestinationPort = minDestinationPort; + this.__explicitlySet__.add("minDestinationPort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdditionalEgressRule build() { + AdditionalEgressRule model = + new AdditionalEgressRule( + this.description, + this.destinationCidr, + this.maxDestinationPort, + this.minDestinationPort); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdditionalEgressRule model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("destinationCidr")) { + this.destinationCidr(model.getDestinationCidr()); + } + if (model.wasPropertyExplicitlySet("maxDestinationPort")) { + this.maxDestinationPort(model.getMaxDestinationPort()); + } + if (model.wasPropertyExplicitlySet("minDestinationPort")) { + this.minDestinationPort(model.getMinDestinationPort()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Rule description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Rule description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Specifies the destination CIDR block the port should be opened for. Must be IPv4 only, and cannot be part of any private range from [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("destinationCidr") + private final String destinationCidr; + + /** + * Specifies the destination CIDR block the port should be opened for. Must be IPv4 only, and cannot be part of any private range from [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918). + * @return the value + **/ + public String getDestinationCidr() { + return destinationCidr; + } + + /** + * The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxDestinationPort") + private final Integer maxDestinationPort; + + /** + * The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value. + * @return the value + **/ + public Integer getMaxDestinationPort() { + return maxDestinationPort; + } + + /** + * The minimum port number, which must not be greater than the maximum port number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minDestinationPort") + private final Integer minDestinationPort; + + /** + * The minimum port number, which must not be greater than the maximum port number. + * @return the value + **/ + public Integer getMinDestinationPort() { + return minDestinationPort; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdditionalEgressRule("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", destinationCidr=").append(String.valueOf(this.destinationCidr)); + sb.append(", maxDestinationPort=").append(String.valueOf(this.maxDestinationPort)); + sb.append(", minDestinationPort=").append(String.valueOf(this.minDestinationPort)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdditionalEgressRule)) { + return false; + } + + AdditionalEgressRule other = (AdditionalEgressRule) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.destinationCidr, other.destinationCidr) + && java.util.Objects.equals(this.maxDestinationPort, other.maxDestinationPort) + && java.util.Objects.equals(this.minDestinationPort, other.minDestinationPort) + && 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.destinationCidr == null ? 43 : this.destinationCidr.hashCode()); + result = + (result * PRIME) + + (this.maxDestinationPort == null + ? 43 + : this.maxDestinationPort.hashCode()); + result = + (result * PRIME) + + (this.minDestinationPort == null + ? 43 + : this.minDestinationPort.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CertificateInfo.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CertificateInfo.java new file mode 100644 index 00000000000..ae60f5b120e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CertificateInfo.java @@ -0,0 +1,756 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Properties of certificate + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CertificateInfo.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CertificateInfo extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "commonName", + "subjectAltNames", + "organizationName", + "organizationUnit", + "locality", + "state", + "country", + "emailAddress", + "originCsr", + "akamaiCsr", + "originDvCertInstruction", + "akamaiDvCertInstruction", + "firstName", + "lastName", + "phoneNumber", + "postalCode" + }) + public CertificateInfo( + String commonName, + java.util.List subjectAltNames, + String organizationName, + String organizationUnit, + String locality, + String state, + String country, + String emailAddress, + String originCsr, + String akamaiCsr, + String originDvCertInstruction, + String akamaiDvCertInstruction, + String firstName, + String lastName, + String phoneNumber, + String postalCode) { + super(); + this.commonName = commonName; + this.subjectAltNames = subjectAltNames; + this.organizationName = organizationName; + this.organizationUnit = organizationUnit; + this.locality = locality; + this.state = state; + this.country = country; + this.emailAddress = emailAddress; + this.originCsr = originCsr; + this.akamaiCsr = akamaiCsr; + this.originDvCertInstruction = originDvCertInstruction; + this.akamaiDvCertInstruction = akamaiDvCertInstruction; + this.firstName = firstName; + this.lastName = lastName; + this.phoneNumber = phoneNumber; + this.postalCode = postalCode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private String commonName; + + /** + * Fully qualified host name + * @param commonName the value to set + * @return this builder + **/ + public Builder commonName(String commonName) { + this.commonName = commonName; + this.__explicitlySet__.add("commonName"); + return this; + } + /** + * List of subject alternative names, comma separated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subjectAltNames") + private java.util.List subjectAltNames; + + /** + * List of subject alternative names, comma separated + * @param subjectAltNames the value to set + * @return this builder + **/ + public Builder subjectAltNames(java.util.List subjectAltNames) { + this.subjectAltNames = subjectAltNames; + this.__explicitlySet__.add("subjectAltNames"); + return this; + } + /** + * Company name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationName") + private String organizationName; + + /** + * Company name + * @param organizationName the value to set + * @return this builder + **/ + public Builder organizationName(String organizationName) { + this.organizationName = organizationName; + this.__explicitlySet__.add("organizationName"); + return this; + } + /** + * Company section + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationUnit") + private String organizationUnit; + + /** + * Company section + * @param organizationUnit the value to set + * @return this builder + **/ + public Builder organizationUnit(String organizationUnit) { + this.organizationUnit = organizationUnit; + this.__explicitlySet__.add("organizationUnit"); + return this; + } + /** + * City + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locality") + private String locality; + + /** + * City + * @param locality the value to set + * @return this builder + **/ + public Builder locality(String locality) { + this.locality = locality; + this.__explicitlySet__.add("locality"); + return this; + } + /** + * State or province + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * State or province + * @param state the value to set + * @return this builder + **/ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** + * Country name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private String country; + + /** + * Country name + * @param country the value to set + * @return this builder + **/ + public Builder country(String country) { + this.country = country; + this.__explicitlySet__.add("country"); + return this; + } + /** + * Email address + **/ + @com.fasterxml.jackson.annotation.JsonProperty("emailAddress") + private String emailAddress; + + /** + * Email address + * @param emailAddress the value to set + * @return this builder + **/ + public Builder emailAddress(String emailAddress) { + this.emailAddress = emailAddress; + this.__explicitlySet__.add("emailAddress"); + return this; + } + /** + * Certificate signing request + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCsr") + private String originCsr; + + /** + * Certificate signing request + * @param originCsr the value to set + * @return this builder + **/ + public Builder originCsr(String originCsr) { + this.originCsr = originCsr; + this.__explicitlySet__.add("originCsr"); + return this; + } + /** + * Akamai Certificate signing request + **/ + @com.fasterxml.jackson.annotation.JsonProperty("akamaiCsr") + private String akamaiCsr; + + /** + * Akamai Certificate signing request + * @param akamaiCsr the value to set + * @return this builder + **/ + public Builder akamaiCsr(String akamaiCsr) { + this.akamaiCsr = akamaiCsr; + this.__explicitlySet__.add("akamaiCsr"); + return this; + } + /** + * Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originDvCertInstruction") + private String originDvCertInstruction; + + /** + * Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + * @param originDvCertInstruction the value to set + * @return this builder + **/ + public Builder originDvCertInstruction(String originDvCertInstruction) { + this.originDvCertInstruction = originDvCertInstruction; + this.__explicitlySet__.add("originDvCertInstruction"); + return this; + } + /** + * Akamai Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + **/ + @com.fasterxml.jackson.annotation.JsonProperty("akamaiDvCertInstruction") + private String akamaiDvCertInstruction; + + /** + * Akamai Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + * @param akamaiDvCertInstruction the value to set + * @return this builder + **/ + public Builder akamaiDvCertInstruction(String akamaiDvCertInstruction) { + this.akamaiDvCertInstruction = akamaiDvCertInstruction; + this.__explicitlySet__.add("akamaiDvCertInstruction"); + return this; + } + /** + * First name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private String firstName; + + /** + * First name + * @param firstName the value to set + * @return this builder + **/ + public Builder firstName(String firstName) { + this.firstName = firstName; + this.__explicitlySet__.add("firstName"); + return this; + } + /** + * Last name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private String lastName; + + /** + * Last name + * @param lastName the value to set + * @return this builder + **/ + public Builder lastName(String lastName) { + this.lastName = lastName; + this.__explicitlySet__.add("lastName"); + return this; + } + /** + * Phone number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private String phoneNumber; + + /** + * Phone number + * @param phoneNumber the value to set + * @return this builder + **/ + public Builder phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + this.__explicitlySet__.add("phoneNumber"); + return this; + } + /** + * Postal code + **/ + @com.fasterxml.jackson.annotation.JsonProperty("postalCode") + private String postalCode; + + /** + * Postal code + * @param postalCode the value to set + * @return this builder + **/ + public Builder postalCode(String postalCode) { + this.postalCode = postalCode; + this.__explicitlySet__.add("postalCode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CertificateInfo build() { + CertificateInfo model = + new CertificateInfo( + this.commonName, + this.subjectAltNames, + this.organizationName, + this.organizationUnit, + this.locality, + this.state, + this.country, + this.emailAddress, + this.originCsr, + this.akamaiCsr, + this.originDvCertInstruction, + this.akamaiDvCertInstruction, + this.firstName, + this.lastName, + this.phoneNumber, + this.postalCode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CertificateInfo model) { + if (model.wasPropertyExplicitlySet("commonName")) { + this.commonName(model.getCommonName()); + } + if (model.wasPropertyExplicitlySet("subjectAltNames")) { + this.subjectAltNames(model.getSubjectAltNames()); + } + if (model.wasPropertyExplicitlySet("organizationName")) { + this.organizationName(model.getOrganizationName()); + } + if (model.wasPropertyExplicitlySet("organizationUnit")) { + this.organizationUnit(model.getOrganizationUnit()); + } + if (model.wasPropertyExplicitlySet("locality")) { + this.locality(model.getLocality()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("country")) { + this.country(model.getCountry()); + } + if (model.wasPropertyExplicitlySet("emailAddress")) { + this.emailAddress(model.getEmailAddress()); + } + if (model.wasPropertyExplicitlySet("originCsr")) { + this.originCsr(model.getOriginCsr()); + } + if (model.wasPropertyExplicitlySet("akamaiCsr")) { + this.akamaiCsr(model.getAkamaiCsr()); + } + if (model.wasPropertyExplicitlySet("originDvCertInstruction")) { + this.originDvCertInstruction(model.getOriginDvCertInstruction()); + } + if (model.wasPropertyExplicitlySet("akamaiDvCertInstruction")) { + this.akamaiDvCertInstruction(model.getAkamaiDvCertInstruction()); + } + if (model.wasPropertyExplicitlySet("firstName")) { + this.firstName(model.getFirstName()); + } + if (model.wasPropertyExplicitlySet("lastName")) { + this.lastName(model.getLastName()); + } + if (model.wasPropertyExplicitlySet("phoneNumber")) { + this.phoneNumber(model.getPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("postalCode")) { + this.postalCode(model.getPostalCode()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private final String commonName; + + /** + * Fully qualified host name + * @return the value + **/ + public String getCommonName() { + return commonName; + } + + /** + * List of subject alternative names, comma separated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subjectAltNames") + private final java.util.List subjectAltNames; + + /** + * List of subject alternative names, comma separated + * @return the value + **/ + public java.util.List getSubjectAltNames() { + return subjectAltNames; + } + + /** + * Company name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationName") + private final String organizationName; + + /** + * Company name + * @return the value + **/ + public String getOrganizationName() { + return organizationName; + } + + /** + * Company section + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationUnit") + private final String organizationUnit; + + /** + * Company section + * @return the value + **/ + public String getOrganizationUnit() { + return organizationUnit; + } + + /** + * City + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locality") + private final String locality; + + /** + * City + * @return the value + **/ + public String getLocality() { + return locality; + } + + /** + * State or province + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * State or province + * @return the value + **/ + public String getState() { + return state; + } + + /** + * Country name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private final String country; + + /** + * Country name + * @return the value + **/ + public String getCountry() { + return country; + } + + /** + * Email address + **/ + @com.fasterxml.jackson.annotation.JsonProperty("emailAddress") + private final String emailAddress; + + /** + * Email address + * @return the value + **/ + public String getEmailAddress() { + return emailAddress; + } + + /** + * Certificate signing request + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCsr") + private final String originCsr; + + /** + * Certificate signing request + * @return the value + **/ + public String getOriginCsr() { + return originCsr; + } + + /** + * Akamai Certificate signing request + **/ + @com.fasterxml.jackson.annotation.JsonProperty("akamaiCsr") + private final String akamaiCsr; + + /** + * Akamai Certificate signing request + * @return the value + **/ + public String getAkamaiCsr() { + return akamaiCsr; + } + + /** + * Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originDvCertInstruction") + private final String originDvCertInstruction; + + /** + * Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + * @return the value + **/ + public String getOriginDvCertInstruction() { + return originDvCertInstruction; + } + + /** + * Akamai Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + **/ + @com.fasterxml.jackson.annotation.JsonProperty("akamaiDvCertInstruction") + private final String akamaiDvCertInstruction; + + /** + * Akamai Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc + * @return the value + **/ + public String getAkamaiDvCertInstruction() { + return akamaiDvCertInstruction; + } + + /** + * First name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private final String firstName; + + /** + * First name + * @return the value + **/ + public String getFirstName() { + return firstName; + } + + /** + * Last name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private final String lastName; + + /** + * Last name + * @return the value + **/ + public String getLastName() { + return lastName; + } + + /** + * Phone number + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private final String phoneNumber; + + /** + * Phone number + * @return the value + **/ + public String getPhoneNumber() { + return phoneNumber; + } + + /** + * Postal code + **/ + @com.fasterxml.jackson.annotation.JsonProperty("postalCode") + private final String postalCode; + + /** + * Postal code + * @return the value + **/ + public String getPostalCode() { + return postalCode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CertificateInfo("); + sb.append("super=").append(super.toString()); + sb.append("commonName=").append(String.valueOf(this.commonName)); + sb.append(", subjectAltNames=").append(String.valueOf(this.subjectAltNames)); + sb.append(", organizationName=").append(String.valueOf(this.organizationName)); + sb.append(", organizationUnit=").append(String.valueOf(this.organizationUnit)); + sb.append(", locality=").append(String.valueOf(this.locality)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", country=").append(String.valueOf(this.country)); + sb.append(", emailAddress=").append(String.valueOf(this.emailAddress)); + sb.append(", originCsr=").append(String.valueOf(this.originCsr)); + sb.append(", akamaiCsr=").append(String.valueOf(this.akamaiCsr)); + sb.append(", originDvCertInstruction=") + .append(String.valueOf(this.originDvCertInstruction)); + sb.append(", akamaiDvCertInstruction=") + .append(String.valueOf(this.akamaiDvCertInstruction)); + sb.append(", firstName=").append(String.valueOf(this.firstName)); + sb.append(", lastName=").append(String.valueOf(this.lastName)); + sb.append(", phoneNumber=").append(String.valueOf(this.phoneNumber)); + sb.append(", postalCode=").append(String.valueOf(this.postalCode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CertificateInfo)) { + return false; + } + + CertificateInfo other = (CertificateInfo) o; + return java.util.Objects.equals(this.commonName, other.commonName) + && java.util.Objects.equals(this.subjectAltNames, other.subjectAltNames) + && java.util.Objects.equals(this.organizationName, other.organizationName) + && java.util.Objects.equals(this.organizationUnit, other.organizationUnit) + && java.util.Objects.equals(this.locality, other.locality) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.country, other.country) + && java.util.Objects.equals(this.emailAddress, other.emailAddress) + && java.util.Objects.equals(this.originCsr, other.originCsr) + && java.util.Objects.equals(this.akamaiCsr, other.akamaiCsr) + && java.util.Objects.equals( + this.originDvCertInstruction, other.originDvCertInstruction) + && java.util.Objects.equals( + this.akamaiDvCertInstruction, other.akamaiDvCertInstruction) + && java.util.Objects.equals(this.firstName, other.firstName) + && java.util.Objects.equals(this.lastName, other.lastName) + && java.util.Objects.equals(this.phoneNumber, other.phoneNumber) + && java.util.Objects.equals(this.postalCode, other.postalCode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.commonName == null ? 43 : this.commonName.hashCode()); + result = + (result * PRIME) + + (this.subjectAltNames == null ? 43 : this.subjectAltNames.hashCode()); + result = + (result * PRIME) + + (this.organizationName == null ? 43 : this.organizationName.hashCode()); + result = + (result * PRIME) + + (this.organizationUnit == null ? 43 : this.organizationUnit.hashCode()); + result = (result * PRIME) + (this.locality == null ? 43 : this.locality.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); + result = (result * PRIME) + (this.emailAddress == null ? 43 : this.emailAddress.hashCode()); + result = (result * PRIME) + (this.originCsr == null ? 43 : this.originCsr.hashCode()); + result = (result * PRIME) + (this.akamaiCsr == null ? 43 : this.akamaiCsr.hashCode()); + result = + (result * PRIME) + + (this.originDvCertInstruction == null + ? 43 + : this.originDvCertInstruction.hashCode()); + result = + (result * PRIME) + + (this.akamaiDvCertInstruction == null + ? 43 + : this.akamaiDvCertInstruction.hashCode()); + result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); + result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); + result = (result * PRIME) + (this.phoneNumber == null ? 43 : this.phoneNumber.hashCode()); + result = (result * PRIME) + (this.postalCode == null ? 43 : this.postalCode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateEmailSubdomainDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateEmailSubdomainDetails.java new file mode 100644 index 00000000000..da7ca17c5f7 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateEmailSubdomainDetails.java @@ -0,0 +1,325 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Configuration details for email subdomain. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateEmailSubdomainDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateEmailSubdomainDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "dnsManagement", + "certificateManagement", + "freeformTags", + "definedTags" + }) + public CreateEmailSubdomainDetails( + String name, + EmailSubdomain.DnsManagement dnsManagement, + EmailSubdomain.CertificateManagement certificateManagement, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.name = name; + this.dnsManagement = dnsManagement; + this.certificateManagement = certificateManagement; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * email subdomain name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * email subdomain name + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private EmailSubdomain.DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @param dnsManagement the value to set + * @return this builder + **/ + public Builder dnsManagement(EmailSubdomain.DnsManagement dnsManagement) { + this.dnsManagement = dnsManagement; + this.__explicitlySet__.add("dnsManagement"); + return this; + } + /** + * certificate management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private EmailSubdomain.CertificateManagement certificateManagement; + + /** + * certificate management type for email subdomain + * @param certificateManagement the value to set + * @return this builder + **/ + public Builder certificateManagement( + EmailSubdomain.CertificateManagement certificateManagement) { + this.certificateManagement = certificateManagement; + this.__explicitlySet__.add("certificateManagement"); + 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 CreateEmailSubdomainDetails build() { + CreateEmailSubdomainDetails model = + new CreateEmailSubdomainDetails( + this.name, + this.dnsManagement, + this.certificateManagement, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateEmailSubdomainDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("dnsManagement")) { + this.dnsManagement(model.getDnsManagement()); + } + if (model.wasPropertyExplicitlySet("certificateManagement")) { + this.certificateManagement(model.getCertificateManagement()); + } + 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); + } + + /** + * email subdomain name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * email subdomain name + * @return the value + **/ + public String getName() { + return name; + } + + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private final EmailSubdomain.DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @return the value + **/ + public EmailSubdomain.DnsManagement getDnsManagement() { + return dnsManagement; + } + + /** + * certificate management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private final EmailSubdomain.CertificateManagement certificateManagement; + + /** + * certificate management type for email subdomain + * @return the value + **/ + public EmailSubdomain.CertificateManagement getCertificateManagement() { + return certificateManagement; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateEmailSubdomainDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", dnsManagement=").append(String.valueOf(this.dnsManagement)); + sb.append(", certificateManagement=").append(String.valueOf(this.certificateManagement)); + 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 CreateEmailSubdomainDetails)) { + return false; + } + + CreateEmailSubdomainDetails other = (CreateEmailSubdomainDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.dnsManagement, other.dnsManagement) + && java.util.Objects.equals(this.certificateManagement, other.certificateManagement) + && 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.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.dnsManagement == null ? 43 : this.dnsManagement.hashCode()); + result = + (result * PRIME) + + (this.certificateManagement == null + ? 43 + : this.certificateManagement.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateFusionEnvironmentDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateFusionEnvironmentDetails.java index f6693c26029..3cc0e3f4178 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateFusionEnvironmentDetails.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateFusionEnvironmentDetails.java @@ -33,6 +33,7 @@ public final class CreateFusionEnvironmentDetails "additionalLanguagePacks", "isIPv6DualStackEnabled", "rules", + "additionalEgressRules", "createFusionEnvironmentAdminUserDetails", "freeformTags", "definedTags" @@ -48,6 +49,7 @@ public CreateFusionEnvironmentDetails( java.util.List additionalLanguagePacks, Boolean isIPv6DualStackEnabled, java.util.List rules, + java.util.List additionalEgressRules, CreateFusionEnvironmentAdminUserDetails createFusionEnvironmentAdminUserDetails, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -62,6 +64,7 @@ public CreateFusionEnvironmentDetails( this.additionalLanguagePacks = additionalLanguagePacks; this.isIPv6DualStackEnabled = isIPv6DualStackEnabled; this.rules = rules; + this.additionalEgressRules = additionalEgressRules; this.createFusionEnvironmentAdminUserDetails = createFusionEnvironmentAdminUserDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -127,13 +130,13 @@ public Builder fusionEnvironmentFamilyId(String fusionEnvironmentFamilyId) { return this; } /** - * The type of environment. Valid values are Production, Test, or Development. + * The type of environment. Valid values are Production, Test, Development, or Demo. **/ @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentType") private FusionEnvironment.FusionEnvironmentType fusionEnvironmentType; /** - * The type of environment. Valid values are Production, Test, or Development. + * The type of environment. Valid values are Production, Test, Development, or Demo. * @param fusionEnvironmentType the value to set * @return this builder **/ @@ -192,13 +195,13 @@ public Builder additionalLanguagePacks(java.util.List additionalLanguage return this; } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. Default value will be false if not set + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. The default value is false. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. Default value will be false if not set + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. The default value is false. * @param isIPv6DualStackEnabled the value to set * @return this builder **/ @@ -223,6 +226,23 @@ public Builder rules(java.util.List rules) { this.__explicitlySet__.add("rules"); return this; } + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules") + private java.util.List additionalEgressRules; + + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + * @param additionalEgressRules the value to set + * @return this builder + **/ + public Builder additionalEgressRules( + java.util.List additionalEgressRules) { + this.additionalEgressRules = additionalEgressRules; + this.__explicitlySet__.add("additionalEgressRules"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("createFusionEnvironmentAdminUserDetails") private CreateFusionEnvironmentAdminUserDetails createFusionEnvironmentAdminUserDetails; @@ -291,6 +311,7 @@ public CreateFusionEnvironmentDetails build() { this.additionalLanguagePacks, this.isIPv6DualStackEnabled, this.rules, + this.additionalEgressRules, this.createFusionEnvironmentAdminUserDetails, this.freeformTags, this.definedTags); @@ -332,6 +353,9 @@ public Builder copy(CreateFusionEnvironmentDetails model) { if (model.wasPropertyExplicitlySet("rules")) { this.rules(model.getRules()); } + if (model.wasPropertyExplicitlySet("additionalEgressRules")) { + this.additionalEgressRules(model.getAdditionalEgressRules()); + } if (model.wasPropertyExplicitlySet("createFusionEnvironmentAdminUserDetails")) { this.createFusionEnvironmentAdminUserDetails( model.getCreateFusionEnvironmentAdminUserDetails()); @@ -407,13 +431,13 @@ public String getFusionEnvironmentFamilyId() { } /** - * The type of environment. Valid values are Production, Test, or Development. + * The type of environment. Valid values are Production, Test, Development, or Demo. **/ @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentType") private final FusionEnvironment.FusionEnvironmentType fusionEnvironmentType; /** - * The type of environment. Valid values are Production, Test, or Development. + * The type of environment. Valid values are Production, Test, Development, or Demo. * @return the value **/ public FusionEnvironment.FusionEnvironmentType getFusionEnvironmentType() { @@ -463,13 +487,13 @@ public java.util.List getAdditionalLanguagePacks() { } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. Default value will be false if not set + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. The default value is false. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private final Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. Default value will be false if not set + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. The default value is false. * @return the value **/ public Boolean getIsIPv6DualStackEnabled() { @@ -490,6 +514,20 @@ public java.util.List getRules() { return rules; } + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules") + private final java.util.List additionalEgressRules; + + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + * @return the value + **/ + public java.util.List getAdditionalEgressRules() { + return additionalEgressRules; + } + @com.fasterxml.jackson.annotation.JsonProperty("createFusionEnvironmentAdminUserDetails") private final CreateFusionEnvironmentAdminUserDetails createFusionEnvironmentAdminUserDetails; @@ -559,6 +597,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.additionalLanguagePacks)); sb.append(", isIPv6DualStackEnabled=").append(String.valueOf(this.isIPv6DualStackEnabled)); sb.append(", rules=").append(String.valueOf(this.rules)); + sb.append(", additionalEgressRules=").append(String.valueOf(this.additionalEgressRules)); sb.append(", createFusionEnvironmentAdminUserDetails=") .append(String.valueOf(this.createFusionEnvironmentAdminUserDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -590,6 +629,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isIPv6DualStackEnabled, other.isIPv6DualStackEnabled) && java.util.Objects.equals(this.rules, other.rules) + && java.util.Objects.equals(this.additionalEgressRules, other.additionalEgressRules) && java.util.Objects.equals( this.createFusionEnvironmentAdminUserDetails, other.createFusionEnvironmentAdminUserDetails) @@ -632,6 +672,11 @@ public int hashCode() { ? 43 : this.isIPv6DualStackEnabled.hashCode()); result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = + (result * PRIME) + + (this.additionalEgressRules == null + ? 43 + : this.additionalEgressRules.hashCode()); result = (result * PRIME) + (this.createFusionEnvironmentAdminUserDetails == null diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateMarketingBrandDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateMarketingBrandDetails.java new file mode 100644 index 00000000000..02e49f8b5c8 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateMarketingBrandDetails.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Configuration details for marketing brand + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateMarketingBrandDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateMarketingBrandDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "freeformTags", "definedTags"}) + public CreateMarketingBrandDetails( + String name, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.name = name; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * marketing brand name for fusion environment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * marketing brand name for fusion environment + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + 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 CreateMarketingBrandDetails build() { + CreateMarketingBrandDetails model = + new CreateMarketingBrandDetails(this.name, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMarketingBrandDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + 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); + } + + /** + * marketing brand name for fusion environment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * marketing brand name for fusion environment + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMarketingBrandDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + 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 CreateMarketingBrandDetails)) { + return false; + } + + CreateMarketingBrandDetails other = (CreateMarketingBrandDetails) o; + return java.util.Objects.equals(this.name, other.name) + && 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.name == null ? 43 : this.name.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateMicrositeDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateMicrositeDetails.java new file mode 100644 index 00000000000..7cf76ddf7d0 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateMicrositeDetails.java @@ -0,0 +1,325 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Details for microsite. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateMicrositeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateMicrositeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "dnsManagement", + "certificateManagement", + "freeformTags", + "definedTags" + }) + public CreateMicrositeDetails( + String name, + Microsite.DnsManagement dnsManagement, + Microsite.CertificateManagement certificateManagement, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.name = name; + this.dnsManagement = dnsManagement; + this.certificateManagement = certificateManagement; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * microsite name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * microsite name + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private Microsite.DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @param dnsManagement the value to set + * @return this builder + **/ + public Builder dnsManagement(Microsite.DnsManagement dnsManagement) { + this.dnsManagement = dnsManagement; + this.__explicitlySet__.add("dnsManagement"); + return this; + } + /** + * certificate management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private Microsite.CertificateManagement certificateManagement; + + /** + * certificate management type for email subdomain + * @param certificateManagement the value to set + * @return this builder + **/ + public Builder certificateManagement( + Microsite.CertificateManagement certificateManagement) { + this.certificateManagement = certificateManagement; + this.__explicitlySet__.add("certificateManagement"); + 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 CreateMicrositeDetails build() { + CreateMicrositeDetails model = + new CreateMicrositeDetails( + this.name, + this.dnsManagement, + this.certificateManagement, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMicrositeDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("dnsManagement")) { + this.dnsManagement(model.getDnsManagement()); + } + if (model.wasPropertyExplicitlySet("certificateManagement")) { + this.certificateManagement(model.getCertificateManagement()); + } + 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); + } + + /** + * microsite name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * microsite name + * @return the value + **/ + public String getName() { + return name; + } + + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private final Microsite.DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @return the value + **/ + public Microsite.DnsManagement getDnsManagement() { + return dnsManagement; + } + + /** + * certificate management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private final Microsite.CertificateManagement certificateManagement; + + /** + * certificate management type for email subdomain + * @return the value + **/ + public Microsite.CertificateManagement getCertificateManagement() { + return certificateManagement; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMicrositeDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", dnsManagement=").append(String.valueOf(this.dnsManagement)); + sb.append(", certificateManagement=").append(String.valueOf(this.certificateManagement)); + 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 CreateMicrositeDetails)) { + return false; + } + + CreateMicrositeDetails other = (CreateMicrositeDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.dnsManagement, other.dnsManagement) + && java.util.Objects.equals(this.certificateManagement, other.certificateManagement) + && 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.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.dnsManagement == null ? 43 : this.dnsManagement.hashCode()); + result = + (result * PRIME) + + (this.certificateManagement == null + ? 43 + : this.certificateManagement.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateVanityDomainActivityDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateVanityDomainActivityDetails.java new file mode 100644 index 00000000000..04dca4ed472 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateVanityDomainActivityDetails.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Schedule activity details to vanity domain on 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 = CreateVanityDomainActivityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateVanityDomainActivityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vanityDomainId", "timeScheduled", "operationType"}) + public CreateVanityDomainActivityDetails( + String vanityDomainId, java.util.Date timeScheduled, OperationType operationType) { + super(); + this.vanityDomainId = vanityDomainId; + this.timeScheduled = timeScheduled; + this.operationType = operationType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Vanity domain ID + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomainId") + private String vanityDomainId; + + /** + * Vanity domain ID + * @param vanityDomainId the value to set + * @return this builder + **/ + public Builder vanityDomainId(String vanityDomainId) { + this.vanityDomainId = vanityDomainId; + this.__explicitlySet__.add("vanityDomainId"); + return this; + } + /** + * Activity start time + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * Activity start time + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * The type of operation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The type of operation + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVanityDomainActivityDetails build() { + CreateVanityDomainActivityDetails model = + new CreateVanityDomainActivityDetails( + this.vanityDomainId, this.timeScheduled, this.operationType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVanityDomainActivityDetails model) { + if (model.wasPropertyExplicitlySet("vanityDomainId")) { + this.vanityDomainId(model.getVanityDomainId()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Vanity domain ID + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomainId") + private final String vanityDomainId; + + /** + * Vanity domain ID + * @return the value + **/ + public String getVanityDomainId() { + return vanityDomainId; + } + + /** + * Activity start time + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * Activity start time + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * The type of operation + **/ + public enum OperationType { + EnableVanityDomain("ENABLE_VANITY_DOMAIN"), + DeleteVanityDomain("DELETE_VANITY_DOMAIN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + map.put(v.getValue(), v); + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OperationType: " + key); + } + }; + /** + * The type of operation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The type of operation + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVanityDomainActivityDetails("); + sb.append("super=").append(super.toString()); + sb.append("vanityDomainId=").append(String.valueOf(this.vanityDomainId)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", operationType=").append(String.valueOf(this.operationType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVanityDomainActivityDetails)) { + return false; + } + + CreateVanityDomainActivityDetails other = (CreateVanityDomainActivityDetails) o; + return java.util.Objects.equals(this.vanityDomainId, other.vanityDomainId) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.operationType, other.operationType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.vanityDomainId == null ? 43 : this.vanityDomainId.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateVanityDomainDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateVanityDomainDetails.java new file mode 100644 index 00000000000..b1fc7ca859f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/CreateVanityDomainDetails.java @@ -0,0 +1,486 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Vanity domain request detail + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateVanityDomainDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateVanityDomainDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "originCertRequestType", + "cdnCertRequestType", + "vanityDomain", + "dnsManagedBy", + "prefix", + "certificateInfo", + "changeManagementLink" + }) + public CreateVanityDomainDetails( + OriginCertRequestType originCertRequestType, + CdnCertRequestType cdnCertRequestType, + String vanityDomain, + DnsManagedBy dnsManagedBy, + String prefix, + CertificateInfo certificateInfo, + String changeManagementLink) { + super(); + this.originCertRequestType = originCertRequestType; + this.cdnCertRequestType = cdnCertRequestType; + this.vanityDomain = vanityDomain; + this.dnsManagedBy = dnsManagedBy; + this.prefix = prefix; + this.certificateInfo = certificateInfo; + this.changeManagementLink = changeManagementLink; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The origin request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCertRequestType") + private OriginCertRequestType originCertRequestType; + + /** + * The origin request type for which the certificate is generated + * @param originCertRequestType the value to set + * @return this builder + **/ + public Builder originCertRequestType(OriginCertRequestType originCertRequestType) { + this.originCertRequestType = originCertRequestType; + this.__explicitlySet__.add("originCertRequestType"); + return this; + } + /** + * The cdn request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cdnCertRequestType") + private CdnCertRequestType cdnCertRequestType; + + /** + * The cdn request type for which the certificate is generated + * @param cdnCertRequestType the value to set + * @return this builder + **/ + public Builder cdnCertRequestType(CdnCertRequestType cdnCertRequestType) { + this.cdnCertRequestType = cdnCertRequestType; + this.__explicitlySet__.add("cdnCertRequestType"); + return this; + } + /** + * Vanity domain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomain") + private String vanityDomain; + + /** + * Vanity domain + * @param vanityDomain the value to set + * @return this builder + **/ + public Builder vanityDomain(String vanityDomain) { + this.vanityDomain = vanityDomain; + this.__explicitlySet__.add("vanityDomain"); + return this; + } + /** + * The dns is managed by the customer or Oracle + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagedBy") + private DnsManagedBy dnsManagedBy; + + /** + * The dns is managed by the customer or Oracle + * @param dnsManagedBy the value to set + * @return this builder + **/ + public Builder dnsManagedBy(DnsManagedBy dnsManagedBy) { + this.dnsManagedBy = dnsManagedBy; + this.__explicitlySet__.add("dnsManagedBy"); + return this; + } + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + * @param prefix the value to set + * @return this builder + **/ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateInfo") + private CertificateInfo certificateInfo; + + public Builder certificateInfo(CertificateInfo certificateInfo) { + this.certificateInfo = certificateInfo; + this.__explicitlySet__.add("certificateInfo"); + return this; + } + /** + * The cm link that was used to create the DNS prefix + **/ + @com.fasterxml.jackson.annotation.JsonProperty("changeManagementLink") + private String changeManagementLink; + + /** + * The cm link that was used to create the DNS prefix + * @param changeManagementLink the value to set + * @return this builder + **/ + public Builder changeManagementLink(String changeManagementLink) { + this.changeManagementLink = changeManagementLink; + this.__explicitlySet__.add("changeManagementLink"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVanityDomainDetails build() { + CreateVanityDomainDetails model = + new CreateVanityDomainDetails( + this.originCertRequestType, + this.cdnCertRequestType, + this.vanityDomain, + this.dnsManagedBy, + this.prefix, + this.certificateInfo, + this.changeManagementLink); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVanityDomainDetails model) { + if (model.wasPropertyExplicitlySet("originCertRequestType")) { + this.originCertRequestType(model.getOriginCertRequestType()); + } + if (model.wasPropertyExplicitlySet("cdnCertRequestType")) { + this.cdnCertRequestType(model.getCdnCertRequestType()); + } + if (model.wasPropertyExplicitlySet("vanityDomain")) { + this.vanityDomain(model.getVanityDomain()); + } + if (model.wasPropertyExplicitlySet("dnsManagedBy")) { + this.dnsManagedBy(model.getDnsManagedBy()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("certificateInfo")) { + this.certificateInfo(model.getCertificateInfo()); + } + if (model.wasPropertyExplicitlySet("changeManagementLink")) { + this.changeManagementLink(model.getChangeManagementLink()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The origin request type for which the certificate is generated + **/ + public enum OriginCertRequestType { + RequestCsr("REQUEST_CSR"), + RequestDv("REQUEST_DV"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OriginCertRequestType v : OriginCertRequestType.values()) { + map.put(v.getValue(), v); + } + } + + OriginCertRequestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OriginCertRequestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OriginCertRequestType: " + key); + } + }; + /** + * The origin request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCertRequestType") + private final OriginCertRequestType originCertRequestType; + + /** + * The origin request type for which the certificate is generated + * @return the value + **/ + public OriginCertRequestType getOriginCertRequestType() { + return originCertRequestType; + } + + /** + * The cdn request type for which the certificate is generated + **/ + public enum CdnCertRequestType { + RequestCsr("REQUEST_CSR"), + RequestDv("REQUEST_DV"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CdnCertRequestType v : CdnCertRequestType.values()) { + map.put(v.getValue(), v); + } + } + + CdnCertRequestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CdnCertRequestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CdnCertRequestType: " + key); + } + }; + /** + * The cdn request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cdnCertRequestType") + private final CdnCertRequestType cdnCertRequestType; + + /** + * The cdn request type for which the certificate is generated + * @return the value + **/ + public CdnCertRequestType getCdnCertRequestType() { + return cdnCertRequestType; + } + + /** + * Vanity domain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomain") + private final String vanityDomain; + + /** + * Vanity domain + * @return the value + **/ + public String getVanityDomain() { + return vanityDomain; + } + + /** + * The dns is managed by the customer or Oracle + **/ + public enum DnsManagedBy { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DnsManagedBy v : DnsManagedBy.values()) { + map.put(v.getValue(), v); + } + } + + DnsManagedBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DnsManagedBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DnsManagedBy: " + key); + } + }; + /** + * The dns is managed by the customer or Oracle + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagedBy") + private final DnsManagedBy dnsManagedBy; + + /** + * The dns is managed by the customer or Oracle + * @return the value + **/ + public DnsManagedBy getDnsManagedBy() { + return dnsManagedBy; + } + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + * @return the value + **/ + public String getPrefix() { + return prefix; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateInfo") + private final CertificateInfo certificateInfo; + + public CertificateInfo getCertificateInfo() { + return certificateInfo; + } + + /** + * The cm link that was used to create the DNS prefix + **/ + @com.fasterxml.jackson.annotation.JsonProperty("changeManagementLink") + private final String changeManagementLink; + + /** + * The cm link that was used to create the DNS prefix + * @return the value + **/ + public String getChangeManagementLink() { + return changeManagementLink; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVanityDomainDetails("); + sb.append("super=").append(super.toString()); + sb.append("originCertRequestType=").append(String.valueOf(this.originCertRequestType)); + sb.append(", cdnCertRequestType=").append(String.valueOf(this.cdnCertRequestType)); + sb.append(", vanityDomain=").append(String.valueOf(this.vanityDomain)); + sb.append(", dnsManagedBy=").append(String.valueOf(this.dnsManagedBy)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", certificateInfo=").append(String.valueOf(this.certificateInfo)); + sb.append(", changeManagementLink=").append(String.valueOf(this.changeManagementLink)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVanityDomainDetails)) { + return false; + } + + CreateVanityDomainDetails other = (CreateVanityDomainDetails) o; + return java.util.Objects.equals(this.originCertRequestType, other.originCertRequestType) + && java.util.Objects.equals(this.cdnCertRequestType, other.cdnCertRequestType) + && java.util.Objects.equals(this.vanityDomain, other.vanityDomain) + && java.util.Objects.equals(this.dnsManagedBy, other.dnsManagedBy) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.certificateInfo, other.certificateInfo) + && java.util.Objects.equals(this.changeManagementLink, other.changeManagementLink) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originCertRequestType == null + ? 43 + : this.originCertRequestType.hashCode()); + result = + (result * PRIME) + + (this.cdnCertRequestType == null + ? 43 + : this.cdnCertRequestType.hashCode()); + result = (result * PRIME) + (this.vanityDomain == null ? 43 : this.vanityDomain.hashCode()); + result = (result * PRIME) + (this.dnsManagedBy == null ? 43 : this.dnsManagedBy.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.certificateInfo == null ? 43 : this.certificateInfo.hashCode()); + result = + (result * PRIME) + + (this.changeManagementLink == null + ? 43 + : this.changeManagementLink.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/DnsRecord.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/DnsRecord.java new file mode 100644 index 00000000000..a0f0f6c48b4 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/DnsRecord.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * DNS record for email subdomain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = DnsRecord.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DnsRecord extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "rdata", "type", "ttlInSeconds"}) + public DnsRecord(String name, String rdata, String type, Integer ttlInSeconds) { + super(); + this.name = name; + this.rdata = rdata; + this.type = type; + this.ttlInSeconds = ttlInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * domain name for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * domain name for dns record + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * dns server hostname is pointed to + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rdata") + private String rdata; + + /** + * dns server hostname is pointed to + * @param rdata the value to set + * @return this builder + **/ + public Builder rdata(String rdata) { + this.rdata = rdata; + this.__explicitlySet__.add("rdata"); + return this; + } + /** + * record data for record type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * record data for record type + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * time to live for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ttlInSeconds") + private Integer ttlInSeconds; + + /** + * time to live for dns record + * @param ttlInSeconds the value to set + * @return this builder + **/ + public Builder ttlInSeconds(Integer ttlInSeconds) { + this.ttlInSeconds = ttlInSeconds; + this.__explicitlySet__.add("ttlInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DnsRecord build() { + DnsRecord model = new DnsRecord(this.name, this.rdata, this.type, this.ttlInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DnsRecord model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("rdata")) { + this.rdata(model.getRdata()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("ttlInSeconds")) { + this.ttlInSeconds(model.getTtlInSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * domain name for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * domain name for dns record + * @return the value + **/ + public String getName() { + return name; + } + + /** + * dns server hostname is pointed to + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rdata") + private final String rdata; + + /** + * dns server hostname is pointed to + * @return the value + **/ + public String getRdata() { + return rdata; + } + + /** + * record data for record type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * record data for record type + * @return the value + **/ + public String getType() { + return type; + } + + /** + * time to live for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ttlInSeconds") + private final Integer ttlInSeconds; + + /** + * time to live for dns record + * @return the value + **/ + public Integer getTtlInSeconds() { + return ttlInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DnsRecord("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", rdata=").append(String.valueOf(this.rdata)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", ttlInSeconds=").append(String.valueOf(this.ttlInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DnsRecord)) { + return false; + } + + DnsRecord other = (DnsRecord) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.rdata, other.rdata) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.ttlInSeconds, other.ttlInSeconds) + && 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.rdata == null ? 43 : this.rdata.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.ttlInSeconds == null ? 43 : this.ttlInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomain.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomain.java new file mode 100644 index 00000000000..63199a0ffb3 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomain.java @@ -0,0 +1,1052 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * email subdomain details for a marketing brand + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = EmailSubdomain.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class EmailSubdomain extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "marketingBrandId", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "dnsManagement", + "dnsStatus", + "certificateManagement", + "certificateStatus", + "timeCertificateExpiration", + "timeCreated", + "freeformTags", + "definedTags", + "systemTags" + }) + public EmailSubdomain( + String id, + String name, + String marketingBrandId, + String fusionEnvironmentId, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, + DnsManagement dnsManagement, + DnsStatus dnsStatus, + CertificateManagement certificateManagement, + CertificateStatus certificateStatus, + java.util.Date timeCertificateExpiration, + java.util.Date timeCreated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.marketingBrandId = marketingBrandId; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.dnsManagement = dnsManagement; + this.dnsStatus = dnsStatus; + this.certificateManagement = certificateManagement; + this.certificateStatus = certificateStatus; + this.timeCertificateExpiration = timeCertificateExpiration; + this.timeCreated = timeCreated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The name for email subdomain for a brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name for email subdomain for a brand + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private String marketingBrandId; + + /** + * Marketing Brand Identifier + * @param marketingBrandId the value to set + * @return this builder + **/ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + this.__explicitlySet__.add("marketingBrandId"); + return this; + } + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * email subdomain lifecyclestate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * email subdomain lifecyclestate + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Email subdomain intermediate states + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * Email subdomain 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; + } + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @param dnsManagement the value to set + * @return this builder + **/ + public Builder dnsManagement(DnsManagement dnsManagement) { + this.dnsManagement = dnsManagement; + this.__explicitlySet__.add("dnsManagement"); + return this; + } + /** + * dns status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private DnsStatus dnsStatus; + + /** + * dns status for email subdomain + * @param dnsStatus the value to set + * @return this builder + **/ + public Builder dnsStatus(DnsStatus dnsStatus) { + this.dnsStatus = dnsStatus; + this.__explicitlySet__.add("dnsStatus"); + return this; + } + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private CertificateManagement certificateManagement; + + /** + * dns management type for email subdomain + * @param certificateManagement the value to set + * @return this builder + **/ + public Builder certificateManagement(CertificateManagement certificateManagement) { + this.certificateManagement = certificateManagement; + this.__explicitlySet__.add("certificateManagement"); + return this; + } + /** + * certificate status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateStatus") + private CertificateStatus certificateStatus; + + /** + * certificate status for email subdomain + * @param certificateStatus the value to set + * @return this builder + **/ + public Builder certificateStatus(CertificateStatus certificateStatus) { + this.certificateStatus = certificateStatus; + this.__explicitlySet__.add("certificateStatus"); + return this; + } + /** + * certification expiration date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCertificateExpiration") + private java.util.Date timeCertificateExpiration; + + /** + * certification expiration date + * @param timeCertificateExpiration the value to set + * @return this builder + **/ + public Builder timeCertificateExpiration(java.util.Date timeCertificateExpiration) { + this.timeCertificateExpiration = timeCertificateExpiration; + this.__explicitlySet__.add("timeCertificateExpiration"); + return this; + } + /** + * The time the Email Subdomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Email Subdomain 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; + } + /** + * 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; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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 EmailSubdomain build() { + EmailSubdomain model = + new EmailSubdomain( + this.id, + this.name, + this.marketingBrandId, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.dnsManagement, + this.dnsStatus, + this.certificateManagement, + this.certificateStatus, + this.timeCertificateExpiration, + this.timeCreated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EmailSubdomain model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("marketingBrandId")) { + this.marketingBrandId(model.getMarketingBrandId()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("dnsManagement")) { + this.dnsManagement(model.getDnsManagement()); + } + if (model.wasPropertyExplicitlySet("dnsStatus")) { + this.dnsStatus(model.getDnsStatus()); + } + if (model.wasPropertyExplicitlySet("certificateManagement")) { + this.certificateManagement(model.getCertificateManagement()); + } + if (model.wasPropertyExplicitlySet("certificateStatus")) { + this.certificateStatus(model.getCertificateStatus()); + } + if (model.wasPropertyExplicitlySet("timeCertificateExpiration")) { + this.timeCertificateExpiration(model.getTimeCertificateExpiration()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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 unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The name for email subdomain for a brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name for email subdomain for a brand + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private final String marketingBrandId; + + /** + * Marketing Brand Identifier + * @return the value + **/ + public String getMarketingBrandId() { + return marketingBrandId; + } + + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * email subdomain lifecyclestate + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * email subdomain lifecyclestate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * email subdomain lifecyclestate + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Email subdomain intermediate states + **/ + public enum LifecycleDetails { + Pending("PENDING"), + None("NONE"), + CreatingTempProperty("CREATING_TEMP_PROPERTY"), + FailureTempPropertyCreation("FAILURE_TEMP_PROPERTY_CREATION"), + ActivatingTempProperty("ACTIVATING_TEMP_PROPERTY"), + FailureTempPropertyActivation("FAILURE_TEMP_PROPERTY_ACTIVATION"), + ActivatingHostnameTempProperty("ACTIVATING_HOSTNAME_TEMP_PROPERTY"), + FailureTempPropertyHostnameActivation("FAILURE_TEMP_PROPERTY_HOSTNAME_ACTIVATION"), + ReadyForMainActivation("READY_FOR_MAIN_ACTIVATION"), + ActivatingHostname("ACTIVATING_HOSTNAME"), + FailureHostnameActivation("FAILURE_HOSTNAME_ACTIVATION"), + SendingBrandEvent("SENDING_BRAND_EVENT"), + FailureBrandEvent("FAILURE_BRAND_EVENT"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** + * Email subdomain intermediate states + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * Email subdomain intermediate states + * @return the value + **/ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * dns management type for email subdomain + **/ + public enum DnsManagement { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DnsManagement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DnsManagement v : DnsManagement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DnsManagement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DnsManagement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DnsManagement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private final DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @return the value + **/ + public DnsManagement getDnsManagement() { + return dnsManagement; + } + + /** + * dns status for email subdomain + **/ + public enum DnsStatus { + Active("ACTIVE"), + NotConfirmed("NOT_CONFIRMED"), + Pending("PENDING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DnsStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DnsStatus v : DnsStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DnsStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DnsStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DnsStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * dns status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private final DnsStatus dnsStatus; + + /** + * dns status for email subdomain + * @return the value + **/ + public DnsStatus getDnsStatus() { + return dnsStatus; + } + + /** + * dns management type for email subdomain + **/ + public enum CertificateManagement { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CertificateManagement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CertificateManagement v : CertificateManagement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CertificateManagement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CertificateManagement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CertificateManagement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private final CertificateManagement certificateManagement; + + /** + * dns management type for email subdomain + * @return the value + **/ + public CertificateManagement getCertificateManagement() { + return certificateManagement; + } + + /** + * certificate status for email subdomain + **/ + public enum CertificateStatus { + Active("ACTIVE"), + NotConfirmed("NOT_CONFIRMED"), + 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(CertificateStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CertificateStatus v : CertificateStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CertificateStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CertificateStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CertificateStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * certificate status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateStatus") + private final CertificateStatus certificateStatus; + + /** + * certificate status for email subdomain + * @return the value + **/ + public CertificateStatus getCertificateStatus() { + return certificateStatus; + } + + /** + * certification expiration date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCertificateExpiration") + private final java.util.Date timeCertificateExpiration; + + /** + * certification expiration date + * @return the value + **/ + public java.util.Date getTimeCertificateExpiration() { + return timeCertificateExpiration; + } + + /** + * The time the Email Subdomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Email Subdomain was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EmailSubdomain("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", dnsManagement=").append(String.valueOf(this.dnsManagement)); + sb.append(", dnsStatus=").append(String.valueOf(this.dnsStatus)); + sb.append(", certificateManagement=").append(String.valueOf(this.certificateManagement)); + sb.append(", certificateStatus=").append(String.valueOf(this.certificateStatus)); + sb.append(", timeCertificateExpiration=") + .append(String.valueOf(this.timeCertificateExpiration)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EmailSubdomain)) { + return false; + } + + EmailSubdomain other = (EmailSubdomain) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.dnsManagement, other.dnsManagement) + && java.util.Objects.equals(this.dnsStatus, other.dnsStatus) + && java.util.Objects.equals(this.certificateManagement, other.certificateManagement) + && java.util.Objects.equals(this.certificateStatus, other.certificateStatus) + && java.util.Objects.equals( + this.timeCertificateExpiration, other.timeCertificateExpiration) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.dnsManagement == null ? 43 : this.dnsManagement.hashCode()); + result = (result * PRIME) + (this.dnsStatus == null ? 43 : this.dnsStatus.hashCode()); + result = + (result * PRIME) + + (this.certificateManagement == null + ? 43 + : this.certificateManagement.hashCode()); + result = + (result * PRIME) + + (this.certificateStatus == null ? 43 : this.certificateStatus.hashCode()); + result = + (result * PRIME) + + (this.timeCertificateExpiration == null + ? 43 + : this.timeCertificateExpiration.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomainCollection.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomainCollection.java new file mode 100644 index 00000000000..93318115bfd --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomainCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Results of email subdomains for a marketing brand. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = EmailSubdomainCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class EmailSubdomainCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public EmailSubdomainCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of EmailSubdomainSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of EmailSubdomainSummary 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 EmailSubdomainCollection build() { + EmailSubdomainCollection model = new EmailSubdomainCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EmailSubdomainCollection 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 EmailSubdomainSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of EmailSubdomainSummary 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("EmailSubdomainCollection("); + 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 EmailSubdomainCollection)) { + return false; + } + + EmailSubdomainCollection other = (EmailSubdomainCollection) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomainSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomainSummary.java new file mode 100644 index 00000000000..c4b4fc2ce00 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/EmailSubdomainSummary.java @@ -0,0 +1,755 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * email subdomain details for a marketing brand + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = EmailSubdomainSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class EmailSubdomainSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "marketingBrandId", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "dnsManagement", + "dnsStatus", + "certificateManagement", + "certificateStatus", + "timeCertificateExpiration", + "timeCreated", + "freeformTags", + "definedTags", + "systemTags" + }) + public EmailSubdomainSummary( + String id, + String name, + String marketingBrandId, + String fusionEnvironmentId, + EmailSubdomain.LifecycleState lifecycleState, + EmailSubdomain.LifecycleDetails lifecycleDetails, + EmailSubdomain.DnsManagement dnsManagement, + EmailSubdomain.DnsStatus dnsStatus, + EmailSubdomain.CertificateManagement certificateManagement, + EmailSubdomain.CertificateStatus certificateStatus, + java.util.Date timeCertificateExpiration, + java.util.Date timeCreated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.marketingBrandId = marketingBrandId; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.dnsManagement = dnsManagement; + this.dnsStatus = dnsStatus; + this.certificateManagement = certificateManagement; + this.certificateStatus = certificateStatus; + this.timeCertificateExpiration = timeCertificateExpiration; + this.timeCreated = timeCreated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * email subdomain name for a brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * email subdomain name for a brand + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private String marketingBrandId; + + /** + * Marketing Brand Identifier + * @param marketingBrandId the value to set + * @return this builder + **/ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + this.__explicitlySet__.add("marketingBrandId"); + return this; + } + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * email subdomain lifecyclestate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private EmailSubdomain.LifecycleState lifecycleState; + + /** + * email subdomain lifecyclestate + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(EmailSubdomain.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Intermediate state for Email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private EmailSubdomain.LifecycleDetails lifecycleDetails; + + /** + * Intermediate state for Email subdomain + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(EmailSubdomain.LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private EmailSubdomain.DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @param dnsManagement the value to set + * @return this builder + **/ + public Builder dnsManagement(EmailSubdomain.DnsManagement dnsManagement) { + this.dnsManagement = dnsManagement; + this.__explicitlySet__.add("dnsManagement"); + return this; + } + /** + * dns status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private EmailSubdomain.DnsStatus dnsStatus; + + /** + * dns status for email subdomain + * @param dnsStatus the value to set + * @return this builder + **/ + public Builder dnsStatus(EmailSubdomain.DnsStatus dnsStatus) { + this.dnsStatus = dnsStatus; + this.__explicitlySet__.add("dnsStatus"); + return this; + } + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private EmailSubdomain.CertificateManagement certificateManagement; + + /** + * dns management type for email subdomain + * @param certificateManagement the value to set + * @return this builder + **/ + public Builder certificateManagement( + EmailSubdomain.CertificateManagement certificateManagement) { + this.certificateManagement = certificateManagement; + this.__explicitlySet__.add("certificateManagement"); + return this; + } + /** + * certificate status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateStatus") + private EmailSubdomain.CertificateStatus certificateStatus; + + /** + * certificate status for email subdomain + * @param certificateStatus the value to set + * @return this builder + **/ + public Builder certificateStatus(EmailSubdomain.CertificateStatus certificateStatus) { + this.certificateStatus = certificateStatus; + this.__explicitlySet__.add("certificateStatus"); + return this; + } + /** + * certification expiration date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCertificateExpiration") + private java.util.Date timeCertificateExpiration; + + /** + * certification expiration date + * @param timeCertificateExpiration the value to set + * @return this builder + **/ + public Builder timeCertificateExpiration(java.util.Date timeCertificateExpiration) { + this.timeCertificateExpiration = timeCertificateExpiration; + this.__explicitlySet__.add("timeCertificateExpiration"); + return this; + } + /** + * The time the Email Subdomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Email Subdomain 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; + } + /** + * 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; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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 EmailSubdomainSummary build() { + EmailSubdomainSummary model = + new EmailSubdomainSummary( + this.id, + this.name, + this.marketingBrandId, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.dnsManagement, + this.dnsStatus, + this.certificateManagement, + this.certificateStatus, + this.timeCertificateExpiration, + this.timeCreated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EmailSubdomainSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("marketingBrandId")) { + this.marketingBrandId(model.getMarketingBrandId()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("dnsManagement")) { + this.dnsManagement(model.getDnsManagement()); + } + if (model.wasPropertyExplicitlySet("dnsStatus")) { + this.dnsStatus(model.getDnsStatus()); + } + if (model.wasPropertyExplicitlySet("certificateManagement")) { + this.certificateManagement(model.getCertificateManagement()); + } + if (model.wasPropertyExplicitlySet("certificateStatus")) { + this.certificateStatus(model.getCertificateStatus()); + } + if (model.wasPropertyExplicitlySet("timeCertificateExpiration")) { + this.timeCertificateExpiration(model.getTimeCertificateExpiration()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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 unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of emailsubdomain. Can't be changed after creation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * email subdomain name for a brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * email subdomain name for a brand + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private final String marketingBrandId; + + /** + * Marketing Brand Identifier + * @return the value + **/ + public String getMarketingBrandId() { + return marketingBrandId; + } + + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * email subdomain lifecyclestate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final EmailSubdomain.LifecycleState lifecycleState; + + /** + * email subdomain lifecyclestate + * @return the value + **/ + public EmailSubdomain.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Intermediate state for Email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final EmailSubdomain.LifecycleDetails lifecycleDetails; + + /** + * Intermediate state for Email subdomain + * @return the value + **/ + public EmailSubdomain.LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private final EmailSubdomain.DnsManagement dnsManagement; + + /** + * dns management type for email subdomain + * @return the value + **/ + public EmailSubdomain.DnsManagement getDnsManagement() { + return dnsManagement; + } + + /** + * dns status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private final EmailSubdomain.DnsStatus dnsStatus; + + /** + * dns status for email subdomain + * @return the value + **/ + public EmailSubdomain.DnsStatus getDnsStatus() { + return dnsStatus; + } + + /** + * dns management type for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private final EmailSubdomain.CertificateManagement certificateManagement; + + /** + * dns management type for email subdomain + * @return the value + **/ + public EmailSubdomain.CertificateManagement getCertificateManagement() { + return certificateManagement; + } + + /** + * certificate status for email subdomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateStatus") + private final EmailSubdomain.CertificateStatus certificateStatus; + + /** + * certificate status for email subdomain + * @return the value + **/ + public EmailSubdomain.CertificateStatus getCertificateStatus() { + return certificateStatus; + } + + /** + * certification expiration date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCertificateExpiration") + private final java.util.Date timeCertificateExpiration; + + /** + * certification expiration date + * @return the value + **/ + public java.util.Date getTimeCertificateExpiration() { + return timeCertificateExpiration; + } + + /** + * The time the Email Subdomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Email Subdomain was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EmailSubdomainSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", dnsManagement=").append(String.valueOf(this.dnsManagement)); + sb.append(", dnsStatus=").append(String.valueOf(this.dnsStatus)); + sb.append(", certificateManagement=").append(String.valueOf(this.certificateManagement)); + sb.append(", certificateStatus=").append(String.valueOf(this.certificateStatus)); + sb.append(", timeCertificateExpiration=") + .append(String.valueOf(this.timeCertificateExpiration)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EmailSubdomainSummary)) { + return false; + } + + EmailSubdomainSummary other = (EmailSubdomainSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.dnsManagement, other.dnsManagement) + && java.util.Objects.equals(this.dnsStatus, other.dnsStatus) + && java.util.Objects.equals(this.certificateManagement, other.certificateManagement) + && java.util.Objects.equals(this.certificateStatus, other.certificateStatus) + && java.util.Objects.equals( + this.timeCertificateExpiration, other.timeCertificateExpiration) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.dnsManagement == null ? 43 : this.dnsManagement.hashCode()); + result = (result * PRIME) + (this.dnsStatus == null ? 43 : this.dnsStatus.hashCode()); + result = + (result * PRIME) + + (this.certificateManagement == null + ? 43 + : this.certificateManagement.hashCode()); + result = + (result * PRIME) + + (this.certificateStatus == null ? 43 : this.certificateStatus.hashCode()); + result = + (result * PRIME) + + (this.timeCertificateExpiration == null + ? 43 + : this.timeCertificateExpiration.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java index d021a0b59d9..06d76d42226 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java @@ -22,8 +22,17 @@ public final class ExtractDetailsSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"parUrl", "password", "timeCreated"}) public ExtractDetailsSummary(String parUrl, String password, java.util.Date timeCreated) { + super(); + this.parUrl = parUrl; + this.password = password != null ? password.toCharArray() : null; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"parUrl", "password", "timeCreated"}) + public ExtractDetailsSummary(String parUrl, char[] password, java.util.Date timeCreated) { super(); this.parUrl = parUrl; this.password = password; @@ -52,18 +61,25 @@ public Builder parUrl(String parUrl) { * The password to decrypt data extract. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to decrypt data extract. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The time when the data extract was requested. An RFC3339 formatted datetime string **/ @@ -137,13 +153,25 @@ public String getParUrl() { * The password to decrypt data extract. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password to decrypt data extract. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password to decrypt data extract. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 45c990f8873..9bcb4f266ea 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 @@ -52,7 +52,8 @@ public final class FusionEnvironment extends com.oracle.bmc.http.internal.Explic "environmentRole", "freeformTags", "definedTags", - "isSuspended" + "isSuspended", + "additionalEgressRules" }) public FusionEnvironment( String id, @@ -85,7 +86,8 @@ public FusionEnvironment( EnvironmentRole environmentRole, java.util.Map freeformTags, java.util.Map> definedTags, - Boolean isSuspended) { + Boolean isSuspended, + java.util.List additionalEgressRules) { super(); this.id = id; this.displayName = displayName; @@ -118,6 +120,7 @@ public FusionEnvironment( this.freeformTags = freeformTags; this.definedTags = definedTags; this.isSuspended = isSuspended; + this.additionalEgressRules = additionalEgressRules; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -388,13 +391,13 @@ public Builder additionalLanguagePacks(java.util.List additionalLanguage return this; } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. * @param isIPv6DualStackEnabled the value to set * @return this builder **/ @@ -606,6 +609,23 @@ public Builder isSuspended(Boolean isSuspended) { this.__explicitlySet__.add("isSuspended"); return this; } + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If access to a non-standard port is required, however, they can be listed here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules") + private java.util.List additionalEgressRules; + + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If access to a non-standard port is required, however, they can be listed here. + * @param additionalEgressRules the value to set + * @return this builder + **/ + public Builder additionalEgressRules( + java.util.List additionalEgressRules) { + this.additionalEgressRules = additionalEgressRules; + this.__explicitlySet__.add("additionalEgressRules"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -643,7 +663,8 @@ public FusionEnvironment build() { this.environmentRole, this.freeformTags, this.definedTags, - this.isSuspended); + this.isSuspended, + this.additionalEgressRules); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -745,6 +766,9 @@ public Builder copy(FusionEnvironment model) { if (model.wasPropertyExplicitlySet("isSuspended")) { this.isSuspended(model.getIsSuspended()); } + if (model.wasPropertyExplicitlySet("additionalEgressRules")) { + this.additionalEgressRules(model.getAdditionalEgressRules()); + } return this; } } @@ -858,6 +882,7 @@ public enum FusionEnvironmentType { Production("PRODUCTION"), Test("TEST"), Development("DEVELOPMENT"), + Demo("DEMO"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -1041,13 +1066,13 @@ public java.util.List getAdditionalLanguagePacks() { } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private final Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. * @return the value **/ public Boolean getIsIPv6DualStackEnabled() { @@ -1283,6 +1308,20 @@ public Boolean getIsSuspended() { return isSuspended; } + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If access to a non-standard port is required, however, they can be listed here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules") + private final java.util.List additionalEgressRules; + + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If access to a non-standard port is required, however, they can be listed here. + * @return the value + **/ + public java.util.List getAdditionalEgressRules() { + return additionalEgressRules; + } + @Override public String toString() { return this.toString(true); @@ -1331,6 +1370,7 @@ public String toString(boolean includeByteArrayContents) { 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(", additionalEgressRules=").append(String.valueOf(this.additionalEgressRules)); sb.append(")"); return sb.toString(); } @@ -1380,6 +1420,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.isSuspended, other.isSuspended) + && java.util.Objects.equals(this.additionalEgressRules, other.additionalEgressRules) && super.equals(other); } @@ -1460,6 +1501,11 @@ 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.isSuspended == null ? 43 : this.isSuspended.hashCode()); + result = + (result * PRIME) + + (this.additionalEgressRules == null + ? 43 + : this.additionalEgressRules.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java index 8bd12597841..aa4a58b7306 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java @@ -5,7 +5,7 @@ package com.oracle.bmc.fusionapps.model; /** - * Details of a Fusion environment family. An environment family is a logical grouping of environments. The environment family defines a set of characteristics that are shared across the environments to allow consistent management and maintenance across your production, test, and development environments. For more information, see [Planning an Environment Family](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment-family.htm). + * Details of a Fusion environment family. An environment family is a logical grouping of environments. The environment family defines a set of characteristics that are shared across the environments to allow consistent management and maintenance across your production, test, development, and demo environments. For more information, see [Planning an Environment Family](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment-family.htm). *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamilyLimitsAndUsage.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamilyLimitsAndUsage.java index eb608f9549b..69a4b405463 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamilyLimitsAndUsage.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamilyLimitsAndUsage.java @@ -25,16 +25,19 @@ public final class FusionEnvironmentFamilyLimitsAndUsage @java.beans.ConstructorProperties({ "productionLimitAndUsage", "testLimitAndUsage", - "developmentLimitAndUsage" + "developmentLimitAndUsage", + "demoLimitAndUsage" }) public FusionEnvironmentFamilyLimitsAndUsage( LimitAndUsage productionLimitAndUsage, LimitAndUsage testLimitAndUsage, - LimitAndUsage developmentLimitAndUsage) { + LimitAndUsage developmentLimitAndUsage, + LimitAndUsage demoLimitAndUsage) { super(); this.productionLimitAndUsage = productionLimitAndUsage; this.testLimitAndUsage = testLimitAndUsage; this.developmentLimitAndUsage = developmentLimitAndUsage; + this.demoLimitAndUsage = demoLimitAndUsage; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -67,6 +70,15 @@ public Builder developmentLimitAndUsage(LimitAndUsage developmentLimitAndUsage) return this; } + @com.fasterxml.jackson.annotation.JsonProperty("demoLimitAndUsage") + private LimitAndUsage demoLimitAndUsage; + + public Builder demoLimitAndUsage(LimitAndUsage demoLimitAndUsage) { + this.demoLimitAndUsage = demoLimitAndUsage; + this.__explicitlySet__.add("demoLimitAndUsage"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -75,7 +87,8 @@ public FusionEnvironmentFamilyLimitsAndUsage build() { new FusionEnvironmentFamilyLimitsAndUsage( this.productionLimitAndUsage, this.testLimitAndUsage, - this.developmentLimitAndUsage); + this.developmentLimitAndUsage, + this.demoLimitAndUsage); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -93,6 +106,9 @@ public Builder copy(FusionEnvironmentFamilyLimitsAndUsage model) { if (model.wasPropertyExplicitlySet("developmentLimitAndUsage")) { this.developmentLimitAndUsage(model.getDevelopmentLimitAndUsage()); } + if (model.wasPropertyExplicitlySet("demoLimitAndUsage")) { + this.demoLimitAndUsage(model.getDemoLimitAndUsage()); + } return this; } } @@ -129,6 +145,13 @@ public LimitAndUsage getDevelopmentLimitAndUsage() { return developmentLimitAndUsage; } + @com.fasterxml.jackson.annotation.JsonProperty("demoLimitAndUsage") + private final LimitAndUsage demoLimitAndUsage; + + public LimitAndUsage getDemoLimitAndUsage() { + return demoLimitAndUsage; + } + @Override public String toString() { return this.toString(true); @@ -147,6 +170,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", testLimitAndUsage=").append(String.valueOf(this.testLimitAndUsage)); sb.append(", developmentLimitAndUsage=") .append(String.valueOf(this.developmentLimitAndUsage)); + sb.append(", demoLimitAndUsage=").append(String.valueOf(this.demoLimitAndUsage)); sb.append(")"); return sb.toString(); } @@ -165,6 +189,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.testLimitAndUsage, other.testLimitAndUsage) && java.util.Objects.equals( this.developmentLimitAndUsage, other.developmentLimitAndUsage) + && java.util.Objects.equals(this.demoLimitAndUsage, other.demoLimitAndUsage) && super.equals(other); } @@ -185,6 +210,9 @@ public int hashCode() { + (this.developmentLimitAndUsage == null ? 43 : this.developmentLimitAndUsage.hashCode()); + result = + (result * PRIME) + + (this.demoLimitAndUsage == null ? 43 : this.demoLimitAndUsage.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentSummary.java index 2d969afaf66..295a7da28e6 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentSummary.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentSummary.java @@ -299,13 +299,13 @@ public Builder additionalLanguagePacks(java.util.List additionalLanguage return this; } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. * @param isIPv6DualStackEnabled the value to set * @return this builder **/ @@ -745,13 +745,13 @@ public java.util.List getAdditionalLanguagePacks() { } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private final Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. * @return the value **/ public Boolean getIsIPv6DualStackEnabled() { diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/LimitAndUsage.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/LimitAndUsage.java index 0b94265c0c8..8d646f340b7 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/LimitAndUsage.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/LimitAndUsage.java @@ -5,7 +5,7 @@ package com.oracle.bmc.fusionapps.model; /** - * The limit and usage for a specific environment type, for example, production, development, or test. + * The limit and usage for a specific environment type, for example, production, development, demo or 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 diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrand.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrand.java new file mode 100644 index 00000000000..4da86e9b1eb --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrand.java @@ -0,0 +1,591 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * marketing brand details for fusion environment + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MarketingBrand.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MarketingBrand extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "lifecycleState", + "lifecycleDetails", + "fusionEnvironmentId", + "timeCreated", + "freeformTags", + "definedTags", + "systemTags" + }) + public MarketingBrand( + String id, + String name, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, + String fusionEnvironmentId, + java.util.Date timeCreated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.fusionEnvironmentId = fusionEnvironmentId; + this.timeCreated = timeCreated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of marketing brand. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of marketing brand. Can't be changed after creation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * marketing brand name for fusion environment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * marketing brand name for fusion environment + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * lifecycle state of marketing brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * lifecycle state of marketing brand + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Marketing Brand intermediate states + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * Marketing Brand 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; + } + /** + * fusion environment id + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * fusion environment id + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * timeCreated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * timeCreated + * @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; + } + /** + * 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; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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 MarketingBrand build() { + MarketingBrand model = + new MarketingBrand( + this.id, + this.name, + this.lifecycleState, + this.lifecycleDetails, + this.fusionEnvironmentId, + this.timeCreated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MarketingBrand model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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 unique identifier (OCID) of marketing brand. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of marketing brand. Can't be changed after creation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * marketing brand name for fusion environment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * marketing brand name for fusion environment + * @return the value + **/ + public String getName() { + return name; + } + + /** + * lifecycle state of marketing brand + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * lifecycle state of marketing brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * lifecycle state of marketing brand + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Marketing Brand intermediate states + **/ + public enum LifecycleDetails { + None("NONE"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(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; + } + }; + /** + * Marketing Brand intermediate states + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * Marketing Brand intermediate states + * @return the value + **/ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * fusion environment id + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * fusion environment id + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * timeCreated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * timeCreated + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MarketingBrand("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MarketingBrand)) { + return false; + } + + MarketingBrand other = (MarketingBrand) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandCollection.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandCollection.java new file mode 100644 index 00000000000..b342096a674 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Results of marketing brands for a fusion environment. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MarketingBrandCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MarketingBrandCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MarketingBrandCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of MarketingBrandSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of MarketingBrandSummary 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 MarketingBrandCollection build() { + MarketingBrandCollection model = new MarketingBrandCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MarketingBrandCollection 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 MarketingBrandSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of MarketingBrandSummary 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("MarketingBrandCollection("); + 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 MarketingBrandCollection)) { + return false; + } + + MarketingBrandCollection other = (MarketingBrandCollection) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandEmailSubdomainCsr.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandEmailSubdomainCsr.java new file mode 100644 index 00000000000..cc8e1e4a82d --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandEmailSubdomainCsr.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * email subdomain CSR 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MarketingBrandEmailSubdomainCsr.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MarketingBrandEmailSubdomainCsr + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"commonName", "csr"}) + public MarketingBrandEmailSubdomainCsr(String commonName, String csr) { + super(); + this.commonName = commonName; + this.csr = csr; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private String commonName; + + /** + * fully qualified host name + * @param commonName the value to set + * @return this builder + **/ + public Builder commonName(String commonName) { + this.commonName = commonName; + this.__explicitlySet__.add("commonName"); + return this; + } + /** + * Certificate signing request + **/ + @com.fasterxml.jackson.annotation.JsonProperty("csr") + private String csr; + + /** + * Certificate signing request + * @param csr the value to set + * @return this builder + **/ + public Builder csr(String csr) { + this.csr = csr; + this.__explicitlySet__.add("csr"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MarketingBrandEmailSubdomainCsr build() { + MarketingBrandEmailSubdomainCsr model = + new MarketingBrandEmailSubdomainCsr(this.commonName, this.csr); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MarketingBrandEmailSubdomainCsr model) { + if (model.wasPropertyExplicitlySet("commonName")) { + this.commonName(model.getCommonName()); + } + if (model.wasPropertyExplicitlySet("csr")) { + this.csr(model.getCsr()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private final String commonName; + + /** + * fully qualified host name + * @return the value + **/ + public String getCommonName() { + return commonName; + } + + /** + * Certificate signing request + **/ + @com.fasterxml.jackson.annotation.JsonProperty("csr") + private final String csr; + + /** + * Certificate signing request + * @return the value + **/ + public String getCsr() { + return csr; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MarketingBrandEmailSubdomainCsr("); + sb.append("super=").append(super.toString()); + sb.append("commonName=").append(String.valueOf(this.commonName)); + sb.append(", csr=").append(String.valueOf(this.csr)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MarketingBrandEmailSubdomainCsr)) { + return false; + } + + MarketingBrandEmailSubdomainCsr other = (MarketingBrandEmailSubdomainCsr) o; + return java.util.Objects.equals(this.commonName, other.commonName) + && java.util.Objects.equals(this.csr, other.csr) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.commonName == null ? 43 : this.commonName.hashCode()); + result = (result * PRIME) + (this.csr == null ? 43 : this.csr.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandEmailSubdomainDnsConfig.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandEmailSubdomainDnsConfig.java new file mode 100644 index 00000000000..4c5d001c58d --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandEmailSubdomainDnsConfig.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * List of DNS records for email subdomain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MarketingBrandEmailSubdomainDnsConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MarketingBrandEmailSubdomainDnsConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"records"}) + public MarketingBrandEmailSubdomainDnsConfig(java.util.List records) { + super(); + this.records = records; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * dns records list. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("records") + private java.util.List records; + + /** + * dns records list. + * @param records the value to set + * @return this builder + **/ + public Builder records(java.util.List records) { + this.records = records; + this.__explicitlySet__.add("records"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MarketingBrandEmailSubdomainDnsConfig build() { + MarketingBrandEmailSubdomainDnsConfig model = + new MarketingBrandEmailSubdomainDnsConfig(this.records); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MarketingBrandEmailSubdomainDnsConfig model) { + if (model.wasPropertyExplicitlySet("records")) { + this.records(model.getRecords()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * dns records list. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("records") + private final java.util.List records; + + /** + * dns records list. + * @return the value + **/ + public java.util.List getRecords() { + return records; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MarketingBrandEmailSubdomainDnsConfig("); + sb.append("super=").append(super.toString()); + sb.append("records=").append(String.valueOf(this.records)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MarketingBrandEmailSubdomainDnsConfig)) { + return false; + } + + MarketingBrandEmailSubdomainDnsConfig other = (MarketingBrandEmailSubdomainDnsConfig) o; + return java.util.Objects.equals(this.records, other.records) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.records == null ? 43 : this.records.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandMicrositeDnsConfig.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandMicrositeDnsConfig.java new file mode 100644 index 00000000000..fb9783d6b2b --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandMicrositeDnsConfig.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * List of DNS records for email subdomain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MarketingBrandMicrositeDnsConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MarketingBrandMicrositeDnsConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"records"}) + public MarketingBrandMicrositeDnsConfig(java.util.List records) { + super(); + this.records = records; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * dns records list. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("records") + private java.util.List records; + + /** + * dns records list. + * @param records the value to set + * @return this builder + **/ + public Builder records(java.util.List records) { + this.records = records; + this.__explicitlySet__.add("records"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MarketingBrandMicrositeDnsConfig build() { + MarketingBrandMicrositeDnsConfig model = + new MarketingBrandMicrositeDnsConfig(this.records); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MarketingBrandMicrositeDnsConfig model) { + if (model.wasPropertyExplicitlySet("records")) { + this.records(model.getRecords()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * dns records list. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("records") + private final java.util.List records; + + /** + * dns records list. + * @return the value + **/ + public java.util.List getRecords() { + return records; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MarketingBrandMicrositeDnsConfig("); + sb.append("super=").append(super.toString()); + sb.append("records=").append(String.valueOf(this.records)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MarketingBrandMicrositeDnsConfig)) { + return false; + } + + MarketingBrandMicrositeDnsConfig other = (MarketingBrandMicrositeDnsConfig) o; + return java.util.Objects.equals(this.records, other.records) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.records == null ? 43 : this.records.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandSummary.java new file mode 100644 index 00000000000..7f4f6375153 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MarketingBrandSummary.java @@ -0,0 +1,498 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * marketing brand details for fusion environment + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MarketingBrandSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MarketingBrandSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "lifecycleState", + "lifecycleDetails", + "fusionEnvironmentId", + "timeCreated", + "freeformTags", + "definedTags", + "systemTags" + }) + public MarketingBrandSummary( + String id, + String name, + MarketingBrand.LifecycleState lifecycleState, + MarketingBrand.LifecycleDetails lifecycleDetails, + String fusionEnvironmentId, + java.util.Date timeCreated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.fusionEnvironmentId = fusionEnvironmentId; + this.timeCreated = timeCreated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of marketing brand. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of marketing brand. Can't be changed after creation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * marketing brand name for fusion environment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * marketing brand name for fusion environment + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * lifecycle state of marketing brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MarketingBrand.LifecycleState lifecycleState; + + /** + * lifecycle state of marketing brand + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MarketingBrand.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Intermediate state for Marketing Brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private MarketingBrand.LifecycleDetails lifecycleDetails; + + /** + * Intermediate state for Marketing Brand + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(MarketingBrand.LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * fusion environment id + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * fusion environment id + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * The time the Marketing Brand was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Marketing Brand 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; + } + /** + * 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; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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 MarketingBrandSummary build() { + MarketingBrandSummary model = + new MarketingBrandSummary( + this.id, + this.name, + this.lifecycleState, + this.lifecycleDetails, + this.fusionEnvironmentId, + this.timeCreated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MarketingBrandSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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 unique identifier (OCID) of marketing brand. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of marketing brand. Can't be changed after creation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * marketing brand name for fusion environment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * marketing brand name for fusion environment + * @return the value + **/ + public String getName() { + return name; + } + + /** + * lifecycle state of marketing brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MarketingBrand.LifecycleState lifecycleState; + + /** + * lifecycle state of marketing brand + * @return the value + **/ + public MarketingBrand.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Intermediate state for Marketing Brand + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final MarketingBrand.LifecycleDetails lifecycleDetails; + + /** + * Intermediate state for Marketing Brand + * @return the value + **/ + public MarketingBrand.LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * fusion environment id + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * fusion environment id + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * The time the Marketing Brand was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Marketing Brand was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MarketingBrandSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MarketingBrandSummary)) { + return false; + } + + MarketingBrandSummary other = (MarketingBrandSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Microsite.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Microsite.java new file mode 100644 index 00000000000..3843c29b75a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Microsite.java @@ -0,0 +1,912 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * microsite details for a marketing brand + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = Microsite.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Microsite extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "marketingBrandId", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "dnsManagement", + "dnsStatus", + "certificateManagement", + "timeCreated", + "freeformTags", + "definedTags", + "systemTags" + }) + public Microsite( + String id, + String name, + String marketingBrandId, + String fusionEnvironmentId, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, + DnsManagement dnsManagement, + DnsStatus dnsStatus, + CertificateManagement certificateManagement, + java.util.Date timeCreated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.marketingBrandId = marketingBrandId; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.dnsManagement = dnsManagement; + this.dnsStatus = dnsStatus; + this.certificateManagement = certificateManagement; + this.timeCreated = timeCreated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of microsite. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of microsite. Can't be changed after creation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * microsite sudomain name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * microsite sudomain name + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private String marketingBrandId; + + /** + * Marketing Brand Identifier + * @param marketingBrandId the value to set + * @return this builder + **/ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + this.__explicitlySet__.add("marketingBrandId"); + return this; + } + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * microsite lifecycle state + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * microsite lifecycle state + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * microsite intermediate states + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * microsite 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; + } + /** + * dns management type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private DnsManagement dnsManagement; + + /** + * dns management type for microsite + * @param dnsManagement the value to set + * @return this builder + **/ + public Builder dnsManagement(DnsManagement dnsManagement) { + this.dnsManagement = dnsManagement; + this.__explicitlySet__.add("dnsManagement"); + return this; + } + /** + * dns status for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private DnsStatus dnsStatus; + + /** + * dns status for microsite + * @param dnsStatus the value to set + * @return this builder + **/ + public Builder dnsStatus(DnsStatus dnsStatus) { + this.dnsStatus = dnsStatus; + this.__explicitlySet__.add("dnsStatus"); + return this; + } + /** + * certificate management type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private CertificateManagement certificateManagement; + + /** + * certificate management type for microsite + * @param certificateManagement the value to set + * @return this builder + **/ + public Builder certificateManagement(CertificateManagement certificateManagement) { + this.certificateManagement = certificateManagement; + this.__explicitlySet__.add("certificateManagement"); + return this; + } + /** + * The time the Microsite was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Microsite 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; + } + /** + * 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; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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 Microsite build() { + Microsite model = + new Microsite( + this.id, + this.name, + this.marketingBrandId, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.dnsManagement, + this.dnsStatus, + this.certificateManagement, + this.timeCreated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Microsite model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("marketingBrandId")) { + this.marketingBrandId(model.getMarketingBrandId()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("dnsManagement")) { + this.dnsManagement(model.getDnsManagement()); + } + if (model.wasPropertyExplicitlySet("dnsStatus")) { + this.dnsStatus(model.getDnsStatus()); + } + if (model.wasPropertyExplicitlySet("certificateManagement")) { + this.certificateManagement(model.getCertificateManagement()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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 unique identifier (OCID) of microsite. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of microsite. Can't be changed after creation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * microsite sudomain name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * microsite sudomain name + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private final String marketingBrandId; + + /** + * Marketing Brand Identifier + * @return the value + **/ + public String getMarketingBrandId() { + return marketingBrandId; + } + + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * microsite lifecycle state + **/ + public enum LifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * microsite lifecycle state + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * microsite lifecycle state + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * microsite intermediate states + **/ + public enum LifecycleDetails { + Pending("PENDING"), + None("NONE"), + CreatingTempProperty("CREATING_TEMP_PROPERTY"), + FailureTempPropertyCreation("FAILURE_TEMP_PROPERTY_CREATION"), + ActivatingTempProperty("ACTIVATING_TEMP_PROPERTY"), + FailureTempPropertyActivation("FAILURE_TEMP_PROPERTY_ACTIVATION"), + ActivatingHostnameTempProperty("ACTIVATING_HOSTNAME_TEMP_PROPERTY"), + FailureTempPropertyHostnameActivation("FAILURE_TEMP_PROPERTY_HOSTNAME_ACTIVATION"), + ReadyForMainActivation("READY_FOR_MAIN_ACTIVATION"), + ActivatingHostname("ACTIVATING_HOSTNAME"), + FailureHostnameActivation("FAILURE_HOSTNAME_ACTIVATION"), + SendingBrandEvent("SENDING_BRAND_EVENT"), + FailureBrandEvent("FAILURE_BRAND_EVENT"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** + * microsite intermediate states + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * microsite intermediate states + * @return the value + **/ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * dns management type for microsite + **/ + public enum DnsManagement { + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DnsManagement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DnsManagement v : DnsManagement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DnsManagement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DnsManagement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DnsManagement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * dns management type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private final DnsManagement dnsManagement; + + /** + * dns management type for microsite + * @return the value + **/ + public DnsManagement getDnsManagement() { + return dnsManagement; + } + + /** + * dns status for microsite + **/ + public enum DnsStatus { + Active("ACTIVE"), + NotConfirmed("NOT_CONFIRMED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DnsStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DnsStatus v : DnsStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DnsStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DnsStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DnsStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * dns status for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private final DnsStatus dnsStatus; + + /** + * dns status for microsite + * @return the value + **/ + public DnsStatus getDnsStatus() { + return dnsStatus; + } + + /** + * certificate management type for microsite + **/ + public enum CertificateManagement { + OracleManaged("ORACLE_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CertificateManagement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CertificateManagement v : CertificateManagement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CertificateManagement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CertificateManagement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CertificateManagement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * certificate management type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private final CertificateManagement certificateManagement; + + /** + * certificate management type for microsite + * @return the value + **/ + public CertificateManagement getCertificateManagement() { + return certificateManagement; + } + + /** + * The time the Microsite was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Microsite was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Microsite("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", dnsManagement=").append(String.valueOf(this.dnsManagement)); + sb.append(", dnsStatus=").append(String.valueOf(this.dnsStatus)); + sb.append(", certificateManagement=").append(String.valueOf(this.certificateManagement)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Microsite)) { + return false; + } + + Microsite other = (Microsite) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.dnsManagement, other.dnsManagement) + && java.util.Objects.equals(this.dnsStatus, other.dnsStatus) + && java.util.Objects.equals(this.certificateManagement, other.certificateManagement) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.dnsManagement == null ? 43 : this.dnsManagement.hashCode()); + result = (result * PRIME) + (this.dnsStatus == null ? 43 : this.dnsStatus.hashCode()); + result = + (result * PRIME) + + (this.certificateManagement == null + ? 43 + : this.certificateManagement.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MicrositeCollection.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MicrositeCollection.java new file mode 100644 index 00000000000..9bbbd0812b7 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MicrositeCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Results of microsite search for a marketing brand. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MicrositeCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MicrositeCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MicrositeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of microsite summary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of microsite summary 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 MicrositeCollection build() { + MicrositeCollection model = new MicrositeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MicrositeCollection 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 microsite summary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of microsite summary 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("MicrositeCollection("); + 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 MicrositeCollection)) { + return false; + } + + MicrositeCollection other = (MicrositeCollection) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MicrositeSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MicrositeSummary.java new file mode 100644 index 00000000000..45882d368c9 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/MicrositeSummary.java @@ -0,0 +1,664 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * microsite details for a marketing brand + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = MicrositeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MicrositeSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "marketingBrandId", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "dnsManagement", + "dnsStatus", + "certificateManagement", + "timeCreated", + "freeformTags", + "definedTags", + "systemTags" + }) + public MicrositeSummary( + String id, + String name, + String marketingBrandId, + String fusionEnvironmentId, + Microsite.LifecycleState lifecycleState, + Microsite.LifecycleDetails lifecycleDetails, + Microsite.DnsManagement dnsManagement, + Microsite.DnsStatus dnsStatus, + Microsite.CertificateManagement certificateManagement, + java.util.Date timeCreated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.marketingBrandId = marketingBrandId; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.dnsManagement = dnsManagement; + this.dnsStatus = dnsStatus; + this.certificateManagement = certificateManagement; + this.timeCreated = timeCreated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of microsite. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of microsite. Can't be changed after creation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * microsite name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * microsite name + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private String marketingBrandId; + + /** + * Marketing Brand Identifier + * @param marketingBrandId the value to set + * @return this builder + **/ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + this.__explicitlySet__.add("marketingBrandId"); + return this; + } + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * microsite lifecyclestate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Microsite.LifecycleState lifecycleState; + + /** + * microsite lifecyclestate + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(Microsite.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Intermediate state for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private Microsite.LifecycleDetails lifecycleDetails; + + /** + * Intermediate state for microsite + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(Microsite.LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * dns management type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private Microsite.DnsManagement dnsManagement; + + /** + * dns management type for microsite + * @param dnsManagement the value to set + * @return this builder + **/ + public Builder dnsManagement(Microsite.DnsManagement dnsManagement) { + this.dnsManagement = dnsManagement; + this.__explicitlySet__.add("dnsManagement"); + return this; + } + /** + * dns status for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private Microsite.DnsStatus dnsStatus; + + /** + * dns status for microsite + * @param dnsStatus the value to set + * @return this builder + **/ + public Builder dnsStatus(Microsite.DnsStatus dnsStatus) { + this.dnsStatus = dnsStatus; + this.__explicitlySet__.add("dnsStatus"); + return this; + } + /** + * certificate type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private Microsite.CertificateManagement certificateManagement; + + /** + * certificate type for microsite + * @param certificateManagement the value to set + * @return this builder + **/ + public Builder certificateManagement( + Microsite.CertificateManagement certificateManagement) { + this.certificateManagement = certificateManagement; + this.__explicitlySet__.add("certificateManagement"); + return this; + } + /** + * The time the Microsite was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Microsite 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; + } + /** + * 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; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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 MicrositeSummary build() { + MicrositeSummary model = + new MicrositeSummary( + this.id, + this.name, + this.marketingBrandId, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.dnsManagement, + this.dnsStatus, + this.certificateManagement, + this.timeCreated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MicrositeSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("marketingBrandId")) { + this.marketingBrandId(model.getMarketingBrandId()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("dnsManagement")) { + this.dnsManagement(model.getDnsManagement()); + } + if (model.wasPropertyExplicitlySet("dnsStatus")) { + this.dnsStatus(model.getDnsStatus()); + } + if (model.wasPropertyExplicitlySet("certificateManagement")) { + this.certificateManagement(model.getCertificateManagement()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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 unique identifier (OCID) of microsite. Can't be changed after creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of microsite. Can't be changed after creation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * microsite name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * microsite name + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Marketing Brand Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("marketingBrandId") + private final String marketingBrandId; + + /** + * Marketing Brand Identifier + * @return the value + **/ + public String getMarketingBrandId() { + return marketingBrandId; + } + + /** + * Fusion Environment Identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * Fusion Environment Identifier + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * microsite lifecyclestate + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Microsite.LifecycleState lifecycleState; + + /** + * microsite lifecyclestate + * @return the value + **/ + public Microsite.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Intermediate state for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final Microsite.LifecycleDetails lifecycleDetails; + + /** + * Intermediate state for microsite + * @return the value + **/ + public Microsite.LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * dns management type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagement") + private final Microsite.DnsManagement dnsManagement; + + /** + * dns management type for microsite + * @return the value + **/ + public Microsite.DnsManagement getDnsManagement() { + return dnsManagement; + } + + /** + * dns status for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsStatus") + private final Microsite.DnsStatus dnsStatus; + + /** + * dns status for microsite + * @return the value + **/ + public Microsite.DnsStatus getDnsStatus() { + return dnsStatus; + } + + /** + * certificate type for microsite + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateManagement") + private final Microsite.CertificateManagement certificateManagement; + + /** + * certificate type for microsite + * @return the value + **/ + public Microsite.CertificateManagement getCertificateManagement() { + return certificateManagement; + } + + /** + * The time the Microsite was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Microsite was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MicrositeSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", dnsManagement=").append(String.valueOf(this.dnsManagement)); + sb.append(", dnsStatus=").append(String.valueOf(this.dnsStatus)); + sb.append(", certificateManagement=").append(String.valueOf(this.certificateManagement)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MicrositeSummary)) { + return false; + } + + MicrositeSummary other = (MicrositeSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.dnsManagement, other.dnsManagement) + && java.util.Objects.equals(this.dnsStatus, other.dnsStatus) + && java.util.Objects.equals(this.certificateManagement, other.certificateManagement) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.dnsManagement == null ? 43 : this.dnsManagement.hashCode()); + result = (result * PRIME) + (this.dnsStatus == null ? 43 : this.dnsStatus.hashCode()); + result = + (result * PRIME) + + (this.certificateManagement == null + ? 43 + : this.certificateManagement.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/PatchAction.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/PatchAction.java index f9e8b096c32..06f4c444d79 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/PatchAction.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/PatchAction.java @@ -52,13 +52,13 @@ public Builder description(String description) { return this; } /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. **/ @com.fasterxml.jackson.annotation.JsonProperty("mode") private Mode mode; /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. * @param mode the value to set * @return this builder **/ @@ -68,13 +68,13 @@ public Builder mode(Mode mode) { return this; } /** - * patch artifact category + * Patch artifact category. **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private Category category; /** - * patch artifact category + * Patch artifact category. * @param category the value to set * @return this builder **/ @@ -84,13 +84,13 @@ public Builder category(Category category) { return this; } /** - * patch bundle name + * Patch bundle name. **/ @com.fasterxml.jackson.annotation.JsonProperty("artifact") private String artifact; /** - * patch bundle name + * Patch bundle name. * @param artifact the value to set * @return this builder **/ @@ -168,7 +168,7 @@ public PatchAction( } /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. **/ public enum Mode { Hot("HOT"), @@ -214,13 +214,13 @@ public static Mode create(String key) { } }; /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. **/ @com.fasterxml.jackson.annotation.JsonProperty("mode") private final Mode mode; /** - * A string that describes whether the change is applied hot or cold + * A string that describes whether the change is applied hot or cold. * @return the value **/ public Mode getMode() { @@ -228,7 +228,7 @@ public Mode getMode() { } /** - * patch artifact category + * Patch artifact category. **/ public enum Category { Monthly("MONTHLY"), @@ -277,13 +277,13 @@ public static Category create(String key) { } }; /** - * patch artifact category + * Patch artifact category. **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private final Category category; /** - * patch artifact category + * Patch artifact category. * @return the value **/ public Category getCategory() { @@ -291,13 +291,13 @@ public Category getCategory() { } /** - * patch bundle name + * Patch bundle name. **/ @com.fasterxml.jackson.annotation.JsonProperty("artifact") private final String artifact; /** - * patch bundle name + * Patch bundle name. * @return the value **/ public String getArtifact() { diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/RequestEmailSubdomainCsrDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/RequestEmailSubdomainCsrDetails.java new file mode 100644 index 00000000000..4b76ddf3c05 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/RequestEmailSubdomainCsrDetails.java @@ -0,0 +1,425 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Email subdomain certificate request detail + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = RequestEmailSubdomainCsrDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RequestEmailSubdomainCsrDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "commonName", + "sans", + "organizationName", + "organizationUnit", + "locality", + "state", + "country", + "emailAddress" + }) + public RequestEmailSubdomainCsrDetails( + String commonName, + String sans, + String organizationName, + String organizationUnit, + String locality, + String state, + String country, + String emailAddress) { + super(); + this.commonName = commonName; + this.sans = sans; + this.organizationName = organizationName; + this.organizationUnit = organizationUnit; + this.locality = locality; + this.state = state; + this.country = country; + this.emailAddress = emailAddress; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private String commonName; + + /** + * fully qualified host name + * @param commonName the value to set + * @return this builder + **/ + public Builder commonName(String commonName) { + this.commonName = commonName; + this.__explicitlySet__.add("commonName"); + return this; + } + /** + * subject alternative names, comma separated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sans") + private String sans; + + /** + * subject alternative names, comma separated + * @param sans the value to set + * @return this builder + **/ + public Builder sans(String sans) { + this.sans = sans; + this.__explicitlySet__.add("sans"); + return this; + } + /** + * company name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationName") + private String organizationName; + + /** + * company name + * @param organizationName the value to set + * @return this builder + **/ + public Builder organizationName(String organizationName) { + this.organizationName = organizationName; + this.__explicitlySet__.add("organizationName"); + return this; + } + /** + * company section + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationUnit") + private String organizationUnit; + + /** + * company section + * @param organizationUnit the value to set + * @return this builder + **/ + public Builder organizationUnit(String organizationUnit) { + this.organizationUnit = organizationUnit; + this.__explicitlySet__.add("organizationUnit"); + return this; + } + /** + * city + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locality") + private String locality; + + /** + * city + * @param locality the value to set + * @return this builder + **/ + public Builder locality(String locality) { + this.locality = locality; + this.__explicitlySet__.add("locality"); + return this; + } + /** + * state or province + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * state or province + * @param state the value to set + * @return this builder + **/ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** + * country name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private String country; + + /** + * country name + * @param country the value to set + * @return this builder + **/ + public Builder country(String country) { + this.country = country; + this.__explicitlySet__.add("country"); + return this; + } + /** + * email address + **/ + @com.fasterxml.jackson.annotation.JsonProperty("emailAddress") + private String emailAddress; + + /** + * email address + * @param emailAddress the value to set + * @return this builder + **/ + public Builder emailAddress(String emailAddress) { + this.emailAddress = emailAddress; + this.__explicitlySet__.add("emailAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RequestEmailSubdomainCsrDetails build() { + RequestEmailSubdomainCsrDetails model = + new RequestEmailSubdomainCsrDetails( + this.commonName, + this.sans, + this.organizationName, + this.organizationUnit, + this.locality, + this.state, + this.country, + this.emailAddress); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RequestEmailSubdomainCsrDetails model) { + if (model.wasPropertyExplicitlySet("commonName")) { + this.commonName(model.getCommonName()); + } + if (model.wasPropertyExplicitlySet("sans")) { + this.sans(model.getSans()); + } + if (model.wasPropertyExplicitlySet("organizationName")) { + this.organizationName(model.getOrganizationName()); + } + if (model.wasPropertyExplicitlySet("organizationUnit")) { + this.organizationUnit(model.getOrganizationUnit()); + } + if (model.wasPropertyExplicitlySet("locality")) { + this.locality(model.getLocality()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("country")) { + this.country(model.getCountry()); + } + if (model.wasPropertyExplicitlySet("emailAddress")) { + this.emailAddress(model.getEmailAddress()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private final String commonName; + + /** + * fully qualified host name + * @return the value + **/ + public String getCommonName() { + return commonName; + } + + /** + * subject alternative names, comma separated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sans") + private final String sans; + + /** + * subject alternative names, comma separated + * @return the value + **/ + public String getSans() { + return sans; + } + + /** + * company name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationName") + private final String organizationName; + + /** + * company name + * @return the value + **/ + public String getOrganizationName() { + return organizationName; + } + + /** + * company section + **/ + @com.fasterxml.jackson.annotation.JsonProperty("organizationUnit") + private final String organizationUnit; + + /** + * company section + * @return the value + **/ + public String getOrganizationUnit() { + return organizationUnit; + } + + /** + * city + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locality") + private final String locality; + + /** + * city + * @return the value + **/ + public String getLocality() { + return locality; + } + + /** + * state or province + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * state or province + * @return the value + **/ + public String getState() { + return state; + } + + /** + * country name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private final String country; + + /** + * country name + * @return the value + **/ + public String getCountry() { + return country; + } + + /** + * email address + **/ + @com.fasterxml.jackson.annotation.JsonProperty("emailAddress") + private final String emailAddress; + + /** + * email address + * @return the value + **/ + public String getEmailAddress() { + return emailAddress; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RequestEmailSubdomainCsrDetails("); + sb.append("super=").append(super.toString()); + sb.append("commonName=").append(String.valueOf(this.commonName)); + sb.append(", sans=").append(String.valueOf(this.sans)); + sb.append(", organizationName=").append(String.valueOf(this.organizationName)); + sb.append(", organizationUnit=").append(String.valueOf(this.organizationUnit)); + sb.append(", locality=").append(String.valueOf(this.locality)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", country=").append(String.valueOf(this.country)); + sb.append(", emailAddress=").append(String.valueOf(this.emailAddress)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestEmailSubdomainCsrDetails)) { + return false; + } + + RequestEmailSubdomainCsrDetails other = (RequestEmailSubdomainCsrDetails) o; + return java.util.Objects.equals(this.commonName, other.commonName) + && java.util.Objects.equals(this.sans, other.sans) + && java.util.Objects.equals(this.organizationName, other.organizationName) + && java.util.Objects.equals(this.organizationUnit, other.organizationUnit) + && java.util.Objects.equals(this.locality, other.locality) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.country, other.country) + && java.util.Objects.equals(this.emailAddress, other.emailAddress) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.commonName == null ? 43 : this.commonName.hashCode()); + result = (result * PRIME) + (this.sans == null ? 43 : this.sans.hashCode()); + result = + (result * PRIME) + + (this.organizationName == null ? 43 : this.organizationName.hashCode()); + result = + (result * PRIME) + + (this.organizationUnit == null ? 43 : this.organizationUnit.hashCode()); + result = (result * PRIME) + (this.locality == null ? 43 : this.locality.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); + result = (result * PRIME) + (this.emailAddress == null ? 43 : this.emailAddress.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java index 9cb75a209dc..e05c99f7ae1 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java @@ -22,8 +22,15 @@ public final class ResetFusionEnvironmentPasswordDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"password"}) public ResetFusionEnvironmentPasswordDetails(String password) { + super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"password"}) + public ResetFusionEnvironmentPasswordDetails(char[] password) { super(); this.password = password; } @@ -34,19 +41,25 @@ public static class Builder { * Admin password **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Admin password * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -83,13 +96,25 @@ public Builder toBuilder() { * Admin password **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Admin password + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Admin password * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ServiceAttachment.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ServiceAttachment.java index 01715aae54c..00590be6ec2 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ServiceAttachment.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ServiceAttachment.java @@ -407,6 +407,7 @@ public enum ServiceInstanceType { DigitalAssistant("DIGITAL_ASSISTANT"), IntegrationCloud("INTEGRATION_CLOUD"), AnalyticsWarehouse("ANALYTICS_WAREHOUSE"), + FusionDataIntelligence("FUSION_DATA_INTELLIGENCE"), Vbcs("VBCS"), VisualBuilderStudio("VISUAL_BUILDER_STUDIO"), diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateEmailSubdomainDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateEmailSubdomainDetails.java new file mode 100644 index 00000000000..c5aeea34e68 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateEmailSubdomainDetails.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Details for email subdomain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UpdateEmailSubdomainDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateEmailSubdomainDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"freeformTags", "definedTags"}) + public UpdateEmailSubdomainDetails( + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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 UpdateEmailSubdomainDetails build() { + UpdateEmailSubdomainDetails model = + new UpdateEmailSubdomainDetails(this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateEmailSubdomainDetails model) { + 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); + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateEmailSubdomainDetails("); + sb.append("super=").append(super.toString()); + 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 UpdateEmailSubdomainDetails)) { + return false; + } + + UpdateEmailSubdomainDetails other = (UpdateEmailSubdomainDetails) o; + return 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.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateFusionEnvironmentDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateFusionEnvironmentDetails.java index 91501e8c2a7..15b9b9e65df 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateFusionEnvironmentDetails.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateFusionEnvironmentDetails.java @@ -29,6 +29,7 @@ public final class UpdateFusionEnvironmentDetails "additionalLanguagePacks", "isIPv6DualStackEnabled", "rules", + "additionalEgressRules", "freeformTags", "definedTags" }) @@ -39,6 +40,7 @@ public UpdateFusionEnvironmentDetails( java.util.List additionalLanguagePacks, Boolean isIPv6DualStackEnabled, java.util.List rules, + java.util.List additionalEgressRules, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -48,6 +50,7 @@ public UpdateFusionEnvironmentDetails( this.additionalLanguagePacks = additionalLanguagePacks; this.isIPv6DualStackEnabled = isIPv6DualStackEnabled; this.rules = rules; + this.additionalEgressRules = additionalEgressRules; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -112,13 +115,13 @@ public Builder additionalLanguagePacks(java.util.List additionalLanguage return this; } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. * @param isIPv6DualStackEnabled the value to set * @return this builder **/ @@ -143,6 +146,23 @@ public Builder rules(java.util.List rules) { this.__explicitlySet__.add("rules"); return this; } + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules") + private java.util.List additionalEgressRules; + + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + * @param additionalEgressRules the value to set + * @return this builder + **/ + public Builder additionalEgressRules( + java.util.List additionalEgressRules) { + this.additionalEgressRules = additionalEgressRules; + this.__explicitlySet__.add("additionalEgressRules"); + 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"}} @@ -197,6 +217,7 @@ public UpdateFusionEnvironmentDetails build() { this.additionalLanguagePacks, this.isIPv6DualStackEnabled, this.rules, + this.additionalEgressRules, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -225,6 +246,9 @@ public Builder copy(UpdateFusionEnvironmentDetails model) { if (model.wasPropertyExplicitlySet("rules")) { this.rules(model.getRules()); } + if (model.wasPropertyExplicitlySet("additionalEgressRules")) { + this.additionalEgressRules(model.getAdditionalEgressRules()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -296,13 +320,13 @@ public java.util.List getAdditionalLanguagePacks() { } /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. **/ @com.fasterxml.jackson.annotation.JsonProperty("isIPv6DualStackEnabled") private final Boolean isIPv6DualStackEnabled; /** - * Enable IPv4/IPv6 dual stack support for the environment. Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. + * Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address. * @return the value **/ public Boolean getIsIPv6DualStackEnabled() { @@ -323,6 +347,20 @@ public java.util.List getRules() { return rules; } + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules") + private final java.util.List additionalEgressRules; + + /** + * Additional egress rules that should be applied to the environment. Some standard ports are open for general use; see [Securing Network Access to a Fusion Applications Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache). If access to a non-standard port is required, however, they can be listed here. + * @return the value + **/ + public java.util.List getAdditionalEgressRules() { + return additionalEgressRules; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -380,6 +418,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.additionalLanguagePacks)); sb.append(", isIPv6DualStackEnabled=").append(String.valueOf(this.isIPv6DualStackEnabled)); sb.append(", rules=").append(String.valueOf(this.rules)); + sb.append(", additionalEgressRules=").append(String.valueOf(this.additionalEgressRules)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -404,6 +443,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isIPv6DualStackEnabled, other.isIPv6DualStackEnabled) && java.util.Objects.equals(this.rules, other.rules) + && java.util.Objects.equals(this.additionalEgressRules, other.additionalEgressRules) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -429,6 +469,11 @@ public int hashCode() { ? 43 : this.isIPv6DualStackEnabled.hashCode()); result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = + (result * PRIME) + + (this.additionalEgressRules == null + ? 43 + : this.additionalEgressRules.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateMarketingBrandDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateMarketingBrandDetails.java new file mode 100644 index 00000000000..4ef7f493261 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateMarketingBrandDetails.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Details for marketing brand + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UpdateMarketingBrandDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateMarketingBrandDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"freeformTags", "definedTags"}) + public UpdateMarketingBrandDetails( + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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 UpdateMarketingBrandDetails build() { + UpdateMarketingBrandDetails model = + new UpdateMarketingBrandDetails(this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMarketingBrandDetails model) { + 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); + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMarketingBrandDetails("); + sb.append("super=").append(super.toString()); + 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 UpdateMarketingBrandDetails)) { + return false; + } + + UpdateMarketingBrandDetails other = (UpdateMarketingBrandDetails) o; + return 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.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateMicrositeDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateMicrositeDetails.java new file mode 100644 index 00000000000..578ce162850 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateMicrositeDetails.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Details for microsite + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UpdateMicrositeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateMicrositeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"freeformTags", "definedTags"}) + public UpdateMicrositeDetails( + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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 UpdateMicrositeDetails build() { + UpdateMicrositeDetails model = + new UpdateMicrositeDetails(this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMicrositeDetails model) { + 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); + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMicrositeDetails("); + sb.append("super=").append(super.toString()); + 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 UpdateMicrositeDetails)) { + return false; + } + + UpdateMicrositeDetails other = (UpdateMicrositeDetails) o; + return 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.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateVanityDomainActivityDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateVanityDomainActivityDetails.java new file mode 100644 index 00000000000..35f8abdf45f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateVanityDomainActivityDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * The information about scheduled refresh. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UpdateVanityDomainActivityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateVanityDomainActivityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeScheduled"}) + public UpdateVanityDomainActivityDetails(java.util.Date timeScheduled) { + super(); + this.timeScheduled = timeScheduled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Expected activity start time + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * Expected activity start time + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateVanityDomainActivityDetails build() { + UpdateVanityDomainActivityDetails model = + new UpdateVanityDomainActivityDetails(this.timeScheduled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateVanityDomainActivityDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Expected activity start time + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * Expected activity start time + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateVanityDomainActivityDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVanityDomainActivityDetails)) { + return false; + } + + UpdateVanityDomainActivityDetails other = (UpdateVanityDomainActivityDetails) o; + return java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateVanityDomainDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateVanityDomainDetails.java new file mode 100644 index 00000000000..a7e5a650486 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpdateVanityDomainDetails.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The information about scheduled VanityDomain refresh. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UpdateVanityDomainDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateVanityDomainDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"certificateInfo"}) + public UpdateVanityDomainDetails(CertificateInfo certificateInfo) { + super(); + this.certificateInfo = certificateInfo; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("certificateInfo") + private CertificateInfo certificateInfo; + + public Builder certificateInfo(CertificateInfo certificateInfo) { + this.certificateInfo = certificateInfo; + this.__explicitlySet__.add("certificateInfo"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateVanityDomainDetails build() { + UpdateVanityDomainDetails model = new UpdateVanityDomainDetails(this.certificateInfo); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateVanityDomainDetails model) { + if (model.wasPropertyExplicitlySet("certificateInfo")) { + this.certificateInfo(model.getCertificateInfo()); + } + 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("certificateInfo") + private final CertificateInfo certificateInfo; + + public CertificateInfo getCertificateInfo() { + return certificateInfo; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateVanityDomainDetails("); + sb.append("super=").append(super.toString()); + sb.append("certificateInfo=").append(String.valueOf(this.certificateInfo)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVanityDomainDetails)) { + return false; + } + + UpdateVanityDomainDetails other = (UpdateVanityDomainDetails) o; + return java.util.Objects.equals(this.certificateInfo, other.certificateInfo) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.certificateInfo == null ? 43 : this.certificateInfo.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpgradeAction.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpgradeAction.java index cacff84bffb..9c46781a29c 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpgradeAction.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UpgradeAction.java @@ -52,13 +52,13 @@ public Builder description(String description) { return this; } /** - * name of the repo + * Name of the repo. **/ @com.fasterxml.jackson.annotation.JsonProperty("version") private String version; /** - * name of the repo + * Name of the repo. * @param version the value to set * @return this builder **/ @@ -68,13 +68,13 @@ public Builder version(String version) { return this; } /** - * month qualifier + * Month qualifier. **/ @com.fasterxml.jackson.annotation.JsonProperty("qualifier") private String qualifier; /** - * month qualifier + * Month qualifier. * @param qualifier the value to set * @return this builder **/ @@ -146,13 +146,13 @@ public UpgradeAction( } /** - * name of the repo + * Name of the repo. **/ @com.fasterxml.jackson.annotation.JsonProperty("version") private final String version; /** - * name of the repo + * Name of the repo. * @return the value **/ public String getVersion() { @@ -160,13 +160,13 @@ public String getVersion() { } /** - * month qualifier + * Month qualifier. **/ @com.fasterxml.jackson.annotation.JsonProperty("qualifier") private final String qualifier; /** - * month qualifier + * Month qualifier. * @return the value **/ public String getQualifier() { diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UploadEmailSubdomainCertificateDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UploadEmailSubdomainCertificateDetails.java new file mode 100644 index 00000000000..59b08d69443 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UploadEmailSubdomainCertificateDetails.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Add certificate for email subdomain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UploadEmailSubdomainCertificateDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UploadEmailSubdomainCertificateDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"commonName", "certificatePem", "certificateChainPem"}) + public UploadEmailSubdomainCertificateDetails( + String commonName, String certificatePem, String certificateChainPem) { + super(); + this.commonName = commonName; + this.certificatePem = certificatePem; + this.certificateChainPem = certificateChainPem; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private String commonName; + + /** + * fully qualified host name + * @param commonName the value to set + * @return this builder + **/ + public Builder commonName(String commonName) { + this.commonName = commonName; + this.__explicitlySet__.add("commonName"); + return this; + } + /** + * Certificate PEM + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificatePem") + private String certificatePem; + + /** + * Certificate PEM + * @param certificatePem the value to set + * @return this builder + **/ + public Builder certificatePem(String certificatePem) { + this.certificatePem = certificatePem; + this.__explicitlySet__.add("certificatePem"); + return this; + } + /** + * Certificate chain PEM, including intermediate and root + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateChainPem") + private String certificateChainPem; + + /** + * Certificate chain PEM, including intermediate and root + * @param certificateChainPem the value to set + * @return this builder + **/ + public Builder certificateChainPem(String certificateChainPem) { + this.certificateChainPem = certificateChainPem; + this.__explicitlySet__.add("certificateChainPem"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UploadEmailSubdomainCertificateDetails build() { + UploadEmailSubdomainCertificateDetails model = + new UploadEmailSubdomainCertificateDetails( + this.commonName, this.certificatePem, this.certificateChainPem); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UploadEmailSubdomainCertificateDetails model) { + if (model.wasPropertyExplicitlySet("commonName")) { + this.commonName(model.getCommonName()); + } + if (model.wasPropertyExplicitlySet("certificatePem")) { + this.certificatePem(model.getCertificatePem()); + } + if (model.wasPropertyExplicitlySet("certificateChainPem")) { + this.certificateChainPem(model.getCertificateChainPem()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private final String commonName; + + /** + * fully qualified host name + * @return the value + **/ + public String getCommonName() { + return commonName; + } + + /** + * Certificate PEM + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificatePem") + private final String certificatePem; + + /** + * Certificate PEM + * @return the value + **/ + public String getCertificatePem() { + return certificatePem; + } + + /** + * Certificate chain PEM, including intermediate and root + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateChainPem") + private final String certificateChainPem; + + /** + * Certificate chain PEM, including intermediate and root + * @return the value + **/ + public String getCertificateChainPem() { + return certificateChainPem; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UploadEmailSubdomainCertificateDetails("); + sb.append("super=").append(super.toString()); + sb.append("commonName=").append(String.valueOf(this.commonName)); + sb.append(", certificatePem=").append(String.valueOf(this.certificatePem)); + sb.append(", certificateChainPem=").append(String.valueOf(this.certificateChainPem)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UploadEmailSubdomainCertificateDetails)) { + return false; + } + + UploadEmailSubdomainCertificateDetails other = (UploadEmailSubdomainCertificateDetails) o; + return java.util.Objects.equals(this.commonName, other.commonName) + && java.util.Objects.equals(this.certificatePem, other.certificatePem) + && java.util.Objects.equals(this.certificateChainPem, other.certificateChainPem) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.commonName == null ? 43 : this.commonName.hashCode()); + result = + (result * PRIME) + + (this.certificatePem == null ? 43 : this.certificatePem.hashCode()); + result = + (result * PRIME) + + (this.certificateChainPem == null + ? 43 + : this.certificateChainPem.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UploadVanityDomainCertificateDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UploadVanityDomainCertificateDetails.java new file mode 100644 index 00000000000..4b64cdb298e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/UploadVanityDomainCertificateDetails.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Add vanity domain with certificate + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = UploadVanityDomainCertificateDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UploadVanityDomainCertificateDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isAkamai", + "commonName", + "certificatePem", + "certificateChainPem" + }) + public UploadVanityDomainCertificateDetails( + Boolean isAkamai, + String commonName, + String certificatePem, + String certificateChainPem) { + super(); + this.isAkamai = isAkamai; + this.commonName = commonName; + this.certificatePem = certificatePem; + this.certificateChainPem = certificateChainPem; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Identify if this is certificate for pod LB or Akamai + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAkamai") + private Boolean isAkamai; + + /** + * Identify if this is certificate for pod LB or Akamai + * @param isAkamai the value to set + * @return this builder + **/ + public Builder isAkamai(Boolean isAkamai) { + this.isAkamai = isAkamai; + this.__explicitlySet__.add("isAkamai"); + return this; + } + /** + * Fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private String commonName; + + /** + * Fully qualified host name + * @param commonName the value to set + * @return this builder + **/ + public Builder commonName(String commonName) { + this.commonName = commonName; + this.__explicitlySet__.add("commonName"); + return this; + } + /** + * Public certificate PEM + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificatePem") + private String certificatePem; + + /** + * Public certificate PEM + * @param certificatePem the value to set + * @return this builder + **/ + public Builder certificatePem(String certificatePem) { + this.certificatePem = certificatePem; + this.__explicitlySet__.add("certificatePem"); + return this; + } + /** + * Certificate chain PEM, including intermediate and root + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateChainPem") + private String certificateChainPem; + + /** + * Certificate chain PEM, including intermediate and root + * @param certificateChainPem the value to set + * @return this builder + **/ + public Builder certificateChainPem(String certificateChainPem) { + this.certificateChainPem = certificateChainPem; + this.__explicitlySet__.add("certificateChainPem"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UploadVanityDomainCertificateDetails build() { + UploadVanityDomainCertificateDetails model = + new UploadVanityDomainCertificateDetails( + this.isAkamai, + this.commonName, + this.certificatePem, + this.certificateChainPem); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UploadVanityDomainCertificateDetails model) { + if (model.wasPropertyExplicitlySet("isAkamai")) { + this.isAkamai(model.getIsAkamai()); + } + if (model.wasPropertyExplicitlySet("commonName")) { + this.commonName(model.getCommonName()); + } + if (model.wasPropertyExplicitlySet("certificatePem")) { + this.certificatePem(model.getCertificatePem()); + } + if (model.wasPropertyExplicitlySet("certificateChainPem")) { + this.certificateChainPem(model.getCertificateChainPem()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Identify if this is certificate for pod LB or Akamai + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAkamai") + private final Boolean isAkamai; + + /** + * Identify if this is certificate for pod LB or Akamai + * @return the value + **/ + public Boolean getIsAkamai() { + return isAkamai; + } + + /** + * Fully qualified host name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonName") + private final String commonName; + + /** + * Fully qualified host name + * @return the value + **/ + public String getCommonName() { + return commonName; + } + + /** + * Public certificate PEM + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificatePem") + private final String certificatePem; + + /** + * Public certificate PEM + * @return the value + **/ + public String getCertificatePem() { + return certificatePem; + } + + /** + * Certificate chain PEM, including intermediate and root + **/ + @com.fasterxml.jackson.annotation.JsonProperty("certificateChainPem") + private final String certificateChainPem; + + /** + * Certificate chain PEM, including intermediate and root + * @return the value + **/ + public String getCertificateChainPem() { + return certificateChainPem; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UploadVanityDomainCertificateDetails("); + sb.append("super=").append(super.toString()); + sb.append("isAkamai=").append(String.valueOf(this.isAkamai)); + sb.append(", commonName=").append(String.valueOf(this.commonName)); + sb.append(", certificatePem=").append(String.valueOf(this.certificatePem)); + sb.append(", certificateChainPem=").append(String.valueOf(this.certificateChainPem)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UploadVanityDomainCertificateDetails)) { + return false; + } + + UploadVanityDomainCertificateDetails other = (UploadVanityDomainCertificateDetails) o; + return java.util.Objects.equals(this.isAkamai, other.isAkamai) + && java.util.Objects.equals(this.commonName, other.commonName) + && java.util.Objects.equals(this.certificatePem, other.certificatePem) + && java.util.Objects.equals(this.certificateChainPem, other.certificateChainPem) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isAkamai == null ? 43 : this.isAkamai.hashCode()); + result = (result * PRIME) + (this.commonName == null ? 43 : this.commonName.hashCode()); + result = + (result * PRIME) + + (this.certificatePem == null ? 43 : this.certificatePem.hashCode()); + result = + (result * PRIME) + + (this.certificateChainPem == null + ? 43 + : this.certificateChainPem.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDnsRecord.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDnsRecord.java new file mode 100644 index 00000000000..c32a7eaf9c9 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDnsRecord.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * DNS record for vanity domain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VanityDnsRecord.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VanityDnsRecord extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"domain", "rdata", "type", "ttlInSeconds"}) + public VanityDnsRecord(String domain, String rdata, String type, Integer ttlInSeconds) { + super(); + this.domain = domain; + this.rdata = rdata; + this.type = type; + this.ttlInSeconds = ttlInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * domain name for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private String domain; + + /** + * domain name for dns record + * @param domain the value to set + * @return this builder + **/ + public Builder domain(String domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } + /** + * dns server hostname is pointed to + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rdata") + private String rdata; + + /** + * dns server hostname is pointed to + * @param rdata the value to set + * @return this builder + **/ + public Builder rdata(String rdata) { + this.rdata = rdata; + this.__explicitlySet__.add("rdata"); + return this; + } + /** + * record data for record type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * record data for record type + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * time to live for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ttlInSeconds") + private Integer ttlInSeconds; + + /** + * time to live for dns record + * @param ttlInSeconds the value to set + * @return this builder + **/ + public Builder ttlInSeconds(Integer ttlInSeconds) { + this.ttlInSeconds = ttlInSeconds; + this.__explicitlySet__.add("ttlInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VanityDnsRecord build() { + VanityDnsRecord model = + new VanityDnsRecord(this.domain, this.rdata, this.type, this.ttlInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VanityDnsRecord model) { + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } + if (model.wasPropertyExplicitlySet("rdata")) { + this.rdata(model.getRdata()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("ttlInSeconds")) { + this.ttlInSeconds(model.getTtlInSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * domain name for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final String domain; + + /** + * domain name for dns record + * @return the value + **/ + public String getDomain() { + return domain; + } + + /** + * dns server hostname is pointed to + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rdata") + private final String rdata; + + /** + * dns server hostname is pointed to + * @return the value + **/ + public String getRdata() { + return rdata; + } + + /** + * record data for record type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * record data for record type + * @return the value + **/ + public String getType() { + return type; + } + + /** + * time to live for dns record + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ttlInSeconds") + private final Integer ttlInSeconds; + + /** + * time to live for dns record + * @return the value + **/ + public Integer getTtlInSeconds() { + return ttlInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VanityDnsRecord("); + sb.append("super=").append(super.toString()); + sb.append("domain=").append(String.valueOf(this.domain)); + sb.append(", rdata=").append(String.valueOf(this.rdata)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", ttlInSeconds=").append(String.valueOf(this.ttlInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VanityDnsRecord)) { + return false; + } + + VanityDnsRecord other = (VanityDnsRecord) o; + return java.util.Objects.equals(this.domain, other.domain) + && java.util.Objects.equals(this.rdata, other.rdata) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.ttlInSeconds, other.ttlInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); + result = (result * PRIME) + (this.rdata == null ? 43 : this.rdata.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.ttlInSeconds == null ? 43 : this.ttlInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomain.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomain.java new file mode 100644 index 00000000000..879d8479a7e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomain.java @@ -0,0 +1,1564 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Vanity Domain 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: 20211201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VanityDomain.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VanityDomain extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "vanityDomain", + "prefix", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "timeEnabled", + "originCertRequestType", + "cdnCertRequestType", + "dnsManagedBy", + "certificateInfo", + "changeManagementLink", + "scheduledActivityId", + "customerDnsRecords", + "isDnsStatusReady", + "isOriginCertStatusReady", + "originCertStatus", + "timeOriginCertExpired", + "isCdnCertStatusReady", + "cdnCertStatus", + "timeCdnCertExpired", + "systemTags", + "freeformTags", + "definedTags" + }) + public VanityDomain( + String id, + String vanityDomain, + String prefix, + String fusionEnvironmentId, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeEnabled, + OriginCertRequestType originCertRequestType, + CdnCertRequestType cdnCertRequestType, + DnsManagedBy dnsManagedBy, + CertificateInfo certificateInfo, + String changeManagementLink, + String scheduledActivityId, + java.util.List customerDnsRecords, + Boolean isDnsStatusReady, + Boolean isOriginCertStatusReady, + OriginCertStatus originCertStatus, + java.util.Date timeOriginCertExpired, + Boolean isCdnCertStatusReady, + CdnCertStatus cdnCertStatus, + java.util.Date timeCdnCertExpired, + java.util.Map> systemTags, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.vanityDomain = vanityDomain; + this.prefix = prefix; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeEnabled = timeEnabled; + this.originCertRequestType = originCertRequestType; + this.cdnCertRequestType = cdnCertRequestType; + this.dnsManagedBy = dnsManagedBy; + this.certificateInfo = certificateInfo; + this.changeManagementLink = changeManagementLink; + this.scheduledActivityId = scheduledActivityId; + this.customerDnsRecords = customerDnsRecords; + this.isDnsStatusReady = isDnsStatusReady; + this.isOriginCertStatusReady = isOriginCertStatusReady; + this.originCertStatus = originCertStatus; + this.timeOriginCertExpired = timeOriginCertExpired; + this.isCdnCertStatusReady = isCdnCertStatusReady; + this.cdnCertStatus = cdnCertStatus; + this.timeCdnCertExpired = timeCdnCertExpired; + this.systemTags = systemTags; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Vanity domain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomain") + private String vanityDomain; + + /** + * Vanity domain + * @param vanityDomain the value to set + * @return this builder + **/ + public Builder vanityDomain(String vanityDomain) { + this.vanityDomain = vanityDomain; + this.__explicitlySet__.add("vanityDomain"); + return this; + } + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + * @param prefix the value to set + * @return this builder + **/ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The OCID of the Fusion environment that the VanityDomain is created on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * The OCID of the Fusion environment that the VanityDomain is created on + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * The current lifecycleState of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycleState of the VanityDomain + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current lifecycleDetails of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * The current lifecycleDetails of the VanityDomain + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private java.util.Date timeEnabled; + + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + * @param timeEnabled the value to set + * @return this builder + **/ + public Builder timeEnabled(java.util.Date timeEnabled) { + this.timeEnabled = timeEnabled; + this.__explicitlySet__.add("timeEnabled"); + return this; + } + /** + * The origin request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCertRequestType") + private OriginCertRequestType originCertRequestType; + + /** + * The origin request type for which the certificate is generated + * @param originCertRequestType the value to set + * @return this builder + **/ + public Builder originCertRequestType(OriginCertRequestType originCertRequestType) { + this.originCertRequestType = originCertRequestType; + this.__explicitlySet__.add("originCertRequestType"); + return this; + } + /** + * The cdn request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cdnCertRequestType") + private CdnCertRequestType cdnCertRequestType; + + /** + * The cdn request type for which the certificate is generated + * @param cdnCertRequestType the value to set + * @return this builder + **/ + public Builder cdnCertRequestType(CdnCertRequestType cdnCertRequestType) { + this.cdnCertRequestType = cdnCertRequestType; + this.__explicitlySet__.add("cdnCertRequestType"); + return this; + } + /** + * The dns is managed by the customer or Oracle + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagedBy") + private DnsManagedBy dnsManagedBy; + + /** + * The dns is managed by the customer or Oracle + * @param dnsManagedBy the value to set + * @return this builder + **/ + public Builder dnsManagedBy(DnsManagedBy dnsManagedBy) { + this.dnsManagedBy = dnsManagedBy; + this.__explicitlySet__.add("dnsManagedBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateInfo") + private CertificateInfo certificateInfo; + + public Builder certificateInfo(CertificateInfo certificateInfo) { + this.certificateInfo = certificateInfo; + this.__explicitlySet__.add("certificateInfo"); + return this; + } + /** + * The cm link that was used to create the DNS prefix + **/ + @com.fasterxml.jackson.annotation.JsonProperty("changeManagementLink") + private String changeManagementLink; + + /** + * The cm link that was used to create the DNS prefix + * @param changeManagementLink the value to set + * @return this builder + **/ + public Builder changeManagementLink(String changeManagementLink) { + this.changeManagementLink = changeManagementLink; + this.__explicitlySet__.add("changeManagementLink"); + return this; + } + /** + * The ID of the VanityDomainActivity is scheduled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledActivityId") + private String scheduledActivityId; + + /** + * The ID of the VanityDomainActivity is scheduled + * @param scheduledActivityId the value to set + * @return this builder + **/ + public Builder scheduledActivityId(String scheduledActivityId) { + this.scheduledActivityId = scheduledActivityId; + this.__explicitlySet__.add("scheduledActivityId"); + return this; + } + /** + * List of dns records, comma separated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customerDnsRecords") + private java.util.List customerDnsRecords; + + /** + * List of dns records, comma separated + * @param customerDnsRecords the value to set + * @return this builder + **/ + public Builder customerDnsRecords(java.util.List customerDnsRecords) { + this.customerDnsRecords = customerDnsRecords; + this.__explicitlySet__.add("customerDnsRecords"); + return this; + } + /** + * Identify if this dns is inactive or active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDnsStatusReady") + private Boolean isDnsStatusReady; + + /** + * Identify if this dns is inactive or active + * @param isDnsStatusReady the value to set + * @return this builder + **/ + public Builder isDnsStatusReady(Boolean isDnsStatusReady) { + this.isDnsStatusReady = isDnsStatusReady; + this.__explicitlySet__.add("isDnsStatusReady"); + return this; + } + /** + * Identify if this origin cert is inactive or active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOriginCertStatusReady") + private Boolean isOriginCertStatusReady; + + /** + * Identify if this origin cert is inactive or active + * @param isOriginCertStatusReady the value to set + * @return this builder + **/ + public Builder isOriginCertStatusReady(Boolean isOriginCertStatusReady) { + this.isOriginCertStatusReady = isOriginCertStatusReady; + this.__explicitlySet__.add("isOriginCertStatusReady"); + return this; + } + /** + * The origin cert status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCertStatus") + private OriginCertStatus originCertStatus; + + /** + * The origin cert status + * @param originCertStatus the value to set + * @return this builder + **/ + public Builder originCertStatus(OriginCertStatus originCertStatus) { + this.originCertStatus = originCertStatus; + this.__explicitlySet__.add("originCertStatus"); + return this; + } + /** + * The origin cert expiry date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOriginCertExpired") + private java.util.Date timeOriginCertExpired; + + /** + * The origin cert expiry date + * @param timeOriginCertExpired the value to set + * @return this builder + **/ + public Builder timeOriginCertExpired(java.util.Date timeOriginCertExpired) { + this.timeOriginCertExpired = timeOriginCertExpired; + this.__explicitlySet__.add("timeOriginCertExpired"); + return this; + } + /** + * Identify if this cdn cert is inactive or active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCdnCertStatusReady") + private Boolean isCdnCertStatusReady; + + /** + * Identify if this cdn cert is inactive or active + * @param isCdnCertStatusReady the value to set + * @return this builder + **/ + public Builder isCdnCertStatusReady(Boolean isCdnCertStatusReady) { + this.isCdnCertStatusReady = isCdnCertStatusReady; + this.__explicitlySet__.add("isCdnCertStatusReady"); + return this; + } + /** + * The cdn cert status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cdnCertStatus") + private CdnCertStatus cdnCertStatus; + + /** + * The cdn cert status + * @param cdnCertStatus the value to set + * @return this builder + **/ + public Builder cdnCertStatus(CdnCertStatus cdnCertStatus) { + this.cdnCertStatus = cdnCertStatus; + this.__explicitlySet__.add("cdnCertStatus"); + return this; + } + /** + * The cdn cert expiry date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCdnCertExpired") + private java.util.Date timeCdnCertExpired; + + /** + * The cdn cert expiry date + * @param timeCdnCertExpired the value to set + * @return this builder + **/ + public Builder timeCdnCertExpired(java.util.Date timeCdnCertExpired) { + this.timeCdnCertExpired = timeCdnCertExpired; + this.__explicitlySet__.add("timeCdnCertExpired"); + return this; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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; + } + /** + * 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 VanityDomain build() { + VanityDomain model = + new VanityDomain( + this.id, + this.vanityDomain, + this.prefix, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.timeEnabled, + this.originCertRequestType, + this.cdnCertRequestType, + this.dnsManagedBy, + this.certificateInfo, + this.changeManagementLink, + this.scheduledActivityId, + this.customerDnsRecords, + this.isDnsStatusReady, + this.isOriginCertStatusReady, + this.originCertStatus, + this.timeOriginCertExpired, + this.isCdnCertStatusReady, + this.cdnCertStatus, + this.timeCdnCertExpired, + this.systemTags, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VanityDomain model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("vanityDomain")) { + this.vanityDomain(model.getVanityDomain()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + 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("timeEnabled")) { + this.timeEnabled(model.getTimeEnabled()); + } + if (model.wasPropertyExplicitlySet("originCertRequestType")) { + this.originCertRequestType(model.getOriginCertRequestType()); + } + if (model.wasPropertyExplicitlySet("cdnCertRequestType")) { + this.cdnCertRequestType(model.getCdnCertRequestType()); + } + if (model.wasPropertyExplicitlySet("dnsManagedBy")) { + this.dnsManagedBy(model.getDnsManagedBy()); + } + if (model.wasPropertyExplicitlySet("certificateInfo")) { + this.certificateInfo(model.getCertificateInfo()); + } + if (model.wasPropertyExplicitlySet("changeManagementLink")) { + this.changeManagementLink(model.getChangeManagementLink()); + } + if (model.wasPropertyExplicitlySet("scheduledActivityId")) { + this.scheduledActivityId(model.getScheduledActivityId()); + } + if (model.wasPropertyExplicitlySet("customerDnsRecords")) { + this.customerDnsRecords(model.getCustomerDnsRecords()); + } + if (model.wasPropertyExplicitlySet("isDnsStatusReady")) { + this.isDnsStatusReady(model.getIsDnsStatusReady()); + } + if (model.wasPropertyExplicitlySet("isOriginCertStatusReady")) { + this.isOriginCertStatusReady(model.getIsOriginCertStatusReady()); + } + if (model.wasPropertyExplicitlySet("originCertStatus")) { + this.originCertStatus(model.getOriginCertStatus()); + } + if (model.wasPropertyExplicitlySet("timeOriginCertExpired")) { + this.timeOriginCertExpired(model.getTimeOriginCertExpired()); + } + if (model.wasPropertyExplicitlySet("isCdnCertStatusReady")) { + this.isCdnCertStatusReady(model.getIsCdnCertStatusReady()); + } + if (model.wasPropertyExplicitlySet("cdnCertStatus")) { + this.cdnCertStatus(model.getCdnCertStatus()); + } + if (model.wasPropertyExplicitlySet("timeCdnCertExpired")) { + this.timeCdnCertExpired(model.getTimeCdnCertExpired()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Vanity domain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomain") + private final String vanityDomain; + + /** + * Vanity domain + * @return the value + **/ + public String getVanityDomain() { + return vanityDomain; + } + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + * @return the value + **/ + public String getPrefix() { + return prefix; + } + + /** + * The OCID of the Fusion environment that the VanityDomain is created on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * The OCID of the Fusion environment that the VanityDomain is created on + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * The current lifecycleState of the VanityDomain + **/ + public enum LifecycleState { + Inactive("INACTIVE"), + Active("ACTIVE"), + Updating("UPDATING"), + NeedsAttention("NEEDS_ATTENTION"), + 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 lifecycleState of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycleState of the VanityDomain + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current lifecycleDetails of the VanityDomain + **/ + public enum LifecycleDetails { + None("NONE"), + DomainValidationInProgress("DOMAIN_VALIDATION_IN_PROGRESS"), + DomainValidationCompleted("DOMAIN_VALIDATION_COMPLETED"), + DomainValidationFailed("DOMAIN_VALIDATION_FAILED"), + CertConfigInProgress("CERT_CONFIG_IN_PROGRESS"), + CertConfigCompleted("CERT_CONFIG_COMPLETED"), + CertConfigFailed("CERT_CONFIG_FAILED"), + EnableScheduled("ENABLE_SCHEDULED"), + Enabling("ENABLING"), + Enabled("ENABLED"), + EnableFailed("ENABLE_FAILED"), + EnableCancelled("ENABLE_CANCELLED"), + DeleteFailed("DELETE_FAILED"), + Unknown("UNKNOWN"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** + * The current lifecycleDetails of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * The current lifecycleDetails of the VanityDomain + * @return the value + **/ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private final java.util.Date timeEnabled; + + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeEnabled() { + return timeEnabled; + } + + /** + * The origin request type for which the certificate is generated + **/ + public enum OriginCertRequestType { + RequestCsr("REQUEST_CSR"), + RequestDv("REQUEST_DV"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OriginCertRequestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OriginCertRequestType v : OriginCertRequestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OriginCertRequestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OriginCertRequestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OriginCertRequestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The origin request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCertRequestType") + private final OriginCertRequestType originCertRequestType; + + /** + * The origin request type for which the certificate is generated + * @return the value + **/ + public OriginCertRequestType getOriginCertRequestType() { + return originCertRequestType; + } + + /** + * The cdn request type for which the certificate is generated + **/ + public enum CdnCertRequestType { + RequestCsr("REQUEST_CSR"), + RequestDv("REQUEST_DV"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CdnCertRequestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CdnCertRequestType v : CdnCertRequestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CdnCertRequestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CdnCertRequestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CdnCertRequestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The cdn request type for which the certificate is generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cdnCertRequestType") + private final CdnCertRequestType cdnCertRequestType; + + /** + * The cdn request type for which the certificate is generated + * @return the value + **/ + public CdnCertRequestType getCdnCertRequestType() { + return cdnCertRequestType; + } + + /** + * The dns is managed by the customer or Oracle + **/ + public enum DnsManagedBy { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DnsManagedBy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DnsManagedBy v : DnsManagedBy.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DnsManagedBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DnsManagedBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DnsManagedBy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The dns is managed by the customer or Oracle + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsManagedBy") + private final DnsManagedBy dnsManagedBy; + + /** + * The dns is managed by the customer or Oracle + * @return the value + **/ + public DnsManagedBy getDnsManagedBy() { + return dnsManagedBy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("certificateInfo") + private final CertificateInfo certificateInfo; + + public CertificateInfo getCertificateInfo() { + return certificateInfo; + } + + /** + * The cm link that was used to create the DNS prefix + **/ + @com.fasterxml.jackson.annotation.JsonProperty("changeManagementLink") + private final String changeManagementLink; + + /** + * The cm link that was used to create the DNS prefix + * @return the value + **/ + public String getChangeManagementLink() { + return changeManagementLink; + } + + /** + * The ID of the VanityDomainActivity is scheduled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledActivityId") + private final String scheduledActivityId; + + /** + * The ID of the VanityDomainActivity is scheduled + * @return the value + **/ + public String getScheduledActivityId() { + return scheduledActivityId; + } + + /** + * List of dns records, comma separated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customerDnsRecords") + private final java.util.List customerDnsRecords; + + /** + * List of dns records, comma separated + * @return the value + **/ + public java.util.List getCustomerDnsRecords() { + return customerDnsRecords; + } + + /** + * Identify if this dns is inactive or active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDnsStatusReady") + private final Boolean isDnsStatusReady; + + /** + * Identify if this dns is inactive or active + * @return the value + **/ + public Boolean getIsDnsStatusReady() { + return isDnsStatusReady; + } + + /** + * Identify if this origin cert is inactive or active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOriginCertStatusReady") + private final Boolean isOriginCertStatusReady; + + /** + * Identify if this origin cert is inactive or active + * @return the value + **/ + public Boolean getIsOriginCertStatusReady() { + return isOriginCertStatusReady; + } + + /** + * The origin cert status + **/ + public enum OriginCertStatus { + Active("ACTIVE"), + Inactive("INACTIVE"), + Expiring("EXPIRING"), + 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(OriginCertStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OriginCertStatus v : OriginCertStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OriginCertStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OriginCertStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OriginCertStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The origin cert status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originCertStatus") + private final OriginCertStatus originCertStatus; + + /** + * The origin cert status + * @return the value + **/ + public OriginCertStatus getOriginCertStatus() { + return originCertStatus; + } + + /** + * The origin cert expiry date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOriginCertExpired") + private final java.util.Date timeOriginCertExpired; + + /** + * The origin cert expiry date + * @return the value + **/ + public java.util.Date getTimeOriginCertExpired() { + return timeOriginCertExpired; + } + + /** + * Identify if this cdn cert is inactive or active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCdnCertStatusReady") + private final Boolean isCdnCertStatusReady; + + /** + * Identify if this cdn cert is inactive or active + * @return the value + **/ + public Boolean getIsCdnCertStatusReady() { + return isCdnCertStatusReady; + } + + /** + * The cdn cert status + **/ + public enum CdnCertStatus { + Active("ACTIVE"), + Inactive("INACTIVE"), + Expiring("EXPIRING"), + 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(CdnCertStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CdnCertStatus v : CdnCertStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CdnCertStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CdnCertStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CdnCertStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The cdn cert status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cdnCertStatus") + private final CdnCertStatus cdnCertStatus; + + /** + * The cdn cert status + * @return the value + **/ + public CdnCertStatus getCdnCertStatus() { + return cdnCertStatus; + } + + /** + * The cdn cert expiry date + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCdnCertExpired") + private final java.util.Date timeCdnCertExpired; + + /** + * The cdn cert expiry date + * @return the value + **/ + public java.util.Date getTimeCdnCertExpired() { + return timeCdnCertExpired; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VanityDomain("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", vanityDomain=").append(String.valueOf(this.vanityDomain)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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(", timeEnabled=").append(String.valueOf(this.timeEnabled)); + sb.append(", originCertRequestType=").append(String.valueOf(this.originCertRequestType)); + sb.append(", cdnCertRequestType=").append(String.valueOf(this.cdnCertRequestType)); + sb.append(", dnsManagedBy=").append(String.valueOf(this.dnsManagedBy)); + sb.append(", certificateInfo=").append(String.valueOf(this.certificateInfo)); + sb.append(", changeManagementLink=").append(String.valueOf(this.changeManagementLink)); + sb.append(", scheduledActivityId=").append(String.valueOf(this.scheduledActivityId)); + sb.append(", customerDnsRecords=").append(String.valueOf(this.customerDnsRecords)); + sb.append(", isDnsStatusReady=").append(String.valueOf(this.isDnsStatusReady)); + sb.append(", isOriginCertStatusReady=") + .append(String.valueOf(this.isOriginCertStatusReady)); + sb.append(", originCertStatus=").append(String.valueOf(this.originCertStatus)); + sb.append(", timeOriginCertExpired=").append(String.valueOf(this.timeOriginCertExpired)); + sb.append(", isCdnCertStatusReady=").append(String.valueOf(this.isCdnCertStatusReady)); + sb.append(", cdnCertStatus=").append(String.valueOf(this.cdnCertStatus)); + sb.append(", timeCdnCertExpired=").append(String.valueOf(this.timeCdnCertExpired)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + 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 VanityDomain)) { + return false; + } + + VanityDomain other = (VanityDomain) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.vanityDomain, other.vanityDomain) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.timeEnabled, other.timeEnabled) + && java.util.Objects.equals(this.originCertRequestType, other.originCertRequestType) + && java.util.Objects.equals(this.cdnCertRequestType, other.cdnCertRequestType) + && java.util.Objects.equals(this.dnsManagedBy, other.dnsManagedBy) + && java.util.Objects.equals(this.certificateInfo, other.certificateInfo) + && java.util.Objects.equals(this.changeManagementLink, other.changeManagementLink) + && java.util.Objects.equals(this.scheduledActivityId, other.scheduledActivityId) + && java.util.Objects.equals(this.customerDnsRecords, other.customerDnsRecords) + && java.util.Objects.equals(this.isDnsStatusReady, other.isDnsStatusReady) + && java.util.Objects.equals( + this.isOriginCertStatusReady, other.isOriginCertStatusReady) + && java.util.Objects.equals(this.originCertStatus, other.originCertStatus) + && java.util.Objects.equals(this.timeOriginCertExpired, other.timeOriginCertExpired) + && java.util.Objects.equals(this.isCdnCertStatusReady, other.isCdnCertStatusReady) + && java.util.Objects.equals(this.cdnCertStatus, other.cdnCertStatus) + && java.util.Objects.equals(this.timeCdnCertExpired, other.timeCdnCertExpired) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.vanityDomain == null ? 43 : this.vanityDomain.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.timeEnabled == null ? 43 : this.timeEnabled.hashCode()); + result = + (result * PRIME) + + (this.originCertRequestType == null + ? 43 + : this.originCertRequestType.hashCode()); + result = + (result * PRIME) + + (this.cdnCertRequestType == null + ? 43 + : this.cdnCertRequestType.hashCode()); + result = (result * PRIME) + (this.dnsManagedBy == null ? 43 : this.dnsManagedBy.hashCode()); + result = + (result * PRIME) + + (this.certificateInfo == null ? 43 : this.certificateInfo.hashCode()); + result = + (result * PRIME) + + (this.changeManagementLink == null + ? 43 + : this.changeManagementLink.hashCode()); + result = + (result * PRIME) + + (this.scheduledActivityId == null + ? 43 + : this.scheduledActivityId.hashCode()); + result = + (result * PRIME) + + (this.customerDnsRecords == null + ? 43 + : this.customerDnsRecords.hashCode()); + result = + (result * PRIME) + + (this.isDnsStatusReady == null ? 43 : this.isDnsStatusReady.hashCode()); + result = + (result * PRIME) + + (this.isOriginCertStatusReady == null + ? 43 + : this.isOriginCertStatusReady.hashCode()); + result = + (result * PRIME) + + (this.originCertStatus == null ? 43 : this.originCertStatus.hashCode()); + result = + (result * PRIME) + + (this.timeOriginCertExpired == null + ? 43 + : this.timeOriginCertExpired.hashCode()); + result = + (result * PRIME) + + (this.isCdnCertStatusReady == null + ? 43 + : this.isCdnCertStatusReady.hashCode()); + result = + (result * PRIME) + + (this.cdnCertStatus == null ? 43 : this.cdnCertStatus.hashCode()); + result = + (result * PRIME) + + (this.timeCdnCertExpired == null + ? 43 + : this.timeCdnCertExpired.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainActivity.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainActivity.java new file mode 100644 index 00000000000..3ebc616208d --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainActivity.java @@ -0,0 +1,703 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Vanity Domain Activity 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: 20211201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VanityDomainActivity.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VanityDomainActivity extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "vanityDomainId", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "timeEnabled", + "timeDeactivated", + "timeScheduled", + "operationType" + }) + public VanityDomainActivity( + String id, + String vanityDomainId, + String fusionEnvironmentId, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeEnabled, + java.util.Date timeDeactivated, + java.util.Date timeScheduled, + OperationType operationType) { + super(); + this.id = id; + this.vanityDomainId = vanityDomainId; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeEnabled = timeEnabled; + this.timeDeactivated = timeDeactivated; + this.timeScheduled = timeScheduled; + this.operationType = operationType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of the VanityDomainActivity. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of the VanityDomainActivity. Can't be changed after creation + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Vanity domain ID + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomainId") + private String vanityDomainId; + + /** + * Vanity domain ID + * @param vanityDomainId the value to set + * @return this builder + **/ + public Builder vanityDomainId(String vanityDomainId) { + this.vanityDomainId = vanityDomainId; + this.__explicitlySet__.add("vanityDomainId"); + return this; + } + /** + * The OCID of the Fusion environment that the VanityDomainActivity is created on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * The OCID of the Fusion environment that the VanityDomainActivity is created on + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * The current lifecycleState of the VanityDomainActivity + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycleState of the VanityDomainActivity + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current lifecycleDetails of the VanityDomainActivity + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * The current lifecycleDetails of the VanityDomainActivity + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time the VanityDomainactivity was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the VanityDomainactivity was created. An RFC3339 formatted datetime string + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the VanityDomainactivity was updated. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the VanityDomainactivity was updated. An RFC3339 formatted datetime string + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the VanityDomainactivity is scheduled to enable. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private java.util.Date timeEnabled; + + /** + * The time the VanityDomainactivity is scheduled to enable. An RFC3339 formatted datetime string + * @param timeEnabled the value to set + * @return this builder + **/ + public Builder timeEnabled(java.util.Date timeEnabled) { + this.timeEnabled = timeEnabled; + this.__explicitlySet__.add("timeEnabled"); + return this; + } + /** + * The time the VanityDomainactivity is scheduled to deactivate. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeactivated") + private java.util.Date timeDeactivated; + + /** + * The time the VanityDomainactivity is scheduled to deactivate. An RFC3339 formatted datetime string + * @param timeDeactivated the value to set + * @return this builder + **/ + public Builder timeDeactivated(java.util.Date timeDeactivated) { + this.timeDeactivated = timeDeactivated; + this.__explicitlySet__.add("timeDeactivated"); + return this; + } + /** + * Activity start time + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * Activity start time + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * The type of operation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The type of operation + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VanityDomainActivity build() { + VanityDomainActivity model = + new VanityDomainActivity( + this.id, + this.vanityDomainId, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.timeEnabled, + this.timeDeactivated, + this.timeScheduled, + this.operationType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VanityDomainActivity model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("vanityDomainId")) { + this.vanityDomainId(model.getVanityDomainId()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + 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("timeEnabled")) { + this.timeEnabled(model.getTimeEnabled()); + } + if (model.wasPropertyExplicitlySet("timeDeactivated")) { + this.timeDeactivated(model.getTimeDeactivated()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique identifier (OCID) of the VanityDomainActivity. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of the VanityDomainActivity. Can't be changed after creation + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Vanity domain ID + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomainId") + private final String vanityDomainId; + + /** + * Vanity domain ID + * @return the value + **/ + public String getVanityDomainId() { + return vanityDomainId; + } + + /** + * The OCID of the Fusion environment that the VanityDomainActivity is created on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * The OCID of the Fusion environment that the VanityDomainActivity is created on + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * The current lifecycleState of the VanityDomainActivity + **/ + public enum LifecycleState { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceled("CANCELED"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current lifecycleState of the VanityDomainActivity + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycleState of the VanityDomainActivity + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current lifecycleDetails of the VanityDomainActivity + **/ + public enum LifecycleDetails { + None("NONE"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** + * The current lifecycleDetails of the VanityDomainActivity + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * The current lifecycleDetails of the VanityDomainActivity + * @return the value + **/ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the VanityDomainactivity was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the VanityDomainactivity was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the VanityDomainactivity was updated. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the VanityDomainactivity was updated. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the VanityDomainactivity is scheduled to enable. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private final java.util.Date timeEnabled; + + /** + * The time the VanityDomainactivity is scheduled to enable. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeEnabled() { + return timeEnabled; + } + + /** + * The time the VanityDomainactivity is scheduled to deactivate. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeactivated") + private final java.util.Date timeDeactivated; + + /** + * The time the VanityDomainactivity is scheduled to deactivate. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeDeactivated() { + return timeDeactivated; + } + + /** + * Activity start time + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * Activity start time + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * The type of operation + **/ + public enum OperationType { + EnableVanityDomain("ENABLE_VANITY_DOMAIN"), + DeleteVanityDomain("DELETE_VANITY_DOMAIN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of operation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The type of operation + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VanityDomainActivity("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", vanityDomainId=").append(String.valueOf(this.vanityDomainId)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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(", timeEnabled=").append(String.valueOf(this.timeEnabled)); + sb.append(", timeDeactivated=").append(String.valueOf(this.timeDeactivated)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", operationType=").append(String.valueOf(this.operationType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VanityDomainActivity)) { + return false; + } + + VanityDomainActivity other = (VanityDomainActivity) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.vanityDomainId, other.vanityDomainId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.timeEnabled, other.timeEnabled) + && java.util.Objects.equals(this.timeDeactivated, other.timeDeactivated) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.operationType, other.operationType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.vanityDomainId == null ? 43 : this.vanityDomainId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.timeEnabled == null ? 43 : this.timeEnabled.hashCode()); + result = + (result * PRIME) + + (this.timeDeactivated == null ? 43 : this.timeDeactivated.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainCollection.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainCollection.java new file mode 100644 index 00000000000..e6d44ee38ae --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Results of a VanityDomain search + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VanityDomainCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VanityDomainCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VanityDomainCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of VanityDomainSummary objects + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of VanityDomainSummary 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 VanityDomainCollection build() { + VanityDomainCollection model = new VanityDomainCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VanityDomainCollection 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 VanityDomainSummary objects + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of VanityDomainSummary 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("VanityDomainCollection("); + 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 VanityDomainCollection)) { + return false; + } + + VanityDomainCollection other = (VanityDomainCollection) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainSummary.java new file mode 100644 index 00000000000..65e2c213563 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VanityDomainSummary.java @@ -0,0 +1,661 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Summary of the VanityDomain + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = VanityDomainSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VanityDomainSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "vanityDomain", + "prefix", + "fusionEnvironmentId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "timeEnabled", + "scheduledActivityId", + "systemTags", + "freeformTags", + "definedTags" + }) + public VanityDomainSummary( + String id, + String vanityDomain, + String prefix, + String fusionEnvironmentId, + VanityDomain.LifecycleState lifecycleState, + VanityDomain.LifecycleDetails lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeEnabled, + String scheduledActivityId, + java.util.Map> systemTags, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.vanityDomain = vanityDomain; + this.prefix = prefix; + this.fusionEnvironmentId = fusionEnvironmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeEnabled = timeEnabled; + this.scheduledActivityId = scheduledActivityId; + this.systemTags = systemTags; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Vanity domain. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomain") + private String vanityDomain; + + /** + * Vanity domain. Can't be changed after creation + * @param vanityDomain the value to set + * @return this builder + **/ + public Builder vanityDomain(String vanityDomain) { + this.vanityDomain = vanityDomain; + this.__explicitlySet__.add("vanityDomain"); + return this; + } + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + * @param prefix the value to set + * @return this builder + **/ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The OCID of the Fusion environment that the VanityDomain is created on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private String fusionEnvironmentId; + + /** + * The OCID of the Fusion environment that the VanityDomain is created on + * @param fusionEnvironmentId the value to set + * @return this builder + **/ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + this.__explicitlySet__.add("fusionEnvironmentId"); + return this; + } + /** + * The current lifecycleState of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VanityDomain.LifecycleState lifecycleState; + + /** + * The current lifecycleState of the VanityDomain + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(VanityDomain.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current lifecycleDetails of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private VanityDomain.LifecycleDetails lifecycleDetails; + + /** + * The current lifecycleDetails of the VanityDomain + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(VanityDomain.LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private java.util.Date timeEnabled; + + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + * @param timeEnabled the value to set + * @return this builder + **/ + public Builder timeEnabled(java.util.Date timeEnabled) { + this.timeEnabled = timeEnabled; + this.__explicitlySet__.add("timeEnabled"); + return this; + } + /** + * The ID of the VanityDomainActivity is scheduled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledActivityId") + private String scheduledActivityId; + + /** + * The ID of the VanityDomainActivity is scheduled + * @param scheduledActivityId the value to set + * @return this builder + **/ + public Builder scheduledActivityId(String scheduledActivityId) { + this.scheduledActivityId = scheduledActivityId; + this.__explicitlySet__.add("scheduledActivityId"); + return this; + } + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: 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; + } + /** + * 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 VanityDomainSummary build() { + VanityDomainSummary model = + new VanityDomainSummary( + this.id, + this.vanityDomain, + this.prefix, + this.fusionEnvironmentId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.timeEnabled, + this.scheduledActivityId, + this.systemTags, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VanityDomainSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("vanityDomain")) { + this.vanityDomain(model.getVanityDomain()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("fusionEnvironmentId")) { + this.fusionEnvironmentId(model.getFusionEnvironmentId()); + } + 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("timeEnabled")) { + this.timeEnabled(model.getTimeEnabled()); + } + if (model.wasPropertyExplicitlySet("scheduledActivityId")) { + this.scheduledActivityId(model.getScheduledActivityId()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier (OCID) of the VanityDomain. Can't be changed after creation + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Vanity domain. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vanityDomain") + private final String vanityDomain; + + /** + * Vanity domain. Can't be changed after creation + * @return the value + **/ + public String getVanityDomain() { + return vanityDomain; + } + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The prefix value of the DnsPrefix. Can't be changed after creation + * @return the value + **/ + public String getPrefix() { + return prefix; + } + + /** + * The OCID of the Fusion environment that the VanityDomain is created on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fusionEnvironmentId") + private final String fusionEnvironmentId; + + /** + * The OCID of the Fusion environment that the VanityDomain is created on + * @return the value + **/ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + + /** + * The current lifecycleState of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VanityDomain.LifecycleState lifecycleState; + + /** + * The current lifecycleState of the VanityDomain + * @return the value + **/ + public VanityDomain.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current lifecycleDetails of the VanityDomain + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final VanityDomain.LifecycleDetails lifecycleDetails; + + /** + * The current lifecycleDetails of the VanityDomain + * @return the value + **/ + public VanityDomain.LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the VanityDomain was created. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the VanityDomain was updated. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private final java.util.Date timeEnabled; + + /** + * The time the VanityDomain is scheduled to enable. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeEnabled() { + return timeEnabled; + } + + /** + * The ID of the VanityDomainActivity is scheduled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledActivityId") + private final String scheduledActivityId; + + /** + * The ID of the VanityDomainActivity is scheduled + * @return the value + **/ + public String getScheduledActivityId() { + return scheduledActivityId; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VanityDomainSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", vanityDomain=").append(String.valueOf(this.vanityDomain)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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(", timeEnabled=").append(String.valueOf(this.timeEnabled)); + sb.append(", scheduledActivityId=").append(String.valueOf(this.scheduledActivityId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + 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 VanityDomainSummary)) { + return false; + } + + VanityDomainSummary other = (VanityDomainSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.vanityDomain, other.vanityDomain) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.timeEnabled, other.timeEnabled) + && java.util.Objects.equals(this.scheduledActivityId, other.scheduledActivityId) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.vanityDomain == null ? 43 : this.vanityDomain.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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.timeEnabled == null ? 43 : this.timeEnabled.hashCode()); + result = + (result * PRIME) + + (this.scheduledActivityId == null + ? 43 + : this.scheduledActivityId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VertexAction.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VertexAction.java index a1ae9da259a..3636784d83b 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VertexAction.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/VertexAction.java @@ -5,7 +5,7 @@ package com.oracle.bmc.fusionapps.model; /** - * Vertex update action + * Vertex update action. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -52,13 +52,13 @@ public Builder description(String description) { return this; } /** - * patch that delivered the vertex update prerequisite + * Patch that delivered the Vertex update prerequisite. **/ @com.fasterxml.jackson.annotation.JsonProperty("artifact") private String artifact; /** - * patch that delivered the vertex update prerequisite + * Patch that delivered the Vertex update prerequisite. * @param artifact the value to set * @return this builder **/ @@ -117,13 +117,13 @@ public VertexAction(String referenceKey, State state, String description, String } /** - * patch that delivered the vertex update prerequisite + * Patch that delivered the Vertex update prerequisite. **/ @com.fasterxml.jackson.annotation.JsonProperty("artifact") private final String artifact; /** - * patch that delivered the vertex update prerequisite + * Patch that delivered the Vertex update prerequisite. * @return the value **/ public String getArtifact() { 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 b98e13150f9..7571ce5bd37 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,12 +307,16 @@ public enum OperationType { RefreshFusionEnvironment("REFRESH_FUSION_ENVIRONMENT"), ExecuteColdPatch("EXECUTE_COLD_PATCH"), DataMaskFusionEnvironment("DATA_MASK_FUSION_ENVIRONMENT"), + EnableVanityDomain("ENABLE_VANITY_DOMAIN"), + DeleteVanityDomain("DELETE_VANITY_DOMAIN"), InitiateExtract("INITIATE_EXTRACT"), SubscriptionSuspend("SUBSCRIPTION_SUSPEND"), SubscriptionExpire("SUBSCRIPTION_EXPIRE"), SubscriptionUpdate("SUBSCRIPTION_UPDATE"), SubscriptionResume("SUBSCRIPTION_RESUME"), SubscriptionTerminate("SUBSCRIPTION_TERMINATE"), + ConfigureEmailSubdomain("CONFIGURE_EMAIL_SUBDOMAIN"), + ConfigureMicrosite("CONFIGURE_MICROSITE"), /** * 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/CreateEmailSubdomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateEmailSubdomainRequest.java new file mode 100644 index 00000000000..ed05a5d2198 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateEmailSubdomainRequest.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use CreateEmailSubdomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateEmailSubdomainRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * Details for the new email subdomain + */ + private com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails createEmailSubdomainDetails; + + /** + * Details for the new email subdomain + */ + public com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails + getCreateEmailSubdomainDetails() { + return createEmailSubdomainDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails getBody$() { + return createEmailSubdomainDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateEmailSubdomainRequest, + com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * Details for the new email subdomain + */ + private com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails + createEmailSubdomainDetails = null; + + /** + * Details for the new email subdomain + * @param createEmailSubdomainDetails the value to set + * @return this builder instance + */ + public Builder createEmailSubdomainDetails( + com.oracle.bmc.fusionapps.model.CreateEmailSubdomainDetails + createEmailSubdomainDetails) { + this.createEmailSubdomainDetails = createEmailSubdomainDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateEmailSubdomainRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + createEmailSubdomainDetails(o.getCreateEmailSubdomainDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateEmailSubdomainRequest 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 CreateEmailSubdomainRequest + */ + public CreateEmailSubdomainRequest build() { + CreateEmailSubdomainRequest 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.fusionapps.model.CreateEmailSubdomainDetails body) { + createEmailSubdomainDetails(body); + return this; + } + + /** + * Build the instance of CreateEmailSubdomainRequest 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 CreateEmailSubdomainRequest + */ + public CreateEmailSubdomainRequest buildWithoutInvocationCallback() { + CreateEmailSubdomainRequest request = new CreateEmailSubdomainRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.createEmailSubdomainDetails = createEmailSubdomainDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateEmailSubdomainRequest(fusionEnvironmentId, marketingBrandId, createEmailSubdomainDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .createEmailSubdomainDetails(createEmailSubdomainDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",createEmailSubdomainDetails=") + .append(String.valueOf(this.createEmailSubdomainDetails)); + 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 CreateEmailSubdomainRequest)) { + return false; + } + + CreateEmailSubdomainRequest other = (CreateEmailSubdomainRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals( + this.createEmailSubdomainDetails, other.createEmailSubdomainDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.createEmailSubdomainDetails == null + ? 43 + : this.createEmailSubdomainDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateMarketingBrandRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateMarketingBrandRequest.java new file mode 100644 index 00000000000..949da01b6dd --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateMarketingBrandRequest.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateMarketingBrandRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateMarketingBrandRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * Details for the new MarketingBrand + */ + private com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails createMarketingBrandDetails; + + /** + * Details for the new MarketingBrand + */ + public com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails + getCreateMarketingBrandDetails() { + return createMarketingBrandDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails getBody$() { + return createMarketingBrandDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateMarketingBrandRequest, + com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails> { + 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; + } + + /** + * Details for the new MarketingBrand + */ + private com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails + createMarketingBrandDetails = null; + + /** + * Details for the new MarketingBrand + * @param createMarketingBrandDetails the value to set + * @return this builder instance + */ + public Builder createMarketingBrandDetails( + com.oracle.bmc.fusionapps.model.CreateMarketingBrandDetails + createMarketingBrandDetails) { + this.createMarketingBrandDetails = createMarketingBrandDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateMarketingBrandRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + createMarketingBrandDetails(o.getCreateMarketingBrandDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateMarketingBrandRequest 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 CreateMarketingBrandRequest + */ + public CreateMarketingBrandRequest build() { + CreateMarketingBrandRequest 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.fusionapps.model.CreateMarketingBrandDetails body) { + createMarketingBrandDetails(body); + return this; + } + + /** + * Build the instance of CreateMarketingBrandRequest 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 CreateMarketingBrandRequest + */ + public CreateMarketingBrandRequest buildWithoutInvocationCallback() { + CreateMarketingBrandRequest request = new CreateMarketingBrandRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.createMarketingBrandDetails = createMarketingBrandDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateMarketingBrandRequest(fusionEnvironmentId, createMarketingBrandDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .createMarketingBrandDetails(createMarketingBrandDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",createMarketingBrandDetails=") + .append(String.valueOf(this.createMarketingBrandDetails)); + 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 CreateMarketingBrandRequest)) { + return false; + } + + CreateMarketingBrandRequest other = (CreateMarketingBrandRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals( + this.createMarketingBrandDetails, other.createMarketingBrandDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.createMarketingBrandDetails == null + ? 43 + : this.createMarketingBrandDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateMicrositeRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateMicrositeRequest.java new file mode 100644 index 00000000000..a6a4d9c1de4 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateMicrositeRequest.java @@ -0,0 +1,350 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateMicrositeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateMicrositeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.CreateMicrositeDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * Details for the new microsite + */ + private com.oracle.bmc.fusionapps.model.CreateMicrositeDetails createMicrositeDetails; + + /** + * Details for the new microsite + */ + public com.oracle.bmc.fusionapps.model.CreateMicrositeDetails getCreateMicrositeDetails() { + return createMicrositeDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.CreateMicrositeDetails getBody$() { + return createMicrositeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateMicrositeRequest, + com.oracle.bmc.fusionapps.model.CreateMicrositeDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * Details for the new microsite + */ + private com.oracle.bmc.fusionapps.model.CreateMicrositeDetails createMicrositeDetails = + null; + + /** + * Details for the new microsite + * @param createMicrositeDetails the value to set + * @return this builder instance + */ + public Builder createMicrositeDetails( + com.oracle.bmc.fusionapps.model.CreateMicrositeDetails createMicrositeDetails) { + this.createMicrositeDetails = createMicrositeDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateMicrositeRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + createMicrositeDetails(o.getCreateMicrositeDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateMicrositeRequest 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 CreateMicrositeRequest + */ + public CreateMicrositeRequest build() { + CreateMicrositeRequest 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.fusionapps.model.CreateMicrositeDetails body) { + createMicrositeDetails(body); + return this; + } + + /** + * Build the instance of CreateMicrositeRequest 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 CreateMicrositeRequest + */ + public CreateMicrositeRequest buildWithoutInvocationCallback() { + CreateMicrositeRequest request = new CreateMicrositeRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.createMicrositeDetails = createMicrositeDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateMicrositeRequest(fusionEnvironmentId, marketingBrandId, createMicrositeDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .createMicrositeDetails(createMicrositeDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",createMicrositeDetails=").append(String.valueOf(this.createMicrositeDetails)); + 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 CreateMicrositeRequest)) { + return false; + } + + CreateMicrositeRequest other = (CreateMicrositeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals( + this.createMicrositeDetails, other.createMicrositeDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.createMicrositeDetails == null + ? 43 + : this.createMicrositeDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateVanityDomainActivityRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateVanityDomainActivityRequest.java new file mode 100644 index 00000000000..70a194fa7d6 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateVanityDomainActivityRequest.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use CreateVanityDomainActivityRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateVanityDomainActivityRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails> { + + /** + * The Certificate Details of Vanity Domain Activity + */ + private com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails + createVanityDomainActivityDetails; + + /** + * The Certificate Details of Vanity Domain Activity + */ + public com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails + getCreateVanityDomainActivityDetails() { + return createVanityDomainActivityDetails; + } + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails getBody$() { + return createVanityDomainActivityDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVanityDomainActivityRequest, + com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Certificate Details of Vanity Domain Activity + */ + private com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails + createVanityDomainActivityDetails = null; + + /** + * The Certificate Details of Vanity Domain Activity + * @param createVanityDomainActivityDetails the value to set + * @return this builder instance + */ + public Builder createVanityDomainActivityDetails( + com.oracle.bmc.fusionapps.model.CreateVanityDomainActivityDetails + createVanityDomainActivityDetails) { + this.createVanityDomainActivityDetails = createVanityDomainActivityDetails; + return this; + } + + /** + * 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; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVanityDomainActivityRequest o) { + createVanityDomainActivityDetails(o.getCreateVanityDomainActivityDetails()); + fusionEnvironmentId(o.getFusionEnvironmentId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVanityDomainActivityRequest 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 CreateVanityDomainActivityRequest + */ + public CreateVanityDomainActivityRequest build() { + CreateVanityDomainActivityRequest 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.fusionapps.model.CreateVanityDomainActivityDetails body) { + createVanityDomainActivityDetails(body); + return this; + } + + /** + * Build the instance of CreateVanityDomainActivityRequest 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 CreateVanityDomainActivityRequest + */ + public CreateVanityDomainActivityRequest buildWithoutInvocationCallback() { + CreateVanityDomainActivityRequest request = new CreateVanityDomainActivityRequest(); + request.createVanityDomainActivityDetails = createVanityDomainActivityDetails; + request.fusionEnvironmentId = fusionEnvironmentId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVanityDomainActivityRequest(createVanityDomainActivityDetails, fusionEnvironmentId, 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() + .createVanityDomainActivityDetails(createVanityDomainActivityDetails) + .fusionEnvironmentId(fusionEnvironmentId) + .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(",createVanityDomainActivityDetails=") + .append(String.valueOf(this.createVanityDomainActivityDetails)); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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 CreateVanityDomainActivityRequest)) { + return false; + } + + CreateVanityDomainActivityRequest other = (CreateVanityDomainActivityRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVanityDomainActivityDetails, + other.createVanityDomainActivityDetails) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.createVanityDomainActivityDetails == null + ? 43 + : this.createVanityDomainActivityDetails.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateVanityDomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateVanityDomainRequest.java new file mode 100644 index 00000000000..cd58507d3bc --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/CreateVanityDomainRequest.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateVanityDomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateVanityDomainRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails> { + + /** + * The VanityDomain to be created. + */ + private com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails createVanityDomainDetails; + + /** + * The VanityDomain to be created. + */ + public com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails + getCreateVanityDomainDetails() { + return createVanityDomainDetails; + } + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails getBody$() { + return createVanityDomainDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVanityDomainRequest, + com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The VanityDomain to be created. + */ + private com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails + createVanityDomainDetails = null; + + /** + * The VanityDomain to be created. + * @param createVanityDomainDetails the value to set + * @return this builder instance + */ + public Builder createVanityDomainDetails( + com.oracle.bmc.fusionapps.model.CreateVanityDomainDetails + createVanityDomainDetails) { + this.createVanityDomainDetails = createVanityDomainDetails; + return this; + } + + /** + * 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; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVanityDomainRequest o) { + createVanityDomainDetails(o.getCreateVanityDomainDetails()); + fusionEnvironmentId(o.getFusionEnvironmentId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVanityDomainRequest 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 CreateVanityDomainRequest + */ + public CreateVanityDomainRequest build() { + CreateVanityDomainRequest 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.fusionapps.model.CreateVanityDomainDetails body) { + createVanityDomainDetails(body); + return this; + } + + /** + * Build the instance of CreateVanityDomainRequest 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 CreateVanityDomainRequest + */ + public CreateVanityDomainRequest buildWithoutInvocationCallback() { + CreateVanityDomainRequest request = new CreateVanityDomainRequest(); + request.createVanityDomainDetails = createVanityDomainDetails; + request.fusionEnvironmentId = fusionEnvironmentId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVanityDomainRequest(createVanityDomainDetails, fusionEnvironmentId, 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() + .createVanityDomainDetails(createVanityDomainDetails) + .fusionEnvironmentId(fusionEnvironmentId) + .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(",createVanityDomainDetails=") + .append(String.valueOf(this.createVanityDomainDetails)); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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 CreateVanityDomainRequest)) { + return false; + } + + CreateVanityDomainRequest other = (CreateVanityDomainRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVanityDomainDetails, other.createVanityDomainDetails) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.createVanityDomainDetails == null + ? 43 + : this.createVanityDomainDetails.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteEmailSubdomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteEmailSubdomainRequest.java new file mode 100644 index 00000000000..27202214be8 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteEmailSubdomainRequest.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use DeleteEmailSubdomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteEmailSubdomainRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteEmailSubdomainRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteEmailSubdomainRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteEmailSubdomainRequest 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 DeleteEmailSubdomainRequest + */ + public DeleteEmailSubdomainRequest build() { + DeleteEmailSubdomainRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteEmailSubdomainRequest 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 DeleteEmailSubdomainRequest + */ + public DeleteEmailSubdomainRequest buildWithoutInvocationCallback() { + DeleteEmailSubdomainRequest request = new DeleteEmailSubdomainRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteEmailSubdomainRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + 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 DeleteEmailSubdomainRequest)) { + return false; + } + + DeleteEmailSubdomainRequest other = (DeleteEmailSubdomainRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteMarketingBrandRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteMarketingBrandRequest.java new file mode 100644 index 00000000000..d32c9f70686 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteMarketingBrandRequest.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeleteMarketingBrandRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteMarketingBrandRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteMarketingBrandRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteMarketingBrandRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteMarketingBrandRequest 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 DeleteMarketingBrandRequest + */ + public DeleteMarketingBrandRequest build() { + DeleteMarketingBrandRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteMarketingBrandRequest 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 DeleteMarketingBrandRequest + */ + public DeleteMarketingBrandRequest buildWithoutInvocationCallback() { + DeleteMarketingBrandRequest request = new DeleteMarketingBrandRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteMarketingBrandRequest(fusionEnvironmentId, marketingBrandId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + 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 DeleteMarketingBrandRequest)) { + return false; + } + + DeleteMarketingBrandRequest other = (DeleteMarketingBrandRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteMicrositeRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteMicrositeRequest.java new file mode 100644 index 00000000000..ec7888a417e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteMicrositeRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeleteMicrositeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteMicrositeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique microsite identifier + */ + private String micrositeId; + + /** + * unique microsite identifier + */ + public String getMicrositeId() { + return micrositeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteMicrositeRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique microsite identifier + */ + private String micrositeId = null; + + /** + * unique microsite identifier + * @param micrositeId the value to set + * @return this builder instance + */ + public Builder micrositeId(String micrositeId) { + this.micrositeId = micrositeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteMicrositeRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + micrositeId(o.getMicrositeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteMicrositeRequest 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 DeleteMicrositeRequest + */ + public DeleteMicrositeRequest build() { + DeleteMicrositeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteMicrositeRequest 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 DeleteMicrositeRequest + */ + public DeleteMicrositeRequest buildWithoutInvocationCallback() { + DeleteMicrositeRequest request = new DeleteMicrositeRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.micrositeId = micrositeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteMicrositeRequest(fusionEnvironmentId, marketingBrandId, micrositeId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .micrositeId(micrositeId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",micrositeId=").append(String.valueOf(this.micrositeId)); + 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 DeleteMicrositeRequest)) { + return false; + } + + DeleteMicrositeRequest other = (DeleteMicrositeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.micrositeId, other.micrositeId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.micrositeId == null ? 43 : this.micrositeId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteVanityDomainActivityRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteVanityDomainActivityRequest.java new file mode 100644 index 00000000000..2a4a830af1f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/DeleteVanityDomainActivityRequest.java @@ -0,0 +1,289 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use DeleteVanityDomainActivityRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteVanityDomainActivityRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The unique identifier (OCID) of the VanityDomainActivity + */ + private String vanityDomainActivityId; + + /** + * The unique identifier (OCID) of the VanityDomainActivity + */ + public String getVanityDomainActivityId() { + return vanityDomainActivityId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteVanityDomainActivityRequest, 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 unique identifier (OCID) of the VanityDomainActivity + */ + private String vanityDomainActivityId = null; + + /** + * The unique identifier (OCID) of the VanityDomainActivity + * @param vanityDomainActivityId the value to set + * @return this builder instance + */ + public Builder vanityDomainActivityId(String vanityDomainActivityId) { + this.vanityDomainActivityId = vanityDomainActivityId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteVanityDomainActivityRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + vanityDomainActivityId(o.getVanityDomainActivityId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteVanityDomainActivityRequest 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 DeleteVanityDomainActivityRequest + */ + public DeleteVanityDomainActivityRequest build() { + DeleteVanityDomainActivityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteVanityDomainActivityRequest 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 DeleteVanityDomainActivityRequest + */ + public DeleteVanityDomainActivityRequest buildWithoutInvocationCallback() { + DeleteVanityDomainActivityRequest request = new DeleteVanityDomainActivityRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.vanityDomainActivityId = vanityDomainActivityId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteVanityDomainActivityRequest(fusionEnvironmentId, vanityDomainActivityId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .vanityDomainActivityId(vanityDomainActivityId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",vanityDomainActivityId=").append(String.valueOf(this.vanityDomainActivityId)); + 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 DeleteVanityDomainActivityRequest)) { + return false; + } + + DeleteVanityDomainActivityRequest other = (DeleteVanityDomainActivityRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals( + this.vanityDomainActivityId, other.vanityDomainActivityId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.vanityDomainActivityId == null + ? 43 + : this.vanityDomainActivityId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainCsrRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainCsrRequest.java new file mode 100644 index 00000000000..1137e88a50e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainCsrRequest.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use GetEmailSubdomainCsrRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetEmailSubdomainCsrRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * 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< + GetEmailSubdomainCsrRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + 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(GetEmailSubdomainCsrRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetEmailSubdomainCsrRequest 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 GetEmailSubdomainCsrRequest + */ + public GetEmailSubdomainCsrRequest build() { + GetEmailSubdomainCsrRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetEmailSubdomainCsrRequest 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 GetEmailSubdomainCsrRequest + */ + public GetEmailSubdomainCsrRequest buildWithoutInvocationCallback() { + GetEmailSubdomainCsrRequest request = new GetEmailSubdomainCsrRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.opcRequestId = opcRequestId; + return request; + // new GetEmailSubdomainCsrRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, 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) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .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(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + 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 GetEmailSubdomainCsrRequest)) { + return false; + } + + GetEmailSubdomainCsrRequest other = (GetEmailSubdomainCsrRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && 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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.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/requests/GetEmailSubdomainDnsConfigRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainDnsConfigRequest.java new file mode 100644 index 00000000000..0a925bdf1d7 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainDnsConfigRequest.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use GetEmailSubdomainDnsConfigRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetEmailSubdomainDnsConfigRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * 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< + GetEmailSubdomainDnsConfigRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + 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(GetEmailSubdomainDnsConfigRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetEmailSubdomainDnsConfigRequest 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 GetEmailSubdomainDnsConfigRequest + */ + public GetEmailSubdomainDnsConfigRequest build() { + GetEmailSubdomainDnsConfigRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetEmailSubdomainDnsConfigRequest 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 GetEmailSubdomainDnsConfigRequest + */ + public GetEmailSubdomainDnsConfigRequest buildWithoutInvocationCallback() { + GetEmailSubdomainDnsConfigRequest request = new GetEmailSubdomainDnsConfigRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.opcRequestId = opcRequestId; + return request; + // new GetEmailSubdomainDnsConfigRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, 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) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .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(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + 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 GetEmailSubdomainDnsConfigRequest)) { + return false; + } + + GetEmailSubdomainDnsConfigRequest other = (GetEmailSubdomainDnsConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && 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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.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/requests/GetEmailSubdomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainRequest.java new file mode 100644 index 00000000000..b40b5b97d40 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetEmailSubdomainRequest.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use GetEmailSubdomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetEmailSubdomainRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * 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< + GetEmailSubdomainRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + 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(GetEmailSubdomainRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetEmailSubdomainRequest 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 GetEmailSubdomainRequest + */ + public GetEmailSubdomainRequest build() { + GetEmailSubdomainRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetEmailSubdomainRequest 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 GetEmailSubdomainRequest + */ + public GetEmailSubdomainRequest buildWithoutInvocationCallback() { + GetEmailSubdomainRequest request = new GetEmailSubdomainRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.opcRequestId = opcRequestId; + return request; + // new GetEmailSubdomainRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, 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) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .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(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + 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 GetEmailSubdomainRequest)) { + return false; + } + + GetEmailSubdomainRequest other = (GetEmailSubdomainRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && 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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.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/requests/GetMarketingBrandRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetMarketingBrandRequest.java new file mode 100644 index 00000000000..c551f9e4def --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetMarketingBrandRequest.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use GetMarketingBrandRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetMarketingBrandRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * 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< + GetMarketingBrandRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + 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(GetMarketingBrandRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMarketingBrandRequest 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 GetMarketingBrandRequest + */ + public GetMarketingBrandRequest build() { + GetMarketingBrandRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMarketingBrandRequest 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 GetMarketingBrandRequest + */ + public GetMarketingBrandRequest buildWithoutInvocationCallback() { + GetMarketingBrandRequest request = new GetMarketingBrandRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.opcRequestId = opcRequestId; + return request; + // new GetMarketingBrandRequest(fusionEnvironmentId, marketingBrandId, 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) + .marketingBrandId(marketingBrandId) + .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(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + 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 GetMarketingBrandRequest)) { + return false; + } + + GetMarketingBrandRequest other = (GetMarketingBrandRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && 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.marketingBrandId == null ? 43 : this.marketingBrandId.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/requests/GetMicrositeDnsConfigRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetMicrositeDnsConfigRequest.java new file mode 100644 index 00000000000..18c6b1439b5 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetMicrositeDnsConfigRequest.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetMicrositeDnsConfigRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetMicrositeDnsConfigRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique microsite identifier + */ + private String micrositeId; + + /** + * unique microsite identifier + */ + public String getMicrositeId() { + return micrositeId; + } + /** + * 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< + GetMicrositeDnsConfigRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique microsite identifier + */ + private String micrositeId = null; + + /** + * unique microsite identifier + * @param micrositeId the value to set + * @return this builder instance + */ + public Builder micrositeId(String micrositeId) { + this.micrositeId = micrositeId; + 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(GetMicrositeDnsConfigRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + micrositeId(o.getMicrositeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMicrositeDnsConfigRequest 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 GetMicrositeDnsConfigRequest + */ + public GetMicrositeDnsConfigRequest build() { + GetMicrositeDnsConfigRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMicrositeDnsConfigRequest 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 GetMicrositeDnsConfigRequest + */ + public GetMicrositeDnsConfigRequest buildWithoutInvocationCallback() { + GetMicrositeDnsConfigRequest request = new GetMicrositeDnsConfigRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.micrositeId = micrositeId; + request.opcRequestId = opcRequestId; + return request; + // new GetMicrositeDnsConfigRequest(fusionEnvironmentId, marketingBrandId, micrositeId, 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) + .marketingBrandId(marketingBrandId) + .micrositeId(micrositeId) + .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(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",micrositeId=").append(String.valueOf(this.micrositeId)); + 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 GetMicrositeDnsConfigRequest)) { + return false; + } + + GetMicrositeDnsConfigRequest other = (GetMicrositeDnsConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.micrositeId, other.micrositeId) + && 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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.micrositeId == null ? 43 : this.micrositeId.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/requests/GetMicrositeRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetMicrositeRequest.java new file mode 100644 index 00000000000..c8f50e5a116 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetMicrositeRequest.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetMicrositeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetMicrositeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique microsite identifier + */ + private String micrositeId; + + /** + * unique microsite identifier + */ + public String getMicrositeId() { + return micrositeId; + } + /** + * 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< + GetMicrositeRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique microsite identifier + */ + private String micrositeId = null; + + /** + * unique microsite identifier + * @param micrositeId the value to set + * @return this builder instance + */ + public Builder micrositeId(String micrositeId) { + this.micrositeId = micrositeId; + 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(GetMicrositeRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + micrositeId(o.getMicrositeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMicrositeRequest 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 GetMicrositeRequest + */ + public GetMicrositeRequest build() { + GetMicrositeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMicrositeRequest 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 GetMicrositeRequest + */ + public GetMicrositeRequest buildWithoutInvocationCallback() { + GetMicrositeRequest request = new GetMicrositeRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.micrositeId = micrositeId; + request.opcRequestId = opcRequestId; + return request; + // new GetMicrositeRequest(fusionEnvironmentId, marketingBrandId, micrositeId, 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) + .marketingBrandId(marketingBrandId) + .micrositeId(micrositeId) + .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(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",micrositeId=").append(String.valueOf(this.micrositeId)); + 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 GetMicrositeRequest)) { + return false; + } + + GetMicrositeRequest other = (GetMicrositeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.micrositeId, other.micrositeId) + && 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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.micrositeId == null ? 43 : this.micrositeId.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/requests/GetVanityDomainActivityRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetVanityDomainActivityRequest.java new file mode 100644 index 00000000000..f338a08666c --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetVanityDomainActivityRequest.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use GetVanityDomainActivityRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetVanityDomainActivityRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The unique identifier (OCID) of the VanityDomainActivity + */ + private String vanityDomainActivityId; + + /** + * The unique identifier (OCID) of the VanityDomainActivity + */ + public String getVanityDomainActivityId() { + return vanityDomainActivityId; + } + /** + * 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< + GetVanityDomainActivityRequest, 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 unique identifier (OCID) of the VanityDomainActivity + */ + private String vanityDomainActivityId = null; + + /** + * The unique identifier (OCID) of the VanityDomainActivity + * @param vanityDomainActivityId the value to set + * @return this builder instance + */ + public Builder vanityDomainActivityId(String vanityDomainActivityId) { + this.vanityDomainActivityId = vanityDomainActivityId; + 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(GetVanityDomainActivityRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + vanityDomainActivityId(o.getVanityDomainActivityId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVanityDomainActivityRequest 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 GetVanityDomainActivityRequest + */ + public GetVanityDomainActivityRequest build() { + GetVanityDomainActivityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVanityDomainActivityRequest 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 GetVanityDomainActivityRequest + */ + public GetVanityDomainActivityRequest buildWithoutInvocationCallback() { + GetVanityDomainActivityRequest request = new GetVanityDomainActivityRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.vanityDomainActivityId = vanityDomainActivityId; + request.opcRequestId = opcRequestId; + return request; + // new GetVanityDomainActivityRequest(fusionEnvironmentId, vanityDomainActivityId, 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) + .vanityDomainActivityId(vanityDomainActivityId) + .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(",vanityDomainActivityId=").append(String.valueOf(this.vanityDomainActivityId)); + 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 GetVanityDomainActivityRequest)) { + return false; + } + + GetVanityDomainActivityRequest other = (GetVanityDomainActivityRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals( + this.vanityDomainActivityId, other.vanityDomainActivityId) + && 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.vanityDomainActivityId == null + ? 43 + : this.vanityDomainActivityId.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/requests/GetVanityDomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetVanityDomainRequest.java new file mode 100644 index 00000000000..e796456fc59 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GetVanityDomainRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetVanityDomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetVanityDomainRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId; + + /** + * The unique identifier (OCID) of the VanityDomain + */ + public String getVanityDomainId() { + return vanityDomainId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A parameter indicating whether to download the Origin Csr or not + */ + private Boolean doesDownloadOriginCsr; + + /** + * A parameter indicating whether to download the Origin Csr or not + */ + public Boolean getDoesDownloadOriginCsr() { + return doesDownloadOriginCsr; + } + /** + * A parameter indicating whether to download the Akamai Csr or not + */ + private Boolean doesDownloadAkamaiCsr; + + /** + * A parameter indicating whether to download the Akamai Csr or not + */ + public Boolean getDoesDownloadAkamaiCsr() { + return doesDownloadAkamaiCsr; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetVanityDomainRequest, 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 unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId = null; + + /** + * The unique identifier (OCID) of the VanityDomain + * @param vanityDomainId the value to set + * @return this builder instance + */ + public Builder vanityDomainId(String vanityDomainId) { + this.vanityDomainId = vanityDomainId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A parameter indicating whether to download the Origin Csr or not + */ + private Boolean doesDownloadOriginCsr = null; + + /** + * A parameter indicating whether to download the Origin Csr or not + * @param doesDownloadOriginCsr the value to set + * @return this builder instance + */ + public Builder doesDownloadOriginCsr(Boolean doesDownloadOriginCsr) { + this.doesDownloadOriginCsr = doesDownloadOriginCsr; + return this; + } + + /** + * A parameter indicating whether to download the Akamai Csr or not + */ + private Boolean doesDownloadAkamaiCsr = null; + + /** + * A parameter indicating whether to download the Akamai Csr or not + * @param doesDownloadAkamaiCsr the value to set + * @return this builder instance + */ + public Builder doesDownloadAkamaiCsr(Boolean doesDownloadAkamaiCsr) { + this.doesDownloadAkamaiCsr = doesDownloadAkamaiCsr; + return this; + } + + /** + * Set the invocation callback for the request 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(GetVanityDomainRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + vanityDomainId(o.getVanityDomainId()); + opcRequestId(o.getOpcRequestId()); + doesDownloadOriginCsr(o.getDoesDownloadOriginCsr()); + doesDownloadAkamaiCsr(o.getDoesDownloadAkamaiCsr()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVanityDomainRequest 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 GetVanityDomainRequest + */ + public GetVanityDomainRequest build() { + GetVanityDomainRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVanityDomainRequest 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 GetVanityDomainRequest + */ + public GetVanityDomainRequest buildWithoutInvocationCallback() { + GetVanityDomainRequest request = new GetVanityDomainRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.vanityDomainId = vanityDomainId; + request.opcRequestId = opcRequestId; + request.doesDownloadOriginCsr = doesDownloadOriginCsr; + request.doesDownloadAkamaiCsr = doesDownloadAkamaiCsr; + return request; + // new GetVanityDomainRequest(fusionEnvironmentId, vanityDomainId, opcRequestId, doesDownloadOriginCsr, doesDownloadAkamaiCsr); + } + } + + /** + * Return an instance of {@link Builder} that 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) + .vanityDomainId(vanityDomainId) + .opcRequestId(opcRequestId) + .doesDownloadOriginCsr(doesDownloadOriginCsr) + .doesDownloadAkamaiCsr(doesDownloadAkamaiCsr); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return 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(",vanityDomainId=").append(String.valueOf(this.vanityDomainId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",doesDownloadOriginCsr=").append(String.valueOf(this.doesDownloadOriginCsr)); + sb.append(",doesDownloadAkamaiCsr=").append(String.valueOf(this.doesDownloadAkamaiCsr)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVanityDomainRequest)) { + return false; + } + + GetVanityDomainRequest other = (GetVanityDomainRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.vanityDomainId, other.vanityDomainId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.doesDownloadOriginCsr, other.doesDownloadOriginCsr) + && java.util.Objects.equals( + this.doesDownloadAkamaiCsr, other.doesDownloadAkamaiCsr); + } + + @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.vanityDomainId == null ? 43 : this.vanityDomainId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.doesDownloadOriginCsr == null + ? 43 + : this.doesDownloadOriginCsr.hashCode()); + result = + (result * PRIME) + + (this.doesDownloadAkamaiCsr == null + ? 43 + : this.doesDownloadAkamaiCsr.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListEmailSubdomainsRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListEmailSubdomainsRequest.java new file mode 100644 index 00000000000..37d2d97b924 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListEmailSubdomainsRequest.java @@ -0,0 +1,540 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListEmailSubdomainsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListEmailSubdomainsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * A filter to return only resources that match the entire name given. + */ + private String name; + + /** + * A filter to return only resources that match the entire name given. + */ + public String getName() { + return name; + } + /** + * A filter that returns all resources that match the specified status + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain.LifecycleState lifecycleState; + + /** + * A filter that returns all resources that match the specified status + */ + public com.oracle.bmc.fusionapps.model.EmailSubdomain.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("TIME_CREATED"), + Name("NAME"), + Id("ID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The 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< + ListEmailSubdomainsRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * A filter to return only resources that match the entire name given. + */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter that returns all resources that match the specified status + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain.LifecycleState lifecycleState = null; + + /** + * A filter that returns all resources that match the specified status + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fusionapps.model.EmailSubdomain.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The 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(ListEmailSubdomainsRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListEmailSubdomainsRequest 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 ListEmailSubdomainsRequest + */ + public ListEmailSubdomainsRequest build() { + ListEmailSubdomainsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListEmailSubdomainsRequest 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 ListEmailSubdomainsRequest + */ + public ListEmailSubdomainsRequest buildWithoutInvocationCallback() { + ListEmailSubdomainsRequest request = new ListEmailSubdomainsRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.name = name; + request.lifecycleState = lifecycleState; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListEmailSubdomainsRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, name, lifecycleState, sortOrder, sortBy, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .name(name) + .lifecycleState(lifecycleState) + .sortOrder(sortOrder) + .sortBy(sortBy) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListEmailSubdomainsRequest)) { + return false; + } + + ListEmailSubdomainsRequest other = (ListEmailSubdomainsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.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.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListMarketingBrandsRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListMarketingBrandsRequest.java new file mode 100644 index 00000000000..2ff51142610 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListMarketingBrandsRequest.java @@ -0,0 +1,506 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListMarketingBrandsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListMarketingBrandsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * A filter to return only resources that match the entire name given. + */ + private String name; + + /** + * A filter to return only resources that match the entire name given. + */ + public String getName() { + return name; + } + /** + * A filter that returns all resources that match the specified status + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand.LifecycleState lifecycleState; + + /** + * A filter that returns all resources that match the specified status + */ + public com.oracle.bmc.fusionapps.model.MarketingBrand.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("TIME_CREATED"), + Name("NAME"), + Id("ID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMarketingBrandsRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * A filter to return only resources that match the entire name given. + */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter that returns all resources that match the specified status + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand.LifecycleState lifecycleState = null; + + /** + * A filter that returns all resources that match the specified status + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fusionapps.model.MarketingBrand.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The 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(ListMarketingBrandsRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMarketingBrandsRequest 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 ListMarketingBrandsRequest + */ + public ListMarketingBrandsRequest build() { + ListMarketingBrandsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMarketingBrandsRequest 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 ListMarketingBrandsRequest + */ + public ListMarketingBrandsRequest buildWithoutInvocationCallback() { + ListMarketingBrandsRequest request = new ListMarketingBrandsRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.name = name; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListMarketingBrandsRequest(fusionEnvironmentId, marketingBrandId, name, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .name(name) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMarketingBrandsRequest)) { + return false; + } + + ListMarketingBrandsRequest other = (ListMarketingBrandsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListMicrositesRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListMicrositesRequest.java new file mode 100644 index 00000000000..08fa2b94f06 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListMicrositesRequest.java @@ -0,0 +1,538 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use ListMicrositesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListMicrositesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique microsite identifier + */ + private String micrositeId; + + /** + * unique microsite identifier + */ + public String getMicrositeId() { + return micrositeId; + } + /** + * A filter to return only resources that match the entire name given. + */ + private String name; + + /** + * A filter to return only resources that match the entire name given. + */ + public String getName() { + return name; + } + /** + * A filter that returns all resources that match the specified status + */ + private com.oracle.bmc.fusionapps.model.Microsite.LifecycleState lifecycleState; + + /** + * A filter that returns all resources that match the specified status + */ + public com.oracle.bmc.fusionapps.model.Microsite.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("TIME_CREATED"), + Name("NAME"), + Id("ID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The 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< + ListMicrositesRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique microsite identifier + */ + private String micrositeId = null; + + /** + * unique microsite identifier + * @param micrositeId the value to set + * @return this builder instance + */ + public Builder micrositeId(String micrositeId) { + this.micrositeId = micrositeId; + return this; + } + + /** + * A filter to return only resources that match the entire name given. + */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter that returns all resources that match the specified status + */ + private com.oracle.bmc.fusionapps.model.Microsite.LifecycleState lifecycleState = null; + + /** + * A filter that returns all resources that match the specified status + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fusionapps.model.Microsite.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The 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(ListMicrositesRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + micrositeId(o.getMicrositeId()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMicrositesRequest 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 ListMicrositesRequest + */ + public ListMicrositesRequest build() { + ListMicrositesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMicrositesRequest 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 ListMicrositesRequest + */ + public ListMicrositesRequest buildWithoutInvocationCallback() { + ListMicrositesRequest request = new ListMicrositesRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.micrositeId = micrositeId; + request.name = name; + request.lifecycleState = lifecycleState; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListMicrositesRequest(fusionEnvironmentId, marketingBrandId, micrositeId, name, lifecycleState, sortOrder, sortBy, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .micrositeId(micrositeId) + .name(name) + .lifecycleState(lifecycleState) + .sortOrder(sortOrder) + .sortBy(sortBy) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",micrositeId=").append(String.valueOf(this.micrositeId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListMicrositesRequest)) { + return false; + } + + ListMicrositesRequest other = (ListMicrositesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.micrositeId, other.micrositeId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.micrositeId == null ? 43 : this.micrositeId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.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.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListVanityDomainsRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListVanityDomainsRequest.java new file mode 100644 index 00000000000..b151fe5ad3a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ListVanityDomainsRequest.java @@ -0,0 +1,474 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use ListVanityDomainsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListVanityDomainsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The boolean filter to distinguish prefix or full vanity + */ + private Boolean isFullVanityDomain; + + /** + * The boolean filter to distinguish prefix or full vanity + */ + public Boolean getIsFullVanityDomain() { + return isFullVanityDomain; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("TIME_CREATED"), + DisplayName("DISPLAY_NAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVanityDomainsRequest, 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 ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The boolean filter to distinguish prefix or full vanity + */ + private Boolean isFullVanityDomain = null; + + /** + * The boolean filter to distinguish prefix or full vanity + * @param isFullVanityDomain the value to set + * @return this builder instance + */ + public Builder isFullVanityDomain(Boolean isFullVanityDomain) { + this.isFullVanityDomain = isFullVanityDomain; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The 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(ListVanityDomainsRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + compartmentId(o.getCompartmentId()); + isFullVanityDomain(o.getIsFullVanityDomain()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVanityDomainsRequest 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 ListVanityDomainsRequest + */ + public ListVanityDomainsRequest build() { + ListVanityDomainsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListVanityDomainsRequest 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 ListVanityDomainsRequest + */ + public ListVanityDomainsRequest buildWithoutInvocationCallback() { + ListVanityDomainsRequest request = new ListVanityDomainsRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.compartmentId = compartmentId; + request.isFullVanityDomain = isFullVanityDomain; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListVanityDomainsRequest(fusionEnvironmentId, compartmentId, isFullVanityDomain, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fusionEnvironmentId(fusionEnvironmentId) + .compartmentId(compartmentId) + .isFullVanityDomain(isFullVanityDomain) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",isFullVanityDomain=").append(String.valueOf(this.isFullVanityDomain)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVanityDomainsRequest)) { + return false; + } + + ListVanityDomainsRequest other = (ListVanityDomainsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.isFullVanityDomain, other.isFullVanityDomain) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.isFullVanityDomain == null + ? 43 + : this.isFullVanityDomain.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/RequestEmailSubdomainCsrRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/RequestEmailSubdomainCsrRequest.java new file mode 100644 index 00000000000..0cb7401a43d --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/RequestEmailSubdomainCsrRequest.java @@ -0,0 +1,386 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use RequestEmailSubdomainCsrRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class RequestEmailSubdomainCsrRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * Request CSR for email subdomain + */ + private com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails + requestEmailSubdomainCsrDetails; + + /** + * Request CSR for email subdomain + */ + public com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails + getRequestEmailSubdomainCsrDetails() { + return requestEmailSubdomainCsrDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails getBody$() { + return requestEmailSubdomainCsrDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RequestEmailSubdomainCsrRequest, + com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * Request CSR for email subdomain + */ + private com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails + requestEmailSubdomainCsrDetails = null; + + /** + * Request CSR for email subdomain + * @param requestEmailSubdomainCsrDetails the value to set + * @return this builder instance + */ + public Builder requestEmailSubdomainCsrDetails( + com.oracle.bmc.fusionapps.model.RequestEmailSubdomainCsrDetails + requestEmailSubdomainCsrDetails) { + this.requestEmailSubdomainCsrDetails = requestEmailSubdomainCsrDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RequestEmailSubdomainCsrRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + requestEmailSubdomainCsrDetails(o.getRequestEmailSubdomainCsrDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RequestEmailSubdomainCsrRequest 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 RequestEmailSubdomainCsrRequest + */ + public RequestEmailSubdomainCsrRequest build() { + RequestEmailSubdomainCsrRequest 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.fusionapps.model.RequestEmailSubdomainCsrDetails body) { + requestEmailSubdomainCsrDetails(body); + return this; + } + + /** + * Build the instance of RequestEmailSubdomainCsrRequest 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 RequestEmailSubdomainCsrRequest + */ + public RequestEmailSubdomainCsrRequest buildWithoutInvocationCallback() { + RequestEmailSubdomainCsrRequest request = new RequestEmailSubdomainCsrRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.requestEmailSubdomainCsrDetails = requestEmailSubdomainCsrDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new RequestEmailSubdomainCsrRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, requestEmailSubdomainCsrDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .requestEmailSubdomainCsrDetails(requestEmailSubdomainCsrDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + sb.append(",requestEmailSubdomainCsrDetails=") + .append(String.valueOf(this.requestEmailSubdomainCsrDetails)); + 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 RequestEmailSubdomainCsrRequest)) { + return false; + } + + RequestEmailSubdomainCsrRequest other = (RequestEmailSubdomainCsrRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && java.util.Objects.equals( + this.requestEmailSubdomainCsrDetails, other.requestEmailSubdomainCsrDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.hashCode()); + result = + (result * PRIME) + + (this.requestEmailSubdomainCsrDetails == null + ? 43 + : this.requestEmailSubdomainCsrDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/SubmitVanityDomainValidationRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/SubmitVanityDomainValidationRequest.java new file mode 100644 index 00000000000..fa230c2aa1a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/SubmitVanityDomainValidationRequest.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 SubmitVanityDomainValidationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class SubmitVanityDomainValidationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId; + + /** + * The unique identifier (OCID) of the VanityDomain + */ + public String getVanityDomainId() { + return vanityDomainId; + } + /** + * 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; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SubmitVanityDomainValidationRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId = null; + + /** + * The unique identifier (OCID) of the VanityDomain + * @param vanityDomainId the value to set + * @return this builder instance + */ + public Builder vanityDomainId(String vanityDomainId) { + this.vanityDomainId = vanityDomainId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that 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(SubmitVanityDomainValidationRequest o) { + vanityDomainId(o.getVanityDomainId()); + fusionEnvironmentId(o.getFusionEnvironmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SubmitVanityDomainValidationRequest 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 SubmitVanityDomainValidationRequest + */ + public SubmitVanityDomainValidationRequest build() { + SubmitVanityDomainValidationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of SubmitVanityDomainValidationRequest 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 SubmitVanityDomainValidationRequest + */ + public SubmitVanityDomainValidationRequest buildWithoutInvocationCallback() { + SubmitVanityDomainValidationRequest request = new SubmitVanityDomainValidationRequest(); + request.vanityDomainId = vanityDomainId; + request.fusionEnvironmentId = fusionEnvironmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new SubmitVanityDomainValidationRequest(vanityDomainId, fusionEnvironmentId, 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() + .vanityDomainId(vanityDomainId) + .fusionEnvironmentId(fusionEnvironmentId) + .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(",vanityDomainId=").append(String.valueOf(this.vanityDomainId)); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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 SubmitVanityDomainValidationRequest)) { + return false; + } + + SubmitVanityDomainValidationRequest other = (SubmitVanityDomainValidationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vanityDomainId, other.vanityDomainId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.vanityDomainId == null ? 43 : this.vanityDomainId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateEmailSubdomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateEmailSubdomainRequest.java new file mode 100644 index 00000000000..83239b62f84 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateEmailSubdomainRequest.java @@ -0,0 +1,385 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use UpdateEmailSubdomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateEmailSubdomainRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails updateEmailSubdomainDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails + getUpdateEmailSubdomainDetails() { + return updateEmailSubdomainDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails getBody$() { + return updateEmailSubdomainDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateEmailSubdomainRequest, + com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails + updateEmailSubdomainDetails = null; + + /** + * The information to be updated. + * @param updateEmailSubdomainDetails the value to set + * @return this builder instance + */ + public Builder updateEmailSubdomainDetails( + com.oracle.bmc.fusionapps.model.UpdateEmailSubdomainDetails + updateEmailSubdomainDetails) { + this.updateEmailSubdomainDetails = updateEmailSubdomainDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateEmailSubdomainRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + updateEmailSubdomainDetails(o.getUpdateEmailSubdomainDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateEmailSubdomainRequest 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 UpdateEmailSubdomainRequest + */ + public UpdateEmailSubdomainRequest build() { + UpdateEmailSubdomainRequest 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.fusionapps.model.UpdateEmailSubdomainDetails body) { + updateEmailSubdomainDetails(body); + return this; + } + + /** + * Build the instance of UpdateEmailSubdomainRequest 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 UpdateEmailSubdomainRequest + */ + public UpdateEmailSubdomainRequest buildWithoutInvocationCallback() { + UpdateEmailSubdomainRequest request = new UpdateEmailSubdomainRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.updateEmailSubdomainDetails = updateEmailSubdomainDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateEmailSubdomainRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, updateEmailSubdomainDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .updateEmailSubdomainDetails(updateEmailSubdomainDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + sb.append(",updateEmailSubdomainDetails=") + .append(String.valueOf(this.updateEmailSubdomainDetails)); + 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 UpdateEmailSubdomainRequest)) { + return false; + } + + UpdateEmailSubdomainRequest other = (UpdateEmailSubdomainRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && java.util.Objects.equals( + this.updateEmailSubdomainDetails, other.updateEmailSubdomainDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.hashCode()); + result = + (result * PRIME) + + (this.updateEmailSubdomainDetails == null + ? 43 + : this.updateEmailSubdomainDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateMarketingBrandRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateMarketingBrandRequest.java new file mode 100644 index 00000000000..17ab693b085 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateMarketingBrandRequest.java @@ -0,0 +1,351 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateMarketingBrandRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateMarketingBrandRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails updateMarketingBrandDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails + getUpdateMarketingBrandDetails() { + return updateMarketingBrandDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails getBody$() { + return updateMarketingBrandDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateMarketingBrandRequest, + com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails + updateMarketingBrandDetails = null; + + /** + * The information to be updated. + * @param updateMarketingBrandDetails the value to set + * @return this builder instance + */ + public Builder updateMarketingBrandDetails( + com.oracle.bmc.fusionapps.model.UpdateMarketingBrandDetails + updateMarketingBrandDetails) { + this.updateMarketingBrandDetails = updateMarketingBrandDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateMarketingBrandRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + updateMarketingBrandDetails(o.getUpdateMarketingBrandDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateMarketingBrandRequest 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 UpdateMarketingBrandRequest + */ + public UpdateMarketingBrandRequest build() { + UpdateMarketingBrandRequest 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.fusionapps.model.UpdateMarketingBrandDetails body) { + updateMarketingBrandDetails(body); + return this; + } + + /** + * Build the instance of UpdateMarketingBrandRequest 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 UpdateMarketingBrandRequest + */ + public UpdateMarketingBrandRequest buildWithoutInvocationCallback() { + UpdateMarketingBrandRequest request = new UpdateMarketingBrandRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.updateMarketingBrandDetails = updateMarketingBrandDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateMarketingBrandRequest(fusionEnvironmentId, marketingBrandId, updateMarketingBrandDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .updateMarketingBrandDetails(updateMarketingBrandDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",updateMarketingBrandDetails=") + .append(String.valueOf(this.updateMarketingBrandDetails)); + 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 UpdateMarketingBrandRequest)) { + return false; + } + + UpdateMarketingBrandRequest other = (UpdateMarketingBrandRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals( + this.updateMarketingBrandDetails, other.updateMarketingBrandDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.updateMarketingBrandDetails == null + ? 43 + : this.updateMarketingBrandDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateMicrositeRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateMicrositeRequest.java new file mode 100644 index 00000000000..80f101b8ca9 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateMicrositeRequest.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use UpdateMicrositeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateMicrositeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique microsite identifier + */ + private String micrositeId; + + /** + * unique microsite identifier + */ + public String getMicrositeId() { + return micrositeId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails updateMicrositeDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails getUpdateMicrositeDetails() { + return updateMicrositeDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails getBody$() { + return updateMicrositeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateMicrositeRequest, + com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique microsite identifier + */ + private String micrositeId = null; + + /** + * unique microsite identifier + * @param micrositeId the value to set + * @return this builder instance + */ + public Builder micrositeId(String micrositeId) { + this.micrositeId = micrositeId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails updateMicrositeDetails = + null; + + /** + * The information to be updated. + * @param updateMicrositeDetails the value to set + * @return this builder instance + */ + public Builder updateMicrositeDetails( + com.oracle.bmc.fusionapps.model.UpdateMicrositeDetails updateMicrositeDetails) { + this.updateMicrositeDetails = updateMicrositeDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateMicrositeRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + micrositeId(o.getMicrositeId()); + updateMicrositeDetails(o.getUpdateMicrositeDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateMicrositeRequest 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 UpdateMicrositeRequest + */ + public UpdateMicrositeRequest build() { + UpdateMicrositeRequest 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.fusionapps.model.UpdateMicrositeDetails body) { + updateMicrositeDetails(body); + return this; + } + + /** + * Build the instance of UpdateMicrositeRequest 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 UpdateMicrositeRequest + */ + public UpdateMicrositeRequest buildWithoutInvocationCallback() { + UpdateMicrositeRequest request = new UpdateMicrositeRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.micrositeId = micrositeId; + request.updateMicrositeDetails = updateMicrositeDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateMicrositeRequest(fusionEnvironmentId, marketingBrandId, micrositeId, updateMicrositeDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .micrositeId(micrositeId) + .updateMicrositeDetails(updateMicrositeDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",micrositeId=").append(String.valueOf(this.micrositeId)); + sb.append(",updateMicrositeDetails=").append(String.valueOf(this.updateMicrositeDetails)); + 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 UpdateMicrositeRequest)) { + return false; + } + + UpdateMicrositeRequest other = (UpdateMicrositeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.micrositeId, other.micrositeId) + && java.util.Objects.equals( + this.updateMicrositeDetails, other.updateMicrositeDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.micrositeId == null ? 43 : this.micrositeId.hashCode()); + result = + (result * PRIME) + + (this.updateMicrositeDetails == null + ? 43 + : this.updateMicrositeDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateVanityDomainActivityRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateVanityDomainActivityRequest.java new file mode 100644 index 00000000000..f511b8bfb5e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateVanityDomainActivityRequest.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateVanityDomainActivityRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateVanityDomainActivityRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The unique identifier (OCID) of the VanityDomainActivity + */ + private String vanityDomainActivityId; + + /** + * The unique identifier (OCID) of the VanityDomainActivity + */ + public String getVanityDomainActivityId() { + return vanityDomainActivityId; + } + /** + * Details for the updating scheduled VanityDomainActivity + */ + private com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails + updateVanityDomainActivityDetails; + + /** + * Details for the updating scheduled VanityDomainActivity + */ + public com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails + getUpdateVanityDomainActivityDetails() { + return updateVanityDomainActivityDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails getBody$() { + return updateVanityDomainActivityDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateVanityDomainActivityRequest, + com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails> { + 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 unique identifier (OCID) of the VanityDomainActivity + */ + private String vanityDomainActivityId = null; + + /** + * The unique identifier (OCID) of the VanityDomainActivity + * @param vanityDomainActivityId the value to set + * @return this builder instance + */ + public Builder vanityDomainActivityId(String vanityDomainActivityId) { + this.vanityDomainActivityId = vanityDomainActivityId; + return this; + } + + /** + * Details for the updating scheduled VanityDomainActivity + */ + private com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails + updateVanityDomainActivityDetails = null; + + /** + * Details for the updating scheduled VanityDomainActivity + * @param updateVanityDomainActivityDetails the value to set + * @return this builder instance + */ + public Builder updateVanityDomainActivityDetails( + com.oracle.bmc.fusionapps.model.UpdateVanityDomainActivityDetails + updateVanityDomainActivityDetails) { + this.updateVanityDomainActivityDetails = updateVanityDomainActivityDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateVanityDomainActivityRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + vanityDomainActivityId(o.getVanityDomainActivityId()); + updateVanityDomainActivityDetails(o.getUpdateVanityDomainActivityDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateVanityDomainActivityRequest 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 UpdateVanityDomainActivityRequest + */ + public UpdateVanityDomainActivityRequest build() { + UpdateVanityDomainActivityRequest 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.fusionapps.model.UpdateVanityDomainActivityDetails body) { + updateVanityDomainActivityDetails(body); + return this; + } + + /** + * Build the instance of UpdateVanityDomainActivityRequest 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 UpdateVanityDomainActivityRequest + */ + public UpdateVanityDomainActivityRequest buildWithoutInvocationCallback() { + UpdateVanityDomainActivityRequest request = new UpdateVanityDomainActivityRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.vanityDomainActivityId = vanityDomainActivityId; + request.updateVanityDomainActivityDetails = updateVanityDomainActivityDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateVanityDomainActivityRequest(fusionEnvironmentId, vanityDomainActivityId, updateVanityDomainActivityDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .vanityDomainActivityId(vanityDomainActivityId) + .updateVanityDomainActivityDetails(updateVanityDomainActivityDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",vanityDomainActivityId=").append(String.valueOf(this.vanityDomainActivityId)); + sb.append(",updateVanityDomainActivityDetails=") + .append(String.valueOf(this.updateVanityDomainActivityDetails)); + 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 UpdateVanityDomainActivityRequest)) { + return false; + } + + UpdateVanityDomainActivityRequest other = (UpdateVanityDomainActivityRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals( + this.vanityDomainActivityId, other.vanityDomainActivityId) + && java.util.Objects.equals( + this.updateVanityDomainActivityDetails, + other.updateVanityDomainActivityDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.vanityDomainActivityId == null + ? 43 + : this.vanityDomainActivityId.hashCode()); + result = + (result * PRIME) + + (this.updateVanityDomainActivityDetails == null + ? 43 + : this.updateVanityDomainActivityDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateVanityDomainRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateVanityDomainRequest.java new file mode 100644 index 00000000000..53b78221445 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UpdateVanityDomainRequest.java @@ -0,0 +1,351 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateVanityDomainRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateVanityDomainRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId; + + /** + * The unique identifier (OCID) of the VanityDomain + */ + public String getVanityDomainId() { + return vanityDomainId; + } + /** + * Details for the updating scheduled VanityDomain + */ + private com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails updateVanityDomainDetails; + + /** + * Details for the updating scheduled VanityDomain + */ + public com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails + getUpdateVanityDomainDetails() { + return updateVanityDomainDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails getBody$() { + return updateVanityDomainDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateVanityDomainRequest, + com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails> { + 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 unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId = null; + + /** + * The unique identifier (OCID) of the VanityDomain + * @param vanityDomainId the value to set + * @return this builder instance + */ + public Builder vanityDomainId(String vanityDomainId) { + this.vanityDomainId = vanityDomainId; + return this; + } + + /** + * Details for the updating scheduled VanityDomain + */ + private com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails + updateVanityDomainDetails = null; + + /** + * Details for the updating scheduled VanityDomain + * @param updateVanityDomainDetails the value to set + * @return this builder instance + */ + public Builder updateVanityDomainDetails( + com.oracle.bmc.fusionapps.model.UpdateVanityDomainDetails + updateVanityDomainDetails) { + this.updateVanityDomainDetails = updateVanityDomainDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateVanityDomainRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + vanityDomainId(o.getVanityDomainId()); + updateVanityDomainDetails(o.getUpdateVanityDomainDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateVanityDomainRequest 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 UpdateVanityDomainRequest + */ + public UpdateVanityDomainRequest build() { + UpdateVanityDomainRequest 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.fusionapps.model.UpdateVanityDomainDetails body) { + updateVanityDomainDetails(body); + return this; + } + + /** + * Build the instance of UpdateVanityDomainRequest 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 UpdateVanityDomainRequest + */ + public UpdateVanityDomainRequest buildWithoutInvocationCallback() { + UpdateVanityDomainRequest request = new UpdateVanityDomainRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.vanityDomainId = vanityDomainId; + request.updateVanityDomainDetails = updateVanityDomainDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateVanityDomainRequest(fusionEnvironmentId, vanityDomainId, updateVanityDomainDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .vanityDomainId(vanityDomainId) + .updateVanityDomainDetails(updateVanityDomainDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",vanityDomainId=").append(String.valueOf(this.vanityDomainId)); + sb.append(",updateVanityDomainDetails=") + .append(String.valueOf(this.updateVanityDomainDetails)); + 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 UpdateVanityDomainRequest)) { + return false; + } + + UpdateVanityDomainRequest other = (UpdateVanityDomainRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.vanityDomainId, other.vanityDomainId) + && java.util.Objects.equals( + this.updateVanityDomainDetails, other.updateVanityDomainDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.vanityDomainId == null ? 43 : this.vanityDomainId.hashCode()); + result = + (result * PRIME) + + (this.updateVanityDomainDetails == null + ? 43 + : this.updateVanityDomainDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UploadEmailSubdomainCertificateRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UploadEmailSubdomainCertificateRequest.java new file mode 100644 index 00000000000..5eab9fb619f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UploadEmailSubdomainCertificateRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UploadEmailSubdomainCertificateRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UploadEmailSubdomainCertificateRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails> { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * Certificate for email subdomain + */ + private com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails + uploadEmailSubdomainCertificateDetails; + + /** + * Certificate for email subdomain + */ + public com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails + getUploadEmailSubdomainCertificateDetails() { + return uploadEmailSubdomainCertificateDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails getBody$() { + return uploadEmailSubdomainCertificateDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UploadEmailSubdomainCertificateRequest, + com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails> { + 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * Certificate for email subdomain + */ + private com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails + uploadEmailSubdomainCertificateDetails = null; + + /** + * Certificate for email subdomain + * @param uploadEmailSubdomainCertificateDetails the value to set + * @return this builder instance + */ + public Builder uploadEmailSubdomainCertificateDetails( + com.oracle.bmc.fusionapps.model.UploadEmailSubdomainCertificateDetails + uploadEmailSubdomainCertificateDetails) { + this.uploadEmailSubdomainCertificateDetails = uploadEmailSubdomainCertificateDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UploadEmailSubdomainCertificateRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + uploadEmailSubdomainCertificateDetails(o.getUploadEmailSubdomainCertificateDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UploadEmailSubdomainCertificateRequest 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 UploadEmailSubdomainCertificateRequest + */ + public UploadEmailSubdomainCertificateRequest build() { + UploadEmailSubdomainCertificateRequest 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.fusionapps.model.UploadEmailSubdomainCertificateDetails body) { + uploadEmailSubdomainCertificateDetails(body); + return this; + } + + /** + * Build the instance of UploadEmailSubdomainCertificateRequest 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 UploadEmailSubdomainCertificateRequest + */ + public UploadEmailSubdomainCertificateRequest buildWithoutInvocationCallback() { + UploadEmailSubdomainCertificateRequest request = + new UploadEmailSubdomainCertificateRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.uploadEmailSubdomainCertificateDetails = uploadEmailSubdomainCertificateDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UploadEmailSubdomainCertificateRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, uploadEmailSubdomainCertificateDetails, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .uploadEmailSubdomainCertificateDetails(uploadEmailSubdomainCertificateDetails) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + sb.append(",uploadEmailSubdomainCertificateDetails=") + .append(String.valueOf(this.uploadEmailSubdomainCertificateDetails)); + 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 UploadEmailSubdomainCertificateRequest)) { + return false; + } + + UploadEmailSubdomainCertificateRequest other = (UploadEmailSubdomainCertificateRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && java.util.Objects.equals( + this.uploadEmailSubdomainCertificateDetails, + other.uploadEmailSubdomainCertificateDetails) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.hashCode()); + result = + (result * PRIME) + + (this.uploadEmailSubdomainCertificateDetails == null + ? 43 + : this.uploadEmailSubdomainCertificateDetails.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UploadVanityDomainCertificateRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UploadVanityDomainCertificateRequest.java new file mode 100644 index 00000000000..0a941b6394d --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/UploadVanityDomainCertificateRequest.java @@ -0,0 +1,355 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UploadVanityDomainCertificateRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UploadVanityDomainCertificateRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fusionapps.model.UploadVanityDomainCertificateDetails> { + + /** + * The Certificate Details of Vanity Domain to be uploaded + */ + private com.oracle.bmc.fusionapps.model.UploadVanityDomainCertificateDetails + uploadVanityDomainCertificateDetails; + + /** + * The Certificate Details of Vanity Domain to be uploaded + */ + public com.oracle.bmc.fusionapps.model.UploadVanityDomainCertificateDetails + getUploadVanityDomainCertificateDetails() { + return uploadVanityDomainCertificateDetails; + } + /** + * The unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId; + + /** + * The unique identifier (OCID) of the VanityDomain + */ + public String getVanityDomainId() { + return vanityDomainId; + } + /** + * 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; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that 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.fusionapps.model.UploadVanityDomainCertificateDetails getBody$() { + return uploadVanityDomainCertificateDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UploadVanityDomainCertificateRequest, + com.oracle.bmc.fusionapps.model.UploadVanityDomainCertificateDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Certificate Details of Vanity Domain to be uploaded + */ + private com.oracle.bmc.fusionapps.model.UploadVanityDomainCertificateDetails + uploadVanityDomainCertificateDetails = null; + + /** + * The Certificate Details of Vanity Domain to be uploaded + * @param uploadVanityDomainCertificateDetails the value to set + * @return this builder instance + */ + public Builder uploadVanityDomainCertificateDetails( + com.oracle.bmc.fusionapps.model.UploadVanityDomainCertificateDetails + uploadVanityDomainCertificateDetails) { + this.uploadVanityDomainCertificateDetails = uploadVanityDomainCertificateDetails; + return this; + } + + /** + * The unique identifier (OCID) of the VanityDomain + */ + private String vanityDomainId = null; + + /** + * The unique identifier (OCID) of the VanityDomain + * @param vanityDomainId the value to set + * @return this builder instance + */ + public Builder vanityDomainId(String vanityDomainId) { + this.vanityDomainId = vanityDomainId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that 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(UploadVanityDomainCertificateRequest o) { + uploadVanityDomainCertificateDetails(o.getUploadVanityDomainCertificateDetails()); + vanityDomainId(o.getVanityDomainId()); + fusionEnvironmentId(o.getFusionEnvironmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UploadVanityDomainCertificateRequest 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 UploadVanityDomainCertificateRequest + */ + public UploadVanityDomainCertificateRequest build() { + UploadVanityDomainCertificateRequest 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.fusionapps.model.UploadVanityDomainCertificateDetails body) { + uploadVanityDomainCertificateDetails(body); + return this; + } + + /** + * Build the instance of UploadVanityDomainCertificateRequest 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 UploadVanityDomainCertificateRequest + */ + public UploadVanityDomainCertificateRequest buildWithoutInvocationCallback() { + UploadVanityDomainCertificateRequest request = + new UploadVanityDomainCertificateRequest(); + request.uploadVanityDomainCertificateDetails = uploadVanityDomainCertificateDetails; + request.vanityDomainId = vanityDomainId; + request.fusionEnvironmentId = fusionEnvironmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UploadVanityDomainCertificateRequest(uploadVanityDomainCertificateDetails, vanityDomainId, fusionEnvironmentId, 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() + .uploadVanityDomainCertificateDetails(uploadVanityDomainCertificateDetails) + .vanityDomainId(vanityDomainId) + .fusionEnvironmentId(fusionEnvironmentId) + .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(",uploadVanityDomainCertificateDetails=") + .append(String.valueOf(this.uploadVanityDomainCertificateDetails)); + sb.append(",vanityDomainId=").append(String.valueOf(this.vanityDomainId)); + sb.append(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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 UploadVanityDomainCertificateRequest)) { + return false; + } + + UploadVanityDomainCertificateRequest other = (UploadVanityDomainCertificateRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.uploadVanityDomainCertificateDetails, + other.uploadVanityDomainCertificateDetails) + && java.util.Objects.equals(this.vanityDomainId, other.vanityDomainId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && 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.uploadVanityDomainCertificateDetails == null + ? 43 + : this.uploadVanityDomainCertificateDetails.hashCode()); + result = + (result * PRIME) + + (this.vanityDomainId == null ? 43 : this.vanityDomainId.hashCode()); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureEmailSubdomainCertificateRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureEmailSubdomainCertificateRequest.java new file mode 100644 index 00000000000..952273d5ef9 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureEmailSubdomainCertificateRequest.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use ValidateAndConfigureEmailSubdomainCertificateRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ValidateAndConfigureEmailSubdomainCertificateRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateAndConfigureEmailSubdomainCertificateRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateAndConfigureEmailSubdomainCertificateRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateAndConfigureEmailSubdomainCertificateRequest 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 ValidateAndConfigureEmailSubdomainCertificateRequest + */ + public ValidateAndConfigureEmailSubdomainCertificateRequest build() { + ValidateAndConfigureEmailSubdomainCertificateRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateAndConfigureEmailSubdomainCertificateRequest 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 ValidateAndConfigureEmailSubdomainCertificateRequest + */ + public ValidateAndConfigureEmailSubdomainCertificateRequest + buildWithoutInvocationCallback() { + ValidateAndConfigureEmailSubdomainCertificateRequest request = + new ValidateAndConfigureEmailSubdomainCertificateRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ValidateAndConfigureEmailSubdomainCertificateRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + 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 ValidateAndConfigureEmailSubdomainCertificateRequest)) { + return false; + } + + ValidateAndConfigureEmailSubdomainCertificateRequest other = + (ValidateAndConfigureEmailSubdomainCertificateRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureEmailSubdomainDnsRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureEmailSubdomainDnsRequest.java new file mode 100644 index 00000000000..be6a7c0666a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureEmailSubdomainDnsRequest.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use ValidateAndConfigureEmailSubdomainDnsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ValidateAndConfigureEmailSubdomainDnsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId; + + /** + * unique emailSubdomain identifier + */ + public String getEmailSubdomainId() { + return emailSubdomainId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateAndConfigureEmailSubdomainDnsRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique emailSubdomain identifier + */ + private String emailSubdomainId = null; + + /** + * unique emailSubdomain identifier + * @param emailSubdomainId the value to set + * @return this builder instance + */ + public Builder emailSubdomainId(String emailSubdomainId) { + this.emailSubdomainId = emailSubdomainId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateAndConfigureEmailSubdomainDnsRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + emailSubdomainId(o.getEmailSubdomainId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateAndConfigureEmailSubdomainDnsRequest 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 ValidateAndConfigureEmailSubdomainDnsRequest + */ + public ValidateAndConfigureEmailSubdomainDnsRequest build() { + ValidateAndConfigureEmailSubdomainDnsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateAndConfigureEmailSubdomainDnsRequest 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 ValidateAndConfigureEmailSubdomainDnsRequest + */ + public ValidateAndConfigureEmailSubdomainDnsRequest buildWithoutInvocationCallback() { + ValidateAndConfigureEmailSubdomainDnsRequest request = + new ValidateAndConfigureEmailSubdomainDnsRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.emailSubdomainId = emailSubdomainId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ValidateAndConfigureEmailSubdomainDnsRequest(fusionEnvironmentId, marketingBrandId, emailSubdomainId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .emailSubdomainId(emailSubdomainId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",emailSubdomainId=").append(String.valueOf(this.emailSubdomainId)); + 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 ValidateAndConfigureEmailSubdomainDnsRequest)) { + return false; + } + + ValidateAndConfigureEmailSubdomainDnsRequest other = + (ValidateAndConfigureEmailSubdomainDnsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.emailSubdomainId, other.emailSubdomainId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = + (result * PRIME) + + (this.emailSubdomainId == null ? 43 : this.emailSubdomainId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureMicrositeDnsRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureMicrositeDnsRequest.java new file mode 100644 index 00000000000..65be25d0675 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/ValidateAndConfigureMicrositeDnsRequest.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ValidateAndConfigureMicrositeDnsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ValidateAndConfigureMicrositeDnsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * unique brand identifier + */ + private String marketingBrandId; + + /** + * unique brand identifier + */ + public String getMarketingBrandId() { + return marketingBrandId; + } + /** + * unique microsite identifier + */ + private String micrositeId; + + /** + * unique microsite identifier + */ + public String getMicrositeId() { + return micrositeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateAndConfigureMicrositeDnsRequest, 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; + } + + /** + * unique brand identifier + */ + private String marketingBrandId = null; + + /** + * unique brand identifier + * @param marketingBrandId the value to set + * @return this builder instance + */ + public Builder marketingBrandId(String marketingBrandId) { + this.marketingBrandId = marketingBrandId; + return this; + } + + /** + * unique microsite identifier + */ + private String micrositeId = null; + + /** + * unique microsite identifier + * @param micrositeId the value to set + * @return this builder instance + */ + public Builder micrositeId(String micrositeId) { + this.micrositeId = micrositeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateAndConfigureMicrositeDnsRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + marketingBrandId(o.getMarketingBrandId()); + micrositeId(o.getMicrositeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateAndConfigureMicrositeDnsRequest 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 ValidateAndConfigureMicrositeDnsRequest + */ + public ValidateAndConfigureMicrositeDnsRequest build() { + ValidateAndConfigureMicrositeDnsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateAndConfigureMicrositeDnsRequest 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 ValidateAndConfigureMicrositeDnsRequest + */ + public ValidateAndConfigureMicrositeDnsRequest buildWithoutInvocationCallback() { + ValidateAndConfigureMicrositeDnsRequest request = + new ValidateAndConfigureMicrositeDnsRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.marketingBrandId = marketingBrandId; + request.micrositeId = micrositeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ValidateAndConfigureMicrositeDnsRequest(fusionEnvironmentId, marketingBrandId, micrositeId, 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() + .fusionEnvironmentId(fusionEnvironmentId) + .marketingBrandId(marketingBrandId) + .micrositeId(micrositeId) + .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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + sb.append(",marketingBrandId=").append(String.valueOf(this.marketingBrandId)); + sb.append(",micrositeId=").append(String.valueOf(this.micrositeId)); + 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 ValidateAndConfigureMicrositeDnsRequest)) { + return false; + } + + ValidateAndConfigureMicrositeDnsRequest other = (ValidateAndConfigureMicrositeDnsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.marketingBrandId, other.marketingBrandId) + && java.util.Objects.equals(this.micrositeId, other.micrositeId) + && 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); + result = + (result * PRIME) + + (this.marketingBrandId == null ? 43 : this.marketingBrandId.hashCode()); + result = (result * PRIME) + (this.micrositeId == null ? 43 : this.micrositeId.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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateEmailSubdomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateEmailSubdomainResponse.java new file mode 100644 index 00000000000..d89e179b955 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateEmailSubdomainResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateEmailSubdomainResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned EmailSubdomain instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain; + + /** + * The returned EmailSubdomain instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.EmailSubdomain getEmailSubdomain() { + return emailSubdomain; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "emailSubdomain" + }) + private CreateEmailSubdomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.emailSubdomain = emailSubdomain; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned EmailSubdomain instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain; + + /** + * The returned EmailSubdomain instance. + * @param emailSubdomain the value to set + * @return this builder + */ + public Builder emailSubdomain( + com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain) { + this.emailSubdomain = emailSubdomain; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateEmailSubdomainResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + emailSubdomain(o.getEmailSubdomain()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateEmailSubdomainResponse build() { + return new CreateEmailSubdomainResponse( + __httpStatusCode__, headers, etag, opcRequestId, emailSubdomain); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",emailSubdomain=").append(String.valueOf(emailSubdomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateEmailSubdomainResponse)) { + return false; + } + + CreateEmailSubdomainResponse other = (CreateEmailSubdomainResponse) 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.emailSubdomain, other.emailSubdomain); + } + + @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.emailSubdomain == null ? 43 : this.emailSubdomain.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateMarketingBrandResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateMarketingBrandResponse.java new file mode 100644 index 00000000000..ab5e1acf083 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateMarketingBrandResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateMarketingBrandResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned MarketingBrand instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand; + + /** + * The returned MarketingBrand instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrand getMarketingBrand() { + return marketingBrand; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "marketingBrand" + }) + private CreateMarketingBrandResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.marketingBrand = marketingBrand; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned MarketingBrand instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand; + + /** + * The returned MarketingBrand instance. + * @param marketingBrand the value to set + * @return this builder + */ + public Builder marketingBrand( + com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand) { + this.marketingBrand = marketingBrand; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateMarketingBrandResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + marketingBrand(o.getMarketingBrand()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateMarketingBrandResponse build() { + return new CreateMarketingBrandResponse( + __httpStatusCode__, headers, etag, opcRequestId, marketingBrand); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrand=").append(String.valueOf(marketingBrand)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMarketingBrandResponse)) { + return false; + } + + CreateMarketingBrandResponse other = (CreateMarketingBrandResponse) 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.marketingBrand, other.marketingBrand); + } + + @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.marketingBrand == null ? 43 : this.marketingBrand.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateMicrositeResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateMicrositeResponse.java new file mode 100644 index 00000000000..12ba76deeb9 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateMicrositeResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateMicrositeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned Microsite instance. + */ + private com.oracle.bmc.fusionapps.model.Microsite microsite; + + /** + * The returned Microsite instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.Microsite getMicrosite() { + return microsite; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "microsite" + }) + private CreateMicrositeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.Microsite microsite) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.microsite = microsite; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned Microsite instance. + */ + private com.oracle.bmc.fusionapps.model.Microsite microsite; + + /** + * The returned Microsite instance. + * @param microsite the value to set + * @return this builder + */ + public Builder microsite(com.oracle.bmc.fusionapps.model.Microsite microsite) { + this.microsite = microsite; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateMicrositeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + microsite(o.getMicrosite()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateMicrositeResponse build() { + return new CreateMicrositeResponse( + __httpStatusCode__, headers, etag, opcRequestId, microsite); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",microsite=").append(String.valueOf(microsite)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMicrositeResponse)) { + return false; + } + + CreateMicrositeResponse other = (CreateMicrositeResponse) 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.microsite, other.microsite); + } + + @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.microsite == null ? 43 : this.microsite.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateVanityDomainActivityResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateVanityDomainActivityResponse.java new file mode 100644 index 00000000000..60a693ad29e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateVanityDomainActivityResponse.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateVanityDomainActivityResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 scheduled Vanity Domain Activity identifier. + */ + private String vanityActivityId; + + /** + * The scheduled Vanity Domain Activity identifier. + * @return the value + */ + public String getVanityActivityId() { + return vanityActivityId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "vanityActivityId" + }) + private CreateVanityDomainActivityResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String vanityActivityId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.vanityActivityId = vanityActivityId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 scheduled Vanity Domain Activity identifier. + */ + private String vanityActivityId; + + /** + * The scheduled Vanity Domain Activity identifier. + * @param vanityActivityId the value to set + * @return this builder + */ + public Builder vanityActivityId(String vanityActivityId) { + this.vanityActivityId = vanityActivityId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVanityDomainActivityResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + vanityActivityId(o.getVanityActivityId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateVanityDomainActivityResponse build() { + return new CreateVanityDomainActivityResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, vanityActivityId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",vanityActivityId=").append(String.valueOf(vanityActivityId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVanityDomainActivityResponse)) { + return false; + } + + CreateVanityDomainActivityResponse other = (CreateVanityDomainActivityResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.vanityActivityId, other.vanityActivityId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.vanityActivityId == null ? 43 : this.vanityActivityId.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateVanityDomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateVanityDomainResponse.java new file mode 100644 index 00000000000..e8c3111f04f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/CreateVanityDomainResponse.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class CreateVanityDomainResponse 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 VanityDomain instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain; + + /** + * The returned VanityDomain instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.VanityDomain getVanityDomain() { + return vanityDomain; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "vanityDomain" + }) + private CreateVanityDomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.vanityDomain = vanityDomain; + } + + 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 VanityDomain instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain; + + /** + * The returned VanityDomain instance. + * @param vanityDomain the value to set + * @return this builder + */ + public Builder vanityDomain(com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain) { + this.vanityDomain = vanityDomain; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVanityDomainResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + vanityDomain(o.getVanityDomain()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateVanityDomainResponse build() { + return new CreateVanityDomainResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + vanityDomain); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",vanityDomain=").append(String.valueOf(vanityDomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVanityDomainResponse)) { + return false; + } + + CreateVanityDomainResponse other = (CreateVanityDomainResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.vanityDomain, other.vanityDomain); + } + + @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.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.vanityDomain == null ? 43 : this.vanityDomain.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteEmailSubdomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteEmailSubdomainResponse.java new file mode 100644 index 00000000000..312fa990639 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteEmailSubdomainResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteEmailSubdomainResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteEmailSubdomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(DeleteEmailSubdomainResponse 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 DeleteEmailSubdomainResponse build() { + return new DeleteEmailSubdomainResponse( + __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 DeleteEmailSubdomainResponse)) { + return false; + } + + DeleteEmailSubdomainResponse other = (DeleteEmailSubdomainResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteMarketingBrandResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteMarketingBrandResponse.java new file mode 100644 index 00000000000..7ad5f460a28 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteMarketingBrandResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteMarketingBrandResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteMarketingBrandResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(DeleteMarketingBrandResponse 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 DeleteMarketingBrandResponse build() { + return new DeleteMarketingBrandResponse( + __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 DeleteMarketingBrandResponse)) { + return false; + } + + DeleteMarketingBrandResponse other = (DeleteMarketingBrandResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteMicrositeResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteMicrositeResponse.java new file mode 100644 index 00000000000..0d8acb722a1 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteMicrositeResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteMicrositeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteMicrositeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(DeleteMicrositeResponse 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 DeleteMicrositeResponse build() { + return new DeleteMicrositeResponse( + __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 DeleteMicrositeResponse)) { + return false; + } + + DeleteMicrositeResponse other = (DeleteMicrositeResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteVanityDomainActivityResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteVanityDomainActivityResponse.java new file mode 100644 index 00000000000..29822b1aaef --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/DeleteVanityDomainActivityResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class DeleteVanityDomainActivityResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteVanityDomainActivityResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(DeleteVanityDomainActivityResponse 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 DeleteVanityDomainActivityResponse build() { + return new DeleteVanityDomainActivityResponse( + __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 DeleteVanityDomainActivityResponse)) { + return false; + } + + DeleteVanityDomainActivityResponse other = (DeleteVanityDomainActivityResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainCsrResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainCsrResponse.java new file mode 100644 index 00000000000..8d72b451ca9 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainCsrResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetEmailSubdomainCsrResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr; + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + getMarketingBrandEmailSubdomainCsr() { + return marketingBrandEmailSubdomainCsr; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "marketingBrandEmailSubdomainCsr" + }) + private GetEmailSubdomainCsrResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.marketingBrandEmailSubdomainCsr = marketingBrandEmailSubdomainCsr; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr; + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + * @param marketingBrandEmailSubdomainCsr the value to set + * @return this builder + */ + public Builder marketingBrandEmailSubdomainCsr( + com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr) { + this.marketingBrandEmailSubdomainCsr = marketingBrandEmailSubdomainCsr; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEmailSubdomainCsrResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + marketingBrandEmailSubdomainCsr(o.getMarketingBrandEmailSubdomainCsr()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetEmailSubdomainCsrResponse build() { + return new GetEmailSubdomainCsrResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + marketingBrandEmailSubdomainCsr); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrandEmailSubdomainCsr=") + .append(String.valueOf(marketingBrandEmailSubdomainCsr)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetEmailSubdomainCsrResponse)) { + return false; + } + + GetEmailSubdomainCsrResponse other = (GetEmailSubdomainCsrResponse) 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.marketingBrandEmailSubdomainCsr, + other.marketingBrandEmailSubdomainCsr); + } + + @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.marketingBrandEmailSubdomainCsr == null + ? 43 + : this.marketingBrandEmailSubdomainCsr.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainDnsConfigResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainDnsConfigResponse.java new file mode 100644 index 00000000000..c01c1807ed3 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainDnsConfigResponse.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetEmailSubdomainDnsConfigResponse 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 MarketingBrandEmailSubdomainDnsConfig instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainDnsConfig + marketingBrandEmailSubdomainDnsConfig; + + /** + * The returned MarketingBrandEmailSubdomainDnsConfig instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainDnsConfig + getMarketingBrandEmailSubdomainDnsConfig() { + return marketingBrandEmailSubdomainDnsConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "marketingBrandEmailSubdomainDnsConfig" + }) + private GetEmailSubdomainDnsConfigResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainDnsConfig + marketingBrandEmailSubdomainDnsConfig) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.marketingBrandEmailSubdomainDnsConfig = marketingBrandEmailSubdomainDnsConfig; + } + + 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 MarketingBrandEmailSubdomainDnsConfig instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainDnsConfig + marketingBrandEmailSubdomainDnsConfig; + + /** + * The returned MarketingBrandEmailSubdomainDnsConfig instance. + * @param marketingBrandEmailSubdomainDnsConfig the value to set + * @return this builder + */ + public Builder marketingBrandEmailSubdomainDnsConfig( + com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainDnsConfig + marketingBrandEmailSubdomainDnsConfig) { + this.marketingBrandEmailSubdomainDnsConfig = marketingBrandEmailSubdomainDnsConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEmailSubdomainDnsConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + marketingBrandEmailSubdomainDnsConfig(o.getMarketingBrandEmailSubdomainDnsConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetEmailSubdomainDnsConfigResponse build() { + return new GetEmailSubdomainDnsConfigResponse( + __httpStatusCode__, + headers, + opcRequestId, + marketingBrandEmailSubdomainDnsConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrandEmailSubdomainDnsConfig=") + .append(String.valueOf(marketingBrandEmailSubdomainDnsConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetEmailSubdomainDnsConfigResponse)) { + return false; + } + + GetEmailSubdomainDnsConfigResponse other = (GetEmailSubdomainDnsConfigResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.marketingBrandEmailSubdomainDnsConfig, + other.marketingBrandEmailSubdomainDnsConfig); + } + + @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.marketingBrandEmailSubdomainDnsConfig == null + ? 43 + : this.marketingBrandEmailSubdomainDnsConfig.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainResponse.java new file mode 100644 index 00000000000..d952ab194a5 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetEmailSubdomainResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetEmailSubdomainResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned EmailSubdomain instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain; + + /** + * The returned EmailSubdomain instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.EmailSubdomain getEmailSubdomain() { + return emailSubdomain; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "emailSubdomain" + }) + private GetEmailSubdomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.emailSubdomain = emailSubdomain; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned EmailSubdomain instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain; + + /** + * The returned EmailSubdomain instance. + * @param emailSubdomain the value to set + * @return this builder + */ + public Builder emailSubdomain( + com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain) { + this.emailSubdomain = emailSubdomain; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEmailSubdomainResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + emailSubdomain(o.getEmailSubdomain()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetEmailSubdomainResponse build() { + return new GetEmailSubdomainResponse( + __httpStatusCode__, headers, etag, opcRequestId, emailSubdomain); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",emailSubdomain=").append(String.valueOf(emailSubdomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetEmailSubdomainResponse)) { + return false; + } + + GetEmailSubdomainResponse other = (GetEmailSubdomainResponse) 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.emailSubdomain, other.emailSubdomain); + } + + @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.emailSubdomain == null ? 43 : this.emailSubdomain.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMarketingBrandResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMarketingBrandResponse.java new file mode 100644 index 00000000000..329f0b1868a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMarketingBrandResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetMarketingBrandResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned MarketingBrand instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand; + + /** + * The returned MarketingBrand instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrand getMarketingBrand() { + return marketingBrand; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "marketingBrand" + }) + private GetMarketingBrandResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.marketingBrand = marketingBrand; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned MarketingBrand instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand; + + /** + * The returned MarketingBrand instance. + * @param marketingBrand the value to set + * @return this builder + */ + public Builder marketingBrand( + com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand) { + this.marketingBrand = marketingBrand; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMarketingBrandResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + marketingBrand(o.getMarketingBrand()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetMarketingBrandResponse build() { + return new GetMarketingBrandResponse( + __httpStatusCode__, headers, etag, opcRequestId, marketingBrand); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrand=").append(String.valueOf(marketingBrand)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMarketingBrandResponse)) { + return false; + } + + GetMarketingBrandResponse other = (GetMarketingBrandResponse) 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.marketingBrand, other.marketingBrand); + } + + @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.marketingBrand == null ? 43 : this.marketingBrand.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMicrositeDnsConfigResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMicrositeDnsConfigResponse.java new file mode 100644 index 00000000000..307f88a6e0a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMicrositeDnsConfigResponse.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetMicrositeDnsConfigResponse 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 MarketingBrandMicrositeDnsConfig instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandMicrositeDnsConfig + marketingBrandMicrositeDnsConfig; + + /** + * The returned MarketingBrandMicrositeDnsConfig instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrandMicrositeDnsConfig + getMarketingBrandMicrositeDnsConfig() { + return marketingBrandMicrositeDnsConfig; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "marketingBrandMicrositeDnsConfig" + }) + private GetMicrositeDnsConfigResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrandMicrositeDnsConfig + marketingBrandMicrositeDnsConfig) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.marketingBrandMicrositeDnsConfig = marketingBrandMicrositeDnsConfig; + } + + 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 MarketingBrandMicrositeDnsConfig instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandMicrositeDnsConfig + marketingBrandMicrositeDnsConfig; + + /** + * The returned MarketingBrandMicrositeDnsConfig instance. + * @param marketingBrandMicrositeDnsConfig the value to set + * @return this builder + */ + public Builder marketingBrandMicrositeDnsConfig( + com.oracle.bmc.fusionapps.model.MarketingBrandMicrositeDnsConfig + marketingBrandMicrositeDnsConfig) { + this.marketingBrandMicrositeDnsConfig = marketingBrandMicrositeDnsConfig; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMicrositeDnsConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + marketingBrandMicrositeDnsConfig(o.getMarketingBrandMicrositeDnsConfig()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetMicrositeDnsConfigResponse build() { + return new GetMicrositeDnsConfigResponse( + __httpStatusCode__, headers, opcRequestId, marketingBrandMicrositeDnsConfig); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrandMicrositeDnsConfig=") + .append(String.valueOf(marketingBrandMicrositeDnsConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMicrositeDnsConfigResponse)) { + return false; + } + + GetMicrositeDnsConfigResponse other = (GetMicrositeDnsConfigResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.marketingBrandMicrositeDnsConfig, + other.marketingBrandMicrositeDnsConfig); + } + + @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.marketingBrandMicrositeDnsConfig == null + ? 43 + : this.marketingBrandMicrositeDnsConfig.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMicrositeResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMicrositeResponse.java new file mode 100644 index 00000000000..930ada618a3 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetMicrositeResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetMicrositeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned Microsite instance. + */ + private com.oracle.bmc.fusionapps.model.Microsite microsite; + + /** + * The returned Microsite instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.Microsite getMicrosite() { + return microsite; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "microsite" + }) + private GetMicrositeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.Microsite microsite) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.microsite = microsite; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned Microsite instance. + */ + private com.oracle.bmc.fusionapps.model.Microsite microsite; + + /** + * The returned Microsite instance. + * @param microsite the value to set + * @return this builder + */ + public Builder microsite(com.oracle.bmc.fusionapps.model.Microsite microsite) { + this.microsite = microsite; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMicrositeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + microsite(o.getMicrosite()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetMicrositeResponse build() { + return new GetMicrositeResponse( + __httpStatusCode__, headers, etag, opcRequestId, microsite); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",microsite=").append(String.valueOf(microsite)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMicrositeResponse)) { + return false; + } + + GetMicrositeResponse other = (GetMicrositeResponse) 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.microsite, other.microsite); + } + + @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.microsite == null ? 43 : this.microsite.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetVanityDomainActivityResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetVanityDomainActivityResponse.java new file mode 100644 index 00000000000..885630192be --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetVanityDomainActivityResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetVanityDomainActivityResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned VanityDomainActivity instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomainActivity vanityDomainActivity; + + /** + * The returned VanityDomainActivity instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.VanityDomainActivity getVanityDomainActivity() { + return vanityDomainActivity; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "vanityDomainActivity" + }) + private GetVanityDomainActivityResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.VanityDomainActivity vanityDomainActivity) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.vanityDomainActivity = vanityDomainActivity; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned VanityDomainActivity instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomainActivity vanityDomainActivity; + + /** + * The returned VanityDomainActivity instance. + * @param vanityDomainActivity the value to set + * @return this builder + */ + public Builder vanityDomainActivity( + com.oracle.bmc.fusionapps.model.VanityDomainActivity vanityDomainActivity) { + this.vanityDomainActivity = vanityDomainActivity; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetVanityDomainActivityResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + vanityDomainActivity(o.getVanityDomainActivity()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetVanityDomainActivityResponse build() { + return new GetVanityDomainActivityResponse( + __httpStatusCode__, headers, etag, opcRequestId, vanityDomainActivity); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",vanityDomainActivity=").append(String.valueOf(vanityDomainActivity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVanityDomainActivityResponse)) { + return false; + } + + GetVanityDomainActivityResponse other = (GetVanityDomainActivityResponse) 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.vanityDomainActivity, other.vanityDomainActivity); + } + + @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.vanityDomainActivity == null + ? 43 + : this.vanityDomainActivity.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetVanityDomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetVanityDomainResponse.java new file mode 100644 index 00000000000..c9bfd6a5bfa --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GetVanityDomainResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GetVanityDomainResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned VanityDomain instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain; + + /** + * The returned VanityDomain instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.VanityDomain getVanityDomain() { + return vanityDomain; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "vanityDomain" + }) + private GetVanityDomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.vanityDomain = vanityDomain; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned VanityDomain instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain; + + /** + * The returned VanityDomain instance. + * @param vanityDomain the value to set + * @return this builder + */ + public Builder vanityDomain(com.oracle.bmc.fusionapps.model.VanityDomain vanityDomain) { + this.vanityDomain = vanityDomain; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetVanityDomainResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + vanityDomain(o.getVanityDomain()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetVanityDomainResponse build() { + return new GetVanityDomainResponse( + __httpStatusCode__, headers, etag, opcRequestId, vanityDomain); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",vanityDomain=").append(String.valueOf(vanityDomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVanityDomainResponse)) { + return false; + } + + GetVanityDomainResponse other = (GetVanityDomainResponse) 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.vanityDomain, other.vanityDomain); + } + + @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.vanityDomain == null ? 43 : this.vanityDomain.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListEmailSubdomainsResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListEmailSubdomainsResponse.java new file mode 100644 index 00000000000..d418a2e02ef --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListEmailSubdomainsResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListEmailSubdomainsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned EmailSubdomainCollection instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomainCollection emailSubdomainCollection; + + /** + * The returned EmailSubdomainCollection instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.EmailSubdomainCollection getEmailSubdomainCollection() { + return emailSubdomainCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "emailSubdomainCollection" + }) + private ListEmailSubdomainsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fusionapps.model.EmailSubdomainCollection emailSubdomainCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.emailSubdomainCollection = emailSubdomainCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned EmailSubdomainCollection instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomainCollection emailSubdomainCollection; + + /** + * The returned EmailSubdomainCollection instance. + * @param emailSubdomainCollection the value to set + * @return this builder + */ + public Builder emailSubdomainCollection( + com.oracle.bmc.fusionapps.model.EmailSubdomainCollection emailSubdomainCollection) { + this.emailSubdomainCollection = emailSubdomainCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListEmailSubdomainsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + emailSubdomainCollection(o.getEmailSubdomainCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListEmailSubdomainsResponse build() { + return new ListEmailSubdomainsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + emailSubdomainCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",emailSubdomainCollection=").append(String.valueOf(emailSubdomainCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListEmailSubdomainsResponse)) { + return false; + } + + ListEmailSubdomainsResponse other = (ListEmailSubdomainsResponse) 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.emailSubdomainCollection, other.emailSubdomainCollection); + } + + @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.emailSubdomainCollection == null + ? 43 + : this.emailSubdomainCollection.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListMarketingBrandsResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListMarketingBrandsResponse.java new file mode 100644 index 00000000000..5bd7f40e235 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListMarketingBrandsResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListMarketingBrandsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned MarketingBrandCollection instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandCollection marketingBrandCollection; + + /** + * The returned MarketingBrandCollection instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrandCollection getMarketingBrandCollection() { + return marketingBrandCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "marketingBrandCollection" + }) + private ListMarketingBrandsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fusionapps.model.MarketingBrandCollection marketingBrandCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.marketingBrandCollection = marketingBrandCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned MarketingBrandCollection instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandCollection marketingBrandCollection; + + /** + * The returned MarketingBrandCollection instance. + * @param marketingBrandCollection the value to set + * @return this builder + */ + public Builder marketingBrandCollection( + com.oracle.bmc.fusionapps.model.MarketingBrandCollection marketingBrandCollection) { + this.marketingBrandCollection = marketingBrandCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMarketingBrandsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + marketingBrandCollection(o.getMarketingBrandCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListMarketingBrandsResponse build() { + return new ListMarketingBrandsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + marketingBrandCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrandCollection=").append(String.valueOf(marketingBrandCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMarketingBrandsResponse)) { + return false; + } + + ListMarketingBrandsResponse other = (ListMarketingBrandsResponse) 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.marketingBrandCollection, other.marketingBrandCollection); + } + + @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.marketingBrandCollection == null + ? 43 + : this.marketingBrandCollection.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListMicrositesResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListMicrositesResponse.java new file mode 100644 index 00000000000..2a16ebd7c7e --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListMicrositesResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListMicrositesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned MicrositeCollection instance. + */ + private com.oracle.bmc.fusionapps.model.MicrositeCollection micrositeCollection; + + /** + * The returned MicrositeCollection instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MicrositeCollection getMicrositeCollection() { + return micrositeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "micrositeCollection" + }) + private ListMicrositesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fusionapps.model.MicrositeCollection micrositeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.micrositeCollection = micrositeCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned MicrositeCollection instance. + */ + private com.oracle.bmc.fusionapps.model.MicrositeCollection micrositeCollection; + + /** + * The returned MicrositeCollection instance. + * @param micrositeCollection the value to set + * @return this builder + */ + public Builder micrositeCollection( + com.oracle.bmc.fusionapps.model.MicrositeCollection micrositeCollection) { + this.micrositeCollection = micrositeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMicrositesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + micrositeCollection(o.getMicrositeCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListMicrositesResponse build() { + return new ListMicrositesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, micrositeCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",micrositeCollection=").append(String.valueOf(micrositeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMicrositesResponse)) { + return false; + } + + ListMicrositesResponse other = (ListMicrositesResponse) 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.micrositeCollection, other.micrositeCollection); + } + + @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.micrositeCollection == null + ? 43 + : this.micrositeCollection.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListVanityDomainsResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListVanityDomainsResponse.java new file mode 100644 index 00000000000..ddd36b0a21d --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ListVanityDomainsResponse.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ListVanityDomainsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned VanityDomainCollection instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomainCollection vanityDomainCollection; + + /** + * The returned VanityDomainCollection instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.VanityDomainCollection getVanityDomainCollection() { + return vanityDomainCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vanityDomainCollection" + }) + private ListVanityDomainsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fusionapps.model.VanityDomainCollection vanityDomainCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vanityDomainCollection = vanityDomainCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned VanityDomainCollection instance. + */ + private com.oracle.bmc.fusionapps.model.VanityDomainCollection vanityDomainCollection; + + /** + * The returned VanityDomainCollection instance. + * @param vanityDomainCollection the value to set + * @return this builder + */ + public Builder vanityDomainCollection( + com.oracle.bmc.fusionapps.model.VanityDomainCollection vanityDomainCollection) { + this.vanityDomainCollection = vanityDomainCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListVanityDomainsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vanityDomainCollection(o.getVanityDomainCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListVanityDomainsResponse build() { + return new ListVanityDomainsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, vanityDomainCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",vanityDomainCollection=").append(String.valueOf(vanityDomainCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVanityDomainsResponse)) { + return false; + } + + ListVanityDomainsResponse other = (ListVanityDomainsResponse) 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.vanityDomainCollection, other.vanityDomainCollection); + } + + @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.vanityDomainCollection == null + ? 43 + : this.vanityDomainCollection.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/RequestEmailSubdomainCsrResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/RequestEmailSubdomainCsrResponse.java new file mode 100644 index 00000000000..0137730f717 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/RequestEmailSubdomainCsrResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class RequestEmailSubdomainCsrResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr; + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + getMarketingBrandEmailSubdomainCsr() { + return marketingBrandEmailSubdomainCsr; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "marketingBrandEmailSubdomainCsr" + }) + private RequestEmailSubdomainCsrResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.marketingBrandEmailSubdomainCsr = marketingBrandEmailSubdomainCsr; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr; + + /** + * The returned MarketingBrandEmailSubdomainCsr instance. + * @param marketingBrandEmailSubdomainCsr the value to set + * @return this builder + */ + public Builder marketingBrandEmailSubdomainCsr( + com.oracle.bmc.fusionapps.model.MarketingBrandEmailSubdomainCsr + marketingBrandEmailSubdomainCsr) { + this.marketingBrandEmailSubdomainCsr = marketingBrandEmailSubdomainCsr; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RequestEmailSubdomainCsrResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + marketingBrandEmailSubdomainCsr(o.getMarketingBrandEmailSubdomainCsr()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RequestEmailSubdomainCsrResponse build() { + return new RequestEmailSubdomainCsrResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + marketingBrandEmailSubdomainCsr); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrandEmailSubdomainCsr=") + .append(String.valueOf(marketingBrandEmailSubdomainCsr)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestEmailSubdomainCsrResponse)) { + return false; + } + + RequestEmailSubdomainCsrResponse other = (RequestEmailSubdomainCsrResponse) 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.marketingBrandEmailSubdomainCsr, + other.marketingBrandEmailSubdomainCsr); + } + + @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.marketingBrandEmailSubdomainCsr == null + ? 43 + : this.marketingBrandEmailSubdomainCsr.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/SubmitVanityDomainValidationResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/SubmitVanityDomainValidationResponse.java new file mode 100644 index 00000000000..d70e50b1509 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/SubmitVanityDomainValidationResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class SubmitVanityDomainValidationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 SubmitVanityDomainValidationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(SubmitVanityDomainValidationResponse 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 SubmitVanityDomainValidationResponse build() { + return new SubmitVanityDomainValidationResponse( + __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 SubmitVanityDomainValidationResponse)) { + return false; + } + + SubmitVanityDomainValidationResponse other = (SubmitVanityDomainValidationResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateEmailSubdomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateEmailSubdomainResponse.java new file mode 100644 index 00000000000..44e95aeaa6c --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateEmailSubdomainResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateEmailSubdomainResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned EmailSubdomain instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain; + + /** + * The returned EmailSubdomain instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.EmailSubdomain getEmailSubdomain() { + return emailSubdomain; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "emailSubdomain" + }) + private UpdateEmailSubdomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.emailSubdomain = emailSubdomain; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned EmailSubdomain instance. + */ + private com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain; + + /** + * The returned EmailSubdomain instance. + * @param emailSubdomain the value to set + * @return this builder + */ + public Builder emailSubdomain( + com.oracle.bmc.fusionapps.model.EmailSubdomain emailSubdomain) { + this.emailSubdomain = emailSubdomain; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateEmailSubdomainResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + emailSubdomain(o.getEmailSubdomain()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateEmailSubdomainResponse build() { + return new UpdateEmailSubdomainResponse( + __httpStatusCode__, headers, etag, opcRequestId, emailSubdomain); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",emailSubdomain=").append(String.valueOf(emailSubdomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateEmailSubdomainResponse)) { + return false; + } + + UpdateEmailSubdomainResponse other = (UpdateEmailSubdomainResponse) 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.emailSubdomain, other.emailSubdomain); + } + + @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.emailSubdomain == null ? 43 : this.emailSubdomain.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateMarketingBrandResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateMarketingBrandResponse.java new file mode 100644 index 00000000000..9a951d48d2a --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateMarketingBrandResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateMarketingBrandResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned MarketingBrand instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand; + + /** + * The returned MarketingBrand instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.MarketingBrand getMarketingBrand() { + return marketingBrand; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "marketingBrand" + }) + private UpdateMarketingBrandResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.marketingBrand = marketingBrand; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned MarketingBrand instance. + */ + private com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand; + + /** + * The returned MarketingBrand instance. + * @param marketingBrand the value to set + * @return this builder + */ + public Builder marketingBrand( + com.oracle.bmc.fusionapps.model.MarketingBrand marketingBrand) { + this.marketingBrand = marketingBrand; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateMarketingBrandResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + marketingBrand(o.getMarketingBrand()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateMarketingBrandResponse build() { + return new UpdateMarketingBrandResponse( + __httpStatusCode__, headers, etag, opcRequestId, marketingBrand); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",marketingBrand=").append(String.valueOf(marketingBrand)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMarketingBrandResponse)) { + return false; + } + + UpdateMarketingBrandResponse other = (UpdateMarketingBrandResponse) 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.marketingBrand, other.marketingBrand); + } + + @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.marketingBrand == null ? 43 : this.marketingBrand.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateMicrositeResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateMicrositeResponse.java new file mode 100644 index 00000000000..d57364d8658 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateMicrositeResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateMicrositeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned Microsite instance. + */ + private com.oracle.bmc.fusionapps.model.Microsite microsite; + + /** + * The returned Microsite instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.Microsite getMicrosite() { + return microsite; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "microsite" + }) + private UpdateMicrositeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.fusionapps.model.Microsite microsite) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.microsite = microsite; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned Microsite instance. + */ + private com.oracle.bmc.fusionapps.model.Microsite microsite; + + /** + * The returned Microsite instance. + * @param microsite the value to set + * @return this builder + */ + public Builder microsite(com.oracle.bmc.fusionapps.model.Microsite microsite) { + this.microsite = microsite; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateMicrositeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + microsite(o.getMicrosite()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateMicrositeResponse build() { + return new UpdateMicrositeResponse( + __httpStatusCode__, headers, etag, opcRequestId, microsite); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",microsite=").append(String.valueOf(microsite)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMicrositeResponse)) { + return false; + } + + UpdateMicrositeResponse other = (UpdateMicrositeResponse) 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.microsite, other.microsite); + } + + @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.microsite == null ? 43 : this.microsite.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateVanityDomainActivityResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateVanityDomainActivityResponse.java new file mode 100644 index 00000000000..7ce8d62aaa8 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateVanityDomainActivityResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateVanityDomainActivityResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UpdateVanityDomainActivityResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(UpdateVanityDomainActivityResponse 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 UpdateVanityDomainActivityResponse build() { + return new UpdateVanityDomainActivityResponse( + __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 UpdateVanityDomainActivityResponse)) { + return false; + } + + UpdateVanityDomainActivityResponse other = (UpdateVanityDomainActivityResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateVanityDomainResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateVanityDomainResponse.java new file mode 100644 index 00000000000..547aa1eef86 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UpdateVanityDomainResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UpdateVanityDomainResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UpdateVanityDomainResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(UpdateVanityDomainResponse 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 UpdateVanityDomainResponse build() { + return new UpdateVanityDomainResponse( + __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 UpdateVanityDomainResponse)) { + return false; + } + + UpdateVanityDomainResponse other = (UpdateVanityDomainResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UploadEmailSubdomainCertificateResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UploadEmailSubdomainCertificateResponse.java new file mode 100644 index 00000000000..9309ef4c757 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UploadEmailSubdomainCertificateResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UploadEmailSubdomainCertificateResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private UploadEmailSubdomainCertificateResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UploadEmailSubdomainCertificateResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UploadEmailSubdomainCertificateResponse build() { + return new UploadEmailSubdomainCertificateResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UploadEmailSubdomainCertificateResponse)) { + return false; + } + + UploadEmailSubdomainCertificateResponse other = (UploadEmailSubdomainCertificateResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UploadVanityDomainCertificateResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UploadVanityDomainCertificateResponse.java new file mode 100644 index 00000000000..e942543023f --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/UploadVanityDomainCertificateResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class UploadVanityDomainCertificateResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UploadVanityDomainCertificateResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(UploadVanityDomainCertificateResponse 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 UploadVanityDomainCertificateResponse build() { + return new UploadVanityDomainCertificateResponse( + __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 UploadVanityDomainCertificateResponse)) { + return false; + } + + UploadVanityDomainCertificateResponse other = (UploadVanityDomainCertificateResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureEmailSubdomainCertificateResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureEmailSubdomainCertificateResponse.java new file mode 100644 index 00000000000..a3659c3e63c --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureEmailSubdomainCertificateResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ValidateAndConfigureEmailSubdomainCertificateResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ValidateAndConfigureEmailSubdomainCertificateResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(ValidateAndConfigureEmailSubdomainCertificateResponse 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 ValidateAndConfigureEmailSubdomainCertificateResponse build() { + return new ValidateAndConfigureEmailSubdomainCertificateResponse( + __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 ValidateAndConfigureEmailSubdomainCertificateResponse)) { + return false; + } + + ValidateAndConfigureEmailSubdomainCertificateResponse other = + (ValidateAndConfigureEmailSubdomainCertificateResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureEmailSubdomainDnsResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureEmailSubdomainDnsResponse.java new file mode 100644 index 00000000000..bce31f34cf2 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureEmailSubdomainDnsResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ValidateAndConfigureEmailSubdomainDnsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ValidateAndConfigureEmailSubdomainDnsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(ValidateAndConfigureEmailSubdomainDnsResponse 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 ValidateAndConfigureEmailSubdomainDnsResponse build() { + return new ValidateAndConfigureEmailSubdomainDnsResponse( + __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 ValidateAndConfigureEmailSubdomainDnsResponse)) { + return false; + } + + ValidateAndConfigureEmailSubdomainDnsResponse other = + (ValidateAndConfigureEmailSubdomainDnsResponse) 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-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureMicrositeDnsResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureMicrositeDnsResponse.java new file mode 100644 index 00000000000..e294d814550 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/ValidateAndConfigureMicrositeDnsResponse.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class ValidateAndConfigureMicrositeDnsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ValidateAndConfigureMicrositeDnsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(ValidateAndConfigureMicrositeDnsResponse 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 ValidateAndConfigureMicrositeDnsResponse build() { + return new ValidateAndConfigureMicrositeDnsResponse( + __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 ValidateAndConfigureMicrositeDnsResponse)) { + return false; + } + + ValidateAndConfigureMicrositeDnsResponse other = + (ValidateAndConfigureMicrositeDnsResponse) 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-gdp/pom.xml b/bmc-gdp/pom.xml index 30f7c2023f4..d650ee16c4e 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 55ca60f49b2..b72ab3c2f9c 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java index 8c515e48c8c..63b982dae03 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java @@ -66,6 +66,13 @@ public interface GenerativeAi extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * add image with isAutoDeploy flag. * @param request The request object containing the details to send diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java index f5d2ba16e30..8412d080096 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java @@ -65,6 +65,13 @@ public interface GenerativeAiAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * add image with isAutoDeploy flag. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java index 3606f9c3aaf..28fabf22325 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java @@ -33,7 +33,8 @@ public class GenerativeAiAsyncClient implements GenerativeAiAsync { .serviceName(GenerativeAiClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://generativeai.{region}.oci.{secondLevelDomain}") + "https://generativeai.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("generativeai") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +54,7 @@ public class GenerativeAiAsyncClient implements GenerativeAiAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +307,9 @@ public GenerativeAiAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -465,6 +470,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java index 6aa178978c0..f23f137ab76 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java @@ -21,7 +21,8 @@ public class GenerativeAiClient implements GenerativeAi { .serviceName(GenerativeAiClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://generativeai.{region}.oci.{secondLevelDomain}") + "https://generativeai.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("generativeai") .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; @@ -52,6 +53,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -382,6 +384,9 @@ protected GenerativeAiClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -554,6 +559,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/AddArtifactConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/AddArtifactConverter.java index a7c18da326b..c23504be5d6 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/AddArtifactConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/AddArtifactConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getAddArtifactDetails(), "addArtifactDetails is required"); Validate.notBlank(request.getHostedDeploymentId(), "hostedDeploymentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedDeploymentId", request.getHostedDeploymentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedDeployments") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CancelVectorStoreConnectorFileSyncConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CancelVectorStoreConnectorFileSyncConverter.java index 8ad8352edb1..582fb86f7ee 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CancelVectorStoreConnectorFileSyncConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CancelVectorStoreConnectorFileSyncConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getVectorStoreConnectorFileSyncId(), "vectorStoreConnectorFileSyncId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "vectorStoreConnectorFileSyncId", request.getVectorStoreConnectorFileSyncId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectorFileSyncs") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeApiKeyCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeApiKeyCompartmentConverter.java index 20b1ef53f87..a80516066ba 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeApiKeyCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeApiKeyCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeApiKeyCompartmentDetails(), "changeApiKeyCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("apiKeyId", request.getApiKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("apikeys") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeDedicatedAiClusterCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeDedicatedAiClusterCompartmentConverter.java index d41365ec115..9053550d075 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeDedicatedAiClusterCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeDedicatedAiClusterCompartmentConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeDedicatedAiClusterCompartmentDetails(), "changeDedicatedAiClusterCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedAiClusterId", request.getDedicatedAiClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("dedicatedAiClusters") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeEndpointCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeEndpointCompartmentConverter.java index 048ce9a6ba8..087ff5c54e7 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeEndpointCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeEndpointCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeEndpointCompartmentDetails(), "changeEndpointCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("endpointId", request.getEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("endpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiPrivateEndpointCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiPrivateEndpointCompartmentConverter.java index 26d34f680e6..95537a5aec2 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiPrivateEndpointCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiPrivateEndpointCompartmentConverter.java @@ -42,8 +42,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeGenerativeAiPrivateEndpointCompartmentDetails(), "changeGenerativeAiPrivateEndpointCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "generativeAiPrivateEndpointId", request.getGenerativeAiPrivateEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiPrivateEndpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiProjectCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiProjectCompartmentConverter.java index 3d570988ee4..3114b910ecd 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiProjectCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeGenerativeAiProjectCompartmentConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeGenerativeAiProjectCompartmentDetails(), "changeGenerativeAiProjectCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("generativeAiProjectId", request.getGenerativeAiProjectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiProjects") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationCompartmentConverter.java index 58c0410e166..c30037a0954 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationCompartmentConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeHostedApplicationCompartmentDetails(), "changeHostedApplicationCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationId", request.getHostedApplicationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplications") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationStorageCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationStorageCompartmentConverter.java index 6664f710db9..ff7eeba35d1 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationStorageCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationStorageCompartmentConverter.java @@ -42,8 +42,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeHostedApplicationStorageCompartmentDetails(), "changeHostedApplicationStorageCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "hostedApplicationStorageId", request.getHostedApplicationStorageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplicationStorages") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeImportedModelCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeImportedModelCompartmentConverter.java index ea7f5649e8c..b76d69f0c2a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeImportedModelCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeImportedModelCompartmentConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeImportedModelCompartmentDetails(), "changeImportedModelCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("importedModelId", request.getImportedModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("importedModels") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeModelCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeModelCompartmentConverter.java index 9e12e9850fb..98730085909 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeModelCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeModelCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeModelCompartmentDetails(), "changeModelCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("modelId", request.getModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("models") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeSemanticStoreCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeSemanticStoreCompartmentConverter.java index 2829ccd5a1d..065d6f197c0 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeSemanticStoreCompartmentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeSemanticStoreCompartmentConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeSemanticStoreCompartmentDetails(), "changeSemanticStoreCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("semanticStoreId", request.getSemanticStoreId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("semanticStores") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateApiKeyConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateApiKeyConverter.java index 0f0271f4dbc..9100a99c13a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateApiKeyConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateApiKeyConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateApiKeyDetails(), "createApiKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("apikeys"); + newBaseTarget.path("/20231130").path("apikeys"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateDedicatedAiClusterConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateDedicatedAiClusterConverter.java index 0361201997b..46329d346bf 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateDedicatedAiClusterConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateDedicatedAiClusterConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateDedicatedAiClusterDetails(), "createDedicatedAiClusterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("dedicatedAiClusters"); + newBaseTarget.path("/20231130").path("dedicatedAiClusters"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateEndpointConverter.java index 4b0e0d6bac0..e23a3d8b994 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateEndpointConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateEndpointDetails(), "createEndpointDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("endpoints"); + newBaseTarget.path("/20231130").path("endpoints"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiPrivateEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiPrivateEndpointConverter.java index b82b09b2f5e..df174922353 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiPrivateEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiPrivateEndpointConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateGenerativeAiPrivateEndpointDetails(), "createGenerativeAiPrivateEndpointDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("generativeAiPrivateEndpoints"); + newBaseTarget.path("/20231130").path("generativeAiPrivateEndpoints"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiProjectConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiProjectConverter.java index 1624f74f10c..04d03bc9d5e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiProjectConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateGenerativeAiProjectConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateGenerativeAiProjectDetails(), "createGenerativeAiProjectDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("generativeAiProjects"); + newBaseTarget.path("/20231130").path("generativeAiProjects"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationConverter.java index 6e6046ec3cb..b824fd9b236 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateHostedApplicationDetails(), "createHostedApplicationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("hostedApplications"); + newBaseTarget.path("/20231130").path("hostedApplications"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationStorageConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationStorageConverter.java index 5939ae3ab22..17aa5f91784 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationStorageConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationStorageConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateHostedApplicationStorageDetails(), "createHostedApplicationStorageDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("hostedApplicationStorages"); + newBaseTarget.path("/20231130").path("hostedApplicationStorages"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedDeploymentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedDeploymentConverter.java index 4b059d89b35..2ac836ce0a2 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedDeploymentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedDeploymentConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateHostedDeploymentDetails(), "createHostedDeploymentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("hostedDeployments"); + newBaseTarget.path("/20231130").path("hostedDeployments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateImportedModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateImportedModelConverter.java index b9d3942189e..7808fc22ec5 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateImportedModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateImportedModelConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateImportedModelDetails(), "createImportedModelDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("importedModels"); + newBaseTarget.path("/20231130").path("importedModels"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateModelConverter.java index a35ff717912..c38b78a6519 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateModelConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateModelDetails(), "createModelDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("models"); + newBaseTarget.path("/20231130").path("models"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateSemanticStoreConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateSemanticStoreConverter.java index 87d7ad16611..566db6baa57 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateSemanticStoreConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateSemanticStoreConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateSemanticStoreDetails(), "createSemanticStoreDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("semanticStores"); + newBaseTarget.path("/20231130").path("semanticStores"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorConverter.java index b2189167db9..38c769f8334 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateVectorStoreConnectorDetails(), "createVectorStoreConnectorDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("vectorStoreConnectors"); + newBaseTarget.path("/20231130").path("vectorStoreConnectors"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorFileSyncConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorFileSyncConverter.java index ab822de6be1..1a104415ed4 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorFileSyncConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateVectorStoreConnectorFileSyncConverter.java @@ -36,8 +36,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateVectorStoreConnectorFileSyncDetails(), "createVectorStoreConnectorFileSyncDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("vectorStoreConnectorFileSyncs"); + newBaseTarget.path("/20231130").path("vectorStoreConnectorFileSyncs"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteApiKeyConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteApiKeyConverter.java index 5823b7796ba..395fd4094e2 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteApiKeyConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteApiKeyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getApiKeyId(), "apiKeyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("apiKeyId", request.getApiKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("apikeys") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteDedicatedAiClusterConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteDedicatedAiClusterConverter.java index 4256dfe676a..447636246c4 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteDedicatedAiClusterConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteDedicatedAiClusterConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getDedicatedAiClusterId(), "dedicatedAiClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedAiClusterId", request.getDedicatedAiClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("dedicatedAiClusters") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteEndpointConverter.java index acb59b08544..c00778fdb96 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteEndpointConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getEndpointId(), "endpointId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("endpointId", request.getEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("endpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiPrivateEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiPrivateEndpointConverter.java index da3798af263..f6c21059fa6 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiPrivateEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiPrivateEndpointConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGenerativeAiPrivateEndpointId(), "generativeAiPrivateEndpointId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "generativeAiPrivateEndpointId", request.getGenerativeAiPrivateEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiPrivateEndpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiProjectConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiProjectConverter.java index 5873150f24a..9df9c0f684e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiProjectConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteGenerativeAiProjectConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getGenerativeAiProjectId(), "generativeAiProjectId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("generativeAiProjectId", request.getGenerativeAiProjectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiProjects") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationConverter.java index 1dada0347a3..311fa1ee9c4 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getHostedApplicationId(), "hostedApplicationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationId", request.getHostedApplicationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplications") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationStorageConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationStorageConverter.java index d1e4c4f4c31..91f99092f19 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationStorageConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationStorageConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getHostedApplicationStorageId(), "hostedApplicationStorageId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "hostedApplicationStorageId", request.getHostedApplicationStorageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplicationStorages") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentArtifactConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentArtifactConverter.java index 2f9fd09929c..01277b54802 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentArtifactConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentArtifactConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getHostedDeploymentId(), "hostedDeploymentId must not be blank"); Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedDeploymentId", request.getHostedDeploymentId()); + requiredParametersMap.put("artifactId", request.getArtifactId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedDeployments") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentConverter.java index 867adfcff8a..251c1d10109 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedDeploymentConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getHostedDeploymentId(), "hostedDeploymentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedDeploymentId", request.getHostedDeploymentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedDeployments") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteImportedModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteImportedModelConverter.java index 581c1157546..ae2f4cf7d8a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteImportedModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteImportedModelConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getImportedModelId(), "importedModelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("importedModelId", request.getImportedModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("importedModels") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteModelConverter.java index 11b5fd9bef8..5b9b008e041 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteModelConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getModelId(), "modelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("modelId", request.getModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("models") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteSemanticStoreConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteSemanticStoreConverter.java index 371f8d091e2..822d3fca56a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteSemanticStoreConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteSemanticStoreConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("semanticStoreId", request.getSemanticStoreId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("semanticStores") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteVectorStoreConnectorConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteVectorStoreConnectorConverter.java index 71af3879ec5..7ec69c9ff65 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteVectorStoreConnectorConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteVectorStoreConnectorConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVectorStoreConnectorId(), "vectorStoreConnectorId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vectorStoreConnectorId", request.getVectorStoreConnectorId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectors") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetApiKeyConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetApiKeyConverter.java index 6d858724e0f..49a8c6de593 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetApiKeyConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetApiKeyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getApiKeyId(), "apiKeyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("apiKeyId", request.getApiKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("apikeys") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetDedicatedAiClusterConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetDedicatedAiClusterConverter.java index fa566e30386..cdecd275a42 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetDedicatedAiClusterConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetDedicatedAiClusterConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getDedicatedAiClusterId(), "dedicatedAiClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedAiClusterId", request.getDedicatedAiClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("dedicatedAiClusters") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetEndpointConverter.java index a5cb4b33d17..e67c7638be4 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetEndpointConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getEndpointId(), "endpointId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("endpointId", request.getEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("endpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiPrivateEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiPrivateEndpointConverter.java index 5ce760e541a..a486431f7e1 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiPrivateEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiPrivateEndpointConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGenerativeAiPrivateEndpointId(), "generativeAiPrivateEndpointId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "generativeAiPrivateEndpointId", request.getGenerativeAiPrivateEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiPrivateEndpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiProjectConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiProjectConverter.java index 1decafedc06..faba6eab25e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiProjectConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetGenerativeAiProjectConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getGenerativeAiProjectId(), "generativeAiProjectId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("generativeAiProjectId", request.getGenerativeAiProjectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiProjects") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationConverter.java index e31dfb52bad..bb28a417637 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getHostedApplicationId(), "hostedApplicationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationId", request.getHostedApplicationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplications") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationStorageConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationStorageConverter.java index ec5e91d309e..83085e6db7d 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationStorageConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationStorageConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getHostedApplicationStorageId(), "hostedApplicationStorageId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "hostedApplicationStorageId", request.getHostedApplicationStorageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplicationStorages") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedDeploymentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedDeploymentConverter.java index a34ca45279f..44466c85e51 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedDeploymentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedDeploymentConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getHostedDeploymentId(), "hostedDeploymentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedDeploymentId", request.getHostedDeploymentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedDeployments") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetImportedModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetImportedModelConverter.java index fd1e30f13d0..f8faa272c7f 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetImportedModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetImportedModelConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getImportedModelId(), "importedModelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("importedModelId", request.getImportedModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("importedModels") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetModelConverter.java index d9464405ce8..a747d3c64b8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetModelConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getModelId(), "modelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("modelId", request.getModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("models") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetSemanticStoreConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetSemanticStoreConverter.java index 580d4772079..59cbb63bf89 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetSemanticStoreConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetSemanticStoreConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("semanticStoreId", request.getSemanticStoreId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("semanticStores") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorConverter.java index 6a405412bb6..ecc89fdcb92 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVectorStoreConnectorId(), "vectorStoreConnectorId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vectorStoreConnectorId", request.getVectorStoreConnectorId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectors") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorFileSyncConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorFileSyncConverter.java index a238024c74b..cbf438207b3 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorFileSyncConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorFileSyncConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getVectorStoreConnectorFileSyncId(), "vectorStoreConnectorFileSyncId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "vectorStoreConnectorFileSyncId", request.getVectorStoreConnectorFileSyncId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectorFileSyncs") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorStatsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorStatsConverter.java index 320993e518c..47e172288ee 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorStatsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetVectorStoreConnectorStatsConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVectorStoreConnectorId(), "vectorStoreConnectorId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vectorStoreConnectorId", request.getVectorStoreConnectorId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectors") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetWorkRequestConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetWorkRequestConverter.java index c84861b3ebb..8f0cfe2180b 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetWorkRequestConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("workRequests") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListApiKeysConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListApiKeysConverter.java index 0e1e2fb05f1..056b53eaeb6 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListApiKeysConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListApiKeysConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("apikeys"); + newBaseTarget.path("/20231130").path("apikeys"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListDedicatedAiClustersConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListDedicatedAiClustersConverter.java index 07a6fbf094e..6da6c3e2c92 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListDedicatedAiClustersConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListDedicatedAiClustersConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("dedicatedAiClusters"); + newBaseTarget.path("/20231130").path("dedicatedAiClusters"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListEndpointsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListEndpointsConverter.java index 922bbc62604..280ce246d6a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListEndpointsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListEndpointsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("endpoints"); + newBaseTarget.path("/20231130").path("endpoints"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiPrivateEndpointsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiPrivateEndpointsConverter.java index 471a50a8866..181b423397b 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiPrivateEndpointsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiPrivateEndpointsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("generativeAiPrivateEndpoints"); + newBaseTarget.path("/20231130").path("generativeAiPrivateEndpoints"); if (request.getId() != null) { target = diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiProjectsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiProjectsConverter.java index e0fa302b7d6..db855ae368f 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiProjectsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListGenerativeAiProjectsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("generativeAiProjects"); + newBaseTarget.path("/20231130").path("generativeAiProjects"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationStoragesConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationStoragesConverter.java index 3d0a6b2de37..94c667b52d5 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationStoragesConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationStoragesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("hostedApplicationStorages"); + newBaseTarget.path("/20231130").path("hostedApplicationStorages"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsConverter.java index e2133e94fce..9089c729889 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("hostedApplications"); + newBaseTarget.path("/20231130").path("hostedApplications"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedDeploymentsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedDeploymentsConverter.java index 61125a05ecc..0afc3ea2de5 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedDeploymentsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedDeploymentsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("hostedDeployments"); + newBaseTarget.path("/20231130").path("hostedDeployments"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListImportedModelsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListImportedModelsConverter.java index de95013a7ac..7d8cf5b3a82 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListImportedModelsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListImportedModelsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("importedModels"); + newBaseTarget.path("/20231130").path("importedModels"); if (request.getVendor() != null) { target = diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelsConverter.java index 35afb8f290e..16930821213 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("models"); + newBaseTarget.path("/20231130").path("models"); if (request.getVendor() != null) { target = diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListSemanticStoresConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListSemanticStoresConverter.java index 25ab5c0017f..27ee680ce36 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListSemanticStoresConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListSemanticStoresConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.generativeai.requests.ListSemanticStoresRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("semanticStores"); + newBaseTarget.path("/20231130").path("semanticStores"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncIngestionLogsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncIngestionLogsConverter.java index d634d5bda0e..4bccf9b4e03 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncIngestionLogsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncIngestionLogsConverter.java @@ -40,8 +40,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getVectorStoreConnectorFileSyncId(), "vectorStoreConnectorFileSyncId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "vectorStoreConnectorFileSyncId", request.getVectorStoreConnectorFileSyncId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectorFileSyncs") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncsConverter.java index 9a3c8c794cf..58e0e57f250 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorFileSyncsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("vectorStoreConnectorFileSyncs"); + newBaseTarget.path("/20231130").path("vectorStoreConnectorFileSyncs"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorIngestionLogsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorIngestionLogsConverter.java index e1077edaa4e..0d4a1b68662 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorIngestionLogsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorIngestionLogsConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVectorStoreConnectorId(), "vectorStoreConnectorId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vectorStoreConnectorId", request.getVectorStoreConnectorId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectors") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorsConverter.java index b03989522ad..b8410c6b343 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListVectorStoreConnectorsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("vectorStoreConnectors"); + newBaseTarget.path("/20231130").path("vectorStoreConnectors"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestErrorsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestErrorsConverter.java index b696316e585..4bc360bbc10 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestErrorsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("workRequests") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestLogsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestLogsConverter.java index 9322db7c3d0..72052ab8c31 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestLogsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("workRequests") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestsConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestsConverter.java index 45e54105094..ed793c83e36 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestsConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListWorkRequestsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("workRequests"); + newBaseTarget.path("/20231130").path("workRequests"); target = target.queryParam( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/RenewApiKeyConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/RenewApiKeyConverter.java index d36799a80c1..0c6402dc184 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/RenewApiKeyConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/RenewApiKeyConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getApiKeyId(), "apiKeyId must not be blank"); Validate.notNull(request.getRenewApiKeyDetails(), "renewApiKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("apiKeyId", request.getApiKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("apikeys") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/SetApiKeyStateConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/SetApiKeyStateConverter.java index 4676a37fe19..48bd9ed410a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/SetApiKeyStateConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/SetApiKeyStateConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getApiKeyId(), "apiKeyId must not be blank"); Validate.notNull(request.getSetApiKeyStateDetails(), "setApiKeyStateDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("apiKeyId", request.getApiKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("apikeys") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateApiKeyConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateApiKeyConverter.java index 7e621f7e073..984b0d39ea0 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateApiKeyConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateApiKeyConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getApiKeyId(), "apiKeyId must not be blank"); Validate.notNull(request.getUpdateApiKeyDetails(), "updateApiKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("apiKeyId", request.getApiKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("apikeys") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateDedicatedAiClusterConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateDedicatedAiClusterConverter.java index cb7907d63fd..77eeb9466ab 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateDedicatedAiClusterConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateDedicatedAiClusterConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateDedicatedAiClusterDetails(), "updateDedicatedAiClusterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedAiClusterId", request.getDedicatedAiClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("dedicatedAiClusters") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateEndpointConverter.java index 6f0b0389f90..e18dce585b4 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateEndpointConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getEndpointId(), "endpointId must not be blank"); Validate.notNull(request.getUpdateEndpointDetails(), "updateEndpointDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("endpointId", request.getEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("endpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiPrivateEndpointConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiPrivateEndpointConverter.java index 20976490390..6e47511daab 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiPrivateEndpointConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiPrivateEndpointConverter.java @@ -38,8 +38,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateGenerativeAiPrivateEndpointDetails(), "updateGenerativeAiPrivateEndpointDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "generativeAiPrivateEndpointId", request.getGenerativeAiPrivateEndpointId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiPrivateEndpoints") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiProjectConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiProjectConverter.java index 0e12e425d4e..ac44ffb797f 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiProjectConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateGenerativeAiProjectConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateGenerativeAiProjectDetails(), "updateGenerativeAiProjectDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("generativeAiProjectId", request.getGenerativeAiProjectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("generativeAiProjects") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationConverter.java index 3513fb00256..19c1c92b04a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateHostedApplicationDetails(), "updateHostedApplicationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationId", request.getHostedApplicationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedApplications") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedDeploymentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedDeploymentConverter.java index 8028683ac3b..418ae29106a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedDeploymentConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedDeploymentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateHostedDeploymentDetails(), "updateHostedDeploymentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedDeploymentId", request.getHostedDeploymentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("hostedDeployments") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateImportedModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateImportedModelConverter.java index 5ab2fcf3bc2..f8ee559a07d 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateImportedModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateImportedModelConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateImportedModelDetails(), "updateImportedModelDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("importedModelId", request.getImportedModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("importedModels") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateModelConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateModelConverter.java index eb049a7dd31..705180a9c64 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateModelConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateModelConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getModelId(), "modelId must not be blank"); Validate.notNull(request.getUpdateModelDetails(), "updateModelDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("modelId", request.getModelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("models") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateSemanticStoreConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateSemanticStoreConverter.java index 7c83d3904fa..56421852335 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateSemanticStoreConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateSemanticStoreConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateSemanticStoreDetails(), "updateSemanticStoreDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("semanticStoreId", request.getSemanticStoreId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("semanticStores") .path( diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateVectorStoreConnectorConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateVectorStoreConnectorConverter.java index 35667f38fe6..56aedfd619d 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateVectorStoreConnectorConverter.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateVectorStoreConnectorConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateVectorStoreConnectorDetails(), "updateVectorStoreConnectorDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vectorStoreConnectorId", request.getVectorStoreConnectorId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20231130") .path("vectorStoreConnectors") .path( 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 b405b917cea..b3d0dc77d63 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 @@ -697,6 +697,12 @@ public enum UnitShape { LargeGeneric2("LARGE_GENERIC_2"), LargeGenericV2("LARGE_GENERIC_V2"), LargeGenericV3("LARGE_GENERIC_V3"), + LargeGenericV4("LARGE_GENERIC_V4"), + LargeGenericV5("LARGE_GENERIC_V5"), + CohereH100X1("COHERE_H100_X1"), + CohereA10080GX1("COHERE_A100_80G_X1"), + CohereA10040GX1("COHERE_A100_40G_X1"), + CohereA10X1("COHERE_A10_X1"), LargeCohereV3("LARGE_COHERE_V3"), RerankCohere("RERANK_COHERE"), SmallGenericV1("SMALL_GENERIC_V1"), diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ImportedModelCapability.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ImportedModelCapability.java index baadfeda04f..71d58b11053 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ImportedModelCapability.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ImportedModelCapability.java @@ -14,6 +14,14 @@ public enum ImportedModelCapability { Embedding("EMBEDDING"), Rerank("RERANK"), TextToImage("TEXT_TO_IMAGE"), + ImageTextToImage("IMAGE_TEXT_TO_IMAGE"), + ImageTextToVideo("IMAGE_TEXT_TO_VIDEO"), + ImageToImage("IMAGE_TO_IMAGE"), + Realtime("REALTIME"), + AudioToAudio("AUDIO_TO_AUDIO"), + AudioToText("AUDIO_TO_TEXT"), + TextToAudio("TEXT_TO_AUDIO"), + TextToVideo("TEXT_TO_VIDEO"), /** * 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/ModelCapability.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelCapability.java index 4915375da12..a4e241afd95 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelCapability.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelCapability.java @@ -16,6 +16,15 @@ public enum ModelCapability { Chat("CHAT"), TextRerank("TEXT_RERANK"), TextToImage("TEXT_TO_IMAGE"), + ImageTextToImage("IMAGE_TEXT_TO_IMAGE"), + ImageTextToText("IMAGE_TEXT_TO_TEXT"), + ImageTextToVideo("IMAGE_TEXT_TO_VIDEO"), + ImageToImage("IMAGE_TO_IMAGE"), + Realtime("REALTIME"), + AudioToAudio("AUDIO_TO_AUDIO"), + AudioToText("AUDIO_TO_TEXT"), + TextToAudio("TEXT_TO_AUDIO"), + TextToVideo("TEXT_TO_VIDEO"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 9249395ab4f..6be2392dd97 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 44b752eee4f..e9f107b721a 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index ff5573e01c4..4a9cbac2672 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java index 715235e351a..41a4fca8385 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java @@ -488,7 +488,7 @@ public java.util.concurrent.Future cancelEnrichment "CancelEnrichmentJob", "CancelEnrichmentJob", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); final java.util.function.Function transformer = CancelEnrichmentJobConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java index 8ee82d94205..e2677a48d8b 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java @@ -501,7 +501,7 @@ public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobReques "CancelEnrichmentJob", "CancelEnrichmentJob", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); java.util.function.Function transformer = CancelEnrichmentJobConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java index ea2bda68118..69ff566a6f8 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java @@ -488,7 +488,7 @@ public java.util.concurrent.Future generateEnrich "GenerateEnrichmentJob", "GenerateEnrichmentJob", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); final java.util.function.Function transformer = GenerateEnrichmentJobConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java index 2eddf7e6685..82cc464d347 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java @@ -502,7 +502,7 @@ public GenerateEnrichmentJobResponse generateEnrichmentJob( "GenerateEnrichmentJob", "GenerateEnrichmentJob", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); java.util.function.Function transformer = GenerateEnrichmentJobConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java index d69828a628f..a28b2aa1957 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java @@ -488,7 +488,7 @@ public java.util.concurrent.Future generateSqlFromNl( "GenerateSqlFromNlJob", "GenerateSqlFromNl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); final java.util.function.Function transformer = GenerateSqlFromNlConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java index 5e63cb5c2c6..dfa2aec687d 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java @@ -501,7 +501,7 @@ public GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest requ "GenerateSqlFromNlJob", "GenerateSqlFromNl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); java.util.function.Function transformer = GenerateSqlFromNlConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java index c7fa97f7c1b..c0888df964d 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java @@ -484,7 +484,10 @@ public java.util.concurrent.Future getEnrichmentJob( GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GetEnrichmentJob", "GetEnrichmentJob", ib.getRequestUri().toString(), ""); + "GetEnrichmentJob", + "GetEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); final java.util.function.Function transformer = GetEnrichmentJobConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java index 18ef027d9e1..0b6e7584af4 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java @@ -569,7 +569,10 @@ public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GetEnrichmentJob", "GetEnrichmentJob", ib.getRequestUri().toString(), ""); + "GetEnrichmentJob", + "GetEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); java.util.function.Function transformer = GetEnrichmentJobConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java index a0933b3992e..7aff9b859f3 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java @@ -487,7 +487,7 @@ public java.util.concurrent.Future listEnrichmentJob "ListEnrichmentJobs", "ListEnrichmentJobs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); final java.util.function.Function transformer = ListEnrichmentJobsConverter.fromResponse( diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java index 740b7e9a8b7..b5333498fa3 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java @@ -502,7 +502,7 @@ public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest r "ListEnrichmentJobs", "ListEnrichmentJobs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); java.util.function.Function transformer = ListEnrichmentJobsConverter.fromResponse( diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 4dc46bfc0ef..ac182cec338 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 f0fd93151c7..11270086a8f 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 @@ -16,6 +16,8 @@ * * To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm). * + **Important:** The IP addresses behind each DNS endpoint might change over time. Always use the DNS hostname listed under the following **API Endpoints** section and avoid using hard-coded fixed IP addresses. + * * 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: 20231130") @@ -67,7 +69,23 @@ public interface GenerativeAiInference extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Applies guardrails to the input text, including content moderation, PII detection, and prompt injection protection. + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + + /** + * Applies guardrails to the input content, including content moderation, PII detection, and prompt injection protection. + * Case 1: Use `input` when the customer wants simple single-text moderation. Existing + * customers can continue to use this field without changing their current integration. + * Case 2: Use `multimodalInput` when the customer wants moderation over text, image, or a + * combination of both. + * `multimodalInput` supports a single text item, an array of text items only, an array of + * images only, or a mixed ordered combination of text and image items. + * Clients may provide `input`, `multimodalInput`, or both. At least one of these fields must + * be provided. If both `input` and `multimodalInput` are provided, the service will process + * `input` and discard `multimodalInput`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -120,6 +138,19 @@ public interface GenerativeAiInference extends AutoCloseable { */ GenerateTextResponse generateText(GenerateTextRequest request); + /** + * List the available guardrail system versions. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListGuardrailVersions API. + */ + ListGuardrailVersionsResponse listGuardrailVersions(ListGuardrailVersionsRequest request); + /** * Reranks the text responses based on the input documents and a prompt. *

@@ -147,4 +178,13 @@ public interface GenerativeAiInference extends AutoCloseable { * Example: Click here to see how to use SummarizeText API. */ SummarizeTextResponse summarizeText(SummarizeTextRequest request); + + /** + * Gets the pre-configured paginators available for list operations in this service which may return multiple + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + GenerativeAiInferencePaginators getPaginators(); } 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 d09b8aa3078..b71c6553455 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 @@ -16,6 +16,8 @@ * * To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm). * + **Important:** The IP addresses behind each DNS endpoint might change over time. Always use the DNS hostname listed under the following **API Endpoints** section and avoid using hard-coded fixed IP addresses. + * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") public interface GenerativeAiInferenceAsync extends AutoCloseable { @@ -66,7 +68,23 @@ public interface GenerativeAiInferenceAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Applies guardrails to the input text, including content moderation, PII detection, and prompt injection protection. + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + + /** + * Applies guardrails to the input content, including content moderation, PII detection, and prompt injection protection. + * Case 1: Use `input` when the customer wants simple single-text moderation. Existing + * customers can continue to use this field without changing their current integration. + * Case 2: Use `multimodalInput` when the customer wants moderation over text, image, or a + * combination of both. + * `multimodalInput` supports a single text item, an array of text items only, an array of + * images only, or a mixed ordered combination of text and image items. + * Clients may provide `input`, `multimodalInput`, or both. At least one of these fields must + * be provided. If both `input` and `multimodalInput` are provided, the service will process + * `input` and discard `multimodalInput`. * * * @param request The request object containing the details to send @@ -129,6 +147,23 @@ java.util.concurrent.Future generateText( com.oracle.bmc.responses.AsyncHandler handler); + /** + * List the available guardrail system versions. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listGuardrailVersions( + ListGuardrailVersionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse> + handler); + /** * Reranks the text responses based on the input documents and a prompt. *

diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsyncClient.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsyncClient.java index 474b05391f4..39300a06514 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsyncClient.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsyncClient.java @@ -33,7 +33,8 @@ public class GenerativeAiInferenceAsyncClient implements GenerativeAiInferenceAs .serviceName(GenerativeAiInferenceClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + "https://inference.generativeai.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("inference.generativeai") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +54,7 @@ public class GenerativeAiInferenceAsyncClient implements GenerativeAiInferenceAs private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +307,9 @@ public GenerativeAiInferenceAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -466,6 +471,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); @@ -666,6 +679,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listGuardrailVersions( + ListGuardrailVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse> + handler) { + LOG.trace("Called async listGuardrailVersions"); + final ListGuardrailVersionsRequest interceptedRequest = + ListGuardrailVersionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListGuardrailVersionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAiInference", + "ListGuardrailVersions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-inference/20231130/GuardrailVersionCollection/ListGuardrailVersions"); + final java.util.function.Function + transformer = + ListGuardrailVersionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse>, + 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< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future rerankText( RerankTextRequest request, diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceClient.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceClient.java index 56dfd47e9eb..abacbec979f 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceClient.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceClient.java @@ -21,7 +21,8 @@ public class GenerativeAiInferenceClient implements GenerativeAiInference { .serviceName(GenerativeAiInferenceClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + "https://inference.generativeai.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("inference.generativeai") .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; @@ -33,6 +34,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { return client; } + private final GenerativeAiInferencePaginators paginators; private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; @@ -49,6 +51,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -303,6 +306,8 @@ protected GenerativeAiInferenceClient( this.refreshClient(); + this.paginators = new GenerativeAiInferencePaginators(this); + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { com.oracle.bmc.auth.RegionProvider provider = (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; @@ -318,6 +323,9 @@ protected GenerativeAiInferenceClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -478,6 +486,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); @@ -643,6 +659,44 @@ public GenerateTextResponse generateText(GenerateTextRequest request) { }); } + @Override + public ListGuardrailVersionsResponse listGuardrailVersions( + ListGuardrailVersionsRequest request) { + LOG.trace("Called listGuardrailVersions"); + final ListGuardrailVersionsRequest interceptedRequest = + ListGuardrailVersionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListGuardrailVersionsConverter.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( + "GenerativeAiInference", + "ListGuardrailVersions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-inference/20231130/GuardrailVersionCollection/ListGuardrailVersions"); + java.util.function.Function + transformer = + ListGuardrailVersionsConverter.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 RerankTextResponse rerankText(RerankTextRequest request) { LOG.trace("Called rerankText"); @@ -721,4 +775,9 @@ public SummarizeTextResponse summarizeText(SummarizeTextRequest request) { }); }); } + + @Override + public GenerativeAiInferencePaginators getPaginators() { + return paginators; + } } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferencePaginators.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferencePaginators.java new file mode 100644 index 00000000000..4b2fe39c3ed --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferencePaginators.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +import com.oracle.bmc.generativeaiinference.requests.*; +import com.oracle.bmc.generativeaiinference.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of GenerativeAiInference 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: 20231130") +public class GenerativeAiInferencePaginators { + private final GenerativeAiInference client; + + public GenerativeAiInferencePaginators(GenerativeAiInference client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listGuardrailVersions 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 listGuardrailVersionsResponseIterator( + final ListGuardrailVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListGuardrailVersionsRequest.Builder, ListGuardrailVersionsRequest, + ListGuardrailVersionsResponse>( + new java.util.function.Supplier() { + @Override + public ListGuardrailVersionsRequest.Builder get() { + return ListGuardrailVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListGuardrailVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGuardrailVersionsRequest.Builder>, + ListGuardrailVersionsRequest>() { + @Override + public ListGuardrailVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGuardrailVersionsRequest.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< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse>() { + @Override + public ListGuardrailVersionsResponse apply( + ListGuardrailVersionsRequest request) { + return client.listGuardrailVersions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.generativeaiinference.model.GuardrailVersionSummary} objects + * contained in responses from the listGuardrailVersions 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.generativeaiinference.model.GuardrailVersionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listGuardrailVersionsRecordIterator(final ListGuardrailVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListGuardrailVersionsRequest.Builder, ListGuardrailVersionsRequest, + ListGuardrailVersionsResponse, + com.oracle.bmc.generativeaiinference.model.GuardrailVersionSummary>( + new java.util.function.Supplier() { + @Override + public ListGuardrailVersionsRequest.Builder get() { + return ListGuardrailVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListGuardrailVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGuardrailVersionsRequest.Builder>, + ListGuardrailVersionsRequest>() { + @Override + public ListGuardrailVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGuardrailVersionsRequest.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< + ListGuardrailVersionsRequest, ListGuardrailVersionsResponse>() { + @Override + public ListGuardrailVersionsResponse apply( + ListGuardrailVersionsRequest request) { + return client.listGuardrailVersions(request); + } + }, + new java.util.function.Function< + ListGuardrailVersionsResponse, + java.util.List< + com.oracle.bmc.generativeaiinference.model + .GuardrailVersionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.generativeaiinference.model + .GuardrailVersionSummary> + apply(ListGuardrailVersionsResponse response) { + return response.getGuardrailVersionCollection().getItems(); + } + }); + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ApplyGuardrailsConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ApplyGuardrailsConverter.java index f04de5cfd91..ee0b3e94b90 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ApplyGuardrailsConverter.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ApplyGuardrailsConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getApplyGuardrailsDetails(), "applyGuardrailsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("actions").path("applyGuardrails"); + newBaseTarget.path("/20231130").path("actions").path("applyGuardrails"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ChatConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ChatConverter.java index 65c348c8338..61a3a1ad750 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ChatConverter.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ChatConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getChatDetails(), "chatDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("actions").path("chat"); + newBaseTarget.path("/20231130").path("actions").path("chat"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/EmbedTextConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/EmbedTextConverter.java index c825d0d1275..6ce37733229 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/EmbedTextConverter.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/EmbedTextConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getEmbedTextDetails(), "embedTextDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("actions").path("embedText"); + newBaseTarget.path("/20231130").path("actions").path("embedText"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/GenerateTextConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/GenerateTextConverter.java index 051b87e5fce..e8bbd5ba1b0 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/GenerateTextConverter.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/GenerateTextConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getGenerateTextDetails(), "generateTextDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("actions").path("generateText"); + newBaseTarget.path("/20231130").path("actions").path("generateText"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ListGuardrailVersionsConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ListGuardrailVersionsConverter.java new file mode 100644 index 00000000000..a2354bd5a14 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/ListGuardrailVersionsConverter.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeaiinference.model.*; +import com.oracle.bmc.generativeaiinference.requests.*; +import com.oracle.bmc.generativeaiinference.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListGuardrailVersionsConverter { + 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(ListGuardrailVersionsConverter.class); + + public static com.oracle.bmc.generativeaiinference.requests.ListGuardrailVersionsRequest + interceptRequest( + com.oracle.bmc.generativeaiinference.requests.ListGuardrailVersionsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeaiinference.requests.ListGuardrailVersionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getOpcCompartmentId(), "opcCompartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget.path("/20231130").path("guardrailVersions"); + + if (request.getState() != null) { + target = + target.queryParam( + "state", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + ib.header("opc-compartment-id", request.getOpcCompartmentId()); + + 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.generativeaiinference.responses.ListGuardrailVersionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaiinference.responses.ListGuardrailVersionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaiinference.responses + .ListGuardrailVersionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaiinference.responses + .ListGuardrailVersionsResponse>() { + @Override + public com.oracle.bmc.generativeaiinference.responses + .ListGuardrailVersionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeaiinference.responses.ListGuardrailVersionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeaiinference.model + .GuardrailVersionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeaiinference.model + .GuardrailVersionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeaiinference.model + .GuardrailVersionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeaiinference.model + .GuardrailVersionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeaiinference.responses + .ListGuardrailVersionsResponse.Builder + builder = + com.oracle.bmc.generativeaiinference.responses + .ListGuardrailVersionsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.guardrailVersionCollection(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.generativeaiinference.responses + .ListGuardrailVersionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/RerankTextConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/RerankTextConverter.java index 90d5e342a13..c6d9b097f1e 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/RerankTextConverter.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/RerankTextConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getRerankTextDetails(), "rerankTextDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("actions").path("rerankText"); + newBaseTarget.path("/20231130").path("actions").path("rerankText"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/SummarizeTextConverter.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/SummarizeTextConverter.java index 74aa8480f84..322fcb64396 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/SummarizeTextConverter.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/internal/http/SummarizeTextConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getSummarizeTextDetails(), "summarizeTextDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20231130").path("actions").path("summarizeText"); + newBaseTarget.path("/20231130").path("actions").path("summarizeText"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsDetails.java index 3018e2a696f..cfb65ab9e49 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsDetails.java @@ -5,7 +5,16 @@ package com.oracle.bmc.generativeaiinference.model; /** - * Details for applying guardrails to the input text. + * Details for applying guardrails to the input content. + * Case 1: Use {@code input} for simple single-text moderation. Existing customers can continue to + * use this field for the current text-only flow. + * Case 2: Use {@code multimodalInput} for moderation over text, image, or a combination of both. + * {@code multimodalInput} supports a single text item, an array of text items only, an array of + * images only, or a mixed ordered combination of text and image items. + * Clients may provide {@code input}, {@code multimodalInput}, or both. At least one of these fields must + * be provided. If both {@code input} and {@code multimodalInput} are provided, the service will process + * {@code input} and discard {@code multimodalInput}. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -22,12 +31,24 @@ public final class ApplyGuardrailsDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"input", "guardrailConfigs", "compartmentId"}) + @java.beans.ConstructorProperties({ + "input", + "multimodalInput", + "guardrailConfigs", + "guardrailVersionConfig", + "compartmentId" + }) public ApplyGuardrailsDetails( - GuardrailsInput input, GuardrailConfigs guardrailConfigs, String compartmentId) { + GuardrailsInput input, + java.util.List multimodalInput, + GuardrailConfigs guardrailConfigs, + GuardrailVersionConfig guardrailVersionConfig, + String compartmentId) { super(); this.input = input; + this.multimodalInput = multimodalInput; this.guardrailConfigs = guardrailConfigs; + this.guardrailVersionConfig = guardrailVersionConfig; this.compartmentId = compartmentId; } @@ -42,6 +63,22 @@ public Builder input(GuardrailsInput input) { this.__explicitlySet__.add("input"); return this; } + /** + * An ordered list of text and image inputs for multimodal guardrail evaluation. This field supports a single text item, an array of text items only, an array of images only, or a mixed ordered combination of text and image items. If both {@code input} and {@code multimodalInput} are provided, this field is ignored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multimodalInput") + private java.util.List multimodalInput; + + /** + * An ordered list of text and image inputs for multimodal guardrail evaluation. This field supports a single text item, an array of text items only, an array of images only, or a mixed ordered combination of text and image items. If both {@code input} and {@code multimodalInput} are provided, this field is ignored. + * @param multimodalInput the value to set + * @return this builder + **/ + public Builder multimodalInput(java.util.List multimodalInput) { + this.multimodalInput = multimodalInput; + this.__explicitlySet__.add("multimodalInput"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("guardrailConfigs") private GuardrailConfigs guardrailConfigs; @@ -51,6 +88,15 @@ public Builder guardrailConfigs(GuardrailConfigs guardrailConfigs) { this.__explicitlySet__.add("guardrailConfigs"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersionConfig") + private GuardrailVersionConfig guardrailVersionConfig; + + public Builder guardrailVersionConfig(GuardrailVersionConfig guardrailVersionConfig) { + this.guardrailVersionConfig = guardrailVersionConfig; + this.__explicitlySet__.add("guardrailVersionConfig"); + return this; + } /** * The OCID of the compartment to apply guardrails. **/ @@ -74,7 +120,11 @@ public Builder compartmentId(String compartmentId) { public ApplyGuardrailsDetails build() { ApplyGuardrailsDetails model = new ApplyGuardrailsDetails( - this.input, this.guardrailConfigs, this.compartmentId); + this.input, + this.multimodalInput, + this.guardrailConfigs, + this.guardrailVersionConfig, + this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -86,9 +136,15 @@ public Builder copy(ApplyGuardrailsDetails model) { if (model.wasPropertyExplicitlySet("input")) { this.input(model.getInput()); } + if (model.wasPropertyExplicitlySet("multimodalInput")) { + this.multimodalInput(model.getMultimodalInput()); + } if (model.wasPropertyExplicitlySet("guardrailConfigs")) { this.guardrailConfigs(model.getGuardrailConfigs()); } + if (model.wasPropertyExplicitlySet("guardrailVersionConfig")) { + this.guardrailVersionConfig(model.getGuardrailVersionConfig()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -114,6 +170,20 @@ public GuardrailsInput getInput() { return input; } + /** + * An ordered list of text and image inputs for multimodal guardrail evaluation. This field supports a single text item, an array of text items only, an array of images only, or a mixed ordered combination of text and image items. If both {@code input} and {@code multimodalInput} are provided, this field is ignored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multimodalInput") + private final java.util.List multimodalInput; + + /** + * An ordered list of text and image inputs for multimodal guardrail evaluation. This field supports a single text item, an array of text items only, an array of images only, or a mixed ordered combination of text and image items. If both {@code input} and {@code multimodalInput} are provided, this field is ignored. + * @return the value + **/ + public java.util.List getMultimodalInput() { + return multimodalInput; + } + @com.fasterxml.jackson.annotation.JsonProperty("guardrailConfigs") private final GuardrailConfigs guardrailConfigs; @@ -121,6 +191,13 @@ public GuardrailConfigs getGuardrailConfigs() { return guardrailConfigs; } + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersionConfig") + private final GuardrailVersionConfig guardrailVersionConfig; + + public GuardrailVersionConfig getGuardrailVersionConfig() { + return guardrailVersionConfig; + } + /** * The OCID of the compartment to apply guardrails. **/ @@ -150,7 +227,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("ApplyGuardrailsDetails("); sb.append("super=").append(super.toString()); sb.append("input=").append(String.valueOf(this.input)); + sb.append(", multimodalInput=").append(String.valueOf(this.multimodalInput)); sb.append(", guardrailConfigs=").append(String.valueOf(this.guardrailConfigs)); + sb.append(", guardrailVersionConfig=").append(String.valueOf(this.guardrailVersionConfig)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); return sb.toString(); @@ -167,7 +246,10 @@ public boolean equals(Object o) { ApplyGuardrailsDetails other = (ApplyGuardrailsDetails) o; return java.util.Objects.equals(this.input, other.input) + && java.util.Objects.equals(this.multimodalInput, other.multimodalInput) && java.util.Objects.equals(this.guardrailConfigs, other.guardrailConfigs) + && java.util.Objects.equals( + this.guardrailVersionConfig, other.guardrailVersionConfig) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } @@ -177,9 +259,17 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.input == null ? 43 : this.input.hashCode()); + result = + (result * PRIME) + + (this.multimodalInput == null ? 43 : this.multimodalInput.hashCode()); result = (result * PRIME) + (this.guardrailConfigs == null ? 43 : this.guardrailConfigs.hashCode()); + result = + (result * PRIME) + + (this.guardrailVersionConfig == null + ? 43 + : this.guardrailVersionConfig.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsResult.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsResult.java index 19e5f532bb0..210a5c340a2 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsResult.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ApplyGuardrailsResult.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * The result of applying guardrails to the input text. + * The result of applying guardrails to the input 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 @@ -22,10 +22,12 @@ public final class ApplyGuardrailsResult extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"results"}) - public ApplyGuardrailsResult(GuardrailsResults results) { + @java.beans.ConstructorProperties({"results", "guardrailVersion"}) + public ApplyGuardrailsResult( + GuardrailsResults results, GuardrailVersionResponse guardrailVersion) { super(); this.results = results; + this.guardrailVersion = guardrailVersion; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -40,11 +42,21 @@ public Builder results(GuardrailsResults results) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private GuardrailVersionResponse guardrailVersion; + + public Builder guardrailVersion(GuardrailVersionResponse guardrailVersion) { + this.guardrailVersion = guardrailVersion; + this.__explicitlySet__.add("guardrailVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ApplyGuardrailsResult build() { - ApplyGuardrailsResult model = new ApplyGuardrailsResult(this.results); + ApplyGuardrailsResult model = + new ApplyGuardrailsResult(this.results, this.guardrailVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -56,6 +68,9 @@ public Builder copy(ApplyGuardrailsResult model) { if (model.wasPropertyExplicitlySet("results")) { this.results(model.getResults()); } + if (model.wasPropertyExplicitlySet("guardrailVersion")) { + this.guardrailVersion(model.getGuardrailVersion()); + } return this; } } @@ -78,6 +93,13 @@ public GuardrailsResults getResults() { return results; } + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private final GuardrailVersionResponse guardrailVersion; + + public GuardrailVersionResponse getGuardrailVersion() { + return guardrailVersion; + } + @Override public String toString() { return this.toString(true); @@ -93,6 +115,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ApplyGuardrailsResult("); sb.append("super=").append(super.toString()); sb.append("results=").append(String.valueOf(this.results)); + sb.append(", guardrailVersion=").append(String.valueOf(this.guardrailVersion)); sb.append(")"); return sb.toString(); } @@ -107,7 +130,9 @@ public boolean equals(Object o) { } ApplyGuardrailsResult other = (ApplyGuardrailsResult) o; - return java.util.Objects.equals(this.results, other.results) && super.equals(other); + return java.util.Objects.equals(this.results, other.results) + && java.util.Objects.equals(this.guardrailVersion, other.guardrailVersion) + && super.equals(other); } @Override @@ -115,6 +140,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.results == null ? 43 : this.results.hashCode()); + result = + (result * PRIME) + + (this.guardrailVersion == null ? 43 : this.guardrailVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CategoryScore.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CategoryScore.java index f414ec18b88..572578ddf7c 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CategoryScore.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CategoryScore.java @@ -19,11 +19,13 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class CategoryScore extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "score"}) - public CategoryScore(String name, Double score) { + @java.beans.ConstructorProperties({"name", "score", "flaggedModalities"}) + public CategoryScore( + String name, Double score, java.util.List flaggedModalities) { super(); this.name = name; this.score = score; + this.flaggedModalities = flaggedModalities; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -60,12 +62,32 @@ public Builder score(Double score) { this.__explicitlySet__.add("score"); return this; } + /** + * The input modalities flagged by this category score. Present only when the request is + * processed using a non-empty {@code multimodalInput}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("flaggedModalities") + private java.util.List flaggedModalities; + + /** + * The input modalities flagged by this category score. Present only when the request is + * processed using a non-empty {@code multimodalInput}. + * + * @param flaggedModalities the value to set + * @return this builder + **/ + public Builder flaggedModalities(java.util.List flaggedModalities) { + this.flaggedModalities = flaggedModalities; + this.__explicitlySet__.add("flaggedModalities"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CategoryScore build() { - CategoryScore model = new CategoryScore(this.name, this.score); + CategoryScore model = new CategoryScore(this.name, this.score, this.flaggedModalities); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,6 +102,9 @@ public Builder copy(CategoryScore model) { if (model.wasPropertyExplicitlySet("score")) { this.score(model.getScore()); } + if (model.wasPropertyExplicitlySet("flaggedModalities")) { + this.flaggedModalities(model.getFlaggedModalities()); + } return this; } } @@ -123,6 +148,71 @@ public Double getScore() { return score; } + /** + **/ + public enum FlaggedModalities { + Text("TEXT"), + Image("IMAGE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FlaggedModalities.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FlaggedModalities v : FlaggedModalities.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FlaggedModalities(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FlaggedModalities create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FlaggedModalities', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The input modalities flagged by this category score. Present only when the request is + * processed using a non-empty {@code multimodalInput}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("flaggedModalities") + private final java.util.List flaggedModalities; + + /** + * The input modalities flagged by this category score. Present only when the request is + * processed using a non-empty {@code multimodalInput}. + * + * @return the value + **/ + public java.util.List getFlaggedModalities() { + return flaggedModalities; + } + @Override public String toString() { return this.toString(true); @@ -139,6 +229,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("name=").append(String.valueOf(this.name)); sb.append(", score=").append(String.valueOf(this.score)); + sb.append(", flaggedModalities=").append(String.valueOf(this.flaggedModalities)); sb.append(")"); return sb.toString(); } @@ -155,6 +246,7 @@ public boolean equals(Object o) { CategoryScore other = (CategoryScore) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.score, other.score) + && java.util.Objects.equals(this.flaggedModalities, other.flaggedModalities) && super.equals(other); } @@ -164,6 +256,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.score == null ? 43 : this.score.hashCode()); + result = + (result * PRIME) + + (this.flaggedModalities == null ? 43 : this.flaggedModalities.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CitationOptionsV2.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CitationOptionsV2.java index 0a6ca7202a2..728375d7181 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CitationOptionsV2.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CitationOptionsV2.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * Options for controlling citation generation in RAG flows. + * Options for controlling citation 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 @@ -30,14 +30,14 @@ public CitationOptionsV2(Mode mode) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Dictates the approach taken to generating citations as part of the RAG flow. Defaults to "accurate". - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. Note: {@code command-r7b-12-2024} and {@code command-a-03-2025} only support "FAST" and "OFF". + * Dictates the approach taken to generating citations. - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. * **/ @com.fasterxml.jackson.annotation.JsonProperty("mode") private Mode mode; /** - * Dictates the approach taken to generating citations as part of the RAG flow. Defaults to "accurate". - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. Note: {@code command-r7b-12-2024} and {@code command-a-03-2025} only support "FAST" and "OFF". + * Dictates the approach taken to generating citations. - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. * * @param mode the value to set * @return this builder @@ -80,7 +80,7 @@ public Builder toBuilder() { } /** - * Dictates the approach taken to generating citations as part of the RAG flow. Defaults to "accurate". - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. Note: {@code command-r7b-12-2024} and {@code command-a-03-2025} only support "FAST" and "OFF". + * Dictates the approach taken to generating citations. - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. * **/ public enum Mode { @@ -117,14 +117,14 @@ public static Mode create(String key) { } }; /** - * Dictates the approach taken to generating citations as part of the RAG flow. Defaults to "accurate". - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. Note: {@code command-r7b-12-2024} and {@code command-a-03-2025} only support "FAST" and "OFF". + * Dictates the approach taken to generating citations. - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. * **/ @com.fasterxml.jackson.annotation.JsonProperty("mode") private final Mode mode; /** - * Dictates the approach taken to generating citations as part of the RAG flow. Defaults to "accurate". - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. Note: {@code command-r7b-12-2024} and {@code command-a-03-2025} only support "FAST" and "OFF". + * Dictates the approach taken to generating citations. - "ACCURATE": More precise citation generation. - "FAST": Faster but may be less precise. - "OFF": Disables citation generation. * * @return the value **/ diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedContent.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedContent.java new file mode 100644 index 00000000000..63f071bd794 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedContent.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * The base class for the embed 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: 20231130") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = EmbedContent.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EmbedTextContent.class, + name = "TEXT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EmbedImageContent.class, + name = "IMAGE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class EmbedContent extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected EmbedContent() { + 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("EmbedContent("); + 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 EmbedContent)) { + return false; + } + + EmbedContent other = (EmbedContent) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of the content. + **/ + public enum Type { + Text("TEXT"), + Image("IMAGE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(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-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedImageContent.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedImageContent.java new file mode 100644 index 00000000000..eee5fb358b3 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedImageContent.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 embed image 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EmbedImageContent.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 EmbedImageContent extends EmbedContent { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("imageUrl") + private ImageUrl imageUrl; + + public Builder imageUrl(ImageUrl imageUrl) { + this.imageUrl = imageUrl; + this.__explicitlySet__.add("imageUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EmbedImageContent build() { + EmbedImageContent model = new EmbedImageContent(this.imageUrl); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EmbedImageContent model) { + if (model.wasPropertyExplicitlySet("imageUrl")) { + this.imageUrl(model.getImageUrl()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EmbedImageContent(ImageUrl imageUrl) { + super(); + this.imageUrl = imageUrl; + } + + @com.fasterxml.jackson.annotation.JsonProperty("imageUrl") + private final ImageUrl imageUrl; + + public ImageUrl getImageUrl() { + return imageUrl; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EmbedImageContent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", imageUrl=").append(String.valueOf(this.imageUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EmbedImageContent)) { + return false; + } + + EmbedImageContent other = (EmbedImageContent) o; + return java.util.Objects.equals(this.imageUrl, other.imageUrl) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.imageUrl == null ? 43 : this.imageUrl.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextContent.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextContent.java new file mode 100644 index 00000000000..20b68c22d03 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextContent.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * Represents a single instance of text in the embed 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EmbedTextContent.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 EmbedTextContent extends EmbedContent { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The text content. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("text") + private String text; + + /** + * The text content. + * @param text the value to set + * @return this builder + **/ + public Builder text(String text) { + this.text = text; + this.__explicitlySet__.add("text"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EmbedTextContent build() { + EmbedTextContent model = new EmbedTextContent(this.text); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EmbedTextContent model) { + if (model.wasPropertyExplicitlySet("text")) { + this.text(model.getText()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EmbedTextContent(String text) { + super(); + this.text = text; + } + + /** + * The text content. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("text") + private final String text; + + /** + * The text content. + * @return the value + **/ + public String getText() { + return text; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EmbedTextContent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", text=").append(String.valueOf(this.text)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EmbedTextContent)) { + return false; + } + + EmbedTextContent other = (EmbedTextContent) o; + return java.util.Objects.equals(this.text, other.text) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.text == null ? 43 : this.text.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 f2abe30c557..26c4f3d4181 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 @@ -21,6 +21,7 @@ public final class EmbedTextDetails extends com.oracle.bmc.http.internal.Explici @Deprecated @java.beans.ConstructorProperties({ "inputs", + "embedContents", "servingMode", "compartmentId", "isEcho", @@ -31,6 +32,7 @@ public final class EmbedTextDetails extends com.oracle.bmc.http.internal.Explici }) public EmbedTextDetails( java.util.List inputs, + java.util.List embedContents, ServingMode servingMode, String compartmentId, Boolean isEcho, @@ -40,6 +42,7 @@ public EmbedTextDetails( InputType inputType) { super(); this.inputs = inputs; + this.embedContents = embedContents; this.servingMode = servingMode; this.compartmentId = compartmentId; this.isEcho = isEcho; @@ -67,6 +70,24 @@ public Builder inputs(java.util.List inputs) { this.__explicitlySet__.add("inputs"); return this; } + /** + * An array of text/image inputs to be embedded. Supported for Embed v4 models. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("embedContents") + private java.util.List embedContents; + + /** + * An array of text/image inputs to be embedded. Supported for Embed v4 models. + * + * @param embedContents the value to set + * @return this builder + **/ + public Builder embedContents(java.util.List embedContents) { + this.embedContents = embedContents; + this.__explicitlySet__.add("embedContents"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("servingMode") private ServingMode servingMode; @@ -180,6 +201,7 @@ public EmbedTextDetails build() { EmbedTextDetails model = new EmbedTextDetails( this.inputs, + this.embedContents, this.servingMode, this.compartmentId, this.isEcho, @@ -198,6 +220,9 @@ public Builder copy(EmbedTextDetails model) { if (model.wasPropertyExplicitlySet("inputs")) { this.inputs(model.getInputs()); } + if (model.wasPropertyExplicitlySet("embedContents")) { + this.embedContents(model.getEmbedContents()); + } if (model.wasPropertyExplicitlySet("servingMode")) { this.servingMode(model.getServingMode()); } @@ -248,6 +273,22 @@ public java.util.List getInputs() { return inputs; } + /** + * An array of text/image inputs to be embedded. Supported for Embed v4 models. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("embedContents") + private final java.util.List embedContents; + + /** + * An array of text/image inputs to be embedded. Supported for Embed v4 models. + * + * @return the value + **/ + public java.util.List getEmbedContents() { + return embedContents; + } + @com.fasterxml.jackson.annotation.JsonProperty("servingMode") private final ServingMode servingMode; @@ -466,6 +507,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("EmbedTextDetails("); sb.append("super=").append(super.toString()); sb.append("inputs=").append(String.valueOf(this.inputs)); + sb.append(", embedContents=").append(String.valueOf(this.embedContents)); sb.append(", servingMode=").append(String.valueOf(this.servingMode)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", isEcho=").append(String.valueOf(this.isEcho)); @@ -488,6 +530,7 @@ public boolean equals(Object o) { EmbedTextDetails other = (EmbedTextDetails) o; return java.util.Objects.equals(this.inputs, other.inputs) + && java.util.Objects.equals(this.embedContents, other.embedContents) && java.util.Objects.equals(this.servingMode, other.servingMode) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.isEcho, other.isEcho) @@ -503,6 +546,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.inputs == null ? 43 : this.inputs.hashCode()); + result = + (result * PRIME) + + (this.embedContents == null ? 43 : this.embedContents.hashCode()); result = (result * PRIME) + (this.servingMode == null ? 43 : this.servingMode.hashCode()); result = (result * PRIME) diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextResult.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextResult.java index 5430dafff19..5b89d22459c 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextResult.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextResult.java @@ -22,6 +22,7 @@ public final class EmbedTextResult extends com.oracle.bmc.http.internal.Explicit @java.beans.ConstructorProperties({ "id", "inputs", + "embedContents", "embeddings", "embeddingsByType", "modelId", @@ -31,6 +32,7 @@ public final class EmbedTextResult extends com.oracle.bmc.http.internal.Explicit public EmbedTextResult( String id, java.util.List inputs, + java.util.List embedContents, java.util.List> embeddings, Object embeddingsByType, String modelId, @@ -39,6 +41,7 @@ public EmbedTextResult( super(); this.id = id; this.inputs = inputs; + this.embedContents = embedContents; this.embeddings = embeddings; this.embeddingsByType = embeddingsByType; this.modelId = modelId; @@ -80,6 +83,22 @@ public Builder inputs(java.util.List inputs) { this.__explicitlySet__.add("inputs"); return this; } + /** + * The original inputs. Only present if "isEcho" is set to true. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("embedContents") + private java.util.List embedContents; + + /** + * The original inputs. Only present if "isEcho" is set to true. + * @param embedContents the value to set + * @return this builder + **/ + public Builder embedContents(java.util.List embedContents) { + this.embedContents = embedContents; + this.__explicitlySet__.add("embedContents"); + return this; + } /** * The embeddings corresponding to float. **/ @@ -162,6 +181,7 @@ public EmbedTextResult build() { new EmbedTextResult( this.id, this.inputs, + this.embedContents, this.embeddings, this.embeddingsByType, this.modelId, @@ -181,6 +201,9 @@ public Builder copy(EmbedTextResult model) { if (model.wasPropertyExplicitlySet("inputs")) { this.inputs(model.getInputs()); } + if (model.wasPropertyExplicitlySet("embedContents")) { + this.embedContents(model.getEmbedContents()); + } if (model.wasPropertyExplicitlySet("embeddings")) { this.embeddings(model.getEmbeddings()); } @@ -239,6 +262,20 @@ public java.util.List getInputs() { return inputs; } + /** + * The original inputs. Only present if "isEcho" is set to true. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("embedContents") + private final java.util.List embedContents; + + /** + * The original inputs. Only present if "isEcho" is set to true. + * @return the value + **/ + public java.util.List getEmbedContents() { + return embedContents; + } + /** * The embeddings corresponding to float. **/ @@ -318,6 +355,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", inputs=").append(String.valueOf(this.inputs)); + sb.append(", embedContents=").append(String.valueOf(this.embedContents)); sb.append(", embeddings=").append(String.valueOf(this.embeddings)); sb.append(", embeddingsByType=").append(String.valueOf(this.embeddingsByType)); sb.append(", modelId=").append(String.valueOf(this.modelId)); @@ -339,6 +377,7 @@ public boolean equals(Object o) { EmbedTextResult other = (EmbedTextResult) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.inputs, other.inputs) + && java.util.Objects.equals(this.embedContents, other.embedContents) && java.util.Objects.equals(this.embeddings, other.embeddings) && java.util.Objects.equals(this.embeddingsByType, other.embeddingsByType) && java.util.Objects.equals(this.modelId, other.modelId) @@ -353,6 +392,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.inputs == null ? 43 : this.inputs.hashCode()); + result = + (result * PRIME) + + (this.embedContents == null ? 43 : this.embedContents.hashCode()); result = (result * PRIME) + (this.embeddings == null ? 43 : this.embeddings.hashCode()); result = (result * PRIME) diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersion.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersion.java new file mode 100644 index 00000000000..53b6c03a619 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersion.java @@ -0,0 +1,423 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details of a guardrail version. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = GuardrailVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GuardrailVersion extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "guardrailVersion", + "state", + "timePreviewed", + "timeActivated", + "timeDeprecated", + "timeRetired", + "description" + }) + public GuardrailVersion( + String guardrailVersion, + State state, + java.util.Date timePreviewed, + java.util.Date timeActivated, + java.util.Date timeDeprecated, + java.util.Date timeRetired, + String description) { + super(); + this.guardrailVersion = guardrailVersion; + this.state = state; + this.timePreviewed = timePreviewed; + this.timeActivated = timeActivated; + this.timeDeprecated = timeDeprecated; + this.timeRetired = timeRetired; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The guardrail system version string, e.g., "1.0.0" + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private String guardrailVersion; + + /** + * The guardrail system version string, e.g., "1.0.0" + * @param guardrailVersion the value to set + * @return this builder + **/ + public Builder guardrailVersion(String guardrailVersion) { + this.guardrailVersion = guardrailVersion; + this.__explicitlySet__.add("guardrailVersion"); + return this; + } + /** + * The state of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private State state; + + /** + * The state of the guardrail version. + * @param state the value to set + * @return this builder + **/ + public Builder state(State state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** + * The preview date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePreviewed") + private java.util.Date timePreviewed; + + /** + * The preview date of the guardrail version. + * @param timePreviewed the value to set + * @return this builder + **/ + public Builder timePreviewed(java.util.Date timePreviewed) { + this.timePreviewed = timePreviewed; + this.__explicitlySet__.add("timePreviewed"); + return this; + } + /** + * The activation date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private java.util.Date timeActivated; + + /** + * The activation date of the guardrail version. + * @param timeActivated the value to set + * @return this builder + **/ + public Builder timeActivated(java.util.Date timeActivated) { + this.timeActivated = timeActivated; + this.__explicitlySet__.add("timeActivated"); + return this; + } + /** + * The deprecated date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private java.util.Date timeDeprecated; + + /** + * The deprecated date of the guardrail version. + * @param timeDeprecated the value to set + * @return this builder + **/ + public Builder timeDeprecated(java.util.Date timeDeprecated) { + this.timeDeprecated = timeDeprecated; + this.__explicitlySet__.add("timeDeprecated"); + return this; + } + /** + * The retired date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetired") + private java.util.Date timeRetired; + + /** + * The retired date of the guardrail version. + * @param timeRetired the value to set + * @return this builder + **/ + public Builder timeRetired(java.util.Date timeRetired) { + this.timeRetired = timeRetired; + this.__explicitlySet__.add("timeRetired"); + return this; + } + /** + * The description of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the guardrail version. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GuardrailVersion build() { + GuardrailVersion model = + new GuardrailVersion( + this.guardrailVersion, + this.state, + this.timePreviewed, + this.timeActivated, + this.timeDeprecated, + this.timeRetired, + this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailVersion model) { + if (model.wasPropertyExplicitlySet("guardrailVersion")) { + this.guardrailVersion(model.getGuardrailVersion()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("timePreviewed")) { + this.timePreviewed(model.getTimePreviewed()); + } + if (model.wasPropertyExplicitlySet("timeActivated")) { + this.timeActivated(model.getTimeActivated()); + } + if (model.wasPropertyExplicitlySet("timeDeprecated")) { + this.timeDeprecated(model.getTimeDeprecated()); + } + if (model.wasPropertyExplicitlySet("timeRetired")) { + this.timeRetired(model.getTimeRetired()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The guardrail system version string, e.g., "1.0.0" + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private final String guardrailVersion; + + /** + * The guardrail system version string, e.g., "1.0.0" + * @return the value + **/ + public String getGuardrailVersion() { + return guardrailVersion; + } + + /** + * The state of the guardrail version. + **/ + public enum State { + Active("ACTIVE"), + Preview("PREVIEW"), + Deprecated("DEPRECATED"), + Retired("RETIRED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (State v : State.values()) { + map.put(v.getValue(), v); + } + } + + State(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static State create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid State: " + key); + } + }; + /** + * The state of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final State state; + + /** + * The state of the guardrail version. + * @return the value + **/ + public State getState() { + return state; + } + + /** + * The preview date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePreviewed") + private final java.util.Date timePreviewed; + + /** + * The preview date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimePreviewed() { + return timePreviewed; + } + + /** + * The activation date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private final java.util.Date timeActivated; + + /** + * The activation date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimeActivated() { + return timeActivated; + } + + /** + * The deprecated date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private final java.util.Date timeDeprecated; + + /** + * The deprecated date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimeDeprecated() { + return timeDeprecated; + } + + /** + * The retired date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetired") + private final java.util.Date timeRetired; + + /** + * The retired date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimeRetired() { + return timeRetired; + } + + /** + * The description of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the guardrail version. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GuardrailVersion("); + sb.append("super=").append(super.toString()); + sb.append("guardrailVersion=").append(String.valueOf(this.guardrailVersion)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", timePreviewed=").append(String.valueOf(this.timePreviewed)); + sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); + sb.append(", timeDeprecated=").append(String.valueOf(this.timeDeprecated)); + sb.append(", timeRetired=").append(String.valueOf(this.timeRetired)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GuardrailVersion)) { + return false; + } + + GuardrailVersion other = (GuardrailVersion) o; + return java.util.Objects.equals(this.guardrailVersion, other.guardrailVersion) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.timePreviewed, other.timePreviewed) + && java.util.Objects.equals(this.timeActivated, other.timeActivated) + && java.util.Objects.equals(this.timeDeprecated, other.timeDeprecated) + && java.util.Objects.equals(this.timeRetired, other.timeRetired) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.guardrailVersion == null ? 43 : this.guardrailVersion.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = + (result * PRIME) + + (this.timePreviewed == null ? 43 : this.timePreviewed.hashCode()); + result = + (result * PRIME) + + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); + result = + (result * PRIME) + + (this.timeDeprecated == null ? 43 : this.timeDeprecated.hashCode()); + result = (result * PRIME) + (this.timeRetired == null ? 43 : this.timeRetired.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionCollection.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionCollection.java new file mode 100644 index 00000000000..98b7e262efa --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * The response containing a list of guardrail system versions. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = GuardrailVersionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GuardrailVersionCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public GuardrailVersionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of guardrail system versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of guardrail system versions. + * @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 GuardrailVersionCollection build() { + GuardrailVersionCollection model = new GuardrailVersionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailVersionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of guardrail system versions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of guardrail system versions. + * @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("GuardrailVersionCollection("); + 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 GuardrailVersionCollection)) { + return false; + } + + GuardrailVersionCollection other = (GuardrailVersionCollection) 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-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionConfig.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionConfig.java new file mode 100644 index 00000000000..3e3e9627e0f --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionConfig.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * The version of the guardrail to use. If not specified, the default version 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GuardrailVersionConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GuardrailVersionConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"guardrailVersion"}) + public GuardrailVersionConfig(String guardrailVersion) { + super(); + this.guardrailVersion = guardrailVersion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private String guardrailVersion; + + /** + * The version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + * @param guardrailVersion the value to set + * @return this builder + **/ + public Builder guardrailVersion(String guardrailVersion) { + this.guardrailVersion = guardrailVersion; + this.__explicitlySet__.add("guardrailVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GuardrailVersionConfig build() { + GuardrailVersionConfig model = new GuardrailVersionConfig(this.guardrailVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailVersionConfig model) { + if (model.wasPropertyExplicitlySet("guardrailVersion")) { + this.guardrailVersion(model.getGuardrailVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private final String guardrailVersion; + + /** + * The version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + * @return the value + **/ + public String getGuardrailVersion() { + return guardrailVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GuardrailVersionConfig("); + sb.append("super=").append(super.toString()); + sb.append("guardrailVersion=").append(String.valueOf(this.guardrailVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GuardrailVersionConfig)) { + return false; + } + + GuardrailVersionConfig other = (GuardrailVersionConfig) o; + return java.util.Objects.equals(this.guardrailVersion, other.guardrailVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.guardrailVersion == null ? 43 : this.guardrailVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionResponse.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionResponse.java new file mode 100644 index 00000000000..0f884d4f135 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionResponse.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * The guardaril version applied on the given 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GuardrailVersionResponse.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GuardrailVersionResponse + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"version"}) + public GuardrailVersionResponse(String version) { + super(); + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The guardrail system version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The guardrail system version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GuardrailVersionResponse build() { + GuardrailVersionResponse model = new GuardrailVersionResponse(this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailVersionResponse model) { + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The guardrail system version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The guardrail system version string, e.g., "1.0.0". When a PATCH version is not specified, the latest available PATCH within the specified MAJOR and MINOR version will be used. + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GuardrailVersionResponse("); + sb.append("super=").append(super.toString()); + sb.append("version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GuardrailVersionResponse)) { + return false; + } + + GuardrailVersionResponse other = (GuardrailVersionResponse) o; + return java.util.Objects.equals(this.version, other.version) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionSummary.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionSummary.java new file mode 100644 index 00000000000..dc2ef44e4fc --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailVersionSummary.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details of a guardrail version. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = GuardrailVersionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GuardrailVersionSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "guardrailVersion", + "state", + "timePreviewed", + "timeActivated", + "timeDeprecated", + "timeRetired", + "description" + }) + public GuardrailVersionSummary( + String guardrailVersion, + GuardrailVersion.State state, + java.util.Date timePreviewed, + java.util.Date timeActivated, + java.util.Date timeDeprecated, + java.util.Date timeRetired, + String description) { + super(); + this.guardrailVersion = guardrailVersion; + this.state = state; + this.timePreviewed = timePreviewed; + this.timeActivated = timeActivated; + this.timeDeprecated = timeDeprecated; + this.timeRetired = timeRetired; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The guardrail system version string, e.g., "1.0.0" + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private String guardrailVersion; + + /** + * The guardrail system version string, e.g., "1.0.0" + * @param guardrailVersion the value to set + * @return this builder + **/ + public Builder guardrailVersion(String guardrailVersion) { + this.guardrailVersion = guardrailVersion; + this.__explicitlySet__.add("guardrailVersion"); + return this; + } + /** + * The state of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private GuardrailVersion.State state; + + /** + * The state of the guardrail version. + * @param state the value to set + * @return this builder + **/ + public Builder state(GuardrailVersion.State state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** + * The preview date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePreviewed") + private java.util.Date timePreviewed; + + /** + * The preview date of the guardrail version. + * @param timePreviewed the value to set + * @return this builder + **/ + public Builder timePreviewed(java.util.Date timePreviewed) { + this.timePreviewed = timePreviewed; + this.__explicitlySet__.add("timePreviewed"); + return this; + } + /** + * The activation date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private java.util.Date timeActivated; + + /** + * The activation date of the guardrail version. + * @param timeActivated the value to set + * @return this builder + **/ + public Builder timeActivated(java.util.Date timeActivated) { + this.timeActivated = timeActivated; + this.__explicitlySet__.add("timeActivated"); + return this; + } + /** + * The deprecated date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private java.util.Date timeDeprecated; + + /** + * The deprecated date of the guardrail version. + * @param timeDeprecated the value to set + * @return this builder + **/ + public Builder timeDeprecated(java.util.Date timeDeprecated) { + this.timeDeprecated = timeDeprecated; + this.__explicitlySet__.add("timeDeprecated"); + return this; + } + /** + * The retired date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetired") + private java.util.Date timeRetired; + + /** + * The retired date of the guardrail version. + * @param timeRetired the value to set + * @return this builder + **/ + public Builder timeRetired(java.util.Date timeRetired) { + this.timeRetired = timeRetired; + this.__explicitlySet__.add("timeRetired"); + return this; + } + /** + * The description of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the guardrail version. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GuardrailVersionSummary build() { + GuardrailVersionSummary model = + new GuardrailVersionSummary( + this.guardrailVersion, + this.state, + this.timePreviewed, + this.timeActivated, + this.timeDeprecated, + this.timeRetired, + this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailVersionSummary model) { + if (model.wasPropertyExplicitlySet("guardrailVersion")) { + this.guardrailVersion(model.getGuardrailVersion()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("timePreviewed")) { + this.timePreviewed(model.getTimePreviewed()); + } + if (model.wasPropertyExplicitlySet("timeActivated")) { + this.timeActivated(model.getTimeActivated()); + } + if (model.wasPropertyExplicitlySet("timeDeprecated")) { + this.timeDeprecated(model.getTimeDeprecated()); + } + if (model.wasPropertyExplicitlySet("timeRetired")) { + this.timeRetired(model.getTimeRetired()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The guardrail system version string, e.g., "1.0.0" + **/ + @com.fasterxml.jackson.annotation.JsonProperty("guardrailVersion") + private final String guardrailVersion; + + /** + * The guardrail system version string, e.g., "1.0.0" + * @return the value + **/ + public String getGuardrailVersion() { + return guardrailVersion; + } + + /** + * The state of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final GuardrailVersion.State state; + + /** + * The state of the guardrail version. + * @return the value + **/ + public GuardrailVersion.State getState() { + return state; + } + + /** + * The preview date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePreviewed") + private final java.util.Date timePreviewed; + + /** + * The preview date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimePreviewed() { + return timePreviewed; + } + + /** + * The activation date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private final java.util.Date timeActivated; + + /** + * The activation date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimeActivated() { + return timeActivated; + } + + /** + * The deprecated date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private final java.util.Date timeDeprecated; + + /** + * The deprecated date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimeDeprecated() { + return timeDeprecated; + } + + /** + * The retired date of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetired") + private final java.util.Date timeRetired; + + /** + * The retired date of the guardrail version. + * @return the value + **/ + public java.util.Date getTimeRetired() { + return timeRetired; + } + + /** + * The description of the guardrail version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the guardrail version. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GuardrailVersionSummary("); + sb.append("super=").append(super.toString()); + sb.append("guardrailVersion=").append(String.valueOf(this.guardrailVersion)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", timePreviewed=").append(String.valueOf(this.timePreviewed)); + sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); + sb.append(", timeDeprecated=").append(String.valueOf(this.timeDeprecated)); + sb.append(", timeRetired=").append(String.valueOf(this.timeRetired)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GuardrailVersionSummary)) { + return false; + } + + GuardrailVersionSummary other = (GuardrailVersionSummary) o; + return java.util.Objects.equals(this.guardrailVersion, other.guardrailVersion) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.timePreviewed, other.timePreviewed) + && java.util.Objects.equals(this.timeActivated, other.timeActivated) + && java.util.Objects.equals(this.timeDeprecated, other.timeDeprecated) + && java.util.Objects.equals(this.timeRetired, other.timeRetired) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.guardrailVersion == null ? 43 : this.guardrailVersion.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = + (result * PRIME) + + (this.timePreviewed == null ? 43 : this.timePreviewed.hashCode()); + result = + (result * PRIME) + + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); + result = + (result * PRIME) + + (this.timeDeprecated == null ? 43 : this.timeDeprecated.hashCode()); + result = (result * PRIME) + (this.timeRetired == null ? 43 : this.timeRetired.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsImageInput.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsImageInput.java new file mode 100644 index 00000000000..09dd28793e6 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsImageInput.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 array of image in the guardrails input. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = GuardrailsImageInput.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 GuardrailsImageInput extends GuardrailsInput { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("imageUrl") + private GuardrailsImageUrl imageUrl; + + public Builder imageUrl(GuardrailsImageUrl imageUrl) { + this.imageUrl = imageUrl; + this.__explicitlySet__.add("imageUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GuardrailsImageInput build() { + GuardrailsImageInput model = new GuardrailsImageInput(this.imageUrl); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailsImageInput model) { + if (model.wasPropertyExplicitlySet("imageUrl")) { + this.imageUrl(model.getImageUrl()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public GuardrailsImageInput(GuardrailsImageUrl imageUrl) { + super(); + this.imageUrl = imageUrl; + } + + @com.fasterxml.jackson.annotation.JsonProperty("imageUrl") + private final GuardrailsImageUrl imageUrl; + + public GuardrailsImageUrl getImageUrl() { + return imageUrl; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GuardrailsImageInput("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", imageUrl=").append(String.valueOf(this.imageUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GuardrailsImageInput)) { + return false; + } + + GuardrailsImageInput other = (GuardrailsImageInput) o; + return java.util.Objects.equals(this.imageUrl, other.imageUrl) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.imageUrl == null ? 43 : this.imageUrl.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsImageUrl.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsImageUrl.java new file mode 100644 index 00000000000..d319561e62a --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsImageUrl.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * Provide a base64 encoded image or an image uri if it's supported. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = GuardrailsImageUrl.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GuardrailsImageUrl extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"url"}) + public GuardrailsImageUrl(String url) { + super(); + this.url = url; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The base64 encoded image data or an image URI, if supported. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * The base64 encoded image data or an image URI, if supported. + * + * @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 GuardrailsImageUrl build() { + GuardrailsImageUrl model = new GuardrailsImageUrl(this.url); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GuardrailsImageUrl 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 base64 encoded image data or an image URI, if supported. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * The base64 encoded image data or an image URI, if supported. + * + * @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("GuardrailsImageUrl("); + 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 GuardrailsImageUrl)) { + return false; + } + + GuardrailsImageUrl other = (GuardrailsImageUrl) 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-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsInput.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsInput.java index a360b52a009..b69e61960f2 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsInput.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GuardrailsInput.java @@ -25,6 +25,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = GuardrailsTextInput.class, name = "TEXT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = GuardrailsImageInput.class, + name = "IMAGE" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -79,6 +83,7 @@ public int hashCode() { **/ public enum Type { Text("TEXT"), + Image("IMAGE"), ; private final String value; diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/PromptInjectionProtectionResult.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/PromptInjectionProtectionResult.java index a664546954f..2e4f7049279 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/PromptInjectionProtectionResult.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/PromptInjectionProtectionResult.java @@ -22,10 +22,12 @@ public final class PromptInjectionProtectionResult extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"score"}) - public PromptInjectionProtectionResult(Double score) { + @java.beans.ConstructorProperties({"score", "flaggedModalities"}) + public PromptInjectionProtectionResult( + Double score, java.util.List flaggedModalities) { super(); this.score = score; + this.flaggedModalities = flaggedModalities; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,12 +48,33 @@ public Builder score(Double score) { this.__explicitlySet__.add("score"); return this; } + /** + * The input modalities flagged by the prompt injection result. Present only when the request + * is processed using a non-empty {@code multimodalInput}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("flaggedModalities") + private java.util.List flaggedModalities; + + /** + * The input modalities flagged by the prompt injection result. Present only when the request + * is processed using a non-empty {@code multimodalInput}. + * + * @param flaggedModalities the value to set + * @return this builder + **/ + public Builder flaggedModalities(java.util.List flaggedModalities) { + this.flaggedModalities = flaggedModalities; + this.__explicitlySet__.add("flaggedModalities"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PromptInjectionProtectionResult build() { - PromptInjectionProtectionResult model = new PromptInjectionProtectionResult(this.score); + PromptInjectionProtectionResult model = + new PromptInjectionProtectionResult(this.score, this.flaggedModalities); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,6 +86,9 @@ public Builder copy(PromptInjectionProtectionResult model) { if (model.wasPropertyExplicitlySet("score")) { this.score(model.getScore()); } + if (model.wasPropertyExplicitlySet("flaggedModalities")) { + this.flaggedModalities(model.getFlaggedModalities()); + } return this; } } @@ -92,6 +118,71 @@ public Double getScore() { return score; } + /** + **/ + public enum FlaggedModalities { + Text("TEXT"), + Image("IMAGE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FlaggedModalities.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FlaggedModalities v : FlaggedModalities.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FlaggedModalities(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FlaggedModalities create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FlaggedModalities', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The input modalities flagged by the prompt injection result. Present only when the request + * is processed using a non-empty {@code multimodalInput}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("flaggedModalities") + private final java.util.List flaggedModalities; + + /** + * The input modalities flagged by the prompt injection result. Present only when the request + * is processed using a non-empty {@code multimodalInput}. + * + * @return the value + **/ + public java.util.List getFlaggedModalities() { + return flaggedModalities; + } + @Override public String toString() { return this.toString(true); @@ -107,6 +198,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("PromptInjectionProtectionResult("); sb.append("super=").append(super.toString()); sb.append("score=").append(String.valueOf(this.score)); + sb.append(", flaggedModalities=").append(String.valueOf(this.flaggedModalities)); sb.append(")"); return sb.toString(); } @@ -121,7 +213,9 @@ public boolean equals(Object o) { } PromptInjectionProtectionResult other = (PromptInjectionProtectionResult) o; - return java.util.Objects.equals(this.score, other.score) && super.equals(other); + return java.util.Objects.equals(this.score, other.score) + && java.util.Objects.equals(this.flaggedModalities, other.flaggedModalities) + && super.equals(other); } @Override @@ -129,6 +223,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.score == null ? 43 : this.score.hashCode()); + result = + (result * PRIME) + + (this.flaggedModalities == null ? 43 : this.flaggedModalities.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ApplyGuardrailsRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ApplyGuardrailsRequest.java index dd37cee73a0..8cec70c7f04 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ApplyGuardrailsRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ApplyGuardrailsRequest.java @@ -14,13 +14,13 @@ public class ApplyGuardrailsRequest com.oracle.bmc.generativeaiinference.model.ApplyGuardrailsDetails> { /** - * Details for applying guardrails to the input text. + * Details for applying guardrails to the input content. */ private com.oracle.bmc.generativeaiinference.model.ApplyGuardrailsDetails applyGuardrailsDetails; /** - * Details for applying guardrails to the input text. + * Details for applying guardrails to the input content. */ public com.oracle.bmc.generativeaiinference.model.ApplyGuardrailsDetails getApplyGuardrailsDetails() { @@ -76,13 +76,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details for applying guardrails to the input text. + * Details for applying guardrails to the input content. */ private com.oracle.bmc.generativeaiinference.model.ApplyGuardrailsDetails applyGuardrailsDetails = null; /** - * Details for applying guardrails to the input text. + * Details for applying guardrails to the input content. * @param applyGuardrailsDetails the value to set * @return this builder instance */ diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ListGuardrailVersionsRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ListGuardrailVersionsRequest.java new file mode 100644 index 00000000000..ec636bc6da8 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ListGuardrailVersionsRequest.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.generativeaiinference.model.*; +/** + * Example: Click here to see how to use ListGuardrailVersionsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListGuardrailVersionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The client compartment ID. + */ + private String opcCompartmentId; + + /** + * The client compartment ID. + */ + public String getOpcCompartmentId() { + return opcCompartmentId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only the guardrail versions whose state matches the given value. + */ + private com.oracle.bmc.generativeaiinference.model.GuardrailVersion.State state; + + /** + * A filter to return only the guardrail versions whose state matches the given value. + */ + public com.oracle.bmc.generativeaiinference.model.GuardrailVersion.State getState() { + return state; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListGuardrailVersionsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The client compartment ID. + */ + private String opcCompartmentId = null; + + /** + * The client compartment ID. + * @param opcCompartmentId the value to set + * @return this builder instance + */ + public Builder opcCompartmentId(String opcCompartmentId) { + this.opcCompartmentId = opcCompartmentId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only the guardrail versions whose state matches the given value. + */ + private com.oracle.bmc.generativeaiinference.model.GuardrailVersion.State state = null; + + /** + * A filter to return only the guardrail versions whose state matches the given value. + * @param state the value to set + * @return this builder instance + */ + public Builder state( + com.oracle.bmc.generativeaiinference.model.GuardrailVersion.State state) { + this.state = state; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListGuardrailVersionsRequest o) { + opcCompartmentId(o.getOpcCompartmentId()); + opcRequestId(o.getOpcRequestId()); + state(o.getState()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListGuardrailVersionsRequest 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 ListGuardrailVersionsRequest + */ + public ListGuardrailVersionsRequest build() { + ListGuardrailVersionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListGuardrailVersionsRequest 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 ListGuardrailVersionsRequest + */ + public ListGuardrailVersionsRequest buildWithoutInvocationCallback() { + ListGuardrailVersionsRequest request = new ListGuardrailVersionsRequest(); + request.opcCompartmentId = opcCompartmentId; + request.opcRequestId = opcRequestId; + request.state = state; + request.limit = limit; + request.page = page; + return request; + // new ListGuardrailVersionsRequest(opcCompartmentId, opcRequestId, state, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .opcCompartmentId(opcCompartmentId) + .opcRequestId(opcRequestId) + .state(state) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcCompartmentId=").append(String.valueOf(this.opcCompartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",state=").append(String.valueOf(this.state)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListGuardrailVersionsRequest)) { + return false; + } + + ListGuardrailVersionsRequest other = (ListGuardrailVersionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcCompartmentId, other.opcCompartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcCompartmentId == null ? 43 : this.opcCompartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/responses/ListGuardrailVersionsResponse.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/responses/ListGuardrailVersionsResponse.java new file mode 100644 index 00000000000..418667bf5c5 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/responses/ListGuardrailVersionsResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.responses; + +import com.oracle.bmc.generativeaiinference.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListGuardrailVersionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned GuardrailVersionCollection instance. + */ + private com.oracle.bmc.generativeaiinference.model.GuardrailVersionCollection + guardrailVersionCollection; + + /** + * The returned GuardrailVersionCollection instance. + * @return the value + */ + public com.oracle.bmc.generativeaiinference.model.GuardrailVersionCollection + getGuardrailVersionCollection() { + return guardrailVersionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "guardrailVersionCollection" + }) + private ListGuardrailVersionsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.generativeaiinference.model.GuardrailVersionCollection + guardrailVersionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.guardrailVersionCollection = guardrailVersionCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned GuardrailVersionCollection instance. + */ + private com.oracle.bmc.generativeaiinference.model.GuardrailVersionCollection + guardrailVersionCollection; + + /** + * The returned GuardrailVersionCollection instance. + * @param guardrailVersionCollection the value to set + * @return this builder + */ + public Builder guardrailVersionCollection( + com.oracle.bmc.generativeaiinference.model.GuardrailVersionCollection + guardrailVersionCollection) { + this.guardrailVersionCollection = guardrailVersionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListGuardrailVersionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + guardrailVersionCollection(o.getGuardrailVersionCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListGuardrailVersionsResponse build() { + return new ListGuardrailVersionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + guardrailVersionCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",guardrailVersionCollection=") + .append(String.valueOf(guardrailVersionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListGuardrailVersionsResponse)) { + return false; + } + + ListGuardrailVersionsResponse other = (ListGuardrailVersionsResponse) 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.guardrailVersionCollection, other.guardrailVersionCollection); + } + + @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.guardrailVersionCollection == null + ? 43 + : this.guardrailVersionCollection.hashCode()); + return result; + } +} diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 27c766f837e..b5b89bdb036 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index fecbcfb6b5b..37d8d45d2c0 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-goldengate @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 df32d3eb5e4..ff3f2af10ec 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 @@ -262,6 +262,19 @@ ChangeDeploymentSubscriptionResponse changeDeploymentSubscription( ChangePipelineCompartmentResponse changePipelineCompartment( ChangePipelineCompartmentRequest request); + /** + * Clones the pipeline. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ClonePipeline API. + */ + ClonePipelineResponse clonePipeline(ClonePipelineRequest request); + /** * Collects the diagnostic of a Deployment. When provided, If-Match is checked against ETag values of the resource. * @@ -513,6 +526,20 @@ DeleteDatabaseRegistrationResponse deleteDatabaseRegistration( */ ExportDeploymentWalletResponse exportDeploymentWallet(ExportDeploymentWalletRequest request); + /** + * Generates disaster recovery precheck report for standby peer. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GenerateDisasterRecoveryPrecheckReport API. + */ + GenerateDisasterRecoveryPrecheckReportResponse generateDisasterRecoveryPrecheckReport( + GenerateDisasterRecoveryPrecheckReportRequest 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. * @@ -618,6 +645,20 @@ DeleteDatabaseRegistrationResponse deleteDatabaseRegistration( */ GetDeploymentUpgradeResponse getDeploymentUpgrade(GetDeploymentUpgradeRequest request); + /** + * Returns DR precheck report for a standby peer with the specified placement (availabilityDomain and faultDomain). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDisasterRecoveryPrecheckReport API. + */ + GetDisasterRecoveryPrecheckReportResponse getDisasterRecoveryPrecheckReport( + GetDisasterRecoveryPrecheckReportRequest request); + /** * Retrieves a Pipeline details. * @@ -977,6 +1018,19 @@ ListPipelineSchemaTablesResponse listPipelineSchemaTables( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Migrate Connection attributes. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use MigrateConnection API. + */ + MigrateConnectionResponse migrateConnection(MigrateConnectionRequest request); + /** * Pauses the pipeline. * 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 964552b19a8..ab6222e99ca 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 @@ -317,6 +317,22 @@ java.util.concurrent.Future changePipelineCom ChangePipelineCompartmentRequest, ChangePipelineCompartmentResponse> handler); + /** + * Clones the pipeline. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future clonePipeline( + ClonePipelineRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Collects the diagnostic of a Deployment. When provided, If-Match is checked against ETag values of the resource. * @@ -632,6 +648,25 @@ java.util.concurrent.Future exportDeploymentWall ExportDeploymentWalletRequest, ExportDeploymentWalletResponse> handler); + /** + * Generates disaster recovery precheck report for standby peer. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + generateDisasterRecoveryPrecheckReport( + GenerateDisasterRecoveryPrecheckReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateDisasterRecoveryPrecheckReportRequest, + GenerateDisasterRecoveryPrecheckReportResponse> + 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. * @@ -766,6 +801,25 @@ java.util.concurrent.Future getDeploymentUpgrade( GetDeploymentUpgradeRequest, GetDeploymentUpgradeResponse> handler); + /** + * Returns DR precheck report for a standby peer with the specified placement (availabilityDomain and faultDomain). + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + getDisasterRecoveryPrecheckReport( + GetDisasterRecoveryPrecheckReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDisasterRecoveryPrecheckReportRequest, + GetDisasterRecoveryPrecheckReportResponse> + handler); + /** * Retrieves a Pipeline details. * @@ -1219,6 +1273,23 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Migrate Connection attributes. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future migrateConnection( + MigrateConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler< + MigrateConnectionRequest, MigrateConnectionResponse> + handler); + /** * Pauses the pipeline. * 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 3791e6020bb..c8e8190969b 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 @@ -1243,6 +1243,56 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future clonePipeline( + ClonePipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async clonePipeline"); + final ClonePipelineRequest interceptedRequest = + ClonePipelineConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ClonePipelineConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "ClonePipeline", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ClonePipeline"); + final java.util.function.Function + transformer = + ClonePipelineConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ClonePipelineRequest, ClonePipelineResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getClonePipelineDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ClonePipelineRequest, ClonePipelineResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future collectDeploymentDiagnostic( @@ -2220,6 +2270,67 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + generateDisasterRecoveryPrecheckReport( + GenerateDisasterRecoveryPrecheckReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateDisasterRecoveryPrecheckReportRequest, + GenerateDisasterRecoveryPrecheckReportResponse> + handler) { + LOG.trace("Called async generateDisasterRecoveryPrecheckReport"); + final GenerateDisasterRecoveryPrecheckReportRequest interceptedRequest = + GenerateDisasterRecoveryPrecheckReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateDisasterRecoveryPrecheckReportConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "GenerateDisasterRecoveryPrecheckReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/GenerateDisasterRecoveryPrecheckReport"); + final java.util.function.Function< + javax.ws.rs.core.Response, GenerateDisasterRecoveryPrecheckReportResponse> + transformer = + GenerateDisasterRecoveryPrecheckReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateDisasterRecoveryPrecheckReportRequest, + GenerateDisasterRecoveryPrecheckReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateDisasterRecoveryPrecheckReportRequest, + GenerateDisasterRecoveryPrecheckReportResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getGenerateDisasterRecoveryPrecheckReportDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateDisasterRecoveryPrecheckReportRequest, + GenerateDisasterRecoveryPrecheckReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future generateLibraryUrl( GenerateLibraryUrlRequest request, @@ -2595,6 +2706,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + getDisasterRecoveryPrecheckReport( + GetDisasterRecoveryPrecheckReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDisasterRecoveryPrecheckReportRequest, + GetDisasterRecoveryPrecheckReportResponse> + handler) { + LOG.trace("Called async getDisasterRecoveryPrecheckReport"); + final GetDisasterRecoveryPrecheckReportRequest interceptedRequest = + GetDisasterRecoveryPrecheckReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDisasterRecoveryPrecheckReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "GetDisasterRecoveryPrecheckReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/GetDisasterRecoveryPrecheckReport"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDisasterRecoveryPrecheckReportResponse> + transformer = + GetDisasterRecoveryPrecheckReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDisasterRecoveryPrecheckReportRequest, + GetDisasterRecoveryPrecheckReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDisasterRecoveryPrecheckReportRequest, + GetDisasterRecoveryPrecheckReportResponse>, + 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< + GetDisasterRecoveryPrecheckReportRequest, + GetDisasterRecoveryPrecheckReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getPipeline( GetPipelineRequest request, @@ -3874,6 +4038,57 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future migrateConnection( + MigrateConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + MigrateConnectionRequest, MigrateConnectionResponse> + handler) { + LOG.trace("Called async migrateConnection"); + final MigrateConnectionRequest interceptedRequest = + MigrateConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + MigrateConnectionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "MigrateConnection", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/MigrateConnection"); + final java.util.function.Function + transformer = + MigrateConnectionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + MigrateConnectionRequest, MigrateConnectionResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getMigrateConnectionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + MigrateConnectionRequest, MigrateConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future pausePipeline( PausePipelineRequest request, 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 a1b3bf1f5a7..a8011d1695d 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 @@ -1166,6 +1166,46 @@ public ChangePipelineCompartmentResponse changePipelineCompartment( }); } + @Override + public ClonePipelineResponse clonePipeline(ClonePipelineRequest request) { + LOG.trace("Called clonePipeline"); + final ClonePipelineRequest interceptedRequest = + ClonePipelineConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ClonePipelineConverter.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", + "ClonePipeline", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ClonePipeline"); + java.util.function.Function transformer = + ClonePipelineConverter.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.getClonePipelineDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CollectDeploymentDiagnosticResponse collectDeploymentDiagnostic( CollectDeploymentDiagnosticRequest request) { @@ -1946,6 +1986,52 @@ public ExportDeploymentWalletResponse exportDeploymentWallet( }); } + @Override + public GenerateDisasterRecoveryPrecheckReportResponse generateDisasterRecoveryPrecheckReport( + GenerateDisasterRecoveryPrecheckReportRequest request) { + LOG.trace("Called generateDisasterRecoveryPrecheckReport"); + final GenerateDisasterRecoveryPrecheckReportRequest interceptedRequest = + GenerateDisasterRecoveryPrecheckReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateDisasterRecoveryPrecheckReportConverter.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", + "GenerateDisasterRecoveryPrecheckReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/GenerateDisasterRecoveryPrecheckReport"); + java.util.function.Function< + javax.ws.rs.core.Response, GenerateDisasterRecoveryPrecheckReportResponse> + transformer = + GenerateDisasterRecoveryPrecheckReportConverter.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 + .getGenerateDisasterRecoveryPrecheckReportDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GenerateLibraryUrlResponse generateLibraryUrl(GenerateLibraryUrlRequest request) { LOG.trace("Called generateLibraryUrl"); @@ -2243,6 +2329,45 @@ public GetDeploymentUpgradeResponse getDeploymentUpgrade(GetDeploymentUpgradeReq }); } + @Override + public GetDisasterRecoveryPrecheckReportResponse getDisasterRecoveryPrecheckReport( + GetDisasterRecoveryPrecheckReportRequest request) { + LOG.trace("Called getDisasterRecoveryPrecheckReport"); + final GetDisasterRecoveryPrecheckReportRequest interceptedRequest = + GetDisasterRecoveryPrecheckReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDisasterRecoveryPrecheckReportConverter.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", + "GetDisasterRecoveryPrecheckReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/GetDisasterRecoveryPrecheckReport"); + java.util.function.Function< + javax.ws.rs.core.Response, GetDisasterRecoveryPrecheckReportResponse> + transformer = + GetDisasterRecoveryPrecheckReportConverter.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 GetPipelineResponse getPipeline(GetPipelineRequest request) { LOG.trace("Called getPipeline"); @@ -3249,6 +3374,47 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request }); } + @Override + public MigrateConnectionResponse migrateConnection(MigrateConnectionRequest request) { + LOG.trace("Called migrateConnection"); + final MigrateConnectionRequest interceptedRequest = + MigrateConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + MigrateConnectionConverter.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", + "MigrateConnection", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/MigrateConnection"); + java.util.function.Function + transformer = + MigrateConnectionConverter.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.getMigrateConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public PausePipelineResponse pausePipeline(PausePipelineRequest request) { LOG.trace("Called pausePipeline"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java index bad1033620f..5b7e02b8580 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java @@ -445,12 +445,12 @@ public boolean test(GetDatabaseRegistrationResponse response) { * 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 + * @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 forDeployment( GetDeploymentRequest request, - com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { + com.oracle.bmc.goldengate.model.Deployment.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( @@ -471,7 +471,7 @@ public com.oracle.bmc.waiter.Waiter */ public com.oracle.bmc.waiter.Waiter forDeployment( GetDeploymentRequest request, - com.oracle.bmc.goldengate.model.LifecycleState targetState, + com.oracle.bmc.goldengate.model.Deployment.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( @@ -490,17 +490,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 forDeployment( GetDeploymentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { + com.oracle.bmc.goldengate.model.Deployment.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 forDeployment( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), @@ -512,9 +512,9 @@ public com.oracle.bmc.waiter.Waiter private com.oracle.bmc.waiter.Waiter forDeployment( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDeploymentRequest request, - final com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + final com.oracle.bmc.goldengate.model.Deployment.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, @@ -535,7 +535,7 @@ public boolean test(GetDeploymentResponse response) { } }, targetStatesSet.contains( - com.oracle.bmc.goldengate.model.LifecycleState.Deleted)), + com.oracle.bmc.goldengate.model.Deployment.LifecycleState.Deleted)), request); } @@ -543,13 +543,14 @@ public boolean test(GetDeploymentResponse response) { * 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 + * @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 forDeploymentBackup( GetDeploymentBackupRequest request, - com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { + com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState... + targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( @@ -571,7 +572,7 @@ public boolean test(GetDeploymentResponse response) { public com.oracle.bmc.waiter.Waiter forDeploymentBackup( GetDeploymentBackupRequest request, - com.oracle.bmc.goldengate.model.LifecycleState targetState, + com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( @@ -590,18 +591,19 @@ public boolean test(GetDeploymentResponse response) { * @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 forDeploymentBackup( GetDeploymentBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { + com.oracle.bmc.goldengate.model.DeploymentBackup.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 forDeploymentBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), @@ -614,9 +616,10 @@ public boolean test(GetDeploymentResponse response) { forDeploymentBackup( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDeploymentBackupRequest request, - final com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + final com.oracle.bmc.goldengate.model.DeploymentBackup.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, @@ -638,7 +641,8 @@ public boolean test(GetDeploymentBackupResponse response) { } }, targetStatesSet.contains( - com.oracle.bmc.goldengate.model.LifecycleState.Deleted)), + com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState + .Deleted)), request); } @@ -646,13 +650,14 @@ public boolean test(GetDeploymentBackupResponse response) { * 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 + * @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 forDeploymentUpgrade( GetDeploymentUpgradeRequest request, - com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { + com.oracle.bmc.goldengate.model.DeploymentUpgrade.LifecycleState... + targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( @@ -674,7 +679,7 @@ public boolean test(GetDeploymentBackupResponse response) { public com.oracle.bmc.waiter.Waiter forDeploymentUpgrade( GetDeploymentUpgradeRequest request, - com.oracle.bmc.goldengate.model.LifecycleState targetState, + com.oracle.bmc.goldengate.model.DeploymentUpgrade.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( @@ -693,18 +698,19 @@ public boolean test(GetDeploymentBackupResponse response) { * @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 forDeploymentUpgrade( GetDeploymentUpgradeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { + com.oracle.bmc.goldengate.model.DeploymentUpgrade.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 forDeploymentUpgrade( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), @@ -717,9 +723,10 @@ public boolean test(GetDeploymentBackupResponse response) { forDeploymentUpgrade( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDeploymentUpgradeRequest request, - final com.oracle.bmc.goldengate.model.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + final com.oracle.bmc.goldengate.model.DeploymentUpgrade.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, @@ -740,8 +747,7 @@ public boolean test(GetDeploymentUpgradeResponse response) { response.getDeploymentUpgrade().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.goldengate.model.LifecycleState.Deleted)), + false), request); } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ClonePipelineConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ClonePipelineConverter.java new file mode 100644 index 00000000000..fa353801c7a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ClonePipelineConverter.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 ClonePipelineConverter { + 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(ClonePipelineConverter.class); + + public static com.oracle.bmc.goldengate.requests.ClonePipelineRequest interceptRequest( + com.oracle.bmc.goldengate.requests.ClonePipelineRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.ClonePipelineRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getClonePipelineDetails(), "clonePipelineDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("pipelines") + .path("actions") + .path("clone"); + + 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); + + 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.goldengate.responses.ClonePipelineResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ClonePipelineResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ClonePipelineResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ClonePipelineResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.ClonePipelineResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.ClonePipelineResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Pipeline>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Pipeline.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Pipeline.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Pipeline> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.ClonePipelineResponse.Builder + builder = + com.oracle.bmc.goldengate.responses + .ClonePipelineResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.pipeline(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses.ClonePipelineResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GenerateDisasterRecoveryPrecheckReportConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GenerateDisasterRecoveryPrecheckReportConverter.java new file mode 100644 index 00000000000..0d95f003597 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GenerateDisasterRecoveryPrecheckReportConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GenerateDisasterRecoveryPrecheckReportConverter { + 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( + GenerateDisasterRecoveryPrecheckReportConverter.class); + + public static com.oracle.bmc.goldengate.requests.GenerateDisasterRecoveryPrecheckReportRequest + interceptRequest( + com.oracle.bmc.goldengate.requests.GenerateDisasterRecoveryPrecheckReportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.GenerateDisasterRecoveryPrecheckReportRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDeploymentId(), "deploymentId must not be blank"); + Validate.notNull( + request.getGenerateDisasterRecoveryPrecheckReportDetails(), + "generateDisasterRecoveryPrecheckReportDetails 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("generateDisasterRecoveryPrecheckReport"); + + 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.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse>() { + @Override + public com.oracle.bmc.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.GenerateDisasterRecoveryPrecheckReportResponse"); + 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.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse + .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.goldengate.responses + .GenerateDisasterRecoveryPrecheckReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GetDisasterRecoveryPrecheckReportConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GetDisasterRecoveryPrecheckReportConverter.java new file mode 100644 index 00000000000..7c39cd4253b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GetDisasterRecoveryPrecheckReportConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 GetDisasterRecoveryPrecheckReportConverter { + 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(GetDisasterRecoveryPrecheckReportConverter.class); + + public static com.oracle.bmc.goldengate.requests.GetDisasterRecoveryPrecheckReportRequest + interceptRequest( + com.oracle.bmc.goldengate.requests.GetDisasterRecoveryPrecheckReportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.GetDisasterRecoveryPrecheckReportRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDeploymentId(), "deploymentId must not be blank"); + Validate.notNull(request.getAvailabilityDomain(), "availabilityDomain is required"); + Validate.notNull(request.getFaultDomain(), "faultDomain 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("disasterRecoveryPrecheckReport"); + + target = + target.queryParam( + "availabilityDomain", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAvailabilityDomain())); + + target = + target.queryParam( + "faultDomain", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFaultDomain())); + + 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.goldengate.responses.GetDisasterRecoveryPrecheckReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.GetDisasterRecoveryPrecheckReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .GetDisasterRecoveryPrecheckReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .GetDisasterRecoveryPrecheckReportResponse>() { + @Override + public com.oracle.bmc.goldengate.responses + .GetDisasterRecoveryPrecheckReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.GetDisasterRecoveryPrecheckReportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .DisasterRecoveryPrecheckReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model + .DisasterRecoveryPrecheckReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model + .DisasterRecoveryPrecheckReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .DisasterRecoveryPrecheckReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses + .GetDisasterRecoveryPrecheckReportResponse.Builder + builder = + com.oracle.bmc.goldengate.responses + .GetDisasterRecoveryPrecheckReportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.disasterRecoveryPrecheckReport(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.goldengate.responses + .GetDisasterRecoveryPrecheckReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/MigrateConnectionConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/MigrateConnectionConverter.java new file mode 100644 index 00000000000..52bba93942d --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/MigrateConnectionConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 MigrateConnectionConverter { + 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(MigrateConnectionConverter.class); + + public static com.oracle.bmc.goldengate.requests.MigrateConnectionRequest interceptRequest( + com.oracle.bmc.goldengate.requests.MigrateConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.MigrateConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getConnectionId(), "connectionId must not be blank"); + Validate.notNull( + request.getMigrateConnectionDetails(), "migrateConnectionDetails 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("migrate"); + + 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); + + 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.goldengate.responses.MigrateConnectionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.MigrateConnectionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.MigrateConnectionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.MigrateConnectionResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.MigrateConnectionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.MigrateConnectionResponse"); + 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.goldengate.responses.MigrateConnectionResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .MigrateConnectionResponse.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.goldengate.responses.MigrateConnectionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ClonePipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ClonePipelineDetails.java new file mode 100644 index 00000000000..96d4b28aa54 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ClonePipelineDetails.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Details for a pipeline clone. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = "type", + defaultImpl = ClonePipelineDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultClonePipelineDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ClonePipelineDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "sourcePipelineId", + "compartmentId", + "description", + "freeformTags", + "definedTags", + "systemTags" + }) + protected ClonePipelineDetails( + String displayName, + String sourcePipelineId, + String compartmentId, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.displayName = displayName; + this.sourcePipelineId = sourcePipelineId; + this.compartmentId = compartmentId; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pipeline. This option applies when retrieving a pipeline. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePipelineId") + private final String sourcePipelineId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pipeline. This option applies when retrieving a pipeline. + * + * @return the value + **/ + public String getSourcePipelineId() { + return sourcePipelineId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. + *

+ * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. + *

+ * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Tags defined 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; + + /** + * Tags defined 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; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle + * Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more + * information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle + * Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more + * information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ClonePipelineDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", sourcePipelineId=").append(String.valueOf(this.sourcePipelineId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + 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(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ClonePipelineDetails)) { + return false; + } + + ClonePipelineDetails other = (ClonePipelineDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sourcePipelineId, other.sourcePipelineId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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.systemTags, other.systemTags) + && 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.sourcePipelineId == null ? 43 : this.sourcePipelineId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeLifecycleState.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ClonePipelineType.java similarity index 57% rename from bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeLifecycleState.java rename to bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ClonePipelineType.java index d35df4f6067..4a1e6b582c7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeLifecycleState.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ClonePipelineType.java @@ -5,31 +5,25 @@ package com.oracle.bmc.goldengate.model; /** - * Possible deploymentUpgrade lifecycle states. + * The pipeline clone type. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") -public enum DeploymentUpgradeLifecycleState { - Waiting("WAITING"), - InProgress("IN_PROGRESS"), - Failed("FAILED"), - Succeeded("SUCCEEDED"), - Canceling("CANCELING"), - Canceled("CANCELED"), - NeedsAttention("NEEDS_ATTENTION"), +public enum ClonePipelineType { + Default("DEFAULT"), ; private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DeploymentUpgradeLifecycleState v : DeploymentUpgradeLifecycleState.values()) { + for (ClonePipelineType v : ClonePipelineType.values()) { map.put(v.getValue(), v); } } - DeploymentUpgradeLifecycleState(String value) { + ClonePipelineType(String value) { this.value = value; } @@ -39,10 +33,10 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DeploymentUpgradeLifecycleState create(String key) { + public static ClonePipelineType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid DeploymentUpgradeLifecycleState: " + key); + throw new IllegalArgumentException("Invalid ClonePipelineType: " + key); } } 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 45020c3d236..3ab454f2683 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 @@ -204,7 +204,7 @@ public Builder accessKeyId(String accessKeyId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon Kinesis. @@ -213,11 +213,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the secret access key is stored. * Note: When provided, 'secretAccessKey' field must not be provided. @@ -437,6 +444,54 @@ public CreateAmazonKinesisConnectionDetails( securityAttributes); this.technologyType = technologyType; this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonKinesisConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AmazonKinesisConnection.TechnologyType technologyType, + String accessKeyId, + char[] secretAccessKey, + String secretAccessKeySecretId, + String endpoint, + String region) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -479,7 +534,20 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon Kinesis. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * Secret access key to access the Amazon Kinesis. @@ -487,7 +555,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } 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 6b2e8a69333..047ef330b70 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 @@ -229,7 +229,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -239,11 +239,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -421,6 +428,52 @@ public CreateAmazonRedshiftConnectionDetails( this.technologyType = technologyType; this.connectionUrl = connectionUrl; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonRedshiftConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AmazonRedshiftConnection.TechnologyType technologyType, + String connectionUrl, + String username, + char[] password, + String passwordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionUrl = connectionUrl; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -484,7 +537,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -493,7 +560,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 c6457d4d32a..ce2a3adee3e 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 @@ -207,7 +207,7 @@ public Builder accessKeyId(String accessKeyId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon S3 bucket. @@ -217,11 +217,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key is stored. * Note: When provided, 'secretAccessKey' field must not be provided. @@ -441,6 +448,54 @@ public CreateAmazonS3ConnectionDetails( securityAttributes); this.technologyType = technologyType; this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonS3ConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AmazonS3Connection.TechnologyType technologyType, + String accessKeyId, + char[] secretAccessKey, + String secretAccessKeySecretId, + String endpoint, + String region) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -486,7 +541,21 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * Secret access key to access the Amazon S3 bucket. @@ -495,7 +564,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java index 257c7f0c933..767f1c999ea 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java @@ -102,6 +102,35 @@ public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { this.__explicitlySet__.add("secretAccessKeySecretId"); return this; } + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * @param secretAccessKey the value to set + * @return this builder + **/ + public Builder secretAccessKey(char[] secretAccessKey) { + this.secretAccessKey = secretAccessKey; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + /** * The AMAZON region where the S3 bucket is hosted. * e.g.: 'us-east-2' @@ -149,6 +178,7 @@ public CreateAmazonS3IcebergStorageDetails build() { this.endpoint, this.accessKeyId, this.secretAccessKeySecretId, + this.secretAccessKey, this.region, this.bucket); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -171,6 +201,9 @@ public Builder copy(CreateAmazonS3IcebergStorageDetails model) { if (model.wasPropertyExplicitlySet("secretAccessKeySecretId")) { this.secretAccessKeySecretId(model.getSecretAccessKeySecretId()); } + if (model.wasPropertyExplicitlySet("secretAccessKey")) { + this.secretAccessKey(model.getSecretAccessKey()); + } if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); } @@ -198,6 +231,27 @@ public CreateAmazonS3IcebergStorageDetails( String endpoint, String accessKeyId, String secretAccessKeySecretId, + String secretAccessKey, + String region, + String bucket) { + super(); + this.schemeType = schemeType; + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.region = region; + this.bucket = bucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonS3IcebergStorageDetails( + AmazonS3IcebergStorage.SchemeType schemeType, + String endpoint, + String accessKeyId, + String secretAccessKeySecretId, + char[] secretAccessKey, String region, String bucket) { super(); @@ -205,6 +259,7 @@ public CreateAmazonS3IcebergStorageDetails( this.endpoint = endpoint; this.accessKeyId = accessKeyId; this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey; this.region = region; this.bucket = bucket; } @@ -275,6 +330,41 @@ public String getSecretAccessKeySecretId() { return secretAccessKeySecretId; } + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { + return secretAccessKey; + } + /** * The AMAZON region where the S3 bucket is hosted. * e.g.: 'us-east-2' @@ -326,6 +416,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessKeyId=").append(String.valueOf(this.accessKeyId)); sb.append(", secretAccessKeySecretId=") .append(String.valueOf(this.secretAccessKeySecretId)); + sb.append(", secretAccessKey=").append(""); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", bucket=").append(String.valueOf(this.bucket)); sb.append(")"); @@ -347,6 +438,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) && java.util.Objects.equals( this.secretAccessKeySecretId, other.secretAccessKeySecretId) + && java.util.Objects.equals(this.secretAccessKey, other.secretAccessKey) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.bucket, other.bucket) && super.equals(other); @@ -364,6 +456,9 @@ public int hashCode() { + (this.secretAccessKeySecretId == null ? 43 : this.secretAccessKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKey == null ? 43 : this.secretAccessKey.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); return result; 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 42cdd650a22..89ebb921c76 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 @@ -225,7 +225,7 @@ public Builder accountName(String accountName) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private String accountKey; + private char[] accountKey; /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. @@ -235,11 +235,18 @@ public Builder accountName(String accountName) { * @param accountKey the value to set * @return this builder **/ - public Builder accountKey(String accountKey) { + public Builder accountKey(char[] accountKey) { this.accountKey = accountKey; this.__explicitlySet__.add("accountKey"); return this; } + + public Builder accountKey(String accountKey) { + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.__explicitlySet__.add("accountKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the account key is stored. * Note: When provided, 'accountKey' field must not be provided. @@ -268,7 +275,7 @@ public Builder accountKeySecretId(String accountKeySecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private String sasToken; + private char[] sasToken; /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is @@ -279,11 +286,18 @@ public Builder accountKeySecretId(String accountKeySecretId) { * @param sasToken the value to set * @return this builder **/ - public Builder sasToken(String sasToken) { + public Builder sasToken(char[] sasToken) { this.sasToken = sasToken; this.__explicitlySet__.add("sasToken"); return this; } + + public Builder sasToken(String sasToken) { + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.__explicitlySet__.add("sasToken"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the sas token is stored. * Note: When provided, 'sasToken' field must not be provided. @@ -351,7 +365,7 @@ public Builder clientId(String clientId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. @@ -361,11 +375,18 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the client secret is stored. * Note: When provided, 'clientSecret' field must not be provided. @@ -623,6 +644,68 @@ public CreateAzureDataLakeStorageConnectionDetails( this.technologyType = technologyType; this.authenticationType = authenticationType; this.accountName = accountName; + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.accountKeySecretId = accountKeySecretId; + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.sasTokenSecretId = sasTokenSecretId; + this.azureTenantId = azureTenantId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.endpoint = endpoint; + this.azureAuthorityHost = azureAuthorityHost; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAzureDataLakeStorageConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AzureDataLakeStorageConnection.TechnologyType technologyType, + AzureDataLakeStorageConnection.AuthenticationType authenticationType, + String accountName, + char[] accountKey, + String accountKeySecretId, + char[] sasToken, + String sasTokenSecretId, + String azureTenantId, + String clientId, + char[] clientSecret, + String clientSecretSecretId, + String endpoint, + String azureAuthorityHost) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.authenticationType = authenticationType; + this.accountName = accountName; this.accountKey = accountKey; this.accountKeySecretId = accountKeySecretId; this.sasToken = sasToken; @@ -688,7 +771,21 @@ public String getAccountName() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private final String accountKey; + private final char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getAccountKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccountKey() { + return accountKey != null ? new String(accountKey) : null; + } /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. @@ -697,7 +794,8 @@ public String getAccountName() { * * @return the value **/ - public String getAccountKey() { + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + public char[] getAccountKey__AsCharArray() { return accountKey; } @@ -727,7 +825,22 @@ public String getAccountKeySecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private final String sasToken; + private final char[] sasToken; + + /** + * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is + * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. + * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSasToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSasToken() { + return sasToken != null ? new String(sasToken) : null; + } /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is @@ -737,7 +850,8 @@ public String getAccountKeySecretId() { * * @return the value **/ - public String getSasToken() { + @com.fasterxml.jackson.annotation.JsonProperty("sasToken") + public char[] getSasToken__AsCharArray() { return sasToken; } @@ -802,7 +916,21 @@ public String getClientId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. + * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. @@ -811,7 +939,8 @@ public String getClientId() { * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java index 2c88347e89e..798771a3103 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java @@ -81,6 +81,35 @@ public Builder accountKeySecretId(String accountKeySecretId) { this.__explicitlySet__.add("accountKeySecretId"); return this; } + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + private char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * @param accountKey the value to set + * @return this builder + **/ + public Builder accountKey(char[] accountKey) { + this.accountKey = accountKey; + this.__explicitlySet__.add("accountKey"); + return this; + } + + public Builder accountKey(String accountKey) { + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.__explicitlySet__.add("accountKey"); + return this; + } + /** * The Azure Blob Storage endpoint where Iceberg data is stored. * e.g.: 'https://my-azure-storage-account.blob.core.windows.net' @@ -111,6 +140,7 @@ public CreateAzureDataLakeStorageIcebergStorageDetails build() { this.accountName, this.container, this.accountKeySecretId, + this.accountKey, this.endpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -129,6 +159,9 @@ public Builder copy(CreateAzureDataLakeStorageIcebergStorageDetails model) { if (model.wasPropertyExplicitlySet("accountKeySecretId")) { this.accountKeySecretId(model.getAccountKeySecretId()); } + if (model.wasPropertyExplicitlySet("accountKey")) { + this.accountKey(model.getAccountKey()); + } if (model.wasPropertyExplicitlySet("endpoint")) { this.endpoint(model.getEndpoint()); } @@ -149,11 +182,32 @@ public Builder toBuilder() { @Deprecated public CreateAzureDataLakeStorageIcebergStorageDetails( - String accountName, String container, String accountKeySecretId, String endpoint) { + String accountName, + String container, + String accountKeySecretId, + String accountKey, + String endpoint) { + super(); + this.accountName = accountName; + this.container = container; + this.accountKeySecretId = accountKeySecretId; + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAzureDataLakeStorageIcebergStorageDetails( + String accountName, + String container, + String accountKeySecretId, + char[] accountKey, + String endpoint) { super(); this.accountName = accountName; this.container = container; this.accountKeySecretId = accountKeySecretId; + this.accountKey = accountKey; this.endpoint = endpoint; } @@ -203,6 +257,41 @@ public String getAccountKeySecretId() { return accountKeySecretId; } + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + private final char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getAccountKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccountKey() { + return accountKey != null ? new String(accountKey) : null; + } + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + public char[] getAccountKey__AsCharArray() { + return accountKey; + } + /** * The Azure Blob Storage endpoint where Iceberg data is stored. * e.g.: 'https://my-azure-storage-account.blob.core.windows.net' @@ -238,6 +327,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accountName=").append(String.valueOf(this.accountName)); sb.append(", container=").append(String.valueOf(this.container)); sb.append(", accountKeySecretId=").append(String.valueOf(this.accountKeySecretId)); + sb.append(", accountKey=").append(""); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); @@ -257,6 +347,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.accountName, other.accountName) && java.util.Objects.equals(this.container, other.container) && java.util.Objects.equals(this.accountKeySecretId, other.accountKeySecretId) + && java.util.Objects.equals(this.accountKey, other.accountKey) && java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); } @@ -272,6 +363,7 @@ public int hashCode() { + (this.accountKeySecretId == null ? 43 : this.accountKeySecretId.hashCode()); + result = (result * PRIME) + (this.accountKey == null ? 43 : this.accountKey.hashCode()); result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); return result; } 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 8c4cc72d1f5..11960df569e 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 @@ -229,7 +229,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -239,11 +239,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -421,6 +428,52 @@ public CreateAzureSynapseConnectionDetails( this.technologyType = technologyType; this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAzureSynapseConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AzureSynapseConnection.TechnologyType technologyType, + String connectionString, + String username, + char[] password, + String passwordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -484,7 +537,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -493,7 +560,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java index a8e6d92a2b4..7d991a8c87c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java @@ -23,6 +23,48 @@ public final class CreateDatabaseRegistrationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseRegistrationDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String fqdn, + String ipAddress, + String subnetId, + String databaseId, + String username, + String password, + String connectionString, + SessionMode sessionMode, + String wallet, + String aliasName, + String vaultId, + String keyId, + String secretCompartmentId) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.fqdn = fqdn; + this.ipAddress = ipAddress; + this.subnetId = subnetId; + this.databaseId = databaseId; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.connectionString = connectionString; + this.sessionMode = sessionMode; + this.wallet = wallet; + this.aliasName = aliasName; + this.vaultId = vaultId; + this.keyId = keyId; + this.secretCompartmentId = secretCompartmentId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -54,7 +96,7 @@ public CreateDatabaseRegistrationDetails( String subnetId, String databaseId, String username, - String password, + char[] password, String connectionString, SessionMode sessionMode, String wallet, @@ -289,7 +331,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -299,11 +341,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * Connect descriptor or Easy Connect Naming method used to connect to a database. * @@ -733,7 +782,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -742,7 +805,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java index 3c9f5dceba6..35ffacfe1aa 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java @@ -226,7 +226,7 @@ public Builder connectionUrl(String connectionUrl) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to Databricks. @@ -236,11 +236,18 @@ public Builder connectionUrl(String connectionUrl) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * Note: When provided, 'password' field must not be provided. @@ -285,7 +292,7 @@ public Builder clientId(String clientId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M @@ -294,11 +301,18 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the client secret is stored. * Only applicable for authenticationType == OAUTH_M2M. @@ -510,6 +524,60 @@ public CreateDatabricksConnectionDetails( this.technologyType = technologyType; this.authenticationType = authenticationType; this.connectionUrl = connectionUrl; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.storageCredentialName = storageCredentialName; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDatabricksConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + DatabricksConnection.TechnologyType technologyType, + DatabricksConnection.AuthenticationType authenticationType, + String connectionUrl, + char[] password, + String passwordSecretId, + String clientId, + char[] clientSecret, + String clientSecretSecretId, + String storageCredentialName) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.authenticationType = authenticationType; + this.connectionUrl = connectionUrl; this.password = password; this.passwordSecretId = passwordSecretId; this.clientId = clientId; @@ -573,7 +641,21 @@ public String getConnectionUrl() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to Databricks. + * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to Databricks. @@ -582,7 +664,8 @@ public String getConnectionUrl() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -626,7 +709,20 @@ public String getClientId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * OAuth client secret, only applicable for authenticationType == OAUTH_M2M + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M @@ -634,7 +730,8 @@ public String getClientId() { * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } 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 index 4f622d62abf..e35bd619816 100644 --- 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 @@ -260,7 +260,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated DB2 database. @@ -269,11 +269,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * that Oracle GoldenGate uses to connect the associated DB2 database. @@ -650,6 +657,70 @@ public CreateDb2ConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystoredbSecretId = sslClientKeystoredbSecretId; + this.sslClientKeystash = sslClientKeystash; + this.sslClientKeystashSecretId = sslClientKeystashSecretId; + this.sslServerCertificate = sslServerCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + Db2Connection.TechnologyType technologyType, + String databaseName, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + java.util.List additionalAttributes, + Db2Connection.SecurityProtocol securityProtocol, + String sslClientKeystoredb, + String sslClientKeystoredbSecretId, + String sslClientKeystash, + String sslClientKeystashSecretId, + String sslServerCertificate) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -747,7 +818,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated DB2 database. @@ -755,7 +839,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 189310b9387..27f6b617ecc 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 @@ -50,6 +50,7 @@ public final class CreateDeploymentDetails "subscriptionId", "clusterPlacementGroupId", "securityAttributes", + "disasterRecoveryStatus", "oggData", "maintenanceWindow", "maintenanceConfiguration", @@ -82,6 +83,7 @@ public CreateDeploymentDetails( String subscriptionId, String clusterPlacementGroupId, java.util.Map> securityAttributes, + DisasterRecoveryStatus disasterRecoveryStatus, CreateOggDeploymentDetails oggData, CreateMaintenanceWindowDetails maintenanceWindow, CreateMaintenanceConfigurationDetails maintenanceConfiguration, @@ -113,6 +115,7 @@ public CreateDeploymentDetails( this.subscriptionId = subscriptionId; this.clusterPlacementGroupId = clusterPlacementGroupId; this.securityAttributes = securityAttributes; + this.disasterRecoveryStatus = disasterRecoveryStatus; this.oggData = oggData; this.maintenanceWindow = maintenanceWindow; this.maintenanceConfiguration = maintenanceConfiguration; @@ -423,18 +426,36 @@ public Builder subnetId(String subnetId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -619,6 +640,26 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryStatus") + private DisasterRecoveryStatus disasterRecoveryStatus; + + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + * @param disasterRecoveryStatus the value to set + * @return this builder + **/ + public Builder disasterRecoveryStatus(DisasterRecoveryStatus disasterRecoveryStatus) { + this.disasterRecoveryStatus = disasterRecoveryStatus; + this.__explicitlySet__.add("disasterRecoveryStatus"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("oggData") private CreateOggDeploymentDetails oggData; @@ -689,6 +730,7 @@ public CreateDeploymentDetails build() { this.subscriptionId, this.clusterPlacementGroupId, this.securityAttributes, + this.disasterRecoveryStatus, this.oggData, this.maintenanceWindow, this.maintenanceConfiguration, @@ -779,6 +821,9 @@ public Builder copy(CreateDeploymentDetails model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("disasterRecoveryStatus")) { + this.disasterRecoveryStatus(model.getDisasterRecoveryStatus()); + } if (model.wasPropertyExplicitlySet("oggData")) { this.oggData(model.getOggData()); } @@ -1075,18 +1120,36 @@ public String getSubnetId() { } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private final String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @return the value **/ @@ -1250,6 +1313,24 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryStatus") + private final DisasterRecoveryStatus disasterRecoveryStatus; + + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + * @return the value + **/ + public DisasterRecoveryStatus getDisasterRecoveryStatus() { + return disasterRecoveryStatus; + } + @com.fasterxml.jackson.annotation.JsonProperty("oggData") private final CreateOggDeploymentDetails oggData; @@ -1320,6 +1401,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", disasterRecoveryStatus=").append(String.valueOf(this.disasterRecoveryStatus)); sb.append(", oggData=").append(String.valueOf(this.oggData)); sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); sb.append(", maintenanceConfiguration=") @@ -1367,6 +1449,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals( + this.disasterRecoveryStatus, other.disasterRecoveryStatus) && java.util.Objects.equals(this.oggData, other.oggData) && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) && java.util.Objects.equals( @@ -1449,6 +1533,11 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = + (result * PRIME) + + (this.disasterRecoveryStatus == null + ? 43 + : this.disasterRecoveryStatus.hashCode()); result = (result * PRIME) + (this.oggData == null ? 43 : this.oggData.hashCode()); result = (result * PRIME) 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 e21722a00f9..d65c03502c3 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 @@ -266,7 +266,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -276,11 +276,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -495,6 +502,58 @@ public CreateElasticsearchConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.fingerprint = fingerprint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateElasticsearchConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + ElasticsearchConnection.TechnologyType technologyType, + String servers, + ElasticsearchConnection.SecurityProtocol securityProtocol, + ElasticsearchConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String fingerprint) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.fingerprint = fingerprint; @@ -591,7 +650,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -600,7 +673,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 3934e41f287..cbd28873fa5 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 @@ -258,7 +258,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -267,11 +267,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * which is used to connect to the Oracle GoldenGate accessed trough this connection. @@ -294,38 +301,6 @@ public Builder passwordSecretId(String passwordSecretId) { this.__explicitlySet__.add("passwordSecretId"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -354,8 +329,7 @@ public CreateGoldenGateConnectionDetails build() { this.port, this.username, this.password, - this.passwordSecretId, - this.privateIp); + this.passwordSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -430,9 +404,6 @@ public Builder copy(CreateGoldenGateConnectionDetails model) { if (model.wasPropertyExplicitlySet("passwordSecretId")) { this.passwordSecretId(model.getPasswordSecretId()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } return this; } } @@ -471,8 +442,57 @@ public CreateGoldenGateConnectionDetails( Integer port, String username, String password, - String passwordSecretId, - String privateIp) { + String passwordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.deploymentId = deploymentId; + this.host = host; + this.port = port; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateGoldenGateConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + GoldenGateConnection.TechnologyType technologyType, + String deploymentId, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId) { super( displayName, description, @@ -496,7 +516,6 @@ public CreateGoldenGateConnectionDetails( this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; - this.privateIp = privateIp; } /** @@ -583,7 +602,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to the Oracle GoldenGate accessed trough this connection. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -591,7 +623,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -615,36 +648,6 @@ public String getPasswordSecretId() { return passwordSecretId; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - @Override public String toString() { return this.toString(true); @@ -666,7 +669,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(")"); return sb.toString(); } @@ -688,7 +690,6 @@ 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.passwordSecretId, other.passwordSecretId) - && java.util.Objects.equals(this.privateIp, other.privateIp) && super.equals(other); } @@ -707,7 +708,6 @@ public int hashCode() { result = (result * PRIME) + (this.passwordSecretId == null ? 43 : this.passwordSecretId.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); return result; } } 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 bf8fbd325f6..3b0e75bc705 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 @@ -180,6 +180,26 @@ public Builder technologyType(GoogleBigQueryConnection.TechnologyType technology this.__explicitlySet__.add("technologyType"); return this; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. @@ -247,6 +267,7 @@ public CreateGoogleBigQueryConnectionDetails build() { this.clusterPlacementGroupId, this.securityAttributes, this.technologyType, + this.endpoint, this.serviceAccountKeyFile, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -305,6 +326,9 @@ public Builder copy(CreateGoogleBigQueryConnectionDetails model) { if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFile")) { this.serviceAccountKeyFile(model.getServiceAccountKeyFile()); } @@ -344,6 +368,7 @@ public CreateGoogleBigQueryConnectionDetails( String clusterPlacementGroupId, java.util.Map> securityAttributes, GoogleBigQueryConnection.TechnologyType technologyType, + String endpoint, String serviceAccountKeyFile, String serviceAccountKeyFileSecretId) { super( @@ -363,6 +388,7 @@ public CreateGoogleBigQueryConnectionDetails( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -381,6 +407,24 @@ public GoogleBigQueryConnection.TechnologyType getTechnologyType() { return technologyType; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. @@ -436,6 +480,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateGoogleBigQueryConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); @@ -454,6 +499,7 @@ public boolean equals(Object o) { CreateGoogleBigQueryConnectionDetails other = (CreateGoogleBigQueryConnectionDetails) o; return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.endpoint, other.endpoint) && java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) @@ -467,6 +513,7 @@ public int hashCode() { result = (result * PRIME) + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFile == null 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 f5ba3accb66..07b51130dbe 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 @@ -180,6 +180,26 @@ public Builder technologyType(GoogleCloudStorageConnection.TechnologyType techno this.__explicitlySet__.add("technologyType"); return this; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. @@ -247,6 +267,7 @@ public CreateGoogleCloudStorageConnectionDetails build() { this.clusterPlacementGroupId, this.securityAttributes, this.technologyType, + this.endpoint, this.serviceAccountKeyFile, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -305,6 +326,9 @@ public Builder copy(CreateGoogleCloudStorageConnectionDetails model) { if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFile")) { this.serviceAccountKeyFile(model.getServiceAccountKeyFile()); } @@ -344,6 +368,7 @@ public CreateGoogleCloudStorageConnectionDetails( String clusterPlacementGroupId, java.util.Map> securityAttributes, GoogleCloudStorageConnection.TechnologyType technologyType, + String endpoint, String serviceAccountKeyFile, String serviceAccountKeyFileSecretId) { super( @@ -363,6 +388,7 @@ public CreateGoogleCloudStorageConnectionDetails( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -381,6 +407,24 @@ public GoogleCloudStorageConnection.TechnologyType getTechnologyType() { return technologyType; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. @@ -436,6 +480,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateGoogleCloudStorageConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); @@ -455,6 +500,7 @@ public boolean equals(Object o) { CreateGoogleCloudStorageConnectionDetails other = (CreateGoogleCloudStorageConnectionDetails) o; return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.endpoint, other.endpoint) && java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) @@ -468,6 +514,7 @@ public int hashCode() { result = (result * PRIME) + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFile == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java index 3725b6a402d..3bedcfe122c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java @@ -81,6 +81,48 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI this.__explicitlySet__.add("serviceAccountKeyFileSecretId"); return this; } + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + private String serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + * @param serviceAccountKeyFile the value to set + * @return this builder + **/ + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = serviceAccountKeyFile; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -88,7 +130,11 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI public CreateGoogleCloudStorageIcebergStorageDetails build() { CreateGoogleCloudStorageIcebergStorageDetails model = new CreateGoogleCloudStorageIcebergStorageDetails( - this.bucket, this.projectId, this.serviceAccountKeyFileSecretId); + this.bucket, + this.projectId, + this.serviceAccountKeyFileSecretId, + this.serviceAccountKeyFile, + this.endpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -106,6 +152,12 @@ public Builder copy(CreateGoogleCloudStorageIcebergStorageDetails model) { if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } + if (model.wasPropertyExplicitlySet("serviceAccountKeyFile")) { + this.serviceAccountKeyFile(model.getServiceAccountKeyFile()); + } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } return this; } } @@ -123,11 +175,17 @@ public Builder toBuilder() { @Deprecated public CreateGoogleCloudStorageIcebergStorageDetails( - String bucket, String projectId, String serviceAccountKeyFileSecretId) { + String bucket, + String projectId, + String serviceAccountKeyFileSecretId, + String serviceAccountKeyFile, + String endpoint) { super(); this.bucket = bucket; this.projectId = projectId; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + this.serviceAccountKeyFile = serviceAccountKeyFile; + this.endpoint = endpoint; } /** @@ -176,6 +234,44 @@ public String getServiceAccountKeyFileSecretId() { return serviceAccountKeyFileSecretId; } + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + private final String serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile; + } + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + @Override public String toString() { return this.toString(true); @@ -194,6 +290,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", projectId=").append(String.valueOf(this.projectId)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); + sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); } @@ -213,6 +311,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.projectId, other.projectId) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) + && java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) + && java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); } @@ -227,6 +327,12 @@ public int hashCode() { + (this.serviceAccountKeyFileSecretId == null ? 43 : this.serviceAccountKeyFileSecretId.hashCode()); + result = + (result * PRIME) + + (this.serviceAccountKeyFile == null + ? 43 + : this.serviceAccountKeyFile.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); return result; } } 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 7b66a034f5a..227a89a695c 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 @@ -288,7 +288,7 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private String jndiSecurityCredentials; + private char[] jndiSecurityCredentials; /** * The password associated to the principal. @@ -297,11 +297,19 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * @param jndiSecurityCredentials the value to set * @return this builder **/ - public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + public Builder jndiSecurityCredentials(char[] jndiSecurityCredentials) { this.jndiSecurityCredentials = jndiSecurityCredentials; this.__explicitlySet__.add("jndiSecurityCredentials"); return this; } + + public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.__explicitlySet__.add("jndiSecurityCredentials"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the security credentials are stored associated to the principal. * Note: When provided, 'jndiSecurityCredentials' field must not be provided. @@ -390,7 +398,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -399,11 +407,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * that Oracle GoldenGate uses to connect the associated Java Message Service. @@ -514,7 +529,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -523,11 +538,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -594,7 +617,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -603,11 +626,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -635,7 +666,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. @@ -645,11 +676,18 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder **/ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored for the cert inside of the Keystore. * In case it differs from the KeyStore password, it should be provided. @@ -672,38 +710,6 @@ public Builder sslKeyPasswordSecretId(String sslKeyPasswordSecretId) { this.__explicitlySet__.add("sslKeyPasswordSecretId"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -750,8 +756,7 @@ public CreateJavaMessageServiceConnectionDetails build() { this.keyStorePassword, this.keyStorePasswordSecretId, this.sslKeyPassword, - this.sslKeyPasswordSecretId, - this.privateIp); + this.sslKeyPasswordSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -880,9 +885,6 @@ public Builder copy(CreateJavaMessageServiceConnectionDetails model) { if (model.wasPropertyExplicitlySet("sslKeyPasswordSecretId")) { this.sslKeyPasswordSecretId(model.getSslKeyPasswordSecretId()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } return this; } } @@ -939,8 +941,95 @@ public CreateJavaMessageServiceConnectionDetails( String keyStorePassword, String keyStorePasswordSecretId, String sslKeyPassword, - String sslKeyPasswordSecretId, - String privateIp) { + String sslKeyPasswordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.shouldUseJndi = shouldUseJndi; + this.jndiConnectionFactory = jndiConnectionFactory; + this.jndiProviderUrl = jndiProviderUrl; + this.jndiInitialContextFactory = jndiInitialContextFactory; + this.jndiSecurityPrincipal = jndiSecurityPrincipal; + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; + this.connectionUrl = connectionUrl; + this.connectionFactory = connectionFactory; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateJavaMessageServiceConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + JavaMessageServiceConnection.TechnologyType technologyType, + Boolean shouldUseJndi, + String jndiConnectionFactory, + String jndiProviderUrl, + String jndiInitialContextFactory, + String jndiSecurityPrincipal, + char[] jndiSecurityCredentials, + String jndiSecurityCredentialsSecretId, + String connectionUrl, + String connectionFactory, + String username, + char[] password, + String passwordSecretId, + JavaMessageServiceConnection.SecurityProtocol securityProtocol, + JavaMessageServiceConnection.AuthenticationType authenticationType, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + char[] sslKeyPassword, + String sslKeyPasswordSecretId) { super( displayName, description, @@ -982,7 +1071,6 @@ public CreateJavaMessageServiceConnectionDetails( this.keyStorePasswordSecretId = keyStorePasswordSecretId; this.sslKeyPassword = sslKeyPassword; this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; - this.privateIp = privateIp; } /** @@ -1097,7 +1185,20 @@ public String getJndiSecurityPrincipal() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private final String jndiSecurityCredentials; + private final char[] jndiSecurityCredentials; + + /** + * The password associated to the principal. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getJndiSecurityCredentials__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getJndiSecurityCredentials() { + return jndiSecurityCredentials != null ? new String(jndiSecurityCredentials) : null; + } /** * The password associated to the principal. @@ -1105,7 +1206,8 @@ public String getJndiSecurityPrincipal() { * * @return the value **/ - public String getJndiSecurityCredentials() { + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") + public char[] getJndiSecurityCredentials__AsCharArray() { return jndiSecurityCredentials; } @@ -1189,7 +1291,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Java Message Service. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -1197,7 +1312,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -1299,7 +1415,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -1307,7 +1436,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1371,7 +1501,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -1379,7 +1522,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1408,7 +1552,21 @@ public String getKeyStorePasswordSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; + + /** + * The password for the cert inside of the KeyStore. + * In case it differs from the KeyStore password, it should be provided. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } /** * The password for the cert inside of the KeyStore. @@ -1417,7 +1575,8 @@ public String getKeyStorePasswordSecretId() { * * @return the value **/ - public String getSslKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } @@ -1441,36 +1600,6 @@ public String getSslKeyPasswordSecretId() { return sslKeyPasswordSecretId; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - @Override public String toString() { return this.toString(true); @@ -1514,7 +1643,6 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.keyStorePasswordSecretId)); sb.append(", sslKeyPassword=").append(""); sb.append(", sslKeyPasswordSecretId=").append(String.valueOf(this.sslKeyPasswordSecretId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(")"); return sb.toString(); } @@ -1561,7 +1689,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslKeyPassword, other.sslKeyPassword) && java.util.Objects.equals( this.sslKeyPasswordSecretId, other.sslKeyPasswordSecretId) - && java.util.Objects.equals(this.privateIp, other.privateIp) && super.equals(other); } @@ -1658,7 +1785,6 @@ public int hashCode() { + (this.sslKeyPasswordSecretId == null ? 43 : this.sslKeyPasswordSecretId.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaBootstrapServer.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaBootstrapServer.java new file mode 100644 index 00000000000..f7659674c45 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaBootstrapServer.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Represents a Kafka bootstrap server with host name, optional port defaults to 9092. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateKafkaBootstrapServer.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateKafkaBootstrapServer + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"host", "port"}) + public CreateKafkaBootstrapServer(String host, Integer port) { + super(); + this.host = host; + this.port = port; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateKafkaBootstrapServer build() { + CreateKafkaBootstrapServer model = new CreateKafkaBootstrapServer(this.host, this.port); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateKafkaBootstrapServer model) { + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * 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; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateKafkaBootstrapServer("); + sb.append("super=").append(super.toString()); + sb.append("host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateKafkaBootstrapServer)) { + return false; + } + + CreateKafkaBootstrapServer other = (CreateKafkaBootstrapServer) o; + return java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && 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) + super.hashCode(); + return result; + } +} 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 7997387ead6..687e58e3875 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 @@ -228,7 +228,7 @@ public Builder clusterId(String clusterId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("bootstrapServers") - private java.util.List bootstrapServers; + private java.util.List bootstrapServers; /** * Kafka bootstrap. Equivalent of bootstrap.servers configuration property in Kafka: @@ -239,7 +239,8 @@ public Builder clusterId(String clusterId) { * @param bootstrapServers the value to set * @return this builder **/ - public Builder bootstrapServers(java.util.List bootstrapServers) { + public Builder bootstrapServers( + java.util.List bootstrapServers) { this.bootstrapServers = bootstrapServers; this.__explicitlySet__.add("bootstrapServers"); return this; @@ -291,7 +292,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -301,11 +302,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -378,7 +386,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -387,11 +395,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -458,7 +474,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -467,11 +483,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -499,7 +523,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. @@ -509,11 +533,18 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder **/ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka Ssl Key password is stored. * Note: When provided, 'sslKeyPassword' field must not be provided. @@ -790,7 +821,7 @@ public CreateKafkaConnectionDetails( KafkaConnection.TechnologyType technologyType, String streamPoolId, String clusterId, - java.util.List bootstrapServers, + java.util.List bootstrapServers, KafkaConnection.SecurityProtocol securityProtocol, String username, String password, @@ -830,6 +861,85 @@ public CreateKafkaConnectionDetails( this.bootstrapServers = bootstrapServers; this.securityProtocol = securityProtocol; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.consumerProperties = consumerProperties; + this.producerProperties = producerProperties; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateKafkaConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + KafkaConnection.TechnologyType technologyType, + String streamPoolId, + String clusterId, + java.util.List bootstrapServers, + KafkaConnection.SecurityProtocol securityProtocol, + String username, + char[] password, + String passwordSecretId, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + char[] sslKeyPassword, + String sslKeyPasswordSecretId, + String consumerProperties, + String producerProperties, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.streamPoolId = streamPoolId; + this.clusterId = clusterId; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -905,7 +1015,7 @@ public String getClusterId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("bootstrapServers") - private final java.util.List bootstrapServers; + private final java.util.List bootstrapServers; /** * Kafka bootstrap. Equivalent of bootstrap.servers configuration property in Kafka: @@ -915,7 +1025,7 @@ public String getClusterId() { * * @return the value **/ - public java.util.List getBootstrapServers() { + public java.util.List getBootstrapServers() { return bootstrapServers; } @@ -962,7 +1072,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -971,7 +1095,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -1041,7 +1166,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -1049,7 +1187,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1113,7 +1252,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -1121,7 +1273,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1150,7 +1303,21 @@ public String getKeyStorePasswordSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; + + /** + * The password for the cert inside of the KeyStore. + * In case it differs from the KeyStore password, it should be provided. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } /** * The password for the cert inside of the KeyStore. @@ -1159,7 +1326,8 @@ public String getKeyStorePasswordSecretId() { * * @return the value **/ - public String getSslKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } 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 67d85499c90..bb1a17b415d 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 @@ -248,7 +248,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to access Schema Registry using basic authentication. @@ -258,11 +258,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Kafka Schema Registry password is stored, * The password to access Schema Registry using basic authentication. @@ -333,7 +340,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -342,11 +349,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka Ssl TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -413,7 +428,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -422,11 +437,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka Ssl KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -454,7 +477,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside the KeyStore. @@ -464,11 +487,18 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder **/ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. @@ -491,38 +521,6 @@ public Builder sslKeyPasswordSecretId(String sslKeyPasswordSecretId) { this.__explicitlySet__.add("sslKeyPasswordSecretId"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -560,8 +558,7 @@ public CreateKafkaSchemaRegistryConnectionDetails build() { this.keyStorePassword, this.keyStorePasswordSecretId, this.sslKeyPassword, - this.sslKeyPasswordSecretId, - this.privateIp); + this.sslKeyPasswordSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -663,9 +660,6 @@ public Builder copy(CreateKafkaSchemaRegistryConnectionDetails model) { if (model.wasPropertyExplicitlySet("sslKeyPasswordSecretId")) { this.sslKeyPasswordSecretId(model.getSslKeyPasswordSecretId()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } return this; } } @@ -713,8 +707,76 @@ public CreateKafkaSchemaRegistryConnectionDetails( String keyStorePassword, String keyStorePasswordSecretId, String sslKeyPassword, - String sslKeyPasswordSecretId, - String privateIp) { + String sslKeyPasswordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.url = url; + this.authenticationType = authenticationType; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateKafkaSchemaRegistryConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + KafkaSchemaRegistryConnection.TechnologyType technologyType, + String url, + KafkaSchemaRegistryConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + char[] sslKeyPassword, + String sslKeyPasswordSecretId) { super( displayName, description, @@ -747,7 +809,6 @@ public CreateKafkaSchemaRegistryConnectionDetails( this.keyStorePasswordSecretId = keyStorePasswordSecretId; this.sslKeyPassword = sslKeyPassword; this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; - this.privateIp = privateIp; } /** @@ -825,7 +886,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password to access Schema Registry using basic authentication. + * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password to access Schema Registry using basic authentication. @@ -834,7 +909,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -902,7 +978,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -910,7 +999,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -974,7 +1064,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -982,7 +1085,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1011,7 +1115,21 @@ public String getKeyStorePasswordSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; + + /** + * The password for the cert inside the KeyStore. + * In case it differs from the KeyStore password, it should be provided. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } /** * The password for the cert inside the KeyStore. @@ -1020,7 +1138,8 @@ public String getKeyStorePasswordSecretId() { * * @return the value **/ - public String getSslKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } @@ -1044,36 +1163,6 @@ public String getSslKeyPasswordSecretId() { return sslKeyPasswordSecretId; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - @Override public String toString() { return this.toString(true); @@ -1106,7 +1195,6 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.keyStorePasswordSecretId)); sb.append(", sslKeyPassword=").append(""); sb.append(", sslKeyPasswordSecretId=").append(String.valueOf(this.sslKeyPasswordSecretId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(")"); return sb.toString(); } @@ -1141,7 +1229,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslKeyPassword, other.sslKeyPassword) && java.util.Objects.equals( this.sslKeyPasswordSecretId, other.sslKeyPasswordSecretId) - && java.util.Objects.equals(this.privateIp, other.privateIp) && super.equals(other); } @@ -1199,7 +1286,6 @@ public int hashCode() { + (this.sslKeyPasswordSecretId == null ? 43 : this.sslKeyPasswordSecretId.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); return result; } } 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 0c25a196565..0100b7bf587 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 @@ -260,7 +260,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -269,11 +269,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. * Note: When provided, 'password' field must not be provided. @@ -369,38 +376,6 @@ public Builder shouldValidateServerCertificate(Boolean shouldValidateServerCerti this.__explicitlySet__.add("shouldValidateServerCertificate"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -433,8 +408,7 @@ public CreateMicrosoftSqlserverConnectionDetails build() { this.additionalAttributes, this.securityProtocol, this.sslCa, - this.shouldValidateServerCertificate, - this.privateIp); + this.shouldValidateServerCertificate); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -521,9 +495,6 @@ public Builder copy(CreateMicrosoftSqlserverConnectionDetails model) { if (model.wasPropertyExplicitlySet("shouldValidateServerCertificate")) { this.shouldValidateServerCertificate(model.getShouldValidateServerCertificate()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } return this; } } @@ -566,8 +537,65 @@ public CreateMicrosoftSqlserverConnectionDetails( java.util.List additionalAttributes, MicrosoftSqlserverConnection.SecurityProtocol securityProtocol, String sslCa, - Boolean shouldValidateServerCertificate, - String privateIp) { + Boolean shouldValidateServerCertificate) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslCa = sslCa; + this.shouldValidateServerCertificate = shouldValidateServerCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMicrosoftSqlserverConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + MicrosoftSqlserverConnection.TechnologyType technologyType, + String databaseName, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + java.util.List additionalAttributes, + MicrosoftSqlserverConnection.SecurityProtocol securityProtocol, + String sslCa, + Boolean shouldValidateServerCertificate) { super( displayName, description, @@ -595,7 +623,6 @@ public CreateMicrosoftSqlserverConnectionDetails( this.securityProtocol = securityProtocol; this.sslCa = sslCa; this.shouldValidateServerCertificate = shouldValidateServerCertificate; - this.privateIp = privateIp; } /** @@ -684,7 +711,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -692,7 +732,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -780,36 +821,6 @@ public Boolean getShouldValidateServerCertificate() { return shouldValidateServerCertificate; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - @Override public String toString() { return this.toString(true); @@ -836,7 +847,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCa=").append(String.valueOf(this.sslCa)); sb.append(", shouldValidateServerCertificate=") .append(String.valueOf(this.shouldValidateServerCertificate)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(")"); return sb.toString(); } @@ -864,7 +874,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslCa, other.sslCa) && java.util.Objects.equals( this.shouldValidateServerCertificate, other.shouldValidateServerCertificate) - && java.util.Objects.equals(this.privateIp, other.privateIp) && super.equals(other); } @@ -897,7 +906,6 @@ public int hashCode() { + (this.shouldValidateServerCertificate == null ? 43 : this.shouldValidateServerCertificate.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); return result; } } 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 569a7566a92..abfaeb51ca7 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 @@ -226,7 +226,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated database. @@ -235,11 +235,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect the associated database. * Note: When provided, 'password' field must not be provided. @@ -362,7 +369,7 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private String tlsCertificateKeyFilePassword; + private char[] tlsCertificateKeyFilePassword; /** * Client Certificate key file password. @@ -371,11 +378,21 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * @param tlsCertificateKeyFilePassword the value to set * @return this builder **/ - public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + public Builder tlsCertificateKeyFilePassword(char[] tlsCertificateKeyFilePassword) { this.tlsCertificateKeyFilePassword = tlsCertificateKeyFilePassword; this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); return this; } + + public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password of the tls certificate key file. * Note: When provided, 'tlsCertificateKeyFilePassword' field must not be provided. @@ -584,6 +601,69 @@ public CreateMongoDbConnectionDetails( this.technologyType = technologyType; this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.databaseId = databaseId; + this.securityProtocol = securityProtocol; + this.tlsCaFile = tlsCaFile; + this.tlsCertificateKeyFile = tlsCertificateKeyFile; + this.tlsCertificateKeyFileSecretId = tlsCertificateKeyFileSecretId; + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.tlsCertificateKeyFilePasswordSecretId = tlsCertificateKeyFilePasswordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMongoDbConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + MongoDbConnection.TechnologyType technologyType, + String connectionString, + String username, + char[] password, + String passwordSecretId, + String databaseId, + MongoDbConnection.SecurityProtocol securityProtocol, + String tlsCaFile, + String tlsCertificateKeyFile, + String tlsCertificateKeyFileSecretId, + char[] tlsCertificateKeyFilePassword, + String tlsCertificateKeyFilePasswordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.databaseId = databaseId; @@ -651,7 +731,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated database. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated database. @@ -659,7 +752,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -773,7 +867,22 @@ public String getTlsCertificateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private final String tlsCertificateKeyFilePassword; + private final char[] tlsCertificateKeyFilePassword; + + /** + * Client Certificate key file password. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTlsCertificateKeyFilePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTlsCertificateKeyFilePassword() { + return tlsCertificateKeyFilePassword != null + ? new String(tlsCertificateKeyFilePassword) + : null; + } /** * Client Certificate key file password. @@ -781,7 +890,8 @@ public String getTlsCertificateKeyFileSecretId() { * * @return the value **/ - public String getTlsCertificateKeyFilePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") + public char[] getTlsCertificateKeyFilePassword__AsCharArray() { return tlsCertificateKeyFilePassword; } 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 21b82ef1f67..d5642a3341e 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 @@ -209,7 +209,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -219,11 +219,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -444,38 +451,6 @@ public Builder sslKeySecretId(String sslKeySecretId) { this.__explicitlySet__.add("sslKeySecretId"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } /** * An array of name-value pair attribute entries. * Used as additional parameters in connection string. @@ -550,7 +525,6 @@ public CreateMysqlConnectionDetails build() { this.sslCert, this.sslKey, this.sslKeySecretId, - this.privateIp, this.additionalAttributes, this.dbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -648,9 +622,6 @@ public Builder copy(CreateMysqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("sslKeySecretId")) { this.sslKeySecretId(model.getSslKeySecretId()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } if (model.wasPropertyExplicitlySet("additionalAttributes")) { this.additionalAttributes(model.getAdditionalAttributes()); } @@ -703,7 +674,74 @@ public CreateMysqlConnectionDetails( String sslCert, String sslKey, String sslKeySecretId, - String privateIp, + java.util.List additionalAttributes, + String dbSystemId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + 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.sslKeySecretId = sslKeySecretId; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMysqlConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + MysqlConnection.TechnologyType technologyType, + String username, + char[] password, + String passwordSecretId, + String host, + Integer port, + String databaseName, + MysqlConnection.SecurityProtocol securityProtocol, + MysqlConnection.SslMode sslMode, + String sslCa, + String sslCrl, + String sslCert, + String sslKey, + String sslKeySecretId, java.util.List additionalAttributes, String dbSystemId) { super( @@ -736,7 +774,6 @@ public CreateMysqlConnectionDetails( this.sslCert = sslCert; this.sslKey = sslKey; this.sslKeySecretId = sslKeySecretId; - this.privateIp = privateIp; this.additionalAttributes = additionalAttributes; this.dbSystemId = dbSystemId; } @@ -782,7 +819,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -791,7 +842,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -993,36 +1045,6 @@ public String getSslKeySecretId() { return sslKeySecretId; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - /** * An array of name-value pair attribute entries. * Used as additional parameters in connection string. @@ -1085,7 +1107,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCert=").append(String.valueOf(this.sslCert)); sb.append(", sslKey=").append(String.valueOf(this.sslKey)); sb.append(", sslKeySecretId=").append(String.valueOf(this.sslKeySecretId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); @@ -1116,7 +1137,6 @@ 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.sslKeySecretId, other.sslKeySecretId) - && java.util.Objects.equals(this.privateIp, other.privateIp) && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && super.equals(other); @@ -1148,7 +1168,6 @@ public int hashCode() { result = (result * PRIME) + (this.sslKeySecretId == null ? 43 : this.sslKeySecretId.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); result = (result * PRIME) + (this.additionalAttributes == null 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 dae18b2a721..25d59f8eed2 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 @@ -290,7 +290,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. @@ -299,11 +299,19 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder **/ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the passphrase of the private key. * Note: When provided, 'privateKeyPassphrase' field must not be provided. @@ -543,6 +551,63 @@ public CreateOciObjectStorageConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOciObjectStorageConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + OciObjectStorageConnection.TechnologyType technologyType, + String tenancyId, + String region, + String userId, + String privateKeyFile, + String privateKeyFileSecretId, + char[] privateKeyPassphrase, + String privateKeyPassphraseSecretId, + String publicKeyFingerprint, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -663,7 +728,20 @@ public String getPrivateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * The passphrase of the private key. @@ -671,7 +749,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value **/ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } 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 1113a9f3b3d..4708a294fbb 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 @@ -23,6 +23,34 @@ public final class CreateOggDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateOggDeploymentDetails( + String deploymentName, + CredentialStore credentialStore, + String identityDomainId, + String passwordSecretId, + String adminUsername, + String adminPassword, + String certificate, + String key, + String keySecretId, + String oggVersion, + GroupToRolesMappingDetails groupToRolesMapping) { + super(); + this.deploymentName = deploymentName; + this.credentialStore = credentialStore; + this.identityDomainId = identityDomainId; + this.passwordSecretId = passwordSecretId; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.certificate = certificate; + this.key = key; + this.keySecretId = keySecretId; + this.oggVersion = oggVersion; + this.groupToRolesMapping = groupToRolesMapping; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "deploymentName", "credentialStore", @@ -32,6 +60,7 @@ public final class CreateOggDeploymentDetails "adminPassword", "certificate", "key", + "keySecretId", "oggVersion", "groupToRolesMapping" }) @@ -41,9 +70,10 @@ public CreateOggDeploymentDetails( String identityDomainId, String passwordSecretId, String adminUsername, - String adminPassword, + char[] adminPassword, String certificate, String key, + String keySecretId, String oggVersion, GroupToRolesMappingDetails groupToRolesMapping) { super(); @@ -55,6 +85,7 @@ public CreateOggDeploymentDetails( this.adminPassword = adminPassword; this.certificate = certificate; this.key = key; + this.keySecretId = keySecretId; this.oggVersion = oggVersion; this.groupToRolesMapping = groupToRolesMapping; } @@ -63,7 +94,8 @@ public CreateOggDeploymentDetails( public static class Builder { /** * The name given to the GoldenGate service deployment. - * The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter. + * The name must contain only alphanumeric characters and must start with a letter. + * For standby deployment the deployment name is inherited from primary. * **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentName") @@ -71,7 +103,8 @@ public static class Builder { /** * The name given to the GoldenGate service deployment. - * The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter. + * The name must contain only alphanumeric characters and must start with a letter. + * For standby deployment the deployment name is inherited from primary. * * @param deploymentName the value to set * @return this builder @@ -161,7 +194,7 @@ public Builder adminUsername(String adminUsername) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password associated with the GoldenGate deployment console username. @@ -172,11 +205,18 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** * The base64 encoded content of the PEM file containing the SSL certificate. * @@ -213,6 +253,24 @@ public Builder key(String key) { this.__explicitlySet__.add("key"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keySecretId") + private String keySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + * @param keySecretId the value to set + * @return this builder + **/ + public Builder keySecretId(String keySecretId) { + this.keySecretId = keySecretId; + this.__explicitlySet__.add("keySecretId"); + return this; + } /** * Version of OGG * @@ -255,6 +313,7 @@ public CreateOggDeploymentDetails build() { this.adminPassword, this.certificate, this.key, + this.keySecretId, this.oggVersion, this.groupToRolesMapping); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -289,6 +348,9 @@ public Builder copy(CreateOggDeploymentDetails model) { if (model.wasPropertyExplicitlySet("key")) { this.key(model.getKey()); } + if (model.wasPropertyExplicitlySet("keySecretId")) { + this.keySecretId(model.getKeySecretId()); + } if (model.wasPropertyExplicitlySet("oggVersion")) { this.oggVersion(model.getOggVersion()); } @@ -312,7 +374,8 @@ public Builder toBuilder() { /** * The name given to the GoldenGate service deployment. - * The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter. + * The name must contain only alphanumeric characters and must start with a letter. + * For standby deployment the deployment name is inherited from primary. * **/ @com.fasterxml.jackson.annotation.JsonProperty("deploymentName") @@ -320,7 +383,8 @@ public Builder toBuilder() { /** * The name given to the GoldenGate service deployment. - * The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter. + * The name must contain only alphanumeric characters and must start with a letter. + * For standby deployment the deployment name is inherited from primary. * * @return the value **/ @@ -400,7 +464,22 @@ public String getAdminUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The password associated with the GoldenGate deployment console username. + * The password must be 8 to 30 characters long and must contain at least 1 uppercase, 1 lowercase, 1 numeric, + * and 1 special character. Special characters such as '$', '^', or '?' are not allowed. + * This field will be deprecated and replaced by "passwordSecretId". + * + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The password associated with the GoldenGate deployment console username. @@ -410,7 +489,8 @@ public String getAdminUsername() { * * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } @@ -446,6 +526,22 @@ public String getKey() { return key; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keySecretId") + private final String keySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + * @return the value + **/ + public String getKeySecretId() { + return keySecretId; + } + /** * Version of OGG * @@ -491,6 +587,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminPassword=").append(""); sb.append(", certificate=").append(String.valueOf(this.certificate)); sb.append(", key=").append(String.valueOf(this.key)); + sb.append(", keySecretId=").append(String.valueOf(this.keySecretId)); sb.append(", oggVersion=").append(String.valueOf(this.oggVersion)); sb.append(", groupToRolesMapping=").append(String.valueOf(this.groupToRolesMapping)); sb.append(")"); @@ -515,6 +612,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.adminPassword, other.adminPassword) && java.util.Objects.equals(this.certificate, other.certificate) && java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.keySecretId, other.keySecretId) && java.util.Objects.equals(this.oggVersion, other.oggVersion) && java.util.Objects.equals(this.groupToRolesMapping, other.groupToRolesMapping) && super.equals(other); @@ -544,6 +642,7 @@ public int hashCode() { + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); result = (result * PRIME) + (this.certificate == null ? 43 : this.certificate.hashCode()); result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.keySecretId == null ? 43 : this.keySecretId.hashCode()); result = (result * PRIME) + (this.oggVersion == null ? 43 : this.oggVersion.hashCode()); result = (result * PRIME) diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java index 1187e67a861..d063921266c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java @@ -303,6 +303,56 @@ public Builder privateKeyPassphraseSecretId(String privateKeyPassphraseSecretId) this.__explicitlySet__.add("privateKeyPassphraseSecretId"); return this; } + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + private String privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + * @param privateKeyFile the value to set + * @return this builder + **/ + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + private char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @param privateKeyPassphrase the value to set + * @return this builder + **/ + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { + this.privateKeyPassphrase = privateKeyPassphrase; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The fingerprint of the API Key of the user specified by the userId. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -372,6 +422,8 @@ public CreateOracleAiDataPlatformConnectionDetails build() { this.userId, this.privateKeyFileSecretId, this.privateKeyPassphraseSecretId, + this.privateKeyFile, + this.privateKeyPassphrase, this.publicKeyFingerprint, this.shouldUseResourcePrincipal); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -448,6 +500,12 @@ public Builder copy(CreateOracleAiDataPlatformConnectionDetails model) { if (model.wasPropertyExplicitlySet("privateKeyPassphraseSecretId")) { this.privateKeyPassphraseSecretId(model.getPrivateKeyPassphraseSecretId()); } + if (model.wasPropertyExplicitlySet("privateKeyFile")) { + this.privateKeyFile(model.getPrivateKeyFile()); + } + if (model.wasPropertyExplicitlySet("privateKeyPassphrase")) { + this.privateKeyPassphrase(model.getPrivateKeyPassphrase()); + } if (model.wasPropertyExplicitlySet("publicKeyFingerprint")) { this.publicKeyFingerprint(model.getPublicKeyFingerprint()); } @@ -493,6 +551,67 @@ public CreateOracleAiDataPlatformConnectionDetails( String userId, String privateKeyFileSecretId, String privateKeyPassphraseSecretId, + String privateKeyFile, + String privateKeyPassphrase, + String publicKeyFingerprint, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionUrl = connectionUrl; + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleAiDataPlatformConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + OracleAiDataPlatformConnection.TechnologyType technologyType, + String connectionUrl, + String tenancyId, + String region, + String userId, + String privateKeyFileSecretId, + String privateKeyPassphraseSecretId, + String privateKeyFile, + char[] privateKeyPassphrase, String publicKeyFingerprint, Boolean shouldUseResourcePrincipal) { super( @@ -518,6 +637,8 @@ public CreateOracleAiDataPlatformConnectionDetails( this.userId = userId; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyPassphrase = privateKeyPassphrase; this.publicKeyFingerprint = publicKeyFingerprint; this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; } @@ -646,6 +767,58 @@ public String getPrivateKeyPassphraseSecretId() { return privateKeyPassphraseSecretId; } + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + private final String privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + public String getPrivateKeyFile() { + return privateKeyFile; + } + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + private final char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { + return privateKeyPassphrase; + } + /** * The fingerprint of the API Key of the user specified by the userId. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -704,6 +877,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphraseSecretId=") .append(String.valueOf(this.privateKeyPassphraseSecretId)); + sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyPassphrase=").append(""); sb.append(", publicKeyFingerprint=").append(String.valueOf(this.publicKeyFingerprint)); sb.append(", shouldUseResourcePrincipal=") .append(String.valueOf(this.shouldUseResourcePrincipal)); @@ -731,6 +906,8 @@ public boolean equals(Object o) { this.privateKeyFileSecretId, other.privateKeyFileSecretId) && java.util.Objects.equals( this.privateKeyPassphraseSecretId, other.privateKeyPassphraseSecretId) + && java.util.Objects.equals(this.privateKeyFile, other.privateKeyFile) + && java.util.Objects.equals(this.privateKeyPassphrase, other.privateKeyPassphrase) && java.util.Objects.equals(this.publicKeyFingerprint, other.publicKeyFingerprint) && java.util.Objects.equals( this.shouldUseResourcePrincipal, other.shouldUseResourcePrincipal) @@ -760,6 +937,14 @@ public int hashCode() { + (this.privateKeyPassphraseSecretId == null ? 43 : this.privateKeyPassphraseSecretId.hashCode()); + result = + (result * PRIME) + + (this.privateKeyFile == null ? 43 : this.privateKeyFile.hashCode()); + result = + (result * PRIME) + + (this.privateKeyPassphrase == null + ? 43 + : this.privateKeyPassphrase.hashCode()); result = (result * PRIME) + (this.publicKeyFingerprint == null 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 e29bde70b80..8cf2f74e326 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 @@ -209,7 +209,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -219,11 +219,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -333,20 +340,32 @@ public Builder walletSecretId(String walletSecretId) { 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private OracleConnection.SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @param sessionMode the value to set * @return this builder @@ -356,38 +375,6 @@ public Builder sessionMode(OracleConnection.SessionMode sessionMode) { this.__explicitlySet__.add("sessionMode"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database being referenced. * @@ -437,7 +424,6 @@ public CreateOracleConnectionDetails build() { this.wallet, this.walletSecretId, this.sessionMode, - this.privateIp, this.databaseId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -519,9 +505,6 @@ public Builder copy(CreateOracleConnectionDetails model) { if (model.wasPropertyExplicitlySet("sessionMode")) { this.sessionMode(model.getSessionMode()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } if (model.wasPropertyExplicitlySet("databaseId")) { this.databaseId(model.getDatabaseId()); } @@ -566,7 +549,62 @@ public CreateOracleConnectionDetails( String wallet, String walletSecretId, OracleConnection.SessionMode sessionMode, - String privateIp, + String databaseId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.connectionString = connectionString; + this.authenticationMode = authenticationMode; + this.wallet = wallet; + this.walletSecretId = walletSecretId; + this.sessionMode = sessionMode; + this.databaseId = databaseId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + OracleConnection.TechnologyType technologyType, + String username, + char[] password, + String passwordSecretId, + String connectionString, + OracleConnection.AuthenticationMode authenticationMode, + String wallet, + String walletSecretId, + OracleConnection.SessionMode sessionMode, String databaseId) { super( displayName, @@ -593,7 +631,6 @@ public CreateOracleConnectionDetails( this.wallet = wallet; this.walletSecretId = walletSecretId; this.sessionMode = sessionMode; - this.privateIp = privateIp; this.databaseId = databaseId; } @@ -638,7 +675,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -647,7 +698,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -750,55 +802,37 @@ public String getWalletSecretId() { } /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private final OracleConnection.SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. - * - * @return the value - **/ - public OracleConnection.SessionMode getSessionMode() { - return sessionMode; - } - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @return the value **/ - public String getPrivateIp() { - return privateIp; + public OracleConnection.SessionMode getSessionMode() { + return sessionMode; } /** @@ -840,7 +874,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", wallet=").append(String.valueOf(this.wallet)); sb.append(", walletSecretId=").append(String.valueOf(this.walletSecretId)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", databaseId=").append(String.valueOf(this.databaseId)); sb.append(")"); return sb.toString(); @@ -865,7 +898,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.wallet, other.wallet) && java.util.Objects.equals(this.walletSecretId, other.walletSecretId) && java.util.Objects.equals(this.sessionMode, other.sessionMode) - && java.util.Objects.equals(this.privateIp, other.privateIp) && java.util.Objects.equals(this.databaseId, other.databaseId) && super.equals(other); } @@ -895,7 +927,6 @@ public int hashCode() { (result * PRIME) + (this.walletSecretId == null ? 43 : this.walletSecretId.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()); return result; } 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 c54cca3e78c..c3949c97e8f 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 @@ -290,7 +290,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. @@ -299,11 +299,19 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder **/ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the passphrase of the private key. * Note: When provided, 'privateKeyPassphrase' field must not be provided. @@ -543,6 +551,63 @@ public CreateOracleNosqlConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleNosqlConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + OracleNosqlConnection.TechnologyType technologyType, + String tenancyId, + String region, + String userId, + String privateKeyFile, + String privateKeyFileSecretId, + char[] privateKeyPassphrase, + String privateKeyPassphraseSecretId, + String publicKeyFingerprint, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -663,7 +728,20 @@ public String getPrivateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * The passphrase of the private key. @@ -671,7 +749,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value **/ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java index ad7b2e124de..433dfa4709a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java @@ -41,7 +41,9 @@ public class CreatePipelineDetails extends com.oracle.bmc.http.internal.Explicit "locks", "sourceConnectionDetails", "targetConnectionDetails", - "subnetId" + "subnetId", + "cpuCoreCount", + "isAutoScalingEnabled" }) protected CreatePipelineDetails( String displayName, @@ -53,7 +55,9 @@ protected CreatePipelineDetails( java.util.List locks, SourcePipelineConnectionDetails sourceConnectionDetails, TargetPipelineConnectionDetails targetConnectionDetails, - String subnetId) { + String subnetId, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled) { super(); this.displayName = displayName; this.description = description; @@ -65,6 +69,8 @@ protected CreatePipelineDetails( this.sourceConnectionDetails = sourceConnectionDetails; this.targetConnectionDetails = targetConnectionDetails; this.subnetId = subnetId; + this.cpuCoreCount = cpuCoreCount; + this.isAutoScalingEnabled = isAutoScalingEnabled; } /** @@ -219,6 +225,38 @@ public String getSubnetId() { return subnetId; } + /** + * The Minimum number of OCPUs to be made available for this Deployment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private final Integer cpuCoreCount; + + /** + * The Minimum number of OCPUs to be made available for this Deployment. + * + * @return the value + **/ + public Integer getCpuCoreCount() { + return cpuCoreCount; + } + + /** + * Indicates if auto scaling is enabled for the Deployment's CPU core count. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if auto scaling is enabled for the Deployment's CPU core count. + * + * @return the value + **/ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + @Override public String toString() { return this.toString(true); @@ -245,6 +283,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", targetConnectionDetails=") .append(String.valueOf(this.targetConnectionDetails)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); sb.append(")"); return sb.toString(); } @@ -271,6 +311,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.targetConnectionDetails, other.targetConnectionDetails) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) && super.equals(other); } @@ -298,6 +340,12 @@ public int hashCode() { ? 43 : this.targetConnectionDetails.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePolarisIcebergCatalogDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePolarisIcebergCatalogDetails.java index 4a54ab5b1d1..e106a663cfa 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePolarisIcebergCatalogDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePolarisIcebergCatalogDetails.java @@ -81,14 +81,14 @@ public Builder clientId(String clientId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @param clientSecretSecretId the value to set * @return this builder @@ -98,6 +98,31 @@ public Builder clientSecretSecretId(String clientSecretSecretId) { this.__explicitlySet__.add("clientSecretSecretId"); return this; } + /** + * Client secret required to connect to Polaris. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private char[] clientSecret; + + /** + * Client secret required to connect to Polaris. + * + * @param clientSecret the value to set + * @return this builder + **/ + public Builder clientSecret(char[] clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The Snowflake role used to access Polaris. **/ @@ -125,6 +150,7 @@ public CreatePolarisIcebergCatalogDetails build() { this.name, this.clientId, this.clientSecretSecretId, + this.clientSecret, this.principalRole); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -146,6 +172,9 @@ public Builder copy(CreatePolarisIcebergCatalogDetails model) { if (model.wasPropertyExplicitlySet("clientSecretSecretId")) { this.clientSecretSecretId(model.getClientSecretSecretId()); } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } if (model.wasPropertyExplicitlySet("principalRole")) { this.principalRole(model.getPrincipalRole()); } @@ -170,12 +199,32 @@ public CreatePolarisIcebergCatalogDetails( String name, String clientId, String clientSecretSecretId, + String clientSecret, + String principalRole) { + super(); + this.uri = uri; + this.name = name; + this.clientId = clientId; + this.clientSecretSecretId = clientSecretSecretId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.principalRole = principalRole; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePolarisIcebergCatalogDetails( + String uri, + String name, + String clientId, + String clientSecretSecretId, + char[] clientSecret, String principalRole) { super(); this.uri = uri; this.name = name; this.clientId = clientId; this.clientSecretSecretId = clientSecretSecretId; + this.clientSecret = clientSecret; this.principalRole = principalRole; } @@ -226,14 +275,14 @@ public String getClientId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private final String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @return the value **/ @@ -241,6 +290,35 @@ public String getClientSecretSecretId() { return clientSecretSecretId; } + /** + * Client secret required to connect to Polaris. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final char[] clientSecret; + + /** + * Client secret required to connect to Polaris. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * Client secret required to connect to Polaris. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { + return clientSecret; + } + /** * The Snowflake role used to access Polaris. **/ @@ -273,6 +351,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", name=").append(String.valueOf(this.name)); sb.append(", clientId=").append(String.valueOf(this.clientId)); sb.append(", clientSecretSecretId=").append(String.valueOf(this.clientSecretSecretId)); + sb.append(", clientSecret=").append(""); sb.append(", principalRole=").append(String.valueOf(this.principalRole)); sb.append(")"); return sb.toString(); @@ -292,6 +371,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.clientId, other.clientId) && java.util.Objects.equals(this.clientSecretSecretId, other.clientSecretSecretId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) && java.util.Objects.equals(this.principalRole, other.principalRole) && super.equals(other); } @@ -308,6 +388,7 @@ public int hashCode() { + (this.clientSecretSecretId == null ? 43 : this.clientSecretSecretId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); result = (result * PRIME) + (this.principalRole == null ? 43 : this.principalRole.hashCode()); 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 3c5de061224..5570990522e 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 @@ -263,7 +263,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -273,11 +273,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -458,38 +465,6 @@ public Builder sslKeySecretId(String sslKeySecretId) { this.__explicitlySet__.add("sslKeySecretId"); return this; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database system being referenced. * @@ -545,7 +520,6 @@ public CreatePostgresqlConnectionDetails build() { this.sslCert, this.sslKey, this.sslKeySecretId, - this.privateIp, this.dbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -645,9 +619,6 @@ public Builder copy(CreatePostgresqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("sslKeySecretId")) { this.sslKeySecretId(model.getSslKeySecretId()); } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } if (model.wasPropertyExplicitlySet("dbSystemId")) { this.dbSystemId(model.getDbSystemId()); } @@ -698,7 +669,74 @@ public CreatePostgresqlConnectionDetails( String sslCert, String sslKey, String sslKeySecretId, - String privateIp, + String dbSystemId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.sslKeySecretId = sslKeySecretId; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePostgresqlConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + PostgresqlConnection.TechnologyType technologyType, + String databaseName, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + java.util.List additionalAttributes, + PostgresqlConnection.SecurityProtocol securityProtocol, + PostgresqlConnection.SslMode sslMode, + String sslCa, + String sslCrl, + String sslCert, + String sslKey, + String sslKeySecretId, String dbSystemId) { super( displayName, @@ -731,7 +769,6 @@ public CreatePostgresqlConnectionDetails( this.sslCert = sslCert; this.sslKey = sslKey; this.sslKeySecretId = sslKeySecretId; - this.privateIp = privateIp; this.dbSystemId = dbSystemId; } @@ -824,7 +861,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -833,7 +884,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -999,36 +1051,6 @@ public String getSslKeySecretId() { return sslKeySecretId; } - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. - *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. - * - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database system being referenced. * @@ -1074,7 +1096,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCert=").append(String.valueOf(this.sslCert)); sb.append(", sslKey=").append(String.valueOf(this.sslKey)); sb.append(", sslKeySecretId=").append(String.valueOf(this.sslKeySecretId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); return sb.toString(); @@ -1105,7 +1126,6 @@ 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.sslKeySecretId, other.sslKeySecretId) - && java.util.Objects.equals(this.privateIp, other.privateIp) && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && super.equals(other); } @@ -1141,7 +1161,6 @@ public int hashCode() { result = (result * PRIME) + (this.sslKeySecretId == null ? 43 : this.sslKeySecretId.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 10fe8ea76a6..3e875799c1f 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 @@ -265,7 +265,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -275,11 +275,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -352,7 +359,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -361,11 +368,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Redis TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -432,7 +447,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -441,11 +456,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Redis KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -692,6 +715,75 @@ public CreateRedisConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.redisClusterId = redisClusterId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateRedisConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + RedisConnection.TechnologyType technologyType, + String servers, + RedisConnection.SecurityProtocol securityProtocol, + RedisConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + String redisClusterId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -796,7 +888,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -805,7 +911,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -875,7 +982,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -883,7 +1003,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -947,7 +1068,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -955,7 +1089,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java index 852f3b9197e..f2998bdb954 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java @@ -70,13 +70,32 @@ public Builder propertiesSecretId(String propertiesSecretId) { this.__explicitlySet__.add("propertiesSecretId"); return this; } + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private String properties; + + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + * @param properties the value to set + * @return this builder + **/ + public Builder properties(String properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateRestIcebergCatalogDetails build() { CreateRestIcebergCatalogDetails model = - new CreateRestIcebergCatalogDetails(this.uri, this.propertiesSecretId); + new CreateRestIcebergCatalogDetails( + this.uri, this.propertiesSecretId, this.properties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -91,6 +110,9 @@ public Builder copy(CreateRestIcebergCatalogDetails model) { if (model.wasPropertyExplicitlySet("propertiesSecretId")) { this.propertiesSecretId(model.getPropertiesSecretId()); } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } return this; } } @@ -107,10 +129,12 @@ public Builder toBuilder() { } @Deprecated - public CreateRestIcebergCatalogDetails(String uri, String propertiesSecretId) { + public CreateRestIcebergCatalogDetails( + String uri, String propertiesSecretId, String properties) { super(); this.uri = uri; this.propertiesSecretId = propertiesSecretId; + this.properties = properties; } /** @@ -151,6 +175,22 @@ public String getPropertiesSecretId() { return propertiesSecretId; } + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final String properties; + + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + * @return the value + **/ + public String getProperties() { + return properties; + } + @Override public String toString() { return this.toString(true); @@ -167,6 +207,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", propertiesSecretId=").append(String.valueOf(this.propertiesSecretId)); + sb.append(", properties=").append(String.valueOf(this.properties)); sb.append(")"); return sb.toString(); } @@ -183,6 +224,7 @@ public boolean equals(Object o) { CreateRestIcebergCatalogDetails other = (CreateRestIcebergCatalogDetails) o; return java.util.Objects.equals(this.uri, other.uri) && java.util.Objects.equals(this.propertiesSecretId, other.propertiesSecretId) + && java.util.Objects.equals(this.properties, other.properties) && super.equals(other); } @@ -196,6 +238,7 @@ public int hashCode() { + (this.propertiesSecretId == null ? 43 : this.propertiesSecretId.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.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 61cb532aad6..e59b5a42df1 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 @@ -245,7 +245,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect to Snowflake platform. @@ -254,11 +254,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -333,7 +340,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * Password if the private key file is encrypted. @@ -342,11 +349,19 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder **/ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password for the private key file. * Note: When provided, 'privateKeyPassphrase' field must not be provided. @@ -544,6 +559,63 @@ public CreateSnowflakeConnectionDetails( this.connectionUrl = connectionUrl; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateSnowflakeConnectionDetails( + 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, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + SnowflakeConnection.TechnologyType technologyType, + String connectionUrl, + SnowflakeConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String privateKeyFile, + String privateKeyFileSecretId, + char[] privateKeyPassphrase, + String privateKeyPassphraseSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionUrl = connectionUrl; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateKeyFile = privateKeyFile; @@ -624,7 +696,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect to Snowflake platform. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect to Snowflake platform. @@ -632,7 +717,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -704,7 +790,20 @@ public String getPrivateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * Password if the private key file is encrypted. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * Password if the private key file is encrypted. @@ -712,7 +811,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value **/ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java index 94cd0a634c9..515e0b2bf2b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java @@ -121,6 +121,24 @@ public Builder subnetId(String subnetId) { 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("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") private ProcessOptions processOptions; @@ -146,6 +164,8 @@ public CreateZeroEtlPipelineDetails build() { this.sourceConnectionDetails, this.targetConnectionDetails, this.subnetId, + this.cpuCoreCount, + this.isAutoScalingEnabled, this.processOptions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -185,6 +205,12 @@ public Builder copy(CreateZeroEtlPipelineDetails model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } if (model.wasPropertyExplicitlySet("processOptions")) { this.processOptions(model.getProcessOptions()); } @@ -215,6 +241,8 @@ public CreateZeroEtlPipelineDetails( SourcePipelineConnectionDetails sourceConnectionDetails, TargetPipelineConnectionDetails targetConnectionDetails, String subnetId, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled, ProcessOptions processOptions) { super( displayName, @@ -226,7 +254,9 @@ public CreateZeroEtlPipelineDetails( locks, sourceConnectionDetails, targetConnectionDetails, - subnetId); + subnetId, + cpuCoreCount, + isAutoScalingEnabled); this.processOptions = processOptions; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DatabaseRegistration.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DatabaseRegistration.java index 3fea33fc146..5e0b48eacb3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DatabaseRegistration.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DatabaseRegistration.java @@ -46,7 +46,8 @@ public final class DatabaseRegistration extends com.oracle.bmc.http.internal.Exp "vaultId", "keyId", "secretCompartmentId", - "secretId" + "secretId", + "connectionId" }) public DatabaseRegistration( String id, @@ -72,7 +73,8 @@ public DatabaseRegistration( String vaultId, String keyId, String secretCompartmentId, - String secretId) { + String secretId, + String connectionId) { super(); this.id = id; this.displayName = displayName; @@ -98,6 +100,7 @@ public DatabaseRegistration( this.keyId = keyId; this.secretCompartmentId = secretCompartmentId; this.secretId = secretId; + this.connectionId = connectionId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -591,6 +594,26 @@ public Builder secretId(String secretId) { this.__explicitlySet__.add("secretId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being + * referenced as the successor resource of the deprecated database registration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private String connectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being + * referenced as the successor resource of the deprecated database registration. + * + * @param connectionId the value to set + * @return this builder + **/ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + this.__explicitlySet__.add("connectionId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -621,7 +644,8 @@ public DatabaseRegistration build() { this.vaultId, this.keyId, this.secretCompartmentId, - this.secretId); + this.secretId, + this.connectionId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -702,6 +726,9 @@ public Builder copy(DatabaseRegistration model) { if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } + if (model.wasPropertyExplicitlySet("connectionId")) { + this.connectionId(model.getConnectionId()); + } return this; } } @@ -1209,6 +1236,24 @@ public String getSecretId() { return secretId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being + * referenced as the successor resource of the deprecated database registration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private final String connectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being + * referenced as the successor resource of the deprecated database registration. + * + * @return the value + **/ + public String getConnectionId() { + return connectionId; + } + @Override public String toString() { return this.toString(true); @@ -1247,6 +1292,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", keyId=").append(String.valueOf(this.keyId)); sb.append(", secretCompartmentId=").append(String.valueOf(this.secretCompartmentId)); sb.append(", secretId=").append(String.valueOf(this.secretId)); + sb.append(", connectionId=").append(String.valueOf(this.connectionId)); sb.append(")"); return sb.toString(); } @@ -1285,6 +1331,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.keyId, other.keyId) && java.util.Objects.equals(this.secretCompartmentId, other.secretCompartmentId) && java.util.Objects.equals(this.secretId, other.secretId) + && java.util.Objects.equals(this.connectionId, other.connectionId) && super.equals(other); } @@ -1328,6 +1375,7 @@ public int hashCode() { ? 43 : this.secretCompartmentId.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); + result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultClonePipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultClonePipelineDetails.java new file mode 100644 index 00000000000..abc0112c94f --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultClonePipelineDetails.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Attribute details for a default pipeline clone. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = DefaultClonePipelineDetails.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 DefaultClonePipelineDetails extends ClonePipelineDetails { + @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("sourcePipelineId") + private String sourcePipelineId; + + public Builder sourcePipelineId(String sourcePipelineId) { + this.sourcePipelineId = sourcePipelineId; + this.__explicitlySet__.add("sourcePipelineId"); + 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("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("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 DefaultClonePipelineDetails build() { + DefaultClonePipelineDetails model = + new DefaultClonePipelineDetails( + this.displayName, + this.sourcePipelineId, + this.compartmentId, + this.description, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultClonePipelineDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourcePipelineId")) { + this.sourcePipelineId(model.getSourcePipelineId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + 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("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 DefaultClonePipelineDetails( + String displayName, + String sourcePipelineId, + String compartmentId, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super( + displayName, + sourcePipelineId, + compartmentId, + description, + 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("DefaultClonePipelineDetails("); + 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 DefaultClonePipelineDetails)) { + return false; + } + + DefaultClonePipelineDetails other = (DefaultClonePipelineDetails) 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/Deployment.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Deployment.java index d826e7d4944..7ae6df5eabd 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 @@ -59,7 +59,6 @@ public final class Deployment extends com.oracle.bmc.http.internal.ExplicitlySet "deploymentUrl", "systemTags", "isLatestVersion", - "timeUpgradeRequired", "storageUtilizationInBytes", "isStorageUtilizationLimitExceeded", "deploymentType", @@ -77,7 +76,8 @@ public final class Deployment extends com.oracle.bmc.http.internal.ExplicitlySet "ingressIps", "subscriptionId", "clusterPlacementGroupId", - "securityAttributes" + "securityAttributes", + "disasterRecoveryStatus" }) public Deployment( String id, @@ -118,7 +118,6 @@ public Deployment( String deploymentUrl, java.util.Map> systemTags, Boolean isLatestVersion, - java.util.Date timeUpgradeRequired, Long storageUtilizationInBytes, Boolean isStorageUtilizationLimitExceeded, DeploymentType deploymentType, @@ -136,7 +135,8 @@ public Deployment( java.util.List ingressIps, String subscriptionId, String clusterPlacementGroupId, - java.util.Map> securityAttributes) { + java.util.Map> securityAttributes, + DisasterRecoveryStatus disasterRecoveryStatus) { super(); this.id = id; this.displayName = displayName; @@ -176,7 +176,6 @@ public Deployment( this.deploymentUrl = deploymentUrl; this.systemTags = systemTags; this.isLatestVersion = isLatestVersion; - this.timeUpgradeRequired = timeUpgradeRequired; this.storageUtilizationInBytes = storageUtilizationInBytes; this.isStorageUtilizationLimitExceeded = isStorageUtilizationLimitExceeded; this.deploymentType = deploymentType; @@ -195,6 +194,7 @@ public Deployment( this.subscriptionId = subscriptionId; this.clusterPlacementGroupId = clusterPlacementGroupId; this.securityAttributes = securityAttributes; + this.disasterRecoveryStatus = disasterRecoveryStatus; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -436,14 +436,14 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * * @param lifecycleState the value to set * @return this builder @@ -595,18 +595,36 @@ public Builder subnetId(String subnetId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -731,16 +749,16 @@ public Builder environmentType(EnvironmentType environmentType) { return this; } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @param category the value to set * @return this builder @@ -922,36 +940,6 @@ public Builder isLatestVersion(Boolean isLatestVersion) { this.__explicitlySet__.add("isLatestVersion"); return this; } - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpgradeRequired") - private java.util.Date timeUpgradeRequired; - - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - * @param timeUpgradeRequired the value to set - * @return this builder - **/ - public Builder timeUpgradeRequired(java.util.Date timeUpgradeRequired) { - this.timeUpgradeRequired = timeUpgradeRequired; - this.__explicitlySet__.add("timeUpgradeRequired"); - return this; - } /** * The amount of storage being utilized (in bytes) * @@ -1257,6 +1245,26 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryStatus") + private DisasterRecoveryStatus disasterRecoveryStatus; + + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + * @param disasterRecoveryStatus the value to set + * @return this builder + **/ + public Builder disasterRecoveryStatus(DisasterRecoveryStatus disasterRecoveryStatus) { + this.disasterRecoveryStatus = disasterRecoveryStatus; + this.__explicitlySet__.add("disasterRecoveryStatus"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1302,7 +1310,6 @@ public Deployment build() { this.deploymentUrl, this.systemTags, this.isLatestVersion, - this.timeUpgradeRequired, this.storageUtilizationInBytes, this.isStorageUtilizationLimitExceeded, this.deploymentType, @@ -1320,7 +1327,8 @@ public Deployment build() { this.ingressIps, this.subscriptionId, this.clusterPlacementGroupId, - this.securityAttributes); + this.securityAttributes, + this.disasterRecoveryStatus); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1443,9 +1451,6 @@ public Builder copy(Deployment model) { if (model.wasPropertyExplicitlySet("isLatestVersion")) { this.isLatestVersion(model.getIsLatestVersion()); } - if (model.wasPropertyExplicitlySet("timeUpgradeRequired")) { - this.timeUpgradeRequired(model.getTimeUpgradeRequired()); - } if (model.wasPropertyExplicitlySet("storageUtilizationInBytes")) { this.storageUtilizationInBytes(model.getStorageUtilizationInBytes()); } @@ -1501,6 +1506,9 @@ public Builder copy(Deployment model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("disasterRecoveryStatus")) { + this.disasterRecoveryStatus(model.getDisasterRecoveryStatus()); + } return this; } } @@ -1727,14 +1735,69 @@ public java.util.Date getTimeUpdated() { } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. + * + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + 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; + } + }; + /** + * Possible lifecycle states for a Deployment. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * * @return the value **/ @@ -1869,18 +1932,36 @@ public String getSubnetId() { } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private final String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @return the value **/ @@ -1991,16 +2072,16 @@ public EnvironmentType getEnvironmentType() { } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private final DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @return the value **/ @@ -2162,34 +2243,6 @@ public Boolean getIsLatestVersion() { return isLatestVersion; } - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpgradeRequired") - private final java.util.Date timeUpgradeRequired; - - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - * @return the value - **/ - public java.util.Date getTimeUpgradeRequired() { - return timeUpgradeRequired; - } - /** * The amount of storage being utilized (in bytes) * @@ -2457,6 +2510,24 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryStatus") + private final DisasterRecoveryStatus disasterRecoveryStatus; + + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + * @return the value + **/ + public DisasterRecoveryStatus getDisasterRecoveryStatus() { + return disasterRecoveryStatus; + } + @Override public String toString() { return this.toString(true); @@ -2510,7 +2581,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", deploymentUrl=").append(String.valueOf(this.deploymentUrl)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", isLatestVersion=").append(String.valueOf(this.isLatestVersion)); - sb.append(", timeUpgradeRequired=").append(String.valueOf(this.timeUpgradeRequired)); sb.append(", storageUtilizationInBytes=") .append(String.valueOf(this.storageUtilizationInBytes)); sb.append(", isStorageUtilizationLimitExceeded=") @@ -2539,6 +2609,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", disasterRecoveryStatus=").append(String.valueOf(this.disasterRecoveryStatus)); sb.append(")"); return sb.toString(); } @@ -2592,7 +2663,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.deploymentUrl, other.deploymentUrl) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.isLatestVersion, other.isLatestVersion) - && java.util.Objects.equals(this.timeUpgradeRequired, other.timeUpgradeRequired) && java.util.Objects.equals( this.storageUtilizationInBytes, other.storageUtilizationInBytes) && java.util.Objects.equals( @@ -2622,6 +2692,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals( + this.disasterRecoveryStatus, other.disasterRecoveryStatus) && super.equals(other); } @@ -2719,11 +2791,6 @@ public int hashCode() { result = (result * PRIME) + (this.isLatestVersion == null ? 43 : this.isLatestVersion.hashCode()); - result = - (result * PRIME) - + (this.timeUpgradeRequired == null - ? 43 - : this.timeUpgradeRequired.hashCode()); result = (result * PRIME) + (this.storageUtilizationInBytes == null @@ -2798,6 +2865,11 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = + (result * PRIME) + + (this.disasterRecoveryStatus == null + ? 43 + : this.disasterRecoveryStatus.hashCode()); result = (result * PRIME) + super.hashCode(); return 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 91d5cc68b96..7c257573762 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 @@ -231,14 +231,14 @@ public Builder backupSourceType(BackupSourceType backupSourceType) { return this; } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * * @param lifecycleState the value to set * @return this builder @@ -848,14 +848,68 @@ public BackupSourceType getBackupSourceType() { } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. + * + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Possible lifecycle states for a Deployment Backup. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * * @return the value **/ 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 54c8c099a1f..3584edc9d4c 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 @@ -57,7 +57,7 @@ public DeploymentBackupSummary( String displayName, Boolean isAutomatic, BackupSourceType backupSourceType, - LifecycleState lifecycleState, + DeploymentBackup.LifecycleState lifecycleState, String lifecycleDetails, java.util.Date timeOfBackup, java.util.Date timeBackupFinished, @@ -234,19 +234,19 @@ public Builder backupSourceType(BackupSourceType backupSourceType) { return this; } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; + private DeploymentBackup.LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * * @param lifecycleState the value to set * @return this builder **/ - public Builder lifecycleState(LifecycleState lifecycleState) { + public Builder lifecycleState(DeploymentBackup.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -851,18 +851,18 @@ public BackupSourceType getBackupSourceType() { } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleState lifecycleState; + private final DeploymentBackup.LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Backup. * * @return the value **/ - public LifecycleState getLifecycleState() { + public DeploymentBackup.LifecycleState getLifecycleState() { return lifecycleState; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentCategory.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentCategory.java index aba47aa59b6..830c48dabf4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentCategory.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentCategory.java @@ -14,6 +14,7 @@ public enum DeploymentCategory { DataReplication("DATA_REPLICATION"), StreamAnalytics("STREAM_ANALYTICS"), DataTransforms("DATA_TRANSFORMS"), + DataVerification("DATA_VERIFICATION"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentEnvironmentSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentEnvironmentSummary.java index 3a53772e9f5..de8ca88db32 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentEnvironmentSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentEnvironmentSummary.java @@ -80,16 +80,16 @@ public Builder environmentType(EnvironmentType environmentType) { return this; } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @param category the value to set * @return this builder @@ -330,16 +330,16 @@ public EnvironmentType getEnvironmentType() { } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private final DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentPeerSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentPeerSummary.java index f68d202b784..9ac5d8e1cc6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentPeerSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentPeerSummary.java @@ -37,7 +37,9 @@ public final class DeploymentPeerSummary "timeLastSynced", "subscriptionId", "clusterPlacementGroupId", - "lifecycleState" + "lifecycleState", + "precheckStatus", + "timeLastPrecheckPerformed" }) public DeploymentPeerSummary( String deploymentId, @@ -53,7 +55,9 @@ public DeploymentPeerSummary( java.util.Date timeLastSynced, String subscriptionId, String clusterPlacementGroupId, - LifecycleState lifecycleState) { + LifecycleState lifecycleState, + PrecheckStatus precheckStatus, + java.util.Date timeLastPrecheckPerformed) { super(); this.deploymentId = deploymentId; this.region = region; @@ -69,6 +73,8 @@ public DeploymentPeerSummary( this.subscriptionId = subscriptionId; this.clusterPlacementGroupId = clusterPlacementGroupId; this.lifecycleState = lifecycleState; + this.precheckStatus = precheckStatus; + this.timeLastPrecheckPerformed = timeLastPrecheckPerformed; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -331,6 +337,42 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Status of the DR precheck result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precheckStatus") + private PrecheckStatus precheckStatus; + + /** + * Status of the DR precheck result. + * @param precheckStatus the value to set + * @return this builder + **/ + public Builder precheckStatus(PrecheckStatus precheckStatus) { + this.precheckStatus = precheckStatus; + this.__explicitlySet__.add("precheckStatus"); + return this; + } + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastPrecheckPerformed") + private java.util.Date timeLastPrecheckPerformed; + + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + * @param timeLastPrecheckPerformed the value to set + * @return this builder + **/ + public Builder timeLastPrecheckPerformed(java.util.Date timeLastPrecheckPerformed) { + this.timeLastPrecheckPerformed = timeLastPrecheckPerformed; + this.__explicitlySet__.add("timeLastPrecheckPerformed"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -351,7 +393,9 @@ public DeploymentPeerSummary build() { this.timeLastSynced, this.subscriptionId, this.clusterPlacementGroupId, - this.lifecycleState); + this.lifecycleState, + this.precheckStatus, + this.timeLastPrecheckPerformed); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -402,6 +446,12 @@ public Builder copy(DeploymentPeerSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("precheckStatus")) { + this.precheckStatus(model.getPrecheckStatus()); + } + if (model.wasPropertyExplicitlySet("timeLastPrecheckPerformed")) { + this.timeLastPrecheckPerformed(model.getTimeLastPrecheckPerformed()); + } return this; } } @@ -642,6 +692,7 @@ public enum LifecycleState { Failed("FAILED"), Updating("UPDATING"), Deleting("DELETING"), + Inactive("INACTIVE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -698,6 +749,38 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * Status of the DR precheck result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precheckStatus") + private final PrecheckStatus precheckStatus; + + /** + * Status of the DR precheck result. + * @return the value + **/ + public PrecheckStatus getPrecheckStatus() { + return precheckStatus; + } + + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastPrecheckPerformed") + private final java.util.Date timeLastPrecheckPerformed; + + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + * @return the value + **/ + public java.util.Date getTimeLastPrecheckPerformed() { + return timeLastPrecheckPerformed; + } + @Override public String toString() { return this.toString(true); @@ -727,6 +810,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", precheckStatus=").append(String.valueOf(this.precheckStatus)); + sb.append(", timeLastPrecheckPerformed=") + .append(String.valueOf(this.timeLastPrecheckPerformed)); sb.append(")"); return sb.toString(); } @@ -756,6 +842,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.precheckStatus, other.precheckStatus) + && java.util.Objects.equals( + this.timeLastPrecheckPerformed, other.timeLastPrecheckPerformed) && super.equals(other); } @@ -793,6 +882,14 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.precheckStatus == null ? 43 : this.precheckStatus.hashCode()); + result = + (result * PRIME) + + (this.timeLastPrecheckPerformed == null + ? 43 + : this.timeLastPrecheckPerformed.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 56aa407bac9..6bc1c1e473a 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 @@ -51,13 +51,14 @@ public final class DeploymentSummary extends com.oracle.bmc.http.internal.Explic "deploymentUrl", "systemTags", "isLatestVersion", - "timeUpgradeRequired", "deploymentType", "storageUtilizationInBytes", "isStorageUtilizationLimitExceeded", "subscriptionId", "clusterPlacementGroupId", "securityAttributes", + "disasterRecoveryStatus", + "deploymentRole", "locks" }) public DeploymentSummary( @@ -67,7 +68,7 @@ public DeploymentSummary( String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, - LifecycleState lifecycleState, + Deployment.LifecycleState lifecycleState, LifecycleSubState lifecycleSubState, String lifecycleDetails, java.util.Map freeformTags, @@ -89,13 +90,14 @@ public DeploymentSummary( String deploymentUrl, java.util.Map> systemTags, Boolean isLatestVersion, - java.util.Date timeUpgradeRequired, DeploymentType deploymentType, Long storageUtilizationInBytes, Boolean isStorageUtilizationLimitExceeded, String subscriptionId, String clusterPlacementGroupId, java.util.Map> securityAttributes, + DisasterRecoveryStatus disasterRecoveryStatus, + DeploymentRole deploymentRole, java.util.List locks) { super(); this.id = id; @@ -126,13 +128,14 @@ public DeploymentSummary( this.deploymentUrl = deploymentUrl; this.systemTags = systemTags; this.isLatestVersion = isLatestVersion; - this.timeUpgradeRequired = timeUpgradeRequired; this.deploymentType = deploymentType; this.storageUtilizationInBytes = storageUtilizationInBytes; this.isStorageUtilizationLimitExceeded = isStorageUtilizationLimitExceeded; this.subscriptionId = subscriptionId; this.clusterPlacementGroupId = clusterPlacementGroupId; this.securityAttributes = securityAttributes; + this.disasterRecoveryStatus = disasterRecoveryStatus; + this.deploymentRole = deploymentRole; this.locks = locks; } @@ -251,19 +254,19 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; + private Deployment.LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * * @param lifecycleState the value to set * @return this builder **/ - public Builder lifecycleState(LifecycleState lifecycleState) { + public Builder lifecycleState(Deployment.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -376,18 +379,36 @@ public Builder subnetId(String subnetId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -494,16 +515,16 @@ public Builder environmentType(EnvironmentType environmentType) { return this; } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @param category the value to set * @return this builder @@ -685,36 +706,6 @@ public Builder isLatestVersion(Boolean isLatestVersion) { this.__explicitlySet__.add("isLatestVersion"); return this; } - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpgradeRequired") - private java.util.Date timeUpgradeRequired; - - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - * @param timeUpgradeRequired the value to set - * @return this builder - **/ - public Builder timeUpgradeRequired(java.util.Date timeUpgradeRequired) { - this.timeUpgradeRequired = timeUpgradeRequired; - this.__explicitlySet__.add("timeUpgradeRequired"); - 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. @@ -839,6 +830,44 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryStatus") + private DisasterRecoveryStatus disasterRecoveryStatus; + + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + * @param disasterRecoveryStatus the value to set + * @return this builder + **/ + public Builder disasterRecoveryStatus(DisasterRecoveryStatus disasterRecoveryStatus) { + this.disasterRecoveryStatus = disasterRecoveryStatus; + this.__explicitlySet__.add("disasterRecoveryStatus"); + return this; + } + /** + * The type of the deployment role. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentRole") + private DeploymentRole deploymentRole; + + /** + * The type of the deployment role. + * + * @param deploymentRole the value to set + * @return this builder + **/ + public Builder deploymentRole(DeploymentRole deploymentRole) { + this.deploymentRole = deploymentRole; + this.__explicitlySet__.add("deploymentRole"); + return this; + } /** * Locks associated with this resource. **/ @@ -890,13 +919,14 @@ public DeploymentSummary build() { this.deploymentUrl, this.systemTags, this.isLatestVersion, - this.timeUpgradeRequired, this.deploymentType, this.storageUtilizationInBytes, this.isStorageUtilizationLimitExceeded, this.subscriptionId, this.clusterPlacementGroupId, this.securityAttributes, + this.disasterRecoveryStatus, + this.deploymentRole, this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -990,9 +1020,6 @@ public Builder copy(DeploymentSummary model) { if (model.wasPropertyExplicitlySet("isLatestVersion")) { this.isLatestVersion(model.getIsLatestVersion()); } - if (model.wasPropertyExplicitlySet("timeUpgradeRequired")) { - this.timeUpgradeRequired(model.getTimeUpgradeRequired()); - } if (model.wasPropertyExplicitlySet("deploymentType")) { this.deploymentType(model.getDeploymentType()); } @@ -1012,6 +1039,12 @@ public Builder copy(DeploymentSummary model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("disasterRecoveryStatus")) { + this.disasterRecoveryStatus(model.getDisasterRecoveryStatus()); + } + if (model.wasPropertyExplicitlySet("deploymentRole")) { + this.deploymentRole(model.getDeploymentRole()); + } if (model.wasPropertyExplicitlySet("locks")) { this.locks(model.getLocks()); } @@ -1131,18 +1164,18 @@ public java.util.Date getTimeUpdated() { } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleState lifecycleState; + private final Deployment.LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment. * * @return the value **/ - public LifecycleState getLifecycleState() { + public Deployment.LifecycleState getLifecycleState() { return lifecycleState; } @@ -1243,18 +1276,36 @@ public String getSubnetId() { } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private final String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @return the value **/ @@ -1349,16 +1400,16 @@ public EnvironmentType getEnvironmentType() { } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private final DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @return the value **/ @@ -1520,34 +1571,6 @@ public Boolean getIsLatestVersion() { return isLatestVersion; } - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpgradeRequired") - private final java.util.Date timeUpgradeRequired; - - /** - * Note: Deprecated: Use timeOfNextMaintenance instead, or related upgrade records - * to check, when deployment will be forced to upgrade to a newer version. - * Old description: - * The date the existing version in use will no longer be considered as usable - * and an upgrade will be required. This date is typically 6 months after the - * version was released for use by GGS. The format is defined by - * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. - * - * @return the value - **/ - public java.util.Date getTimeUpgradeRequired() { - return timeUpgradeRequired; - } - /** * 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. @@ -1658,6 +1681,40 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryStatus") + private final DisasterRecoveryStatus disasterRecoveryStatus; + + /** + * Indicates if disaster recovery is enabled for a deployment. + * If not specified, disaster recovery is ENABLED when no clusterPlacementGroupId is provided, and DISABLED when a clusterPlacementGroupId is provided. + * + * @return the value + **/ + public DisasterRecoveryStatus getDisasterRecoveryStatus() { + return disasterRecoveryStatus; + } + + /** + * The type of the deployment role. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentRole") + private final DeploymentRole deploymentRole; + + /** + * The type of the deployment role. + * + * @return the value + **/ + public DeploymentRole getDeploymentRole() { + return deploymentRole; + } + /** * Locks associated with this resource. **/ @@ -1715,7 +1772,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", deploymentUrl=").append(String.valueOf(this.deploymentUrl)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", isLatestVersion=").append(String.valueOf(this.isLatestVersion)); - sb.append(", timeUpgradeRequired=").append(String.valueOf(this.timeUpgradeRequired)); sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); sb.append(", storageUtilizationInBytes=") .append(String.valueOf(this.storageUtilizationInBytes)); @@ -1725,6 +1781,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", disasterRecoveryStatus=").append(String.valueOf(this.disasterRecoveryStatus)); + sb.append(", deploymentRole=").append(String.valueOf(this.deploymentRole)); sb.append(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); @@ -1769,7 +1827,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.deploymentUrl, other.deploymentUrl) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.isLatestVersion, other.isLatestVersion) - && java.util.Objects.equals(this.timeUpgradeRequired, other.timeUpgradeRequired) && java.util.Objects.equals(this.deploymentType, other.deploymentType) && java.util.Objects.equals( this.storageUtilizationInBytes, other.storageUtilizationInBytes) @@ -1780,6 +1837,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals( + this.disasterRecoveryStatus, other.disasterRecoveryStatus) + && java.util.Objects.equals(this.deploymentRole, other.deploymentRole) && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -1852,11 +1912,6 @@ public int hashCode() { result = (result * PRIME) + (this.isLatestVersion == null ? 43 : this.isLatestVersion.hashCode()); - result = - (result * PRIME) - + (this.timeUpgradeRequired == null - ? 43 - : this.timeUpgradeRequired.hashCode()); result = (result * PRIME) + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); @@ -1883,6 +1938,14 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = + (result * PRIME) + + (this.disasterRecoveryStatus == null + ? 43 + : this.disasterRecoveryStatus.hashCode()); + result = + (result * PRIME) + + (this.deploymentRole == null ? 43 : this.deploymentRole.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/DeploymentType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentType.java index e25a76766cb..154d2b0b855 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentType.java @@ -20,6 +20,8 @@ public enum DeploymentType { DatabaseDb2I("DATABASE_DB2I"), Ggsa("GGSA"), DataTransforms("DATA_TRANSFORMS"), + VeridataServer("VERIDATA_SERVER"), + VeridataAgent("VERIDATA_AGENT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentTypeSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentTypeSummary.java index c4e6fab3ec9..1c10257fbe9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentTypeSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentTypeSummary.java @@ -36,7 +36,8 @@ public final class DeploymentTypeSummary "oggVersion", "supportedTechnologiesUrl", "defaultUsername", - "supportedCapabilities" + "supportedCapabilities", + "supportedLicenseTypes" }) public DeploymentTypeSummary( DeploymentCategory category, @@ -48,7 +49,8 @@ public DeploymentTypeSummary( String oggVersion, String supportedTechnologiesUrl, String defaultUsername, - java.util.List supportedCapabilities) { + java.util.List supportedCapabilities, + java.util.List supportedLicenseTypes) { super(); this.category = category; this.displayName = displayName; @@ -60,21 +62,22 @@ public DeploymentTypeSummary( this.supportedTechnologiesUrl = supportedTechnologiesUrl; this.defaultUsername = defaultUsername; this.supportedCapabilities = supportedCapabilities; + this.supportedLicenseTypes = supportedLicenseTypes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @param category the value to set * @return this builder @@ -259,6 +262,24 @@ public Builder supportedCapabilities( this.__explicitlySet__.add("supportedCapabilities"); return this; } + /** + * The list of Oracle license models supported by the deployment type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedLicenseTypes") + private java.util.List supportedLicenseTypes; + + /** + * The list of Oracle license models supported by the deployment type. + * + * @param supportedLicenseTypes the value to set + * @return this builder + **/ + public Builder supportedLicenseTypes(java.util.List supportedLicenseTypes) { + this.supportedLicenseTypes = supportedLicenseTypes; + this.__explicitlySet__.add("supportedLicenseTypes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -275,7 +296,8 @@ public DeploymentTypeSummary build() { this.oggVersion, this.supportedTechnologiesUrl, this.defaultUsername, - this.supportedCapabilities); + this.supportedCapabilities, + this.supportedLicenseTypes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -314,6 +336,9 @@ public Builder copy(DeploymentTypeSummary model) { if (model.wasPropertyExplicitlySet("supportedCapabilities")) { this.supportedCapabilities(model.getSupportedCapabilities()); } + if (model.wasPropertyExplicitlySet("supportedLicenseTypes")) { + this.supportedLicenseTypes(model.getSupportedLicenseTypes()); + } return this; } } @@ -330,16 +355,16 @@ public Builder toBuilder() { } /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("category") private final DeploymentCategory category; /** - * The deployment category defines the broad separation of the deployment type into three categories. - * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + * The deployment category defines the broad separation of the deployment type into four categories. + * Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS', 'DATA_TRANSFORMS' and 'DATA_VERIFICATION'. * * @return the value **/ @@ -503,6 +528,22 @@ public java.util.List getSupportedCapabilities() { return supportedCapabilities; } + /** + * The list of Oracle license models supported by the deployment type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("supportedLicenseTypes") + private final java.util.List supportedLicenseTypes; + + /** + * The list of Oracle license models supported by the deployment type. + * + * @return the value + **/ + public java.util.List getSupportedLicenseTypes() { + return supportedLicenseTypes; + } + @Override public String toString() { return this.toString(true); @@ -528,6 +569,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.supportedTechnologiesUrl)); sb.append(", defaultUsername=").append(String.valueOf(this.defaultUsername)); sb.append(", supportedCapabilities=").append(String.valueOf(this.supportedCapabilities)); + sb.append(", supportedLicenseTypes=").append(String.valueOf(this.supportedLicenseTypes)); sb.append(")"); return sb.toString(); } @@ -553,6 +595,7 @@ public boolean equals(Object o) { this.supportedTechnologiesUrl, other.supportedTechnologiesUrl) && java.util.Objects.equals(this.defaultUsername, other.defaultUsername) && java.util.Objects.equals(this.supportedCapabilities, other.supportedCapabilities) + && java.util.Objects.equals(this.supportedLicenseTypes, other.supportedLicenseTypes) && super.equals(other); } @@ -592,6 +635,11 @@ public int hashCode() { + (this.supportedCapabilities == null ? 43 : this.supportedCapabilities.hashCode()); + result = + (result * PRIME) + + (this.supportedLicenseTypes == null + ? 43 + : this.supportedLicenseTypes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgrade.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgrade.java index c4c5eca4f1c..6753d351fa7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgrade.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgrade.java @@ -324,14 +324,14 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * * @param lifecycleState the value to set * @return this builder @@ -1015,14 +1015,66 @@ public java.util.Date getTimeUpdated() { } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. + * + **/ + public enum LifecycleState { + Waiting("WAITING"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Possible lifecycle states for a Deployment Upgrade. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeSummary.java index e772dcf425f..d99a33a1727 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentUpgradeSummary.java @@ -66,7 +66,7 @@ public DeploymentUpgradeSummary( String oggVersion, java.util.Date timeCreated, java.util.Date timeUpdated, - LifecycleState lifecycleState, + DeploymentUpgrade.LifecycleState lifecycleState, LifecycleSubState lifecycleSubState, String lifecycleDetails, java.util.Map freeformTags, @@ -325,19 +325,19 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; + private DeploymentUpgrade.LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * * @param lifecycleState the value to set * @return this builder **/ - public Builder lifecycleState(LifecycleState lifecycleState) { + public Builder lifecycleState(DeploymentUpgrade.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -1016,18 +1016,18 @@ public java.util.Date getTimeUpdated() { } /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleState lifecycleState; + private final DeploymentUpgrade.LifecycleState lifecycleState; /** - * Possible lifecycle states. + * Possible lifecycle states for a Deployment Upgrade. * * @return the value **/ - public LifecycleState getLifecycleState() { + public DeploymentUpgrade.LifecycleState getLifecycleState() { return lifecycleState; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryPrecheckReport.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryPrecheckReport.java new file mode 100644 index 00000000000..c633145c7f7 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryPrecheckReport.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * DR precheck result for standby peer in the specified placement (availabilityDomain and faultDomain). + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = DisasterRecoveryPrecheckReport.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DisasterRecoveryPrecheckReport + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timePrecheckStarted", + "timePrecheckFinished", + "precheckStatus", + "checks" + }) + public DisasterRecoveryPrecheckReport( + java.util.Date timePrecheckStarted, + java.util.Date timePrecheckFinished, + PrecheckStatus precheckStatus, + java.util.List checks) { + super(); + this.timePrecheckStarted = timePrecheckStarted; + this.timePrecheckFinished = timePrecheckFinished; + this.precheckStatus = precheckStatus; + this.checks = checks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePrecheckStarted") + private java.util.Date timePrecheckStarted; + + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + * @param timePrecheckStarted the value to set + * @return this builder + **/ + public Builder timePrecheckStarted(java.util.Date timePrecheckStarted) { + this.timePrecheckStarted = timePrecheckStarted; + this.__explicitlySet__.add("timePrecheckStarted"); + return this; + } + /** + * The timestamp when pre-check operation finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePrecheckFinished") + private java.util.Date timePrecheckFinished; + + /** + * The timestamp when pre-check operation finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + * @param timePrecheckFinished the value to set + * @return this builder + **/ + public Builder timePrecheckFinished(java.util.Date timePrecheckFinished) { + this.timePrecheckFinished = timePrecheckFinished; + this.__explicitlySet__.add("timePrecheckFinished"); + return this; + } + /** + * Status of the DR precheck result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precheckStatus") + private PrecheckStatus precheckStatus; + + /** + * Status of the DR precheck result. + * @param precheckStatus the value to set + * @return this builder + **/ + public Builder precheckStatus(PrecheckStatus precheckStatus) { + this.precheckStatus = precheckStatus; + this.__explicitlySet__.add("precheckStatus"); + return this; + } + /** + * A list of precheck results. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("checks") + private java.util.List checks; + + /** + * A list of precheck results. + * + * @param checks the value to set + * @return this builder + **/ + public Builder checks(java.util.List checks) { + this.checks = checks; + this.__explicitlySet__.add("checks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisasterRecoveryPrecheckReport build() { + DisasterRecoveryPrecheckReport model = + new DisasterRecoveryPrecheckReport( + this.timePrecheckStarted, + this.timePrecheckFinished, + this.precheckStatus, + this.checks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisasterRecoveryPrecheckReport model) { + if (model.wasPropertyExplicitlySet("timePrecheckStarted")) { + this.timePrecheckStarted(model.getTimePrecheckStarted()); + } + if (model.wasPropertyExplicitlySet("timePrecheckFinished")) { + this.timePrecheckFinished(model.getTimePrecheckFinished()); + } + if (model.wasPropertyExplicitlySet("precheckStatus")) { + this.precheckStatus(model.getPrecheckStatus()); + } + if (model.wasPropertyExplicitlySet("checks")) { + this.checks(model.getChecks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePrecheckStarted") + private final java.util.Date timePrecheckStarted; + + /** + * The timestamp when pre-check started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + * @return the value + **/ + public java.util.Date getTimePrecheckStarted() { + return timePrecheckStarted; + } + + /** + * The timestamp when pre-check operation finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timePrecheckFinished") + private final java.util.Date timePrecheckFinished; + + /** + * The timestamp when pre-check operation finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-10-26T20:19:29.600Z}. + * + * @return the value + **/ + public java.util.Date getTimePrecheckFinished() { + return timePrecheckFinished; + } + + /** + * Status of the DR precheck result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precheckStatus") + private final PrecheckStatus precheckStatus; + + /** + * Status of the DR precheck result. + * @return the value + **/ + public PrecheckStatus getPrecheckStatus() { + return precheckStatus; + } + + /** + * A list of precheck results. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("checks") + private final java.util.List checks; + + /** + * A list of precheck results. + * + * @return the value + **/ + public java.util.List getChecks() { + return checks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisasterRecoveryPrecheckReport("); + sb.append("super=").append(super.toString()); + sb.append("timePrecheckStarted=").append(String.valueOf(this.timePrecheckStarted)); + sb.append(", timePrecheckFinished=").append(String.valueOf(this.timePrecheckFinished)); + sb.append(", precheckStatus=").append(String.valueOf(this.precheckStatus)); + sb.append(", checks=").append(String.valueOf(this.checks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisasterRecoveryPrecheckReport)) { + return false; + } + + DisasterRecoveryPrecheckReport other = (DisasterRecoveryPrecheckReport) o; + return java.util.Objects.equals(this.timePrecheckStarted, other.timePrecheckStarted) + && java.util.Objects.equals(this.timePrecheckFinished, other.timePrecheckFinished) + && java.util.Objects.equals(this.precheckStatus, other.precheckStatus) + && java.util.Objects.equals(this.checks, other.checks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timePrecheckStarted == null + ? 43 + : this.timePrecheckStarted.hashCode()); + result = + (result * PRIME) + + (this.timePrecheckFinished == null + ? 43 + : this.timePrecheckFinished.hashCode()); + result = + (result * PRIME) + + (this.precheckStatus == null ? 43 : this.precheckStatus.hashCode()); + result = (result * PRIME) + (this.checks == null ? 43 : this.checks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryPrecheckResult.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryPrecheckResult.java new file mode 100644 index 00000000000..eecc8f6be4a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryPrecheckResult.java @@ -0,0 +1,461 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 single precheck 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisasterRecoveryPrecheckResult.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DisasterRecoveryPrecheckResult + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "description", + "correctiveAction", + "status", + "relatedResourceId", + "relatedResourceType", + "code" + }) + public DisasterRecoveryPrecheckResult( + String key, + String displayName, + String description, + String correctiveAction, + PrecheckStatus status, + String relatedResourceId, + RelatedResourceType relatedResourceType, + String code) { + super(); + this.key = key; + this.displayName = displayName; + this.description = description; + this.correctiveAction = correctiveAction; + this.status = status; + this.relatedResourceId = relatedResourceId; + this.relatedResourceType = relatedResourceType; + this.code = code; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * UUID to uniquely identify the each check result. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * UUID to uniquely identify the each check result. + * + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * An object's 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; + } + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Metadata about this specific object. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The corrective action for non-passing checks. Null for passed checks. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("correctiveAction") + private String correctiveAction; + + /** + * The corrective action for non-passing checks. Null for passed checks. + * + * @param correctiveAction the value to set + * @return this builder + **/ + public Builder correctiveAction(String correctiveAction) { + this.correctiveAction = correctiveAction; + this.__explicitlySet__.add("correctiveAction"); + return this; + } + /** + * Status of the DR precheck result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private PrecheckStatus status; + + /** + * Status of the DR precheck result. + * @param status the value to set + * @return this builder + **/ + public Builder status(PrecheckStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource related to the corresponding check. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private String relatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource related to the corresponding check. + * + * @param relatedResourceId the value to set + * @return this builder + **/ + public Builder relatedResourceId(String relatedResourceId) { + this.relatedResourceId = relatedResourceId; + this.__explicitlySet__.add("relatedResourceId"); + return this; + } + /** + * Type of resource related to corresponding check. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceType") + private RelatedResourceType relatedResourceType; + + /** + * Type of resource related to corresponding check. + * + * @param relatedResourceType the value to set + * @return this builder + **/ + public Builder relatedResourceType(RelatedResourceType relatedResourceType) { + this.relatedResourceType = relatedResourceType; + this.__explicitlySet__.add("relatedResourceType"); + return this; + } + /** + * The code returned when GoldenGate reports an error while running a step during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * The code returned when GoldenGate reports an error while running a step during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + * + * @param code the value to set + * @return this builder + **/ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisasterRecoveryPrecheckResult build() { + DisasterRecoveryPrecheckResult model = + new DisasterRecoveryPrecheckResult( + this.key, + this.displayName, + this.description, + this.correctiveAction, + this.status, + this.relatedResourceId, + this.relatedResourceType, + this.code); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisasterRecoveryPrecheckResult model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("correctiveAction")) { + this.correctiveAction(model.getCorrectiveAction()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("relatedResourceId")) { + this.relatedResourceId(model.getRelatedResourceId()); + } + if (model.wasPropertyExplicitlySet("relatedResourceType")) { + this.relatedResourceType(model.getRelatedResourceType()); + } + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * UUID to uniquely identify the each check result. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * UUID to uniquely identify the each check result. + * + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The corrective action for non-passing checks. Null for passed checks. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("correctiveAction") + private final String correctiveAction; + + /** + * The corrective action for non-passing checks. Null for passed checks. + * + * @return the value + **/ + public String getCorrectiveAction() { + return correctiveAction; + } + + /** + * Status of the DR precheck result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final PrecheckStatus status; + + /** + * Status of the DR precheck result. + * @return the value + **/ + public PrecheckStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource related to the corresponding check. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private final String relatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource related to the corresponding check. + * + * @return the value + **/ + public String getRelatedResourceId() { + return relatedResourceId; + } + + /** + * Type of resource related to corresponding check. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceType") + private final RelatedResourceType relatedResourceType; + + /** + * Type of resource related to corresponding check. + * + * @return the value + **/ + public RelatedResourceType getRelatedResourceType() { + return relatedResourceType; + } + + /** + * The code returned when GoldenGate reports an error while running a step during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * The code returned when GoldenGate reports an error while running a step during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + * + * @return the value + **/ + public String getCode() { + return code; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisasterRecoveryPrecheckResult("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", correctiveAction=").append(String.valueOf(this.correctiveAction)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId)); + sb.append(", relatedResourceType=").append(String.valueOf(this.relatedResourceType)); + sb.append(", code=").append(String.valueOf(this.code)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisasterRecoveryPrecheckResult)) { + return false; + } + + DisasterRecoveryPrecheckResult other = (DisasterRecoveryPrecheckResult) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.correctiveAction, other.correctiveAction) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId) + && java.util.Objects.equals(this.relatedResourceType, other.relatedResourceType) + && java.util.Objects.equals(this.code, other.code) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.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.correctiveAction == null ? 43 : this.correctiveAction.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceType == null + ? 43 + : this.relatedResourceType.hashCode()); + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryStatus.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryStatus.java new file mode 100644 index 00000000000..79fb41a1f42 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DisasterRecoveryStatus.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Indicates if disaster recovery is enabled for a deployment. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum DisasterRecoveryStatus { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DisasterRecoveryStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DisasterRecoveryStatus v : DisasterRecoveryStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DisasterRecoveryStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DisasterRecoveryStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DisasterRecoveryStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateDisasterRecoveryPrecheckReportDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateDisasterRecoveryPrecheckReportDetails.java new file mode 100644 index 00000000000..9b99166bf4a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateDisasterRecoveryPrecheckReportDetails.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Metadata required to submit to generate a DR precheck report. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateDisasterRecoveryPrecheckReportDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GenerateDisasterRecoveryPrecheckReportDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"availabilityDomain", "faultDomain"}) + public GenerateDisasterRecoveryPrecheckReportDetails( + String availabilityDomain, String faultDomain) { + super(); + this.availabilityDomain = availabilityDomain; + this.faultDomain = faultDomain; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The availability domain of a placement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain of a placement. + * @param availabilityDomain the value to set + * @return this builder + **/ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The fault domain of a placement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("faultDomain") + private String faultDomain; + + /** + * The fault domain of a placement. + * @param faultDomain the value to set + * @return this builder + **/ + public Builder faultDomain(String faultDomain) { + this.faultDomain = faultDomain; + this.__explicitlySet__.add("faultDomain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateDisasterRecoveryPrecheckReportDetails build() { + GenerateDisasterRecoveryPrecheckReportDetails model = + new GenerateDisasterRecoveryPrecheckReportDetails( + this.availabilityDomain, this.faultDomain); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateDisasterRecoveryPrecheckReportDetails model) { + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("faultDomain")) { + this.faultDomain(model.getFaultDomain()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The availability domain of a placement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain of a placement. + * @return the value + **/ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The fault domain of a placement. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("faultDomain") + private final String faultDomain; + + /** + * The fault domain of a placement. + * @return the value + **/ + public String getFaultDomain() { + return faultDomain; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateDisasterRecoveryPrecheckReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDisasterRecoveryPrecheckReportDetails)) { + return false; + } + + GenerateDisasterRecoveryPrecheckReportDetails other = + (GenerateDisasterRecoveryPrecheckReportDetails) o; + return java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.faultDomain, other.faultDomain) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} 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 4c7d5a19bb9..286f277ac46 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 @@ -316,28 +316,18 @@ public Builder username(String username) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -704,28 +694,18 @@ public String getUsername() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 ac2fa23ccf4..fc85aeb3937 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 @@ -316,28 +316,18 @@ public Builder username(String username) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -657,28 +647,18 @@ public String getUsername() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 369b0563aa4..fcd83f649d2 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 @@ -243,6 +243,26 @@ public Builder technologyType(TechnologyType technologyType) { this.__explicitlySet__.add("technologyType"); return this; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google BigQuery. @@ -295,6 +315,7 @@ public GoogleBigQueryConnection build() { this.clusterPlacementGroupId, this.securityAttributes, this.technologyType, + this.endpoint, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -373,6 +394,9 @@ public Builder copy(GoogleBigQueryConnection model) { if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } @@ -416,6 +440,7 @@ public GoogleBigQueryConnection( String clusterPlacementGroupId, java.util.Map> securityAttributes, TechnologyType technologyType, + String endpoint, String serviceAccountKeyFileSecretId) { super( id, @@ -441,6 +466,7 @@ public GoogleBigQueryConnection( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -505,6 +531,24 @@ public TechnologyType getTechnologyType() { return technologyType; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google BigQuery. @@ -540,6 +584,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("GoogleBigQueryConnection("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); @@ -557,6 +602,7 @@ public boolean equals(Object o) { GoogleBigQueryConnection other = (GoogleBigQueryConnection) o; return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.endpoint, other.endpoint) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) && super.equals(other); @@ -569,6 +615,7 @@ public int hashCode() { result = (result * PRIME) + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFileSecretId == null 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 c2c68a181ee..27686ab8c3e 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 @@ -243,6 +243,26 @@ public Builder technologyType(GoogleBigQueryConnection.TechnologyType technology this.__explicitlySet__.add("technologyType"); return this; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google BigQuery. @@ -295,6 +315,7 @@ public GoogleBigQueryConnectionSummary build() { this.clusterPlacementGroupId, this.securityAttributes, this.technologyType, + this.endpoint, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -373,6 +394,9 @@ public Builder copy(GoogleBigQueryConnectionSummary model) { if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } @@ -416,6 +440,7 @@ public GoogleBigQueryConnectionSummary( String clusterPlacementGroupId, java.util.Map> securityAttributes, GoogleBigQueryConnection.TechnologyType technologyType, + String endpoint, String serviceAccountKeyFileSecretId) { super( id, @@ -441,6 +466,7 @@ public GoogleBigQueryConnectionSummary( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -458,6 +484,24 @@ public GoogleBigQueryConnection.TechnologyType getTechnologyType() { return technologyType; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google BigQuery. @@ -493,6 +537,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("GoogleBigQueryConnectionSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); @@ -510,6 +555,7 @@ public boolean equals(Object o) { GoogleBigQueryConnectionSummary other = (GoogleBigQueryConnectionSummary) o; return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.endpoint, other.endpoint) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) && super.equals(other); @@ -522,6 +568,7 @@ public int hashCode() { result = (result * PRIME) + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFileSecretId == null 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 c53bc9c057d..be0c6b5cb62 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 @@ -243,6 +243,26 @@ public Builder technologyType(TechnologyType technologyType) { this.__explicitlySet__.add("technologyType"); return this; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google Cloud Storage. @@ -295,6 +315,7 @@ public GoogleCloudStorageConnection build() { this.clusterPlacementGroupId, this.securityAttributes, this.technologyType, + this.endpoint, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -373,6 +394,9 @@ public Builder copy(GoogleCloudStorageConnection model) { if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } @@ -416,6 +440,7 @@ public GoogleCloudStorageConnection( String clusterPlacementGroupId, java.util.Map> securityAttributes, TechnologyType technologyType, + String endpoint, String serviceAccountKeyFileSecretId) { super( id, @@ -441,6 +466,7 @@ public GoogleCloudStorageConnection( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -505,6 +531,24 @@ public TechnologyType getTechnologyType() { return technologyType; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google Cloud Storage. @@ -540,6 +584,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("GoogleCloudStorageConnection("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); @@ -557,6 +602,7 @@ public boolean equals(Object o) { GoogleCloudStorageConnection other = (GoogleCloudStorageConnection) o; return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.endpoint, other.endpoint) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) && super.equals(other); @@ -569,6 +615,7 @@ public int hashCode() { result = (result * PRIME) + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFileSecretId == null 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 52817667a51..906bfb9f793 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 @@ -243,6 +243,26 @@ public Builder technologyType(GoogleCloudStorageConnection.TechnologyType techno this.__explicitlySet__.add("technologyType"); return this; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google Cloud Storage. @@ -295,6 +315,7 @@ public GoogleCloudStorageConnectionSummary build() { this.clusterPlacementGroupId, this.securityAttributes, this.technologyType, + this.endpoint, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -373,6 +394,9 @@ public Builder copy(GoogleCloudStorageConnectionSummary model) { if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } @@ -416,6 +440,7 @@ public GoogleCloudStorageConnectionSummary( String clusterPlacementGroupId, java.util.Map> securityAttributes, GoogleCloudStorageConnection.TechnologyType technologyType, + String endpoint, String serviceAccountKeyFileSecretId) { super( id, @@ -441,6 +466,7 @@ public GoogleCloudStorageConnectionSummary( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -458,6 +484,24 @@ public GoogleCloudStorageConnection.TechnologyType getTechnologyType() { return technologyType; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google Cloud Storage. @@ -493,6 +537,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("GoogleCloudStorageConnectionSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); @@ -510,6 +555,7 @@ public boolean equals(Object o) { GoogleCloudStorageConnectionSummary other = (GoogleCloudStorageConnectionSummary) o; return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.endpoint, other.endpoint) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) && super.equals(other); @@ -522,6 +568,7 @@ public int hashCode() { result = (result * PRIME) + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFileSecretId == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorage.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorage.java index 3d3211ab9c7..a0a036370d5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorage.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorage.java @@ -80,6 +80,26 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI this.__explicitlySet__.add("serviceAccountKeyFileSecretId"); return this; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -87,7 +107,10 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI public GoogleCloudStorageIcebergStorage build() { GoogleCloudStorageIcebergStorage model = new GoogleCloudStorageIcebergStorage( - this.bucket, this.projectId, this.serviceAccountKeyFileSecretId); + this.bucket, + this.projectId, + this.serviceAccountKeyFileSecretId, + this.endpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -105,6 +128,9 @@ public Builder copy(GoogleCloudStorageIcebergStorage model) { if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } return this; } } @@ -122,11 +148,15 @@ public Builder toBuilder() { @Deprecated public GoogleCloudStorageIcebergStorage( - String bucket, String projectId, String serviceAccountKeyFileSecretId) { + String bucket, + String projectId, + String serviceAccountKeyFileSecretId, + String endpoint) { super(); this.bucket = bucket; this.projectId = projectId; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + this.endpoint = endpoint; } /** @@ -175,6 +205,24 @@ public String getServiceAccountKeyFileSecretId() { return serviceAccountKeyFileSecretId; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + @Override public String toString() { return this.toString(true); @@ -193,6 +241,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", projectId=").append(String.valueOf(this.projectId)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); } @@ -211,6 +260,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.projectId, other.projectId) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) + && java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); } @@ -225,6 +275,7 @@ public int hashCode() { + (this.serviceAccountKeyFileSecretId == null ? 43 : this.serviceAccountKeyFileSecretId.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorageSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorageSummary.java index c7520d7da88..2cbd47a7c54 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorageSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageIcebergStorageSummary.java @@ -80,6 +80,26 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI this.__explicitlySet__.add("serviceAccountKeyFileSecretId"); return this; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -87,7 +107,10 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI public GoogleCloudStorageIcebergStorageSummary build() { GoogleCloudStorageIcebergStorageSummary model = new GoogleCloudStorageIcebergStorageSummary( - this.bucket, this.projectId, this.serviceAccountKeyFileSecretId); + this.bucket, + this.projectId, + this.serviceAccountKeyFileSecretId, + this.endpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -105,6 +128,9 @@ public Builder copy(GoogleCloudStorageIcebergStorageSummary model) { if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } return this; } } @@ -122,11 +148,15 @@ public Builder toBuilder() { @Deprecated public GoogleCloudStorageIcebergStorageSummary( - String bucket, String projectId, String serviceAccountKeyFileSecretId) { + String bucket, + String projectId, + String serviceAccountKeyFileSecretId, + String endpoint) { super(); this.bucket = bucket; this.projectId = projectId; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + this.endpoint = endpoint; } /** @@ -175,6 +205,24 @@ public String getServiceAccountKeyFileSecretId() { return serviceAccountKeyFileSecretId; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + @Override public String toString() { return this.toString(true); @@ -193,6 +241,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", projectId=").append(String.valueOf(this.projectId)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); } @@ -211,6 +260,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.projectId, other.projectId) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) + && java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); } @@ -225,6 +275,7 @@ public int hashCode() { + (this.serviceAccountKeyFileSecretId == null ? 43 : this.serviceAccountKeyFileSecretId.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.java index 73c726fd451..dafe21807e9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.java @@ -20,11 +20,34 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class InitialDataLoad extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"isInitialLoad", "actionOnExistingTable"}) - public InitialDataLoad(IsInitialLoad isInitialLoad, InitialLoadAction actionOnExistingTable) { + @java.beans.ConstructorProperties({ + "isInitialLoad", + "actionOnExistingTable", + "initialLoadType", + "adbWalletPath", + "sourceWalletPath", + "targetWalletPath", + "namespaceName", + "bucketName" + }) + public InitialDataLoad( + IsInitialLoad isInitialLoad, + InitialLoadAction actionOnExistingTable, + InitialLoadType initialLoadType, + String adbWalletPath, + String sourceWalletPath, + String targetWalletPath, + String namespaceName, + String bucketName) { super(); this.isInitialLoad = isInitialLoad; this.actionOnExistingTable = actionOnExistingTable; + this.initialLoadType = initialLoadType; + this.adbWalletPath = adbWalletPath; + this.sourceWalletPath = sourceWalletPath; + this.targetWalletPath = targetWalletPath; + this.namespaceName = namespaceName; + this.bucketName = bucketName; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -65,13 +88,129 @@ public Builder actionOnExistingTable(InitialLoadAction actionOnExistingTable) { this.__explicitlySet__.add("actionOnExistingTable"); return this; } + /** + * Type of Initial load, which can be objectStorage or dbLink. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadType") + private InitialLoadType initialLoadType; + + /** + * Type of Initial load, which can be objectStorage or dbLink. + * + * @param initialLoadType the value to set + * @return this builder + **/ + public Builder initialLoadType(InitialLoadType initialLoadType) { + this.initialLoadType = initialLoadType; + this.__explicitlySet__.add("initialLoadType"); + return this; + } + /** + * Directory path of ADB wallet locally available in Non-ADB target DB. Required for ADB to non-ADB DBLink type initial load only. If not provided the default wallet path "/u01/targetwallet" will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adbWalletPath") + private String adbWalletPath; + + /** + * Directory path of ADB wallet locally available in Non-ADB target DB. Required for ADB to non-ADB DBLink type initial load only. If not provided the default wallet path "/u01/targetwallet" will be used. + * + * @param adbWalletPath the value to set + * @return this builder + **/ + public Builder adbWalletPath(String adbWalletPath) { + this.adbWalletPath = adbWalletPath; + this.__explicitlySet__.add("adbWalletPath"); + return this; + } + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB source DB. Required for Object Storage type initial load only if source DB is Non-ADB type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceWalletPath") + private String sourceWalletPath; + + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB source DB. Required for Object Storage type initial load only if source DB is Non-ADB type. + * + * @param sourceWalletPath the value to set + * @return this builder + **/ + public Builder sourceWalletPath(String sourceWalletPath) { + this.sourceWalletPath = sourceWalletPath; + this.__explicitlySet__.add("sourceWalletPath"); + return this; + } + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB target DB. Required for Object Storage type initial load only if target DB is Non-ADB type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetWalletPath") + private String targetWalletPath; + + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB target DB. Required for Object Storage type initial load only if target DB is Non-ADB type. + * + * @param targetWalletPath the value to set + * @return this builder + **/ + public Builder targetWalletPath(String targetWalletPath) { + this.targetWalletPath = targetWalletPath; + this.__explicitlySet__.add("targetWalletPath"); + return this; + } + /** + * Namespace that serves as a container of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * Namespace that serves as a container of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + * @param namespaceName the value to set + * @return this builder + **/ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** + * Name of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * Name of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public InitialDataLoad build() { InitialDataLoad model = - new InitialDataLoad(this.isInitialLoad, this.actionOnExistingTable); + new InitialDataLoad( + this.isInitialLoad, + this.actionOnExistingTable, + this.initialLoadType, + this.adbWalletPath, + this.sourceWalletPath, + this.targetWalletPath, + this.namespaceName, + this.bucketName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -86,6 +225,24 @@ public Builder copy(InitialDataLoad model) { if (model.wasPropertyExplicitlySet("actionOnExistingTable")) { this.actionOnExistingTable(model.getActionOnExistingTable()); } + if (model.wasPropertyExplicitlySet("initialLoadType")) { + this.initialLoadType(model.getInitialLoadType()); + } + if (model.wasPropertyExplicitlySet("adbWalletPath")) { + this.adbWalletPath(model.getAdbWalletPath()); + } + if (model.wasPropertyExplicitlySet("sourceWalletPath")) { + this.sourceWalletPath(model.getSourceWalletPath()); + } + if (model.wasPropertyExplicitlySet("targetWalletPath")) { + this.targetWalletPath(model.getTargetWalletPath()); + } + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } return this; } } @@ -182,6 +339,151 @@ public InitialLoadAction getActionOnExistingTable() { return actionOnExistingTable; } + /** + * Type of Initial load, which can be objectStorage or dbLink. + * + **/ + public enum InitialLoadType { + DbLink("DB_LINK"), + 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(InitialLoadType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InitialLoadType v : InitialLoadType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InitialLoadType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InitialLoadType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InitialLoadType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of Initial load, which can be objectStorage or dbLink. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadType") + private final InitialLoadType initialLoadType; + + /** + * Type of Initial load, which can be objectStorage or dbLink. + * + * @return the value + **/ + public InitialLoadType getInitialLoadType() { + return initialLoadType; + } + + /** + * Directory path of ADB wallet locally available in Non-ADB target DB. Required for ADB to non-ADB DBLink type initial load only. If not provided the default wallet path "/u01/targetwallet" will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adbWalletPath") + private final String adbWalletPath; + + /** + * Directory path of ADB wallet locally available in Non-ADB target DB. Required for ADB to non-ADB DBLink type initial load only. If not provided the default wallet path "/u01/targetwallet" will be used. + * + * @return the value + **/ + public String getAdbWalletPath() { + return adbWalletPath; + } + + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB source DB. Required for Object Storage type initial load only if source DB is Non-ADB type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceWalletPath") + private final String sourceWalletPath; + + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB source DB. Required for Object Storage type initial load only if source DB is Non-ADB type. + * + * @return the value + **/ + public String getSourceWalletPath() { + return sourceWalletPath; + } + + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB target DB. Required for Object Storage type initial load only if target DB is Non-ADB type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetWalletPath") + private final String targetWalletPath; + + /** + * Directory path of ObjectStorage wallet locally available in Non-ADB target DB. Required for Object Storage type initial load only if target DB is Non-ADB type. + * + * @return the value + **/ + public String getTargetWalletPath() { + return targetWalletPath; + } + + /** + * Namespace that serves as a container of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * Namespace that serves as a container of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + * @return the value + **/ + public String getNamespaceName() { + return namespaceName; + } + + /** + * Name of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * Name of the ObjectStorage bucket. Required only for Objectstorage Initial load. + * + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + @Override public String toString() { return this.toString(true); @@ -198,6 +500,12 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isInitialLoad=").append(String.valueOf(this.isInitialLoad)); sb.append(", actionOnExistingTable=").append(String.valueOf(this.actionOnExistingTable)); + sb.append(", initialLoadType=").append(String.valueOf(this.initialLoadType)); + sb.append(", adbWalletPath=").append(String.valueOf(this.adbWalletPath)); + sb.append(", sourceWalletPath=").append(String.valueOf(this.sourceWalletPath)); + sb.append(", targetWalletPath=").append(String.valueOf(this.targetWalletPath)); + sb.append(", namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); sb.append(")"); return sb.toString(); } @@ -214,6 +522,12 @@ public boolean equals(Object o) { InitialDataLoad other = (InitialDataLoad) o; return java.util.Objects.equals(this.isInitialLoad, other.isInitialLoad) && java.util.Objects.equals(this.actionOnExistingTable, other.actionOnExistingTable) + && java.util.Objects.equals(this.initialLoadType, other.initialLoadType) + && java.util.Objects.equals(this.adbWalletPath, other.adbWalletPath) + && java.util.Objects.equals(this.sourceWalletPath, other.sourceWalletPath) + && java.util.Objects.equals(this.targetWalletPath, other.targetWalletPath) + && java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) && super.equals(other); } @@ -229,6 +543,22 @@ public int hashCode() { + (this.actionOnExistingTable == null ? 43 : this.actionOnExistingTable.hashCode()); + result = + (result * PRIME) + + (this.initialLoadType == null ? 43 : this.initialLoadType.hashCode()); + result = + (result * PRIME) + + (this.adbWalletPath == null ? 43 : this.adbWalletPath.hashCode()); + result = + (result * PRIME) + + (this.sourceWalletPath == null ? 43 : this.sourceWalletPath.hashCode()); + result = + (result * PRIME) + + (this.targetWalletPath == null ? 43 : this.targetWalletPath.hashCode()); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } 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 d2dc8c659bc..ae58c751227 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 @@ -448,28 +448,18 @@ public Builder username(String username) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -1252,28 +1242,18 @@ public String getUsername() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 6c72e5c0792..b8482b98a67 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 @@ -450,28 +450,18 @@ public Builder username(String username) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -1105,28 +1095,18 @@ public String getUsername() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaBootstrapServer.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaBootstrapServer.java index b389febd8f6..97b81798587 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaBootstrapServer.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaBootstrapServer.java @@ -5,7 +5,9 @@ package com.oracle.bmc.goldengate.model; /** - * Represents a Kafka bootstrap server with host name, optional port defaults to 9092, and an optional private ip. + * Represents a Kafka bootstrap server with host name, optional port defaults to 9092. + * Deprecated: privateIp is returned only for legacy deployments created with it. + * On update payloads, privateIp can only be set to empty (cleared). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -69,28 +71,18 @@ public Builder port(Integer port) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -172,28 +164,18 @@ public Integer getPort() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 e6f851d260e..74ec57c436a 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 @@ -798,6 +798,7 @@ public enum TechnologyType { ApacheKafka("APACHE_KAFKA"), AzureEventHubs("AZURE_EVENT_HUBS"), ConfluentKafka("CONFLUENT_KAFKA"), + MicrosoftFabricEventstream("MICROSOFT_FABRIC_EVENTSTREAM"), OciStreaming("OCI_STREAMING"), OciStreamingWithApacheKafka("OCI_STREAMING_WITH_APACHE_KAFKA"), 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 0660b127154..47a910c5beb 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 @@ -304,28 +304,18 @@ public Builder username(String username) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -861,28 +851,18 @@ public String getUsername() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 f4dd274aba8..45739cc3347 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 @@ -305,28 +305,18 @@ public Builder username(String username) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -764,28 +754,18 @@ public String getUsername() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 b66191cf715..d957535601b 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 @@ -392,28 +392,18 @@ public Builder shouldValidateServerCertificate(Boolean shouldValidateServerCerti return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -922,28 +912,18 @@ public Boolean getShouldValidateServerCertificate() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 f2c05ec41ab..92f371c580d 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 @@ -393,28 +393,18 @@ public Builder shouldValidateServerCertificate(Boolean shouldValidateServerCerti return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -824,28 +814,18 @@ public Boolean getShouldValidateServerCertificate() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MigrateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MigrateConnectionDetails.java new file mode 100644 index 00000000000..e8109f283eb --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MigrateConnectionDetails.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The information about the Migrate 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = MigrateConnectionDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SecretMigrateConnectionDetails.class, + name = "SECRET" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class MigrateConnectionDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected MigrateConnectionDetails() { + 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("MigrateConnectionDetails("); + 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 MigrateConnectionDetails)) { + return false; + } + + MigrateConnectionDetails other = (MigrateConnectionDetails) 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/MigrateConnectionType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MigrateConnectionType.java new file mode 100644 index 00000000000..eb07186999c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MigrateConnectionType.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The Connection migrate type. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum MigrateConnectionType { + Secret("SECRET"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MigrateConnectionType v : MigrateConnectionType.values()) { + map.put(v.getValue(), v); + } + } + + MigrateConnectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MigrateConnectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid MigrateConnectionType: " + key); + } +} 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 38feb3746e3..3e6b05a3454 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 @@ -416,28 +416,18 @@ public Builder sslCert(String sslCert) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -1119,28 +1109,18 @@ public String getSslCert() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 1f4cb527b05..c162776d33b 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 @@ -352,28 +352,18 @@ public Builder sslMode(MysqlConnection.SslMode sslMode) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -819,28 +809,18 @@ public MysqlConnection.SslMode getSslMode() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 510b235b3c1..a9d610efadf 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 @@ -28,6 +28,7 @@ public final class OggDeployment extends com.oracle.bmc.http.internal.Explicitly "credentialStore", "identityDomainId", "passwordSecretId", + "keySecretId", "groupToRolesMapping" }) public OggDeployment( @@ -38,6 +39,7 @@ public OggDeployment( CredentialStore credentialStore, String identityDomainId, String passwordSecretId, + String keySecretId, GroupToRolesMappingDetails groupToRolesMapping) { super(); this.deploymentName = deploymentName; @@ -47,6 +49,7 @@ public OggDeployment( this.credentialStore = credentialStore; this.identityDomainId = identityDomainId; this.passwordSecretId = passwordSecretId; + this.keySecretId = keySecretId; this.groupToRolesMapping = groupToRolesMapping; } @@ -180,6 +183,24 @@ public Builder passwordSecretId(String passwordSecretId) { this.__explicitlySet__.add("passwordSecretId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keySecretId") + private String keySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + * @param keySecretId the value to set + * @return this builder + **/ + public Builder keySecretId(String keySecretId) { + this.keySecretId = keySecretId; + this.__explicitlySet__.add("keySecretId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("groupToRolesMapping") private GroupToRolesMappingDetails groupToRolesMapping; @@ -203,6 +224,7 @@ public OggDeployment build() { this.credentialStore, this.identityDomainId, this.passwordSecretId, + this.keySecretId, this.groupToRolesMapping); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -233,6 +255,9 @@ public Builder copy(OggDeployment model) { if (model.wasPropertyExplicitlySet("passwordSecretId")) { this.passwordSecretId(model.getPasswordSecretId()); } + if (model.wasPropertyExplicitlySet("keySecretId")) { + this.keySecretId(model.getKeySecretId()); + } if (model.wasPropertyExplicitlySet("groupToRolesMapping")) { this.groupToRolesMapping(model.getGroupToRolesMapping()); } @@ -365,6 +390,22 @@ public String getPasswordSecretId() { return passwordSecretId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keySecretId") + private final String keySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + * @return the value + **/ + public String getKeySecretId() { + return keySecretId; + } + @com.fasterxml.jackson.annotation.JsonProperty("groupToRolesMapping") private final GroupToRolesMappingDetails groupToRolesMapping; @@ -393,6 +434,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", credentialStore=").append(String.valueOf(this.credentialStore)); sb.append(", identityDomainId=").append(String.valueOf(this.identityDomainId)); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); + sb.append(", keySecretId=").append(String.valueOf(this.keySecretId)); sb.append(", groupToRolesMapping=").append(String.valueOf(this.groupToRolesMapping)); sb.append(")"); return sb.toString(); @@ -415,6 +457,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.credentialStore, other.credentialStore) && java.util.Objects.equals(this.identityDomainId, other.identityDomainId) && java.util.Objects.equals(this.passwordSecretId, other.passwordSecretId) + && java.util.Objects.equals(this.keySecretId, other.keySecretId) && java.util.Objects.equals(this.groupToRolesMapping, other.groupToRolesMapping) && super.equals(other); } @@ -440,6 +483,7 @@ public int hashCode() { result = (result * PRIME) + (this.passwordSecretId == null ? 43 : this.passwordSecretId.hashCode()); + result = (result * PRIME) + (this.keySecretId == null ? 43 : this.keySecretId.hashCode()); result = (result * PRIME) + (this.groupToRolesMapping == null 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 40066e66f93..844b86211b3 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 @@ -33,9 +33,9 @@ public enum OperationType { GoldengateConnectionDelete("GOLDENGATE_CONNECTION_DELETE"), GoldengateConnectionMove("GOLDENGATE_CONNECTION_MOVE"), GoldengateConnectionRefresh("GOLDENGATE_CONNECTION_REFRESH"), + GoldengateConnectionMigrateSecrets("GOLDENGATE_CONNECTION_MIGRATE_SECRETS"), 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"), GoldengateDeploymentWalletImport("GOLDENGATE_DEPLOYMENT_WALLET_IMPORT"), @@ -53,6 +53,9 @@ public enum OperationType { GoldengatePipelineDiagnosticsCollect("GOLDENGATE_PIPELINE_DIAGNOSTICS_COLLECT"), GoldengateSwitchoverDeploymentPeer("GOLDENGATE_SWITCHOVER_DEPLOYMENT_PEER"), GoldengatePipelinePause("GOLDENGATE_PIPELINE_PAUSE"), + GoldengatePipelineClone("GOLDENGATE_PIPELINE_CLONE"), + GoldengateDeploymentDisasterRecoveryPrecheck( + "GOLDENGATE_DEPLOYMENT_DISASTER_RECOVERY_PRECHECK"), /** * This value is used if a service returns a value for this enum that is not recognized by this 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 70c09c6952a..932df6a2222 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 @@ -302,20 +302,32 @@ public Builder authenticationMode(AuthenticationMode 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @param sessionMode the value to set * @return this builder @@ -326,28 +338,18 @@ public Builder sessionMode(SessionMode sessionMode) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -819,10 +821,16 @@ public AuthenticationMode getAuthenticationMode() { } /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ public enum SessionMode { @@ -871,20 +879,32 @@ public static SessionMode create(String key) { } }; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private final SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @return the value **/ @@ -893,28 +913,18 @@ public SessionMode getSessionMode() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 09fef8f5e8d..a6b36a34352 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 @@ -304,20 +304,32 @@ public Builder authenticationMode(OracleConnection.AuthenticationMode authentica 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private OracleConnection.SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @param sessionMode the value to set * @return this builder @@ -328,28 +340,18 @@ public Builder sessionMode(OracleConnection.SessionMode sessionMode) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -715,20 +717,32 @@ public OracleConnection.AuthenticationMode getAuthenticationMode() { } /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private final OracleConnection.SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @return the value **/ @@ -737,28 +751,18 @@ public OracleConnection.SessionMode getSessionMode() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalog.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalog.java index d145f80574e..ac6a4490d64 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalog.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalog.java @@ -81,14 +81,14 @@ public Builder clientId(String clientId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @param clientSecretSecretId the value to set * @return this builder @@ -226,14 +226,14 @@ public String getClientId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private final String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalogSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalogSummary.java index 7a21325354c..313d2d9ded1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalogSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PolarisIcebergCatalogSummary.java @@ -81,14 +81,14 @@ public Builder clientId(String clientId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @param clientSecretSecretId the value to set * @return this builder @@ -226,14 +226,14 @@ public String getClientId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private final String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @return the value **/ 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 36275d96d12..0ee46fa0356 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 @@ -372,28 +372,18 @@ public Builder sslMode(SslMode sslMode) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -796,8 +786,10 @@ public enum TechnologyType { AmazonRdsPostgresql("AMAZON_RDS_POSTGRESQL"), AzurePostgresql("AZURE_POSTGRESQL"), AzureCosmosDbForPostgresql("AZURE_COSMOS_DB_FOR_POSTGRESQL"), + EdbPostgresAdvancedServer("EDB_POSTGRES_ADVANCED_SERVER"), GoogleCloudSqlPostgresql("GOOGLE_CLOUD_SQL_POSTGRESQL"), GoogleAlloyDbForPostgresql("GOOGLE_ALLOY_DB_FOR_POSTGRESQL"), + YugabyteDb("YUGABYTE_DB"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -1068,28 +1060,18 @@ public SslMode getSslMode() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 0ae98355d0c..35b5745b797 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 @@ -372,28 +372,18 @@ public Builder sslMode(PostgresqlConnection.SslMode sslMode) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -835,28 +825,18 @@ public PostgresqlConnection.SslMode getSslMode() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PrecheckStatus.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PrecheckStatus.java new file mode 100644 index 00000000000..d77c094df96 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PrecheckStatus.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Possible status for DR precheck results. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum PrecheckStatus { + Succeeded("SUCCEEDED"), + InProgress("IN_PROGRESS"), + 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(PrecheckStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PrecheckStatus v : PrecheckStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PrecheckStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PrecheckStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PrecheckStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RelatedResourceType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RelatedResourceType.java new file mode 100644 index 00000000000..0b595f3fde6 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RelatedResourceType.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Type of resource related to corresponding check. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum RelatedResourceType { + Goldengatedeployment("GOLDENGATEDEPLOYMENT"), + Goldengateconnection("GOLDENGATECONNECTION"), + Vaultsecret("VAULTSECRET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RelatedResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelatedResourceType v : RelatedResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RelatedResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelatedResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RelatedResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SecretMigrateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SecretMigrateConnectionDetails.java new file mode 100644 index 00000000000..9379c1dbf08 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SecretMigrateConnectionDetails.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Definition of the additional attributes for secret Connection 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SecretMigrateConnectionDetails.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 SecretMigrateConnectionDetails extends MigrateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretCompartmentId") + private String secretCompartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. + * + * @param secretCompartmentId the value to set + * @return this builder + **/ + public Builder secretCompartmentId(String secretCompartmentId) { + this.secretCompartmentId = secretCompartmentId; + this.__explicitlySet__.add("secretCompartmentId"); + return this; + } + /** + * 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 + * to manage secrets contained within this vault. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * 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 + * to manage secrets contained within this vault. + * + * @param vaultId the value to set + * @return this builder + **/ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * Refers to the customer's master key OCID. + * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + /** + * Refers to the customer's master key OCID. + * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this 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 SecretMigrateConnectionDetails build() { + SecretMigrateConnectionDetails model = + new SecretMigrateConnectionDetails( + this.secretCompartmentId, this.vaultId, this.keyId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SecretMigrateConnectionDetails model) { + if (model.wasPropertyExplicitlySet("secretCompartmentId")) { + this.secretCompartmentId(model.getSecretCompartmentId()); + } + 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); + } + + @Deprecated + public SecretMigrateConnectionDetails( + String secretCompartmentId, String vaultId, String keyId) { + super(); + this.secretCompartmentId = secretCompartmentId; + this.vaultId = vaultId; + this.keyId = keyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretCompartmentId") + private final String secretCompartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. + * + * @return the value + **/ + public String getSecretCompartmentId() { + return secretCompartmentId; + } + + /** + * 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 + * to manage secrets contained within this vault. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * 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 + * to manage secrets contained within this vault. + * + * @return the value + **/ + public String getVaultId() { + return vaultId; + } + + /** + * Refers to the customer's master key OCID. + * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; + + /** + * Refers to the customer's master key OCID. + * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this 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("SecretMigrateConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", secretCompartmentId=").append(String.valueOf(this.secretCompartmentId)); + 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 SecretMigrateConnectionDetails)) { + return false; + } + + SecretMigrateConnectionDetails other = (SecretMigrateConnectionDetails) o; + return java.util.Objects.equals(this.secretCompartmentId, other.secretCompartmentId) + && 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 = super.hashCode(); + result = + (result * PRIME) + + (this.secretCompartmentId == null + ? 43 + : this.secretCompartmentId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SupportedCapabilities.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SupportedCapabilities.java index 4bfabffc70c..300994d10f9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SupportedCapabilities.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SupportedCapabilities.java @@ -18,6 +18,13 @@ public enum SupportedCapabilities { DisasterRecovery("DISASTER_RECOVERY"), ScheduleManualBackup("SCHEDULE_MANUAL_BACKUP"), Multicloud("MULTICLOUD"), + TrailFiles("TRAIL_FILES"), + MasterKeyOperations("MASTER_KEY_OPERATIONS"), + TruststoreCertificates("TRUSTSTORE_CERTIFICATES"), + DeploymentDiagnostics("DEPLOYMENT_DIAGNOSTICS"), + Credentials("CREDENTIALS"), + ConsoleAccess("CONSOLE_ACCESS"), + NetworkConfiguration("NETWORK_CONFIGURATION"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SwitchoverDeploymentPeerDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SwitchoverDeploymentPeerDetails.java index 0c9615c04c7..a947ce49d73 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SwitchoverDeploymentPeerDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SwitchoverDeploymentPeerDetails.java @@ -23,11 +23,13 @@ public final class SwitchoverDeploymentPeerDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"availabilityDomain", "faultDomain"}) - public SwitchoverDeploymentPeerDetails(String availabilityDomain, String faultDomain) { + @java.beans.ConstructorProperties({"availabilityDomain", "faultDomain", "mode"}) + public SwitchoverDeploymentPeerDetails( + String availabilityDomain, String faultDomain, Mode mode) { super(); this.availabilityDomain = availabilityDomain; this.faultDomain = faultDomain; + this.mode = mode; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -64,13 +66,32 @@ public Builder faultDomain(String faultDomain) { this.__explicitlySet__.add("faultDomain"); return this; } + /** + * Specifies the switchover mode. SWITCHOVER performs a planned role transition to the standby; FAILOVER performs a forced promotion when the primary is not available. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * Specifies the switchover mode. SWITCHOVER performs a planned role transition to the standby; FAILOVER performs a forced promotion when the primary is not available. + * + * @param mode the value to set + * @return this builder + **/ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public SwitchoverDeploymentPeerDetails build() { SwitchoverDeploymentPeerDetails model = - new SwitchoverDeploymentPeerDetails(this.availabilityDomain, this.faultDomain); + new SwitchoverDeploymentPeerDetails( + this.availabilityDomain, this.faultDomain, this.mode); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -85,6 +106,9 @@ public Builder copy(SwitchoverDeploymentPeerDetails model) { if (model.wasPropertyExplicitlySet("faultDomain")) { this.faultDomain(model.getFaultDomain()); } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } return this; } } @@ -128,6 +152,58 @@ public String getFaultDomain() { return faultDomain; } + /** + * Specifies the switchover mode. SWITCHOVER performs a planned role transition to the standby; FAILOVER performs a forced promotion when the primary is not available. + * + **/ + public enum Mode { + Switchover("SWITCHOVER"), + Failover("FAILOVER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + map.put(v.getValue(), v); + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Mode: " + key); + } + }; + /** + * Specifies the switchover mode. SWITCHOVER performs a planned role transition to the standby; FAILOVER performs a forced promotion when the primary is not available. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * Specifies the switchover mode. SWITCHOVER performs a planned role transition to the standby; FAILOVER performs a forced promotion when the primary is not available. + * + * @return the value + **/ + public Mode getMode() { + return mode; + } + @Override public String toString() { return this.toString(true); @@ -144,6 +220,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); + sb.append(", mode=").append(String.valueOf(this.mode)); sb.append(")"); return sb.toString(); } @@ -160,6 +237,7 @@ public boolean equals(Object o) { SwitchoverDeploymentPeerDetails other = (SwitchoverDeploymentPeerDetails) o; return java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.faultDomain, other.faultDomain) + && java.util.Objects.equals(this.mode, other.mode) && super.equals(other); } @@ -173,6 +251,7 @@ public int hashCode() { ? 43 : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } 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 ff872a1035b..f1d951a9ea3 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 @@ -61,6 +61,7 @@ public enum TechnologyType { Db2I("DB2_I"), Db2Zos("DB2_ZOS"), Elasticsearch("ELASTICSEARCH"), + EdbPostgresAdvancedServer("EDB_POSTGRES_ADVANCED_SERVER"), GoogleAlloyDbForPostgresql("GOOGLE_ALLOY_DB_FOR_POSTGRESQL"), GoogleBigquery("GOOGLE_BIGQUERY"), GoogleCloudStorage("GOOGLE_CLOUD_STORAGE"), @@ -71,6 +72,7 @@ public enum TechnologyType { Hdfs("HDFS"), Mariadb("MARIADB"), MicrosoftSqlserver("MICROSOFT_SQLSERVER"), + MicrosoftFabricEventstream("MICROSOFT_FABRIC_EVENTSTREAM"), MicrosoftFabricLakehouse("MICROSOFT_FABRIC_LAKEHOUSE"), MicrosoftFabricMirror("MICROSOFT_FABRIC_MIRROR"), Mongodb("MONGODB"), @@ -82,6 +84,7 @@ public enum TechnologyType { Singlestoredb("SINGLESTOREDB"), SinglestoredbCloud("SINGLESTOREDB_CLOUD"), Snowflake("SNOWFLAKE"), + YugabyteDb("YUGABYTE_DB"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java index 8581657c1eb..493d68178d1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java @@ -152,7 +152,7 @@ public Builder accessKeyId(String accessKeyId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon Kinesis. @@ -161,11 +161,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the secret access key is stored. * Note: When provided, 'secretAccessKey' field must not be provided. @@ -355,6 +362,44 @@ public UpdateAmazonKinesisConnectionDetails( doesUseSecretIds, securityAttributes); this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonKinesisConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String accessKeyId, + char[] secretAccessKey, + String secretAccessKeySecretId, + String endpoint, + String region) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -383,7 +428,20 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon Kinesis. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * Secret access key to access the Amazon Kinesis. @@ -391,7 +449,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java index c50984a5b95..d6871aa5268 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java @@ -177,7 +177,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -187,11 +187,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -339,6 +346,42 @@ public UpdateAmazonRedshiftConnectionDetails( securityAttributes); this.connectionUrl = connectionUrl; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonRedshiftConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String connectionUrl, + String username, + char[] password, + String passwordSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionUrl = connectionUrl; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -388,7 +431,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -397,7 +454,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java index 64a6ab3bba3..e5f2d1cddf5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java @@ -155,7 +155,7 @@ public Builder accessKeyId(String accessKeyId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon S3 bucket. @@ -165,11 +165,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder **/ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key is stored. * Note: When provided, 'secretAccessKey' field must not be provided. @@ -359,6 +366,44 @@ public UpdateAmazonS3ConnectionDetails( doesUseSecretIds, securityAttributes); this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonS3ConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String accessKeyId, + char[] secretAccessKey, + String secretAccessKeySecretId, + String endpoint, + String region) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -390,7 +435,21 @@ public String getAccessKeyId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * Secret access key to access the Amazon S3 bucket. @@ -399,7 +458,8 @@ public String getAccessKeyId() { * * @return the value **/ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java index 81d69be0dcb..c1aac2ddecb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java @@ -102,6 +102,35 @@ public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { this.__explicitlySet__.add("secretAccessKeySecretId"); return this; } + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * @param secretAccessKey the value to set + * @return this builder + **/ + public Builder secretAccessKey(char[] secretAccessKey) { + this.secretAccessKey = secretAccessKey; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + /** * The AMAZON region where the S3 bucket is hosted. * e.g.: 'us-east-2' @@ -149,6 +178,7 @@ public UpdateAmazonS3IcebergStorageDetails build() { this.endpoint, this.accessKeyId, this.secretAccessKeySecretId, + this.secretAccessKey, this.region, this.bucket); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -171,6 +201,9 @@ public Builder copy(UpdateAmazonS3IcebergStorageDetails model) { if (model.wasPropertyExplicitlySet("secretAccessKeySecretId")) { this.secretAccessKeySecretId(model.getSecretAccessKeySecretId()); } + if (model.wasPropertyExplicitlySet("secretAccessKey")) { + this.secretAccessKey(model.getSecretAccessKey()); + } if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); } @@ -198,6 +231,27 @@ public UpdateAmazonS3IcebergStorageDetails( String endpoint, String accessKeyId, String secretAccessKeySecretId, + String secretAccessKey, + String region, + String bucket) { + super(); + this.schemeType = schemeType; + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.region = region; + this.bucket = bucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonS3IcebergStorageDetails( + AmazonS3IcebergStorage.SchemeType schemeType, + String endpoint, + String accessKeyId, + String secretAccessKeySecretId, + char[] secretAccessKey, String region, String bucket) { super(); @@ -205,6 +259,7 @@ public UpdateAmazonS3IcebergStorageDetails( this.endpoint = endpoint; this.accessKeyId = accessKeyId; this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey; this.region = region; this.bucket = bucket; } @@ -275,6 +330,41 @@ public String getSecretAccessKeySecretId() { return secretAccessKeySecretId; } + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * Secret access key to access the Amazon S3 bucket. + * e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { + return secretAccessKey; + } + /** * The AMAZON region where the S3 bucket is hosted. * e.g.: 'us-east-2' @@ -326,6 +416,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessKeyId=").append(String.valueOf(this.accessKeyId)); sb.append(", secretAccessKeySecretId=") .append(String.valueOf(this.secretAccessKeySecretId)); + sb.append(", secretAccessKey=").append(""); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", bucket=").append(String.valueOf(this.bucket)); sb.append(")"); @@ -347,6 +438,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) && java.util.Objects.equals( this.secretAccessKeySecretId, other.secretAccessKeySecretId) + && java.util.Objects.equals(this.secretAccessKey, other.secretAccessKey) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.bucket, other.bucket) && super.equals(other); @@ -364,6 +456,9 @@ public int hashCode() { + (this.secretAccessKeySecretId == null ? 43 : this.secretAccessKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKey == null ? 43 : this.secretAccessKey.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); return result; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java index d5b282837a8..c7516fef73d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java @@ -172,7 +172,7 @@ public Builder accountName(String accountName) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private String accountKey; + private char[] accountKey; /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. @@ -182,11 +182,18 @@ public Builder accountName(String accountName) { * @param accountKey the value to set * @return this builder **/ - public Builder accountKey(String accountKey) { + public Builder accountKey(char[] accountKey) { this.accountKey = accountKey; this.__explicitlySet__.add("accountKey"); return this; } + + public Builder accountKey(String accountKey) { + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.__explicitlySet__.add("accountKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the account key is stored. * Note: When provided, 'accountKey' field must not be provided. @@ -215,7 +222,7 @@ public Builder accountKeySecretId(String accountKeySecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private String sasToken; + private char[] sasToken; /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is @@ -226,11 +233,18 @@ public Builder accountKeySecretId(String accountKeySecretId) { * @param sasToken the value to set * @return this builder **/ - public Builder sasToken(String sasToken) { + public Builder sasToken(char[] sasToken) { this.sasToken = sasToken; this.__explicitlySet__.add("sasToken"); return this; } + + public Builder sasToken(String sasToken) { + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.__explicitlySet__.add("sasToken"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the sas token is stored. * Note: When provided, 'sasToken' field must not be provided. @@ -298,7 +312,7 @@ public Builder clientId(String clientId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. @@ -308,11 +322,18 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the client secret is stored. * Note: When provided, 'clientSecret' field must not be provided. @@ -540,6 +561,58 @@ public UpdateAzureDataLakeStorageConnectionDetails( securityAttributes); this.authenticationType = authenticationType; this.accountName = accountName; + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.accountKeySecretId = accountKeySecretId; + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.sasTokenSecretId = sasTokenSecretId; + this.azureTenantId = azureTenantId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.endpoint = endpoint; + this.azureAuthorityHost = azureAuthorityHost; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAzureDataLakeStorageConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + AzureDataLakeStorageConnection.AuthenticationType authenticationType, + String accountName, + char[] accountKey, + String accountKeySecretId, + char[] sasToken, + String sasTokenSecretId, + String azureTenantId, + String clientId, + char[] clientSecret, + String clientSecretSecretId, + String endpoint, + String azureAuthorityHost) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.authenticationType = authenticationType; + this.accountName = accountName; this.accountKey = accountKey; this.accountKeySecretId = accountKeySecretId; this.sasToken = sasToken; @@ -591,7 +664,21 @@ public String getAccountName() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private final String accountKey; + private final char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getAccountKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccountKey() { + return accountKey != null ? new String(accountKey) : null; + } /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. @@ -600,7 +687,8 @@ public String getAccountName() { * * @return the value **/ - public String getAccountKey() { + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + public char[] getAccountKey__AsCharArray() { return accountKey; } @@ -630,7 +718,22 @@ public String getAccountKeySecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private final String sasToken; + private final char[] sasToken; + + /** + * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is + * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. + * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSasToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSasToken() { + return sasToken != null ? new String(sasToken) : null; + } /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is @@ -640,7 +743,8 @@ public String getAccountKeySecretId() { * * @return the value **/ - public String getSasToken() { + @com.fasterxml.jackson.annotation.JsonProperty("sasToken") + public char[] getSasToken__AsCharArray() { return sasToken; } @@ -705,7 +809,21 @@ public String getClientId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. + * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. @@ -714,7 +832,8 @@ public String getClientId() { * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java index ad230cd948f..7fc9347e606 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java @@ -81,6 +81,35 @@ public Builder accountKeySecretId(String accountKeySecretId) { this.__explicitlySet__.add("accountKeySecretId"); return this; } + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + private char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * @param accountKey the value to set + * @return this builder + **/ + public Builder accountKey(char[] accountKey) { + this.accountKey = accountKey; + this.__explicitlySet__.add("accountKey"); + return this; + } + + public Builder accountKey(String accountKey) { + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.__explicitlySet__.add("accountKey"); + return this; + } + /** * The Azure Blob Storage endpoint where Iceberg data is stored. * e.g.: 'https://my-azure-storage-account.blob.core.windows.net' @@ -111,6 +140,7 @@ public UpdateAzureDataLakeStorageIcebergStorageDetails build() { this.accountName, this.container, this.accountKeySecretId, + this.accountKey, this.endpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -129,6 +159,9 @@ public Builder copy(UpdateAzureDataLakeStorageIcebergStorageDetails model) { if (model.wasPropertyExplicitlySet("accountKeySecretId")) { this.accountKeySecretId(model.getAccountKeySecretId()); } + if (model.wasPropertyExplicitlySet("accountKey")) { + this.accountKey(model.getAccountKey()); + } if (model.wasPropertyExplicitlySet("endpoint")) { this.endpoint(model.getEndpoint()); } @@ -149,11 +182,32 @@ public Builder toBuilder() { @Deprecated public UpdateAzureDataLakeStorageIcebergStorageDetails( - String accountName, String container, String accountKeySecretId, String endpoint) { + String accountName, + String container, + String accountKeySecretId, + String accountKey, + String endpoint) { + super(); + this.accountName = accountName; + this.container = container; + this.accountKeySecretId = accountKeySecretId; + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAzureDataLakeStorageIcebergStorageDetails( + String accountName, + String container, + String accountKeySecretId, + char[] accountKey, + String endpoint) { super(); this.accountName = accountName; this.container = container; this.accountKeySecretId = accountKeySecretId; + this.accountKey = accountKey; this.endpoint = endpoint; } @@ -203,6 +257,41 @@ public String getAccountKeySecretId() { return accountKeySecretId; } + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + private final char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getAccountKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccountKey() { + return accountKey != null ? new String(accountKey) : null; + } + + /** + * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. + * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + public char[] getAccountKey__AsCharArray() { + return accountKey; + } + /** * The Azure Blob Storage endpoint where Iceberg data is stored. * e.g.: 'https://my-azure-storage-account.blob.core.windows.net' @@ -238,6 +327,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accountName=").append(String.valueOf(this.accountName)); sb.append(", container=").append(String.valueOf(this.container)); sb.append(", accountKeySecretId=").append(String.valueOf(this.accountKeySecretId)); + sb.append(", accountKey=").append(""); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); @@ -257,6 +347,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.accountName, other.accountName) && java.util.Objects.equals(this.container, other.container) && java.util.Objects.equals(this.accountKeySecretId, other.accountKeySecretId) + && java.util.Objects.equals(this.accountKey, other.accountKey) && java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); } @@ -272,6 +363,7 @@ public int hashCode() { + (this.accountKeySecretId == null ? 43 : this.accountKeySecretId.hashCode()); + result = (result * PRIME) + (this.accountKey == null ? 43 : this.accountKey.hashCode()); result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java index 37528f9b5e6..a779048e286 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java @@ -177,7 +177,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -187,11 +187,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -339,6 +346,42 @@ public UpdateAzureSynapseConnectionDetails( securityAttributes); this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAzureSynapseConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String connectionString, + String username, + char[] password, + String passwordSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -388,7 +431,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -397,7 +454,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java index 8edf865f523..3d3c0b2800d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java @@ -23,6 +23,34 @@ public final class UpdateDatabaseRegistrationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDatabaseRegistrationDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String fqdn, + String username, + String password, + String connectionString, + SessionMode sessionMode, + String wallet, + String aliasName) { + super(); + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.fqdn = fqdn; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.connectionString = connectionString; + this.sessionMode = sessionMode; + this.wallet = wallet; + this.aliasName = aliasName; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -43,7 +71,7 @@ public UpdateDatabaseRegistrationDetails( java.util.Map> definedTags, String fqdn, String username, - String password, + char[] password, String connectionString, SessionMode sessionMode, String wallet, @@ -194,7 +222,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -204,11 +232,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * Connect descriptor or Easy Connect Naming method used to connect to a database. * @@ -482,7 +517,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -491,7 +540,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java index ab00b79e465..22c4c8c810c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java @@ -174,7 +174,7 @@ public Builder connectionUrl(String connectionUrl) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to Databricks. @@ -184,11 +184,18 @@ public Builder connectionUrl(String connectionUrl) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * Note: When provided, 'password' field must not be provided. @@ -233,7 +240,7 @@ public Builder clientId(String clientId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M @@ -242,11 +249,18 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the client secret is stored. * Only applicable for authenticationType == OAUTH_M2M. @@ -428,6 +442,50 @@ public UpdateDatabricksConnectionDetails( securityAttributes); this.authenticationType = authenticationType; this.connectionUrl = connectionUrl; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.storageCredentialName = storageCredentialName; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateDatabricksConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + DatabricksConnection.AuthenticationType authenticationType, + String connectionUrl, + char[] password, + String passwordSecretId, + String clientId, + char[] clientSecret, + String clientSecretSecretId, + String storageCredentialName) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.authenticationType = authenticationType; + this.connectionUrl = connectionUrl; this.password = password; this.passwordSecretId = passwordSecretId; this.clientId = clientId; @@ -477,7 +535,21 @@ public String getConnectionUrl() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to Databricks. + * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to Databricks. @@ -486,7 +558,8 @@ public String getConnectionUrl() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -530,7 +603,20 @@ public String getClientId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * OAuth client secret, only applicable for authenticationType == OAUTH_M2M + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M @@ -538,7 +624,8 @@ public String getClientId() { * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } 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 index 59f07f7c627..bd8019ca2a3 100644 --- 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 @@ -208,7 +208,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated DB2 database. @@ -217,11 +217,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * that Oracle GoldenGate uses to connect the associated DB2 database. @@ -568,6 +575,60 @@ public UpdateDb2ConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystoredbSecretId = sslClientKeystoredbSecretId; + this.sslClientKeystash = sslClientKeystash; + this.sslClientKeystashSecretId = sslClientKeystashSecretId; + this.sslServerCertificate = sslServerCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @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, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String databaseName, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + java.util.List additionalAttributes, + Db2Connection.SecurityProtocol securityProtocol, + String sslClientKeystoredb, + String sslClientKeystoredbSecretId, + String sslClientKeystash, + String sslClientKeystashSecretId, + String sslServerCertificate) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -651,7 +712,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated DB2 database. @@ -659,7 +733,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 1da03b4fa5d..c480b0dc777 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 @@ -294,18 +294,36 @@ public Builder subnetId(String subnetId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -760,18 +778,36 @@ public String getSubnetId() { } /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") private final String loadBalancerSubnetId; /** - * The [OCID](https://docs.oracle.com/iaas/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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy used to host the public load balancer of the deployment. + *

+ * Rules: + * - Create: Mandatory when isPublic is true. Must be a public, regional subnet in the same VCN as subnetId. + * - Update: + * - For public deployments, this property must be present and is immutable once set (cannot be changed to a different subnet). + * - Legacy exception: a public deployment created without this property may continue to be updated without providing it; once set, it becomes immutable. + *

+ * Validation: + * - Must reference a public subnet. + * - Must be a regional subnet. + * - Must be in the same VCN as subnetId. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java index 989f9313edd..709303c7e40 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java @@ -214,7 +214,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -224,11 +224,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -413,6 +420,48 @@ public UpdateElasticsearchConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.fingerprint = fingerprint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateElasticsearchConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String servers, + ElasticsearchConnection.SecurityProtocol securityProtocol, + ElasticsearchConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String fingerprint) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.fingerprint = fingerprint; @@ -495,7 +544,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -504,7 +567,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java index aba5303ca61..22e0b240989 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java @@ -206,7 +206,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -215,11 +215,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * which is used to connect to the Oracle GoldenGate accessed trough this connection. @@ -243,28 +250,18 @@ public Builder passwordSecretId(String passwordSecretId) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -412,6 +409,48 @@ public UpdateGoldenGateConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateGoldenGateConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String deploymentId, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.deploymentId = deploymentId; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateIp = privateIp; @@ -487,7 +526,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to the Oracle GoldenGate accessed trough this connection. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -495,7 +547,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -520,28 +573,18 @@ public String getPasswordSecretId() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java index 7554ead1b36..846cf404827 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java @@ -128,6 +128,26 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. @@ -190,6 +210,7 @@ public UpdateGoogleBigQueryConnectionDetails build() { this.routingMethod, this.doesUseSecretIds, this.securityAttributes, + this.endpoint, this.serviceAccountKeyFile, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -233,6 +254,9 @@ public Builder copy(UpdateGoogleBigQueryConnectionDetails model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFile")) { this.serviceAccountKeyFile(model.getServiceAccountKeyFile()); } @@ -267,6 +291,7 @@ public UpdateGoogleBigQueryConnectionDetails( RoutingMethod routingMethod, Boolean doesUseSecretIds, java.util.Map> securityAttributes, + String endpoint, String serviceAccountKeyFile, String serviceAccountKeyFileSecretId) { super( @@ -281,10 +306,29 @@ public UpdateGoogleBigQueryConnectionDetails( routingMethod, doesUseSecretIds, securityAttributes); + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to BigQuery including scheme, server name and port (if not the default port). + * Default: https://bigquery.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. @@ -339,6 +383,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateGoogleBigQueryConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); @@ -356,7 +401,8 @@ public boolean equals(Object o) { } UpdateGoogleBigQueryConnectionDetails other = (UpdateGoogleBigQueryConnectionDetails) o; - return java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) + return java.util.Objects.equals(this.endpoint, other.endpoint) + && java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) && super.equals(other); @@ -366,6 +412,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFile == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java index 318dc64d427..04e35945559 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java @@ -128,6 +128,26 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. @@ -190,6 +210,7 @@ public UpdateGoogleCloudStorageConnectionDetails build() { this.routingMethod, this.doesUseSecretIds, this.securityAttributes, + this.endpoint, this.serviceAccountKeyFile, this.serviceAccountKeyFileSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -233,6 +254,9 @@ public Builder copy(UpdateGoogleCloudStorageConnectionDetails model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } if (model.wasPropertyExplicitlySet("serviceAccountKeyFile")) { this.serviceAccountKeyFile(model.getServiceAccountKeyFile()); } @@ -267,6 +291,7 @@ public UpdateGoogleCloudStorageConnectionDetails( RoutingMethod routingMethod, Boolean doesUseSecretIds, java.util.Map> securityAttributes, + String endpoint, String serviceAccountKeyFile, String serviceAccountKeyFileSecretId) { super( @@ -281,10 +306,29 @@ public UpdateGoogleCloudStorageConnectionDetails( routingMethod, doesUseSecretIds, securityAttributes); + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. @@ -339,6 +383,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateGoogleCloudStorageConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); @@ -357,7 +402,8 @@ public boolean equals(Object o) { UpdateGoogleCloudStorageConnectionDetails other = (UpdateGoogleCloudStorageConnectionDetails) o; - return java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) + return java.util.Objects.equals(this.endpoint, other.endpoint) + && java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) && super.equals(other); @@ -367,6 +413,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); result = (result * PRIME) + (this.serviceAccountKeyFile == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java index d38dc8adf6f..ba88d388e75 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java @@ -81,6 +81,48 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI this.__explicitlySet__.add("serviceAccountKeyFileSecretId"); return this; } + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + private String serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + * @param serviceAccountKeyFile the value to set + * @return this builder + **/ + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = serviceAccountKeyFile; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -88,7 +130,11 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI public UpdateGoogleCloudStorageIcebergStorageDetails build() { UpdateGoogleCloudStorageIcebergStorageDetails model = new UpdateGoogleCloudStorageIcebergStorageDetails( - this.bucket, this.projectId, this.serviceAccountKeyFileSecretId); + this.bucket, + this.projectId, + this.serviceAccountKeyFileSecretId, + this.serviceAccountKeyFile, + this.endpoint); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -106,6 +152,12 @@ public Builder copy(UpdateGoogleCloudStorageIcebergStorageDetails model) { if (model.wasPropertyExplicitlySet("serviceAccountKeyFileSecretId")) { this.serviceAccountKeyFileSecretId(model.getServiceAccountKeyFileSecretId()); } + if (model.wasPropertyExplicitlySet("serviceAccountKeyFile")) { + this.serviceAccountKeyFile(model.getServiceAccountKeyFile()); + } + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } return this; } } @@ -123,11 +175,17 @@ public Builder toBuilder() { @Deprecated public UpdateGoogleCloudStorageIcebergStorageDetails( - String bucket, String projectId, String serviceAccountKeyFileSecretId) { + String bucket, + String projectId, + String serviceAccountKeyFileSecretId, + String serviceAccountKeyFile, + String endpoint) { super(); this.bucket = bucket; this.projectId = projectId; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + this.serviceAccountKeyFile = serviceAccountKeyFile; + this.endpoint = endpoint; } /** @@ -176,6 +234,44 @@ public String getServiceAccountKeyFileSecretId() { return serviceAccountKeyFileSecretId; } + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + private final String serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile; + } + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). + * Default: https://storage.googleapis.com + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + @Override public String toString() { return this.toString(true); @@ -194,6 +290,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", projectId=").append(String.valueOf(this.projectId)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); + sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); } @@ -213,6 +311,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.projectId, other.projectId) && java.util.Objects.equals( this.serviceAccountKeyFileSecretId, other.serviceAccountKeyFileSecretId) + && java.util.Objects.equals(this.serviceAccountKeyFile, other.serviceAccountKeyFile) + && java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); } @@ -227,6 +327,12 @@ public int hashCode() { + (this.serviceAccountKeyFileSecretId == null ? 43 : this.serviceAccountKeyFileSecretId.hashCode()); + result = + (result * PRIME) + + (this.serviceAccountKeyFile == null + ? 43 + : this.serviceAccountKeyFile.hashCode()); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java index e0cf937b4db..3065022418a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java @@ -234,7 +234,7 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private String jndiSecurityCredentials; + private char[] jndiSecurityCredentials; /** * The password associated to the principal. @@ -243,11 +243,19 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * @param jndiSecurityCredentials the value to set * @return this builder **/ - public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + public Builder jndiSecurityCredentials(char[] jndiSecurityCredentials) { this.jndiSecurityCredentials = jndiSecurityCredentials; this.__explicitlySet__.add("jndiSecurityCredentials"); return this; } + + public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.__explicitlySet__.add("jndiSecurityCredentials"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the security credentials are stored associated to the principal. * Note: When provided, 'jndiSecurityCredentials' field must not be provided. @@ -336,7 +344,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -345,11 +353,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * that Oracle GoldenGate uses to connect the associated Java Message Service. @@ -460,7 +475,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -469,11 +484,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -540,7 +563,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -549,11 +572,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -581,7 +612,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. @@ -591,11 +622,18 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder **/ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored for the cert inside of the Keystore. * In case it differs from the KeyStore password, it should be provided. @@ -619,28 +657,18 @@ public Builder sslKeyPasswordSecretId(String sslKeyPasswordSecretId) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -879,6 +907,86 @@ public UpdateJavaMessageServiceConnectionDetails( this.jndiProviderUrl = jndiProviderUrl; this.jndiInitialContextFactory = jndiInitialContextFactory; this.jndiSecurityPrincipal = jndiSecurityPrincipal; + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; + this.connectionUrl = connectionUrl; + this.connectionFactory = connectionFactory; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateJavaMessageServiceConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + Boolean shouldUseJndi, + String jndiConnectionFactory, + String jndiProviderUrl, + String jndiInitialContextFactory, + String jndiSecurityPrincipal, + char[] jndiSecurityCredentials, + String jndiSecurityCredentialsSecretId, + String connectionUrl, + String connectionFactory, + String username, + char[] password, + String passwordSecretId, + JavaMessageServiceConnection.SecurityProtocol securityProtocol, + JavaMessageServiceConnection.AuthenticationType authenticationType, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + char[] sslKeyPassword, + String sslKeyPasswordSecretId, + String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.shouldUseJndi = shouldUseJndi; + this.jndiConnectionFactory = jndiConnectionFactory; + this.jndiProviderUrl = jndiProviderUrl; + this.jndiInitialContextFactory = jndiInitialContextFactory; + this.jndiSecurityPrincipal = jndiSecurityPrincipal; this.jndiSecurityCredentials = jndiSecurityCredentials; this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; this.connectionUrl = connectionUrl; @@ -997,7 +1105,20 @@ public String getJndiSecurityPrincipal() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private final String jndiSecurityCredentials; + private final char[] jndiSecurityCredentials; + + /** + * The password associated to the principal. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getJndiSecurityCredentials__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getJndiSecurityCredentials() { + return jndiSecurityCredentials != null ? new String(jndiSecurityCredentials) : null; + } /** * The password associated to the principal. @@ -1005,7 +1126,8 @@ public String getJndiSecurityPrincipal() { * * @return the value **/ - public String getJndiSecurityCredentials() { + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") + public char[] getJndiSecurityCredentials__AsCharArray() { return jndiSecurityCredentials; } @@ -1089,7 +1211,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Java Message Service. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -1097,7 +1232,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -1199,7 +1335,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -1207,7 +1356,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1271,7 +1421,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -1279,7 +1442,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1308,7 +1472,21 @@ public String getKeyStorePasswordSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; + + /** + * The password for the cert inside of the KeyStore. + * In case it differs from the KeyStore password, it should be provided. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } /** * The password for the cert inside of the KeyStore. @@ -1317,7 +1495,8 @@ public String getKeyStorePasswordSecretId() { * * @return the value **/ - public String getSslKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } @@ -1342,28 +1521,18 @@ public String getSslKeyPasswordSecretId() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java index 473f5990767..cb48d4a61ee 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java @@ -237,7 +237,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -247,11 +247,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -324,7 +331,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -333,11 +340,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -404,7 +419,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -413,11 +428,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -445,7 +468,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. @@ -455,11 +478,18 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder **/ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka Ssl Key password is stored. * Note: When provided, 'sslKeyPassword' field must not be provided. @@ -746,6 +776,75 @@ public UpdateKafkaConnectionDetails( this.bootstrapServers = bootstrapServers; this.securityProtocol = securityProtocol; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.consumerProperties = consumerProperties; + this.producerProperties = producerProperties; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateKafkaConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String streamPoolId, + String clusterId, + java.util.List bootstrapServers, + KafkaConnection.SecurityProtocol securityProtocol, + String username, + char[] password, + String passwordSecretId, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + char[] sslKeyPassword, + String sslKeyPasswordSecretId, + String consumerProperties, + String producerProperties, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.streamPoolId = streamPoolId; + this.clusterId = clusterId; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -862,7 +961,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -871,7 +984,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -941,7 +1055,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -949,7 +1076,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1013,7 +1141,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -1021,7 +1162,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1050,7 +1192,21 @@ public String getKeyStorePasswordSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; + + /** + * The password for the cert inside of the KeyStore. + * In case it differs from the KeyStore password, it should be provided. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } /** * The password for the cert inside of the KeyStore. @@ -1059,7 +1215,8 @@ public String getKeyStorePasswordSecretId() { * * @return the value **/ - public String getSslKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java index 41f77e3d5b2..f79eec6abf1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java @@ -194,7 +194,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to access Schema Registry using basic authentication. @@ -204,11 +204,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -281,7 +288,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -290,11 +297,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka Ssl TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -361,7 +376,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -370,11 +385,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the kafka Ssl KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -402,7 +425,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside the KeyStore. @@ -412,11 +435,18 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder **/ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. @@ -440,28 +470,18 @@ public Builder sslKeyPasswordSecretId(String sslKeyPasswordSecretId) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -653,6 +673,67 @@ public UpdateKafkaSchemaRegistryConnectionDetails( this.url = url; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateKafkaSchemaRegistryConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String url, + KafkaSchemaRegistryConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + char[] sslKeyPassword, + String sslKeyPasswordSecretId, + String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.url = url; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -727,7 +808,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password to access Schema Registry using basic authentication. + * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password to access Schema Registry using basic authentication. @@ -736,7 +831,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -806,7 +902,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -814,7 +923,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -878,7 +988,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -886,7 +1009,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -915,7 +1039,21 @@ public String getKeyStorePasswordSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; + + /** + * The password for the cert inside the KeyStore. + * In case it differs from the KeyStore password, it should be provided. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } /** * The password for the cert inside the KeyStore. @@ -924,7 +1062,8 @@ public String getKeyStorePasswordSecretId() { * * @return the value **/ - public String getSslKeyPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } @@ -949,28 +1088,18 @@ public String getSslKeyPasswordSecretId() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java index 593a1cf91ae..b6696ad5b9e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java @@ -208,7 +208,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -217,11 +217,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. * Note: When provided, 'password' field must not be provided. @@ -318,28 +325,18 @@ public Builder shouldValidateServerCertificate(Boolean shouldValidateServerCerti return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -507,6 +504,56 @@ public UpdateMicrosoftSqlserverConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslCa = sslCa; + this.shouldValidateServerCertificate = shouldValidateServerCertificate; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMicrosoftSqlserverConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String databaseName, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + java.util.List additionalAttributes, + MicrosoftSqlserverConnection.SecurityProtocol securityProtocol, + String sslCa, + Boolean shouldValidateServerCertificate, + String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -588,7 +635,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -596,7 +656,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -685,28 +746,18 @@ public Boolean getShouldValidateServerCertificate() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java index 626218a68de..bf820b3e611 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java @@ -174,7 +174,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated database. @@ -183,11 +183,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect the associated database. * Note: When provided, 'password' field must not be provided. @@ -310,7 +317,7 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private String tlsCertificateKeyFilePassword; + private char[] tlsCertificateKeyFilePassword; /** * Client Certificate key file password. @@ -319,11 +326,21 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * @param tlsCertificateKeyFilePassword the value to set * @return this builder **/ - public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + public Builder tlsCertificateKeyFilePassword(char[] tlsCertificateKeyFilePassword) { this.tlsCertificateKeyFilePassword = tlsCertificateKeyFilePassword; this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); return this; } + + public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password of the tls certificate key file. * Note: When provided, 'tlsCertificateKeyFilePassword' field must not be provided. @@ -502,6 +519,59 @@ public UpdateMongoDbConnectionDetails( securityAttributes); this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.databaseId = databaseId; + this.securityProtocol = securityProtocol; + this.tlsCaFile = tlsCaFile; + this.tlsCertificateKeyFile = tlsCertificateKeyFile; + this.tlsCertificateKeyFileSecretId = tlsCertificateKeyFileSecretId; + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.tlsCertificateKeyFilePasswordSecretId = tlsCertificateKeyFilePasswordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMongoDbConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String connectionString, + String username, + char[] password, + String passwordSecretId, + String databaseId, + MongoDbConnection.SecurityProtocol securityProtocol, + String tlsCaFile, + String tlsCertificateKeyFile, + String tlsCertificateKeyFileSecretId, + char[] tlsCertificateKeyFilePassword, + String tlsCertificateKeyFilePasswordSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.databaseId = databaseId; @@ -555,7 +625,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated database. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated database. @@ -563,7 +646,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -677,7 +761,22 @@ public String getTlsCertificateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private final String tlsCertificateKeyFilePassword; + private final char[] tlsCertificateKeyFilePassword; + + /** + * Client Certificate key file password. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTlsCertificateKeyFilePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTlsCertificateKeyFilePassword() { + return tlsCertificateKeyFilePassword != null + ? new String(tlsCertificateKeyFilePassword) + : null; + } /** * Client Certificate key file password. @@ -685,7 +784,8 @@ public String getTlsCertificateKeyFileSecretId() { * * @return the value **/ - public String getTlsCertificateKeyFilePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") + public char[] getTlsCertificateKeyFilePassword__AsCharArray() { return tlsCertificateKeyFilePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java index 13007644041..3f9ddfc8cb3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java @@ -157,7 +157,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -167,11 +167,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -393,28 +400,18 @@ public Builder sslKeySecretId(String sslKeySecretId) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -642,6 +639,66 @@ public UpdateMysqlConnectionDetails( doesUseSecretIds, securityAttributes); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + 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.sslKeySecretId = sslKeySecretId; + this.privateIp = privateIp; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMysqlConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String username, + char[] password, + String passwordSecretId, + String host, + Integer port, + String databaseName, + MysqlConnection.SecurityProtocol securityProtocol, + MysqlConnection.SslMode sslMode, + String sslCa, + String sslCrl, + String sslCert, + String sslKey, + String sslKeySecretId, + String privateIp, + java.util.List additionalAttributes, + String dbSystemId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.host = host; @@ -686,7 +743,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -695,7 +766,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -898,28 +970,18 @@ public String getSslKeySecretId() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java index 418388e5510..5e2f5bde6b6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java @@ -238,7 +238,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. @@ -247,11 +247,19 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder **/ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the passphrase of the private key. * Note: When provided, 'privateKeyPassphrase' field must not be provided. @@ -461,6 +469,53 @@ public UpdateOciObjectStorageConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOciObjectStorageConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String tenancyId, + String region, + String userId, + String privateKeyFile, + String privateKeyFileSecretId, + char[] privateKeyPassphrase, + String privateKeyPassphraseSecretId, + String publicKeyFingerprint, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -567,7 +622,20 @@ public String getPrivateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * The passphrase of the private key. @@ -575,7 +643,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value **/ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } 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 0594ccd4176..462b073f114 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 @@ -23,6 +23,30 @@ public final class UpdateOggDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateOggDeploymentDetails( + CredentialStore credentialStore, + String identityDomainId, + String passwordSecretId, + String adminUsername, + String adminPassword, + String certificate, + String key, + String keySecretId, + UpdateGroupToRolesMappingDetails groupToRolesMapping) { + super(); + this.credentialStore = credentialStore; + this.identityDomainId = identityDomainId; + this.passwordSecretId = passwordSecretId; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.certificate = certificate; + this.key = key; + this.keySecretId = keySecretId; + this.groupToRolesMapping = groupToRolesMapping; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "credentialStore", "identityDomainId", @@ -31,6 +55,7 @@ public final class UpdateOggDeploymentDetails "adminPassword", "certificate", "key", + "keySecretId", "groupToRolesMapping" }) public UpdateOggDeploymentDetails( @@ -38,9 +63,10 @@ public UpdateOggDeploymentDetails( String identityDomainId, String passwordSecretId, String adminUsername, - String adminPassword, + char[] adminPassword, String certificate, String key, + String keySecretId, UpdateGroupToRolesMappingDetails groupToRolesMapping) { super(); this.credentialStore = credentialStore; @@ -50,6 +76,7 @@ public UpdateOggDeploymentDetails( this.adminPassword = adminPassword; this.certificate = certificate; this.key = key; + this.keySecretId = keySecretId; this.groupToRolesMapping = groupToRolesMapping; } @@ -135,7 +162,7 @@ public Builder adminUsername(String adminUsername) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password associated with the GoldenGate deployment console username. @@ -146,11 +173,18 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** * The base64 encoded content of the PEM file containing the SSL certificate. * @@ -187,6 +221,24 @@ public Builder key(String key) { this.__explicitlySet__.add("key"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keySecretId") + private String keySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + * @param keySecretId the value to set + * @return this builder + **/ + public Builder keySecretId(String keySecretId) { + this.keySecretId = keySecretId; + this.__explicitlySet__.add("keySecretId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("groupToRolesMapping") private UpdateGroupToRolesMappingDetails groupToRolesMapping; @@ -210,6 +262,7 @@ public UpdateOggDeploymentDetails build() { this.adminPassword, this.certificate, this.key, + this.keySecretId, this.groupToRolesMapping); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -240,6 +293,9 @@ public Builder copy(UpdateOggDeploymentDetails model) { if (model.wasPropertyExplicitlySet("key")) { this.key(model.getKey()); } + if (model.wasPropertyExplicitlySet("keySecretId")) { + this.keySecretId(model.getKeySecretId()); + } if (model.wasPropertyExplicitlySet("groupToRolesMapping")) { this.groupToRolesMapping(model.getGroupToRolesMapping()); } @@ -330,7 +386,22 @@ public String getAdminUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The password associated with the GoldenGate deployment console username. + * The password must be 8 to 30 characters long and must contain at least 1 uppercase, 1 lowercase, 1 numeric, + * and 1 special character. Special characters such as '$', '^', or '?' are not allowed. + * This field will be deprecated and replaced by "passwordSecretId". + * + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The password associated with the GoldenGate deployment console username. @@ -340,7 +411,8 @@ public String getAdminUsername() { * * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } @@ -376,6 +448,22 @@ public String getKey() { return key; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keySecretId") + private final String keySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. + * + * @return the value + **/ + public String getKeySecretId() { + return keySecretId; + } + @com.fasterxml.jackson.annotation.JsonProperty("groupToRolesMapping") private final UpdateGroupToRolesMappingDetails groupToRolesMapping; @@ -404,6 +492,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminPassword=").append(""); sb.append(", certificate=").append(String.valueOf(this.certificate)); sb.append(", key=").append(String.valueOf(this.key)); + sb.append(", keySecretId=").append(String.valueOf(this.keySecretId)); sb.append(", groupToRolesMapping=").append(String.valueOf(this.groupToRolesMapping)); sb.append(")"); return sb.toString(); @@ -426,6 +515,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.adminPassword, other.adminPassword) && java.util.Objects.equals(this.certificate, other.certificate) && java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.keySecretId, other.keySecretId) && java.util.Objects.equals(this.groupToRolesMapping, other.groupToRolesMapping) && super.equals(other); } @@ -451,6 +541,7 @@ public int hashCode() { + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); result = (result * PRIME) + (this.certificate == null ? 43 : this.certificate.hashCode()); result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.keySecretId == null ? 43 : this.keySecretId.hashCode()); result = (result * PRIME) + (this.groupToRolesMapping == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java index 84a6ac62b8f..b3056ead241 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java @@ -250,6 +250,56 @@ public Builder privateKeyPassphraseSecretId(String privateKeyPassphraseSecretId) this.__explicitlySet__.add("privateKeyPassphraseSecretId"); return this; } + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + private String privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + * @param privateKeyFile the value to set + * @return this builder + **/ + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + private char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @param privateKeyPassphrase the value to set + * @return this builder + **/ + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { + this.privateKeyPassphrase = privateKeyPassphrase; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The fingerprint of the API Key of the user specified by the userId. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -314,6 +364,8 @@ public UpdateOracleAiDataPlatformConnectionDetails build() { this.userId, this.privateKeyFileSecretId, this.privateKeyPassphraseSecretId, + this.privateKeyFile, + this.privateKeyPassphrase, this.publicKeyFingerprint, this.shouldUseResourcePrincipal); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -375,6 +427,12 @@ public Builder copy(UpdateOracleAiDataPlatformConnectionDetails model) { if (model.wasPropertyExplicitlySet("privateKeyPassphraseSecretId")) { this.privateKeyPassphraseSecretId(model.getPrivateKeyPassphraseSecretId()); } + if (model.wasPropertyExplicitlySet("privateKeyFile")) { + this.privateKeyFile(model.getPrivateKeyFile()); + } + if (model.wasPropertyExplicitlySet("privateKeyPassphrase")) { + this.privateKeyPassphrase(model.getPrivateKeyPassphrase()); + } if (model.wasPropertyExplicitlySet("publicKeyFingerprint")) { this.publicKeyFingerprint(model.getPublicKeyFingerprint()); } @@ -415,6 +473,57 @@ public UpdateOracleAiDataPlatformConnectionDetails( String userId, String privateKeyFileSecretId, String privateKeyPassphraseSecretId, + String privateKeyFile, + String privateKeyPassphrase, + String publicKeyFingerprint, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionUrl = connectionUrl; + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleAiDataPlatformConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String connectionUrl, + String tenancyId, + String region, + String userId, + String privateKeyFileSecretId, + String privateKeyPassphraseSecretId, + String privateKeyFile, + char[] privateKeyPassphrase, String publicKeyFingerprint, Boolean shouldUseResourcePrincipal) { super( @@ -435,6 +544,8 @@ public UpdateOracleAiDataPlatformConnectionDetails( this.userId = userId; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyPassphrase = privateKeyPassphrase; this.publicKeyFingerprint = publicKeyFingerprint; this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; } @@ -549,6 +660,58 @@ public String getPrivateKeyPassphraseSecretId() { return privateKeyPassphraseSecretId; } + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + private final String privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + public String getPrivateKeyFile() { + return privateKeyFile; + } + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + private final char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { + return privateKeyPassphrase; + } + /** * The fingerprint of the API Key of the user specified by the userId. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -606,6 +769,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphraseSecretId=") .append(String.valueOf(this.privateKeyPassphraseSecretId)); + sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyPassphrase=").append(""); sb.append(", publicKeyFingerprint=").append(String.valueOf(this.publicKeyFingerprint)); sb.append(", shouldUseResourcePrincipal=") .append(String.valueOf(this.shouldUseResourcePrincipal)); @@ -632,6 +797,8 @@ public boolean equals(Object o) { this.privateKeyFileSecretId, other.privateKeyFileSecretId) && java.util.Objects.equals( this.privateKeyPassphraseSecretId, other.privateKeyPassphraseSecretId) + && java.util.Objects.equals(this.privateKeyFile, other.privateKeyFile) + && java.util.Objects.equals(this.privateKeyPassphrase, other.privateKeyPassphrase) && java.util.Objects.equals(this.publicKeyFingerprint, other.publicKeyFingerprint) && java.util.Objects.equals( this.shouldUseResourcePrincipal, other.shouldUseResourcePrincipal) @@ -658,6 +825,14 @@ public int hashCode() { + (this.privateKeyPassphraseSecretId == null ? 43 : this.privateKeyPassphraseSecretId.hashCode()); + result = + (result * PRIME) + + (this.privateKeyFile == null ? 43 : this.privateKeyFile.hashCode()); + result = + (result * PRIME) + + (this.privateKeyPassphrase == null + ? 43 + : this.privateKeyPassphrase.hashCode()); result = (result * PRIME) + (this.publicKeyFingerprint == null 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 e78edc233f2..adb778f4508 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 @@ -157,7 +157,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -167,11 +167,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -281,20 +288,32 @@ public Builder walletSecretId(String walletSecretId) { 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private OracleConnection.SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @param sessionMode the value to set * @return this builder @@ -305,28 +324,18 @@ public Builder sessionMode(OracleConnection.SessionMode sessionMode) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -504,6 +513,54 @@ public UpdateOracleConnectionDetails( doesUseSecretIds, securityAttributes); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.connectionString = connectionString; + this.authenticationMode = authenticationMode; + this.wallet = wallet; + this.walletSecretId = walletSecretId; + this.sessionMode = sessionMode; + this.privateIp = privateIp; + this.databaseId = databaseId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String username, + char[] password, + String passwordSecretId, + String connectionString, + OracleConnection.AuthenticationMode authenticationMode, + String wallet, + String walletSecretId, + OracleConnection.SessionMode sessionMode, + String privateIp, + String databaseId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.connectionString = connectionString; @@ -542,7 +599,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -551,7 +622,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -654,20 +726,32 @@ public String getWalletSecretId() { } /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") private final OracleConnection.SessionMode sessionMode; /** - * 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. - * Connection to a RAC database involves a redirection received from the SCAN listeners - * to the database node to connect to. By default the mode would be DIRECT. + * Specifies the session mode for the database connection. + * Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. + * For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. + * In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. + * It is recommended to configure RAC with FQDN-based SCAN listeners. + *

+ * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. + * In this case, the default is REDIRECT. + *

+ * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. * * @return the value **/ @@ -676,28 +760,18 @@ public OracleConnection.SessionMode getSessionMode() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java index 0f5ec7eebbc..4553d7ac3c2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java @@ -238,7 +238,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. @@ -247,11 +247,19 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder **/ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the passphrase of the private key. * Note: When provided, 'privateKeyPassphrase' field must not be provided. @@ -461,6 +469,53 @@ public UpdateOracleNosqlConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleNosqlConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String tenancyId, + String region, + String userId, + String privateKeyFile, + String privateKeyFileSecretId, + char[] privateKeyPassphrase, + String privateKeyPassphraseSecretId, + String publicKeyFingerprint, + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -567,7 +622,20 @@ public String getPrivateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * The passphrase of the private key. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * The passphrase of the private key. @@ -575,7 +643,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value **/ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.java index 4d53b0af470..820956a5d23 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.java @@ -37,7 +37,9 @@ public class UpdatePipelineDetails extends com.oracle.bmc.http.internal.Explicit "licenseModel", "freeformTags", "definedTags", - "subnetId" + "subnetId", + "cpuCoreCount", + "isAutoScalingEnabled" }) protected UpdatePipelineDetails( String displayName, @@ -45,7 +47,9 @@ protected UpdatePipelineDetails( LicenseModel licenseModel, java.util.Map freeformTags, java.util.Map> definedTags, - String subnetId) { + String subnetId, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled) { super(); this.displayName = displayName; this.description = description; @@ -53,6 +57,8 @@ protected UpdatePipelineDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.subnetId = subnetId; + this.cpuCoreCount = cpuCoreCount; + this.isAutoScalingEnabled = isAutoScalingEnabled; } /** @@ -163,6 +169,38 @@ public String getSubnetId() { return subnetId; } + /** + * The Minimum number of OCPUs to be made available for this Deployment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private final Integer cpuCoreCount; + + /** + * The Minimum number of OCPUs to be made available for this Deployment. + * + * @return the value + **/ + public Integer getCpuCoreCount() { + return cpuCoreCount; + } + + /** + * Indicates if auto scaling is enabled for the Deployment's CPU core count. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if auto scaling is enabled for the Deployment's CPU core count. + * + * @return the value + **/ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + @Override public String toString() { return this.toString(true); @@ -183,6 +221,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); sb.append(")"); return sb.toString(); } @@ -203,6 +243,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) && super.equals(other); } @@ -216,6 +258,12 @@ 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.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePolarisIcebergCatalogDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePolarisIcebergCatalogDetails.java index a7373577607..2350569a5f6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePolarisIcebergCatalogDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePolarisIcebergCatalogDetails.java @@ -81,14 +81,14 @@ public Builder clientId(String clientId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @param clientSecretSecretId the value to set * @return this builder @@ -98,6 +98,31 @@ public Builder clientSecretSecretId(String clientSecretSecretId) { this.__explicitlySet__.add("clientSecretSecretId"); return this; } + /** + * Client secret required to connect to Polaris. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private char[] clientSecret; + + /** + * Client secret required to connect to Polaris. + * + * @param clientSecret the value to set + * @return this builder + **/ + public Builder clientSecret(char[] clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The Snowflake role used to access Polaris. **/ @@ -125,6 +150,7 @@ public UpdatePolarisIcebergCatalogDetails build() { this.name, this.clientId, this.clientSecretSecretId, + this.clientSecret, this.principalRole); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -146,6 +172,9 @@ public Builder copy(UpdatePolarisIcebergCatalogDetails model) { if (model.wasPropertyExplicitlySet("clientSecretSecretId")) { this.clientSecretSecretId(model.getClientSecretSecretId()); } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } if (model.wasPropertyExplicitlySet("principalRole")) { this.principalRole(model.getPrincipalRole()); } @@ -170,12 +199,32 @@ public UpdatePolarisIcebergCatalogDetails( String name, String clientId, String clientSecretSecretId, + String clientSecret, + String principalRole) { + super(); + this.uri = uri; + this.name = name; + this.clientId = clientId; + this.clientSecretSecretId = clientSecretSecretId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.principalRole = principalRole; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdatePolarisIcebergCatalogDetails( + String uri, + String name, + String clientId, + String clientSecretSecretId, + char[] clientSecret, String principalRole) { super(); this.uri = uri; this.name = name; this.clientId = clientId; this.clientSecretSecretId = clientSecretSecretId; + this.clientSecret = clientSecret; this.principalRole = principalRole; } @@ -226,14 +275,14 @@ public String getClientId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") private final String clientSecretSecretId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Polaris. * * @return the value **/ @@ -241,6 +290,35 @@ public String getClientSecretSecretId() { return clientSecretSecretId; } + /** + * Client secret required to connect to Polaris. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final char[] clientSecret; + + /** + * Client secret required to connect to Polaris. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * Client secret required to connect to Polaris. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { + return clientSecret; + } + /** * The Snowflake role used to access Polaris. **/ @@ -273,6 +351,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", name=").append(String.valueOf(this.name)); sb.append(", clientId=").append(String.valueOf(this.clientId)); sb.append(", clientSecretSecretId=").append(String.valueOf(this.clientSecretSecretId)); + sb.append(", clientSecret=").append(""); sb.append(", principalRole=").append(String.valueOf(this.principalRole)); sb.append(")"); return sb.toString(); @@ -292,6 +371,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.clientId, other.clientId) && java.util.Objects.equals(this.clientSecretSecretId, other.clientSecretSecretId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) && java.util.Objects.equals(this.principalRole, other.principalRole) && super.equals(other); } @@ -308,6 +388,7 @@ public int hashCode() { + (this.clientSecretSecretId == null ? 43 : this.clientSecretSecretId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); result = (result * PRIME) + (this.principalRole == null ? 43 : this.principalRole.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 15edba7fe80..c1be47da0fe 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 @@ -211,7 +211,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -221,11 +221,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -407,28 +414,18 @@ public Builder sslKeySecretId(String sslKeySecretId) { return this; } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @param privateIp the value to set * @return this builder @@ -639,6 +636,66 @@ public UpdatePostgresqlConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.sslKeySecretId = sslKeySecretId; + this.privateIp = privateIp; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdatePostgresqlConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String databaseName, + String host, + Integer port, + String username, + char[] password, + String passwordSecretId, + java.util.List additionalAttributes, + PostgresqlConnection.SecurityProtocol securityProtocol, + PostgresqlConnection.SslMode sslMode, + String sslCa, + String sslCrl, + String sslCert, + String sslKey, + String sslKeySecretId, + String privateIp, + String dbSystemId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -728,7 +785,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -737,7 +808,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -904,28 +976,18 @@ public String getSslKeySecretId() { } /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateIp") private final String privateIp; /** - * Deprecated: this field will be removed in future versions. Either specify the private IP in the connectionString or host - * field, or make sure the host name is resolvable in the target VCN. + * This property is not available when creating connections. For existing deprecated connections having this value set, the value cannot be updated; set it to empty. *

- * The private IP address of the connection's endpoint in the customer's VCN, typically a - * database endpoint or a big data endpoint (e.g. Kafka bootstrap server). - * In case the privateIp is provided, the subnetId must also be provided. - * In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. - * In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection. + * For deprecated connections created with this field in the past, either the private IP had to be specified in the connectionString or host field, or the host name had to be resolvable in the target VCN. * * @return the value **/ 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 8b7ab3c02f8..1bd329479f4 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 @@ -213,7 +213,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -223,11 +223,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored. * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -300,7 +307,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. @@ -309,11 +316,19 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder **/ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Redis TrustStore password is stored. * Note: When provided, 'trustStorePassword' field must not be provided. @@ -380,7 +395,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. @@ -389,11 +404,19 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder **/ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Redis KeyStore password is stored. * Note: When provided, 'keyStorePassword' field must not be provided. @@ -610,6 +633,65 @@ public UpdateRedisConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.redisClusterId = redisClusterId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateRedisConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String servers, + RedisConnection.SecurityProtocol securityProtocol, + RedisConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String trustStore, + String trustStoreSecretId, + char[] trustStorePassword, + String trustStorePasswordSecretId, + String keyStore, + String keyStoreSecretId, + char[] keyStorePassword, + String keyStorePasswordSecretId, + String redisClusterId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -700,7 +782,21 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and so on. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -709,7 +805,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -779,7 +876,20 @@ public String getTrustStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; + + /** + * The TrustStore password. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } /** * The TrustStore password. @@ -787,7 +897,8 @@ public String getTrustStoreSecretId() { * * @return the value **/ - public String getTrustStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -851,7 +962,20 @@ public String getKeyStoreSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; + + /** + * The KeyStore password. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } /** * The KeyStore password. @@ -859,7 +983,8 @@ public String getKeyStoreSecretId() { * * @return the value **/ - public String getKeyStorePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java index 496c53f3e3d..7b0663acf63 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java @@ -70,13 +70,32 @@ public Builder propertiesSecretId(String propertiesSecretId) { this.__explicitlySet__.add("propertiesSecretId"); return this; } + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private String properties; + + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + * @param properties the value to set + * @return this builder + **/ + public Builder properties(String properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateRestIcebergCatalogDetails build() { UpdateRestIcebergCatalogDetails model = - new UpdateRestIcebergCatalogDetails(this.uri, this.propertiesSecretId); + new UpdateRestIcebergCatalogDetails( + this.uri, this.propertiesSecretId, this.properties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -91,6 +110,9 @@ public Builder copy(UpdateRestIcebergCatalogDetails model) { if (model.wasPropertyExplicitlySet("propertiesSecretId")) { this.propertiesSecretId(model.getPropertiesSecretId()); } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } return this; } } @@ -107,10 +129,12 @@ public Builder toBuilder() { } @Deprecated - public UpdateRestIcebergCatalogDetails(String uri, String propertiesSecretId) { + public UpdateRestIcebergCatalogDetails( + String uri, String propertiesSecretId, String properties) { super(); this.uri = uri; this.propertiesSecretId = propertiesSecretId; + this.properties = properties; } /** @@ -151,6 +175,22 @@ public String getPropertiesSecretId() { return propertiesSecretId; } + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final String properties; + + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + * @return the value + **/ + public String getProperties() { + return properties; + } + @Override public String toString() { return this.toString(true); @@ -167,6 +207,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", propertiesSecretId=").append(String.valueOf(this.propertiesSecretId)); + sb.append(", properties=").append(String.valueOf(this.properties)); sb.append(")"); return sb.toString(); } @@ -183,6 +224,7 @@ public boolean equals(Object o) { UpdateRestIcebergCatalogDetails other = (UpdateRestIcebergCatalogDetails) o; return java.util.Objects.equals(this.uri, other.uri) && java.util.Objects.equals(this.propertiesSecretId, other.propertiesSecretId) + && java.util.Objects.equals(this.properties, other.properties) && super.equals(other); } @@ -196,6 +238,7 @@ public int hashCode() { + (this.propertiesSecretId == null ? 43 : this.propertiesSecretId.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java index bc8c3574e13..159b3b52dca 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java @@ -193,7 +193,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect to Snowflake platform. @@ -202,11 +202,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. * Note: When provided, 'password' field must not be provided. @@ -275,7 +282,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * Password if the private key file is encrypted. @@ -284,11 +291,19 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder **/ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the password for the private key file. * Note: When provided, 'privateKeyPassphrase' field must not be provided. @@ -456,6 +471,53 @@ public UpdateSnowflakeConnectionDetails( this.connectionUrl = connectionUrl; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateSnowflakeConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String connectionUrl, + SnowflakeConnection.AuthenticationType authenticationType, + String username, + char[] password, + String passwordSecretId, + String privateKeyFile, + String privateKeyFileSecretId, + char[] privateKeyPassphrase, + String privateKeyPassphraseSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionUrl = connectionUrl; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateKeyFile = privateKeyFile; @@ -522,7 +584,20 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect to Snowflake platform. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect to Snowflake platform. @@ -530,7 +605,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -596,7 +672,20 @@ public String getPrivateKeyFileSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * Password if the private key file is encrypted. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * return the value + * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * Password if the private key file is encrypted. @@ -604,7 +693,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value **/ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.java index 7eb1c8b4a56..c517a26bf36 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.java @@ -83,6 +83,24 @@ public Builder subnetId(String subnetId) { 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("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") private ProcessOptions processOptions; @@ -122,6 +140,8 @@ public UpdateZeroEtlPipelineDetails build() { this.freeformTags, this.definedTags, this.subnetId, + this.cpuCoreCount, + this.isAutoScalingEnabled, this.processOptions, this.mappingRules); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -150,6 +170,12 @@ public Builder copy(UpdateZeroEtlPipelineDetails model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } if (model.wasPropertyExplicitlySet("processOptions")) { this.processOptions(model.getProcessOptions()); } @@ -179,9 +205,19 @@ public UpdateZeroEtlPipelineDetails( java.util.Map freeformTags, java.util.Map> definedTags, String subnetId, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled, ProcessOptions processOptions, java.util.List mappingRules) { - super(displayName, description, licenseModel, freeformTags, definedTags, subnetId); + super( + displayName, + description, + licenseModel, + freeformTags, + definedTags, + subnetId, + cpuCoreCount, + isAutoScalingEnabled); this.processOptions = processOptions; this.mappingRules = mappingRules; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ClonePipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ClonePipelineRequest.java new file mode 100644 index 00000000000..a66efdac8e2 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ClonePipelineRequest.java @@ -0,0 +1,363 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ClonePipelineRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ClonePipelineRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.ClonePipelineDetails> { + + /** + * Details to clone the pipeline. + * + */ + private com.oracle.bmc.goldengate.model.ClonePipelineDetails clonePipelineDetails; + + /** + * Details to clone the pipeline. + * + */ + public com.oracle.bmc.goldengate.model.ClonePipelineDetails getClonePipelineDetails() { + return clonePipelineDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, 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 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without 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 opcRetryToken; + + /** + * 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 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.ClonePipelineDetails getBody$() { + return clonePipelineDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ClonePipelineRequest, com.oracle.bmc.goldengate.model.ClonePipelineDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details to clone the pipeline. + * + */ + private com.oracle.bmc.goldengate.model.ClonePipelineDetails clonePipelineDetails = null; + + /** + * Details to clone the pipeline. + * + * @param clonePipelineDetails the value to set + * @return this builder instance + */ + public Builder clonePipelineDetails( + com.oracle.bmc.goldengate.model.ClonePipelineDetails clonePipelineDetails) { + this.clonePipelineDetails = clonePipelineDetails; + 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 is 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without 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 opcRetryToken = null; + + /** + * 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 opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = 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 + * @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(ClonePipelineRequest o) { + clonePipelineDetails(o.getClonePipelineDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ClonePipelineRequest 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 ClonePipelineRequest + */ + public ClonePipelineRequest build() { + ClonePipelineRequest 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.ClonePipelineDetails body) { + clonePipelineDetails(body); + return this; + } + + /** + * Build the instance of ClonePipelineRequest 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 ClonePipelineRequest + */ + public ClonePipelineRequest buildWithoutInvocationCallback() { + ClonePipelineRequest request = new ClonePipelineRequest(); + request.clonePipelineDetails = clonePipelineDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; + return request; + // new ClonePipelineRequest(clonePipelineDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .clonePipelineDetails(clonePipelineDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",clonePipelineDetails=").append(String.valueOf(this.clonePipelineDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ClonePipelineRequest)) { + return false; + } + + ClonePipelineRequest other = (ClonePipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.clonePipelineDetails, other.clonePipelineDetails) + && 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.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.clonePipelineDetails == null + ? 43 + : this.clonePipelineDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GenerateDisasterRecoveryPrecheckReportRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GenerateDisasterRecoveryPrecheckReportRequest.java new file mode 100644 index 00000000000..31358296493 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GenerateDisasterRecoveryPrecheckReportRequest.java @@ -0,0 +1,383 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GenerateDisasterRecoveryPrecheckReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GenerateDisasterRecoveryPrecheckReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails> { + + /** + * A unique Deployment identifier. + * + */ + private String deploymentId; + + /** + * A unique Deployment identifier. + * + */ + public String getDeploymentId() { + return deploymentId; + } + /** + * Parameters for the DR precheck report generation request. + * + */ + private com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails + generateDisasterRecoveryPrecheckReportDetails; + + /** + * Parameters for the DR precheck report generation request. + * + */ + public com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails + getGenerateDisasterRecoveryPrecheckReportDetails() { + return generateDisasterRecoveryPrecheckReportDetails; + } + /** + * The client request ID for tracing. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource is 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without 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 opcRetryToken; + + /** + * 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 getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails + getBody$() { + return generateDisasterRecoveryPrecheckReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateDisasterRecoveryPrecheckReportRequest, + com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails> { + 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; + } + + /** + * Parameters for the DR precheck report generation request. + * + */ + private com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails + generateDisasterRecoveryPrecheckReportDetails = null; + + /** + * Parameters for the DR precheck report generation request. + * + * @param generateDisasterRecoveryPrecheckReportDetails the value to set + * @return this builder instance + */ + public Builder generateDisasterRecoveryPrecheckReportDetails( + com.oracle.bmc.goldengate.model.GenerateDisasterRecoveryPrecheckReportDetails + generateDisasterRecoveryPrecheckReportDetails) { + this.generateDisasterRecoveryPrecheckReportDetails = + generateDisasterRecoveryPrecheckReportDetails; + return this; + } + + /** + * The client request ID for tracing. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource is 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without 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 opcRetryToken = null; + + /** + * 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 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(GenerateDisasterRecoveryPrecheckReportRequest o) { + deploymentId(o.getDeploymentId()); + generateDisasterRecoveryPrecheckReportDetails( + o.getGenerateDisasterRecoveryPrecheckReportDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateDisasterRecoveryPrecheckReportRequest 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 GenerateDisasterRecoveryPrecheckReportRequest + */ + public GenerateDisasterRecoveryPrecheckReportRequest build() { + GenerateDisasterRecoveryPrecheckReportRequest 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.GenerateDisasterRecoveryPrecheckReportDetails + body) { + generateDisasterRecoveryPrecheckReportDetails(body); + return this; + } + + /** + * Build the instance of GenerateDisasterRecoveryPrecheckReportRequest 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 GenerateDisasterRecoveryPrecheckReportRequest + */ + public GenerateDisasterRecoveryPrecheckReportRequest buildWithoutInvocationCallback() { + GenerateDisasterRecoveryPrecheckReportRequest request = + new GenerateDisasterRecoveryPrecheckReportRequest(); + request.deploymentId = deploymentId; + request.generateDisasterRecoveryPrecheckReportDetails = + generateDisasterRecoveryPrecheckReportDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new GenerateDisasterRecoveryPrecheckReportRequest(deploymentId, generateDisasterRecoveryPrecheckReportDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .deploymentId(deploymentId) + .generateDisasterRecoveryPrecheckReportDetails( + generateDisasterRecoveryPrecheckReportDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(",generateDisasterRecoveryPrecheckReportDetails=") + .append(String.valueOf(this.generateDisasterRecoveryPrecheckReportDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDisasterRecoveryPrecheckReportRequest)) { + return false; + } + + GenerateDisasterRecoveryPrecheckReportRequest other = + (GenerateDisasterRecoveryPrecheckReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.deploymentId, other.deploymentId) + && java.util.Objects.equals( + this.generateDisasterRecoveryPrecheckReportDetails, + other.generateDisasterRecoveryPrecheckReportDetails) + && 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.deploymentId == null ? 43 : this.deploymentId.hashCode()); + result = + (result * PRIME) + + (this.generateDisasterRecoveryPrecheckReportDetails == null + ? 43 + : this.generateDisasterRecoveryPrecheckReportDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GetDisasterRecoveryPrecheckReportRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GetDisasterRecoveryPrecheckReportRequest.java new file mode 100644 index 00000000000..574a24ad352 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GetDisasterRecoveryPrecheckReportRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use GetDisasterRecoveryPrecheckReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GetDisasterRecoveryPrecheckReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * A unique Deployment identifier. + * + */ + private String deploymentId; + + /** + * A unique Deployment identifier. + * + */ + public String getDeploymentId() { + return deploymentId; + } + /** + * The availability domain of the placement to evaluate DR pre-checks for. + * + */ + private String availabilityDomain; + + /** + * The availability domain of the placement to evaluate DR pre-checks for. + * + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + /** + * The fault domain of the placement to evaluate DR pre-checks for. + * + */ + private String faultDomain; + + /** + * The fault domain of the placement to evaluate DR pre-checks for. + * + */ + public String getFaultDomain() { + return faultDomain; + } + /** + * 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< + GetDisasterRecoveryPrecheckReportRequest, java.lang.Void> { + 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; + } + + /** + * The availability domain of the placement to evaluate DR pre-checks for. + * + */ + private String availabilityDomain = null; + + /** + * The availability domain of the placement to evaluate DR pre-checks for. + * + * @param availabilityDomain the value to set + * @return this builder instance + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + return this; + } + + /** + * The fault domain of the placement to evaluate DR pre-checks for. + * + */ + private String faultDomain = null; + + /** + * The fault domain of the placement to evaluate DR pre-checks for. + * + * @param faultDomain the value to set + * @return this builder instance + */ + public Builder faultDomain(String faultDomain) { + this.faultDomain = faultDomain; + 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(GetDisasterRecoveryPrecheckReportRequest o) { + deploymentId(o.getDeploymentId()); + availabilityDomain(o.getAvailabilityDomain()); + faultDomain(o.getFaultDomain()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDisasterRecoveryPrecheckReportRequest 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 GetDisasterRecoveryPrecheckReportRequest + */ + public GetDisasterRecoveryPrecheckReportRequest build() { + GetDisasterRecoveryPrecheckReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDisasterRecoveryPrecheckReportRequest 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 GetDisasterRecoveryPrecheckReportRequest + */ + public GetDisasterRecoveryPrecheckReportRequest buildWithoutInvocationCallback() { + GetDisasterRecoveryPrecheckReportRequest request = + new GetDisasterRecoveryPrecheckReportRequest(); + request.deploymentId = deploymentId; + request.availabilityDomain = availabilityDomain; + request.faultDomain = faultDomain; + request.opcRequestId = opcRequestId; + return request; + // new GetDisasterRecoveryPrecheckReportRequest(deploymentId, availabilityDomain, faultDomain, 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() + .deploymentId(deploymentId) + .availabilityDomain(availabilityDomain) + .faultDomain(faultDomain) + .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(",deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(",availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(",faultDomain=").append(String.valueOf(this.faultDomain)); + 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 GetDisasterRecoveryPrecheckReportRequest)) { + return false; + } + + GetDisasterRecoveryPrecheckReportRequest other = + (GetDisasterRecoveryPrecheckReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.deploymentId, other.deploymentId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.faultDomain, other.faultDomain) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @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.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentBackupsRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentBackupsRequest.java index cec8245a944..f8f7f6c0046 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentBackupsRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentBackupsRequest.java @@ -45,16 +45,16 @@ public String getDeploymentId() { return deploymentId; } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment backups having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState; + private com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState lifecycleState; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment backups having the 'lifecycleState' given. * */ - public com.oracle.bmc.goldengate.model.LifecycleState getLifecycleState() { + public com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState getLifecycleState() { return lifecycleState; } /** @@ -229,19 +229,20 @@ public Builder deploymentId(String deploymentId) { } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment backups having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState = null; + private com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState lifecycleState = + null; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment backups having the 'lifecycleState' given. * * @param lifecycleState the value to set * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.goldengate.model.LifecycleState lifecycleState) { + com.oracle.bmc.goldengate.model.DeploymentBackup.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; return this; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentPeersRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentPeersRequest.java index ef537ccf3e4..0c5c58d6e18 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentPeersRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentPeersRequest.java @@ -25,16 +25,17 @@ public String getDeploymentId() { return deploymentId; } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment peers having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState; + private com.oracle.bmc.goldengate.model.DeploymentPeerSummary.LifecycleState lifecycleState; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment peers having the 'lifecycleState' given. * */ - public com.oracle.bmc.goldengate.model.LifecycleState getLifecycleState() { + public com.oracle.bmc.goldengate.model.DeploymentPeerSummary.LifecycleState + getLifecycleState() { return lifecycleState; } /** @@ -186,19 +187,21 @@ public Builder deploymentId(String deploymentId) { } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment peers having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState = null; + private com.oracle.bmc.goldengate.model.DeploymentPeerSummary.LifecycleState + lifecycleState = null; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment peers having the 'lifecycleState' given. * * @param lifecycleState the value to set * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.goldengate.model.LifecycleState lifecycleState) { + com.oracle.bmc.goldengate.model.DeploymentPeerSummary.LifecycleState + lifecycleState) { this.lifecycleState = lifecycleState; return this; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentUpgradesRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentUpgradesRequest.java index a79193c1079..b923f076908 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentUpgradesRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentUpgradesRequest.java @@ -45,16 +45,16 @@ public String getDeploymentId() { return deploymentId; } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment upgrades having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState; + private com.oracle.bmc.goldengate.model.DeploymentUpgrade.LifecycleState lifecycleState; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment upgrades having the 'lifecycleState' given. * */ - public com.oracle.bmc.goldengate.model.LifecycleState getLifecycleState() { + public com.oracle.bmc.goldengate.model.DeploymentUpgrade.LifecycleState getLifecycleState() { return lifecycleState; } /** @@ -229,19 +229,20 @@ public Builder deploymentId(String deploymentId) { } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment upgrades having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState = null; + private com.oracle.bmc.goldengate.model.DeploymentUpgrade.LifecycleState lifecycleState = + null; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployment upgrades having the 'lifecycleState' given. * * @param lifecycleState the value to set * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.goldengate.model.LifecycleState lifecycleState) { + com.oracle.bmc.goldengate.model.DeploymentUpgrade.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; return this; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentsRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentsRequest.java index c2ebfcce1f2..b4800cb8007 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentsRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListDeploymentsRequest.java @@ -70,16 +70,16 @@ public String getAssignableConnectionId() { return assignableConnectionId; } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployments having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState; + private com.oracle.bmc.goldengate.model.Deployment.LifecycleState lifecycleState; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployments having the 'lifecycleState' given. * */ - public com.oracle.bmc.goldengate.model.LifecycleState getLifecycleState() { + public com.oracle.bmc.goldengate.model.Deployment.LifecycleState getLifecycleState() { return lifecycleState; } /** @@ -328,19 +328,19 @@ public Builder assignableConnectionId(String assignableConnectionId) { } /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployments having the 'lifecycleState' given. * */ - private com.oracle.bmc.goldengate.model.LifecycleState lifecycleState = null; + private com.oracle.bmc.goldengate.model.Deployment.LifecycleState lifecycleState = null; /** - * A filter to return only the resources that match the 'lifecycleState' given. + * A filter to return only the deployments having the 'lifecycleState' given. * * @param lifecycleState the value to set * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.goldengate.model.LifecycleState lifecycleState) { + com.oracle.bmc.goldengate.model.Deployment.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; return this; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/MigrateConnectionRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/MigrateConnectionRequest.java new file mode 100644 index 00000000000..c8a17e92ab4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/MigrateConnectionRequest.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use MigrateConnectionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class MigrateConnectionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.MigrateConnectionDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + private String connectionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + public String getConnectionId() { + return connectionId; + } + /** + * Details of the migrated Connection. + * + */ + private com.oracle.bmc.goldengate.model.MigrateConnectionDetails migrateConnectionDetails; + + /** + * Details of the migrated Connection. + * + */ + public com.oracle.bmc.goldengate.model.MigrateConnectionDetails getMigrateConnectionDetails() { + return migrateConnectionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, 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 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.MigrateConnectionDetails getBody$() { + return migrateConnectionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + MigrateConnectionRequest, + com.oracle.bmc.goldengate.model.MigrateConnectionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + private String connectionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/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; + } + + /** + * Details of the migrated Connection. + * + */ + private com.oracle.bmc.goldengate.model.MigrateConnectionDetails migrateConnectionDetails = + null; + + /** + * Details of the migrated Connection. + * + * @param migrateConnectionDetails the value to set + * @return this builder instance + */ + public Builder migrateConnectionDetails( + com.oracle.bmc.goldengate.model.MigrateConnectionDetails migrateConnectionDetails) { + this.migrateConnectionDetails = migrateConnectionDetails; + 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 is 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 + * @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(MigrateConnectionRequest o) { + connectionId(o.getConnectionId()); + migrateConnectionDetails(o.getMigrateConnectionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of MigrateConnectionRequest 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 MigrateConnectionRequest + */ + public MigrateConnectionRequest build() { + MigrateConnectionRequest 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.MigrateConnectionDetails body) { + migrateConnectionDetails(body); + return this; + } + + /** + * Build the instance of MigrateConnectionRequest 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 MigrateConnectionRequest + */ + public MigrateConnectionRequest buildWithoutInvocationCallback() { + MigrateConnectionRequest request = new MigrateConnectionRequest(); + request.connectionId = connectionId; + request.migrateConnectionDetails = migrateConnectionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new MigrateConnectionRequest(connectionId, migrateConnectionDetails, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * Return an instance of {@link Builder} that 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) + .migrateConnectionDetails(migrateConnectionDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return 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(",migrateConnectionDetails=") + .append(String.valueOf(this.migrateConnectionDetails)); + 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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MigrateConnectionRequest)) { + return false; + } + + MigrateConnectionRequest other = (MigrateConnectionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.connectionId, other.connectionId) + && java.util.Objects.equals( + this.migrateConnectionDetails, other.migrateConnectionDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @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.migrateConnectionDetails == null + ? 43 + : this.migrateConnectionDetails.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/responses/ClonePipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ClonePipelineResponse.java new file mode 100644 index 00000000000..321a0cc683e --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ClonePipelineResponse.java @@ -0,0 +1,255 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ClonePipelineResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * 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 Pipeline instance. + */ + private com.oracle.bmc.goldengate.model.Pipeline pipeline; + + /** + * The returned Pipeline instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.Pipeline getPipeline() { + return pipeline; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "pipeline" + }) + private ClonePipelineResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.Pipeline pipeline) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.pipeline = pipeline; + } + + 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 an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * 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 Pipeline instance. + */ + private com.oracle.bmc.goldengate.model.Pipeline pipeline; + + /** + * The returned Pipeline instance. + * @param pipeline the value to set + * @return this builder + */ + public Builder pipeline(com.oracle.bmc.goldengate.model.Pipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ClonePipelineResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + pipeline(o.getPipeline()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ClonePipelineResponse build() { + return new ClonePipelineResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, etag, pipeline); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",pipeline=").append(String.valueOf(pipeline)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ClonePipelineResponse)) { + return false; + } + + ClonePipelineResponse other = (ClonePipelineResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.pipeline, other.pipeline); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.pipeline == null ? 43 : this.pipeline.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GenerateDisasterRecoveryPrecheckReportResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GenerateDisasterRecoveryPrecheckReportResponse.java new file mode 100644 index 00000000000..e7701cf2735 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GenerateDisasterRecoveryPrecheckReportResponse.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GenerateDisasterRecoveryPrecheckReportResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private GenerateDisasterRecoveryPrecheckReportResponse( + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateDisasterRecoveryPrecheckReportResponse 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 GenerateDisasterRecoveryPrecheckReportResponse build() { + return new GenerateDisasterRecoveryPrecheckReportResponse( + __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 GenerateDisasterRecoveryPrecheckReportResponse)) { + return false; + } + + GenerateDisasterRecoveryPrecheckReportResponse other = + (GenerateDisasterRecoveryPrecheckReportResponse) 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/src/main/java/com/oracle/bmc/goldengate/responses/GetDisasterRecoveryPrecheckReportResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GetDisasterRecoveryPrecheckReportResponse.java new file mode 100644 index 00000000000..f62e4334478 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GetDisasterRecoveryPrecheckReportResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetDisasterRecoveryPrecheckReportResponse + 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; + } + + /** + * The returned DisasterRecoveryPrecheckReport instance. + */ + private com.oracle.bmc.goldengate.model.DisasterRecoveryPrecheckReport + disasterRecoveryPrecheckReport; + + /** + * The returned DisasterRecoveryPrecheckReport instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.DisasterRecoveryPrecheckReport + getDisasterRecoveryPrecheckReport() { + return disasterRecoveryPrecheckReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "disasterRecoveryPrecheckReport" + }) + private GetDisasterRecoveryPrecheckReportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.goldengate.model.DisasterRecoveryPrecheckReport + disasterRecoveryPrecheckReport) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.disasterRecoveryPrecheckReport = disasterRecoveryPrecheckReport; + } + + 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; + } + + /** + * The returned DisasterRecoveryPrecheckReport instance. + */ + private com.oracle.bmc.goldengate.model.DisasterRecoveryPrecheckReport + disasterRecoveryPrecheckReport; + + /** + * The returned DisasterRecoveryPrecheckReport instance. + * @param disasterRecoveryPrecheckReport the value to set + * @return this builder + */ + public Builder disasterRecoveryPrecheckReport( + com.oracle.bmc.goldengate.model.DisasterRecoveryPrecheckReport + disasterRecoveryPrecheckReport) { + this.disasterRecoveryPrecheckReport = disasterRecoveryPrecheckReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDisasterRecoveryPrecheckReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + disasterRecoveryPrecheckReport(o.getDisasterRecoveryPrecheckReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDisasterRecoveryPrecheckReportResponse build() { + return new GetDisasterRecoveryPrecheckReportResponse( + __httpStatusCode__, headers, opcRequestId, disasterRecoveryPrecheckReport); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",disasterRecoveryPrecheckReport=") + .append(String.valueOf(disasterRecoveryPrecheckReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDisasterRecoveryPrecheckReportResponse)) { + return false; + } + + GetDisasterRecoveryPrecheckReportResponse other = + (GetDisasterRecoveryPrecheckReportResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.disasterRecoveryPrecheckReport, other.disasterRecoveryPrecheckReport); + } + + @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.disasterRecoveryPrecheckReport == null + ? 43 + : this.disasterRecoveryPrecheckReport.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/MigrateConnectionResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/MigrateConnectionResponse.java new file mode 100644 index 00000000000..65c0ee55b4d --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/MigrateConnectionResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class MigrateConnectionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private MigrateConnectionResponse( + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(MigrateConnectionResponse 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 MigrateConnectionResponse build() { + return new MigrateConnectionResponse( + __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 MigrateConnectionResponse)) { + return false; + } + + MigrateConnectionResponse other = (MigrateConnectionResponse) 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-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 0f78734b83b..624a8e1ba8b 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 259cc48c587..ed7cc90224e 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index d7e56636a54..d5942cfcde5 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java b/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java index baefafc2935..057232baf55 100644 --- a/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java +++ b/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java @@ -28,6 +28,28 @@ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AuthToken.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class AuthToken extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public AuthToken( + String token, + String id, + String userId, + String description, + java.util.Date timeCreated, + java.util.Date timeExpires, + LifecycleState lifecycleState, + Long inactiveStatus) { + super(); + this.token = token != null ? token.toCharArray() : null; + this.id = id; + this.userId = userId; + this.description = description; + this.timeCreated = timeCreated; + this.timeExpires = timeExpires; + this.lifecycleState = lifecycleState; + this.inactiveStatus = inactiveStatus; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "token", @@ -40,7 +62,7 @@ public final class AuthToken extends com.oracle.bmc.http.internal.ExplicitlySetB "inactiveStatus" }) public AuthToken( - String token, + char[] token, String id, String userId, String description, @@ -67,7 +89,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("token") - private String token; + private char[] token; /** * The auth token. The value is available only in the response for {@code CreateAuthToken}, and not @@ -76,11 +98,18 @@ public static class Builder { * @param token the value to set * @return this builder **/ - public Builder token(String token) { + public Builder token(char[] token) { this.token = token; this.__explicitlySet__.add("token"); return this; } + + public Builder token(String token) { + this.token = token != null ? token.toCharArray() : null; + this.__explicitlySet__.add("token"); + return this; + } + /** * The OCID of the auth token. **/ @@ -285,7 +314,20 @@ public Builder toBuilder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("token") - private final String token; + private final char[] token; + + /** + * The auth token. The value is available only in the response for {@code CreateAuthToken}, and not + * for {@code ListAuthTokens} or {@code UpdateAuthToken}. + * + * return the value + * @Deprecated - Use getToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getToken() { + return token != null ? new String(token) : null; + } /** * The auth token. The value is available only in the response for {@code CreateAuthToken}, and not @@ -293,7 +335,8 @@ public Builder toBuilder() { * * @return the value **/ - public String getToken() { + @com.fasterxml.jackson.annotation.JsonProperty("token") + public char[] getToken__AsCharArray() { return token; } diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index f6ef7ff1a60..d6819de7645 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-identitydataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 4bd96f7a918..03f9a6b3f32 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-identitydomains @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java index df3e01629cb..df5c9e86c17 100644 --- a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java @@ -20,6 +20,53 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class UserPasswordResetter extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public UserPasswordResetter( + String id, + String ocid, + java.util.List schemas, + Meta meta, + IdcsCreatedBy idcsCreatedBy, + IdcsLastModifiedBy idcsLastModifiedBy, + java.util.List idcsPreventedOperations, + java.util.List tags, + Boolean deleteInProgress, + String idcsLastUpgradedInRelease, + String domainOcid, + String compartmentOcid, + String tenancyOcid, + String externalId, + Boolean bypassNotification, + Boolean userFlowControlledByExternalClient, + UserPasswordResetterUserToken userToken, + String notificationEmailTemplateId, + String oneTimePassword, + ExtensionSelfChangeUser urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser) { + super(); + this.id = id; + this.ocid = ocid; + this.schemas = schemas; + this.meta = meta; + this.idcsCreatedBy = idcsCreatedBy; + this.idcsLastModifiedBy = idcsLastModifiedBy; + this.idcsPreventedOperations = idcsPreventedOperations; + this.tags = tags; + this.deleteInProgress = deleteInProgress; + this.idcsLastUpgradedInRelease = idcsLastUpgradedInRelease; + this.domainOcid = domainOcid; + this.compartmentOcid = compartmentOcid; + this.tenancyOcid = tenancyOcid; + this.externalId = externalId; + this.bypassNotification = bypassNotification; + this.userFlowControlledByExternalClient = userFlowControlledByExternalClient; + this.userToken = userToken; + this.notificationEmailTemplateId = notificationEmailTemplateId; + this.oneTimePassword = oneTimePassword != null ? oneTimePassword.toCharArray() : null; + this.urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser = + urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "id", @@ -62,7 +109,7 @@ public UserPasswordResetter( Boolean userFlowControlledByExternalClient, UserPasswordResetterUserToken userToken, String notificationEmailTemplateId, - String oneTimePassword, + char[] oneTimePassword, ExtensionSelfChangeUser urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser) { super(); this.id = id; @@ -640,7 +687,7 @@ public Builder notificationEmailTemplateId(String notificationEmailTemplateId) { * - uniqueness: none **/ @com.fasterxml.jackson.annotation.JsonProperty("oneTimePassword") - private String oneTimePassword; + private char[] oneTimePassword; /** * A one time password will be returned when the user doesn't have a primary email address. @@ -657,12 +704,18 @@ public Builder notificationEmailTemplateId(String notificationEmailTemplateId) { * @param oneTimePassword the value to set * @return this builder **/ - public Builder oneTimePassword(String oneTimePassword) { + public Builder oneTimePassword(char[] oneTimePassword) { this.oneTimePassword = oneTimePassword; this.__explicitlySet__.add("oneTimePassword"); return this; } + public Builder oneTimePassword(String oneTimePassword) { + this.oneTimePassword = oneTimePassword != null ? oneTimePassword.toCharArray() : null; + this.__explicitlySet__.add("oneTimePassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty( "urn:ietf:params:scim:schemas:oracle:idcs:extension:selfChange:User") private ExtensionSelfChangeUser urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser; @@ -1299,7 +1352,28 @@ public String getNotificationEmailTemplateId() { * - uniqueness: none **/ @com.fasterxml.jackson.annotation.JsonProperty("oneTimePassword") - private final String oneTimePassword; + private final char[] oneTimePassword; + + /** + * A one time password will be returned when the user doesn't have a primary email address. + * <p> + **SCIM++ Properties:** + * - caseExact: false + * - idcsSearchable: false + * - multiValued: false + * - mutability: readOnly + * - required: false + * - returned: request + * - type: string + * - uniqueness: none + * return the value + * @Deprecated - Use getOneTimePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getOneTimePassword() { + return oneTimePassword != null ? new String(oneTimePassword) : null; + } /** * A one time password will be returned when the user doesn't have a primary email address. @@ -1315,7 +1389,8 @@ public String getNotificationEmailTemplateId() { * - uniqueness: none * @return the value **/ - public String getOneTimePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("oneTimePassword") + public char[] getOneTimePassword__AsCharArray() { return oneTimePassword; } diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index c2da7f6c3bb..16d35f9f5b9 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-integration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 11f4929b01a..d50b5fe376a 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListDigitalTwinInstancesConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListDigitalTwinInstancesConverter.java index 5e015341d24..97291280d85 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListDigitalTwinInstancesConverter.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListDigitalTwinInstancesConverter.java @@ -98,6 +98,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDigitalTwinModelSpecUri())); } + if (request.getConnectivityType() != null) { + target = + target.queryParam( + "connectivityType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getConnectivityType().getValue())); + } + target = target.queryParam( "iotDomainId", diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java index 34e203fd16f..e2837b6d3e3 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java @@ -31,19 +31,28 @@ public static class Builder { * Initial admin password for APEX workspace associated with the IoT domain. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") - private String dbWorkspaceAdminInitialPassword; + private char[] dbWorkspaceAdminInitialPassword; /** * Initial admin password for APEX workspace associated with the IoT domain. * @param dbWorkspaceAdminInitialPassword the value to set * @return this builder **/ - public Builder dbWorkspaceAdminInitialPassword(String dbWorkspaceAdminInitialPassword) { + public Builder dbWorkspaceAdminInitialPassword(char[] dbWorkspaceAdminInitialPassword) { this.dbWorkspaceAdminInitialPassword = dbWorkspaceAdminInitialPassword; this.__explicitlySet__.add("dbWorkspaceAdminInitialPassword"); return this; } + public Builder dbWorkspaceAdminInitialPassword(String dbWorkspaceAdminInitialPassword) { + this.dbWorkspaceAdminInitialPassword = + dbWorkspaceAdminInitialPassword != null + ? dbWorkspaceAdminInitialPassword.toCharArray() + : null; + this.__explicitlySet__.add("dbWorkspaceAdminInitialPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -78,6 +87,16 @@ public Builder toBuilder() { @Deprecated public ApexDataAccessDetails(String dbWorkspaceAdminInitialPassword) { + super(); + this.dbWorkspaceAdminInitialPassword = + dbWorkspaceAdminInitialPassword != null + ? dbWorkspaceAdminInitialPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ApexDataAccessDetails(char[] dbWorkspaceAdminInitialPassword) { super(); this.dbWorkspaceAdminInitialPassword = dbWorkspaceAdminInitialPassword; } @@ -86,13 +105,27 @@ public ApexDataAccessDetails(String dbWorkspaceAdminInitialPassword) { * Initial admin password for APEX workspace associated with the IoT domain. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") - private final String dbWorkspaceAdminInitialPassword; + private final char[] dbWorkspaceAdminInitialPassword; + + /** + * Initial admin password for APEX workspace associated with the IoT domain. + * return the value + * @Deprecated - Use getDbWorkspaceAdminInitialPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDbWorkspaceAdminInitialPassword() { + return dbWorkspaceAdminInitialPassword != null + ? new String(dbWorkspaceAdminInitialPassword) + : null; + } /** * Initial admin password for APEX workspace associated with the IoT domain. * @return the value **/ - public String getDbWorkspaceAdminInitialPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") + public char[] getDbWorkspaceAdminInitialPassword__AsCharArray() { return dbWorkspaceAdminInitialPassword; } diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java index b3df0af8aa5..aa6f05dbb81 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java @@ -24,6 +24,7 @@ public final class CreateDigitalTwinInstanceDetails @Deprecated @java.beans.ConstructorProperties({ "iotDomainId", + "connectivityType", "authId", "externalKey", "displayName", @@ -31,11 +32,13 @@ public final class CreateDigitalTwinInstanceDetails "digitalTwinAdapterId", "digitalTwinModelId", "digitalTwinModelSpecUri", + "gateways", "freeformTags", "definedTags" }) public CreateDigitalTwinInstanceDetails( String iotDomainId, + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -43,10 +46,12 @@ public CreateDigitalTwinInstanceDetails( String digitalTwinAdapterId, String digitalTwinModelId, String digitalTwinModelSpecUri, + java.util.List gateways, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.iotDomainId = iotDomainId; + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -54,6 +59,7 @@ public CreateDigitalTwinInstanceDetails( this.digitalTwinAdapterId = digitalTwinAdapterId; this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; + this.gateways = gateways; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -76,6 +82,22 @@ public Builder iotDomainId(String iotDomainId) { this.__explicitlySet__.add("iotDomainId"); return this; } + /** + * Connectivity type of the digital twin instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance + * @param connectivityType the value to set + * @return this builder + **/ + public Builder connectivityType(DigitalTwinInstanceConnectivityType connectivityType) { + this.connectivityType = connectivityType; + this.__explicitlySet__.add("connectivityType"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -196,6 +218,24 @@ public Builder digitalTwinModelSpecUri(String digitalTwinModelSpecUri) { this.__explicitlySet__.add("digitalTwinModelSpecUri"); return this; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @param gateways the value to set + * @return this builder + **/ + public Builder gateways(java.util.List gateways) { + this.gateways = gateways; + this.__explicitlySet__.add("gateways"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -253,6 +293,7 @@ public CreateDigitalTwinInstanceDetails build() { CreateDigitalTwinInstanceDetails model = new CreateDigitalTwinInstanceDetails( this.iotDomainId, + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -260,6 +301,7 @@ public CreateDigitalTwinInstanceDetails build() { this.digitalTwinAdapterId, this.digitalTwinModelId, this.digitalTwinModelSpecUri, + this.gateways, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -273,6 +315,9 @@ public Builder copy(CreateDigitalTwinInstanceDetails model) { if (model.wasPropertyExplicitlySet("iotDomainId")) { this.iotDomainId(model.getIotDomainId()); } + if (model.wasPropertyExplicitlySet("connectivityType")) { + this.connectivityType(model.getConnectivityType()); + } if (model.wasPropertyExplicitlySet("authId")) { this.authId(model.getAuthId()); } @@ -294,6 +339,9 @@ public Builder copy(CreateDigitalTwinInstanceDetails model) { if (model.wasPropertyExplicitlySet("digitalTwinModelSpecUri")) { this.digitalTwinModelSpecUri(model.getDigitalTwinModelSpecUri()); } + if (model.wasPropertyExplicitlySet("gateways")) { + this.gateways(model.getGateways()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -329,6 +377,20 @@ public String getIotDomainId() { return iotDomainId; } + /** + * Connectivity type of the digital twin instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private final DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance + * @return the value + **/ + public DigitalTwinInstanceConnectivityType getConnectivityType() { + return connectivityType; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -435,6 +497,22 @@ public String getDigitalTwinModelSpecUri() { return digitalTwinModelSpecUri; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private final java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @return the value + **/ + public java.util.List getGateways() { + return gateways; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -494,6 +572,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateDigitalTwinInstanceDetails("); sb.append("super=").append(super.toString()); sb.append("iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", connectivityType=").append(String.valueOf(this.connectivityType)); sb.append(", authId=").append(String.valueOf(this.authId)); sb.append(", externalKey=").append(String.valueOf(this.externalKey)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -502,6 +581,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", digitalTwinModelId=").append(String.valueOf(this.digitalTwinModelId)); sb.append(", digitalTwinModelSpecUri=") .append(String.valueOf(this.digitalTwinModelSpecUri)); + sb.append(", gateways=").append(String.valueOf(this.gateways)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -519,6 +599,7 @@ public boolean equals(Object o) { CreateDigitalTwinInstanceDetails other = (CreateDigitalTwinInstanceDetails) o; return java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.connectivityType, other.connectivityType) && java.util.Objects.equals(this.authId, other.authId) && java.util.Objects.equals(this.externalKey, other.externalKey) && java.util.Objects.equals(this.displayName, other.displayName) @@ -527,6 +608,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.digitalTwinModelId, other.digitalTwinModelId) && java.util.Objects.equals( this.digitalTwinModelSpecUri, other.digitalTwinModelSpecUri) + && java.util.Objects.equals(this.gateways, other.gateways) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -537,6 +619,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.connectivityType == null ? 43 : this.connectivityType.hashCode()); result = (result * PRIME) + (this.authId == null ? 43 : this.authId.hashCode()); result = (result * PRIME) + (this.externalKey == null ? 43 : this.externalKey.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); @@ -556,6 +641,7 @@ public int hashCode() { + (this.digitalTwinModelSpecUri == null ? 43 : this.digitalTwinModelSpecUri.hashCode()); + result = (result * PRIME) + (this.gateways == null ? 43 : this.gateways.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-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotDomainGroupDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotDomainGroupDetails.java index e776de72ace..9b42b9f1c8c 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotDomainGroupDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotDomainGroupDetails.java @@ -65,16 +65,20 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ @com.fasterxml.jackson.annotation.JsonProperty("type") private Type type; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * * @param type the value to set * @return this builder @@ -236,11 +240,15 @@ public String getCompartmentId() { } /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ public enum Type { + Production("PRODUCTION"), + Development("DEVELOPMENT"), Standard("STANDARD"), Lightweight("LIGHTWEIGHT"), ; @@ -273,16 +281,20 @@ public static Type create(String key) { } }; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ @com.fasterxml.jackson.annotation.JsonProperty("type") private final Type type; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * * @return the value **/ diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java index 4a466c763b2..e8d2815f194 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java @@ -24,10 +24,13 @@ public final class DigitalTwinAdapterEnvelopeMapping extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"timeObserved"}) - public DigitalTwinAdapterEnvelopeMapping(String timeObserved) { + @java.beans.ConstructorProperties({"timeObserved", "target", "contentRoot"}) + public DigitalTwinAdapterEnvelopeMapping( + String timeObserved, String target, String contentRoot) { super(); this.timeObserved = timeObserved; + this.target = target; + this.contentRoot = contentRoot; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -58,13 +61,48 @@ public Builder timeObserved(String timeObserved) { this.__explicitlySet__.add("timeObserved"); return this; } + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + * @param target the value to set + * @return this builder + **/ + public Builder target(String target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentRoot") + private String contentRoot; + + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * @param contentRoot the value to set + * @return this builder + **/ + public Builder contentRoot(String contentRoot) { + this.contentRoot = contentRoot; + this.__explicitlySet__.add("contentRoot"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DigitalTwinAdapterEnvelopeMapping build() { DigitalTwinAdapterEnvelopeMapping model = - new DigitalTwinAdapterEnvelopeMapping(this.timeObserved); + new DigitalTwinAdapterEnvelopeMapping( + this.timeObserved, this.target, this.contentRoot); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -76,6 +114,12 @@ public Builder copy(DigitalTwinAdapterEnvelopeMapping model) { if (model.wasPropertyExplicitlySet("timeObserved")) { this.timeObserved(model.getTimeObserved()); } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + if (model.wasPropertyExplicitlySet("contentRoot")) { + this.contentRoot(model.getContentRoot()); + } return this; } } @@ -115,6 +159,36 @@ public String getTimeObserved() { return timeObserved; } + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + * @return the value + **/ + public String getTarget() { + return target; + } + + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentRoot") + private final String contentRoot; + + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * @return the value + **/ + public String getContentRoot() { + return contentRoot; + } + @Override public String toString() { return this.toString(true); @@ -130,6 +204,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("DigitalTwinAdapterEnvelopeMapping("); sb.append("super=").append(super.toString()); sb.append("timeObserved=").append(String.valueOf(this.timeObserved)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(", contentRoot=").append(String.valueOf(this.contentRoot)); sb.append(")"); return sb.toString(); } @@ -145,6 +221,8 @@ public boolean equals(Object o) { DigitalTwinAdapterEnvelopeMapping other = (DigitalTwinAdapterEnvelopeMapping) o; return java.util.Objects.equals(this.timeObserved, other.timeObserved) + && java.util.Objects.equals(this.target, other.target) + && java.util.Objects.equals(this.contentRoot, other.contentRoot) && super.equals(other); } @@ -153,6 +231,8 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.timeObserved == null ? 43 : this.timeObserved.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + (this.contentRoot == null ? 43 : this.contentRoot.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java index c36fc442f5e..cbeedfe494d 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java @@ -29,6 +29,7 @@ public final class DigitalTwinInstance extends com.oracle.bmc.http.internal.Expl @java.beans.ConstructorProperties({ "id", "iotDomainId", + "connectivityType", "authId", "externalKey", "displayName", @@ -36,6 +37,7 @@ public final class DigitalTwinInstance extends com.oracle.bmc.http.internal.Expl "digitalTwinModelId", "digitalTwinModelSpecUri", "digitalTwinAdapterId", + "gateways", "lifecycleState", "freeformTags", "definedTags", @@ -46,6 +48,7 @@ public final class DigitalTwinInstance extends com.oracle.bmc.http.internal.Expl public DigitalTwinInstance( String id, String iotDomainId, + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -53,6 +56,7 @@ public DigitalTwinInstance( String digitalTwinModelId, String digitalTwinModelSpecUri, String digitalTwinAdapterId, + java.util.List gateways, LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, @@ -62,6 +66,7 @@ public DigitalTwinInstance( super(); this.id = id; this.iotDomainId = iotDomainId; + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -69,6 +74,7 @@ public DigitalTwinInstance( this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; this.digitalTwinAdapterId = digitalTwinAdapterId; + this.gateways = gateways; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -111,6 +117,22 @@ public Builder iotDomainId(String iotDomainId) { this.__explicitlySet__.add("iotDomainId"); return this; } + /** + * Connectivity type of the digital twin instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance + * @param connectivityType the value to set + * @return this builder + **/ + public Builder connectivityType(DigitalTwinInstanceConnectivityType connectivityType) { + this.connectivityType = connectivityType; + this.__explicitlySet__.add("connectivityType"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -231,6 +253,24 @@ public Builder digitalTwinAdapterId(String digitalTwinAdapterId) { this.__explicitlySet__.add("digitalTwinAdapterId"); return this; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @param gateways the value to set + * @return this builder + **/ + public Builder gateways(java.util.List gateways) { + this.gateways = gateways; + this.__explicitlySet__.add("gateways"); + return this; + } /** * The current state of the digital twin instance. **/ @@ -367,6 +407,7 @@ public DigitalTwinInstance build() { new DigitalTwinInstance( this.id, this.iotDomainId, + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -374,6 +415,7 @@ public DigitalTwinInstance build() { this.digitalTwinModelId, this.digitalTwinModelSpecUri, this.digitalTwinAdapterId, + this.gateways, this.lifecycleState, this.freeformTags, this.definedTags, @@ -394,6 +436,9 @@ public Builder copy(DigitalTwinInstance model) { if (model.wasPropertyExplicitlySet("iotDomainId")) { this.iotDomainId(model.getIotDomainId()); } + if (model.wasPropertyExplicitlySet("connectivityType")) { + this.connectivityType(model.getConnectivityType()); + } if (model.wasPropertyExplicitlySet("authId")) { this.authId(model.getAuthId()); } @@ -415,6 +460,9 @@ public Builder copy(DigitalTwinInstance model) { if (model.wasPropertyExplicitlySet("digitalTwinAdapterId")) { this.digitalTwinAdapterId(model.getDigitalTwinAdapterId()); } + if (model.wasPropertyExplicitlySet("gateways")) { + this.gateways(model.getGateways()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -476,6 +524,20 @@ public String getIotDomainId() { return iotDomainId; } + /** + * Connectivity type of the digital twin instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private final DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance + * @return the value + **/ + public DigitalTwinInstanceConnectivityType getConnectivityType() { + return connectivityType; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -582,6 +644,22 @@ public String getDigitalTwinAdapterId() { return digitalTwinAdapterId; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private final java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @return the value + **/ + public java.util.List getGateways() { + return gateways; + } + /** * The current state of the digital twin instance. **/ @@ -712,6 +790,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", connectivityType=").append(String.valueOf(this.connectivityType)); sb.append(", authId=").append(String.valueOf(this.authId)); sb.append(", externalKey=").append(String.valueOf(this.externalKey)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -720,6 +799,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", digitalTwinModelSpecUri=") .append(String.valueOf(this.digitalTwinModelSpecUri)); sb.append(", digitalTwinAdapterId=").append(String.valueOf(this.digitalTwinAdapterId)); + sb.append(", gateways=").append(String.valueOf(this.gateways)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -742,6 +822,7 @@ public boolean equals(Object o) { DigitalTwinInstance other = (DigitalTwinInstance) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.connectivityType, other.connectivityType) && java.util.Objects.equals(this.authId, other.authId) && java.util.Objects.equals(this.externalKey, other.externalKey) && java.util.Objects.equals(this.displayName, other.displayName) @@ -750,6 +831,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.digitalTwinModelSpecUri, other.digitalTwinModelSpecUri) && java.util.Objects.equals(this.digitalTwinAdapterId, other.digitalTwinAdapterId) + && java.util.Objects.equals(this.gateways, other.gateways) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -765,6 +847,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.connectivityType == null ? 43 : this.connectivityType.hashCode()); result = (result * PRIME) + (this.authId == null ? 43 : this.authId.hashCode()); result = (result * PRIME) + (this.externalKey == null ? 43 : this.externalKey.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); @@ -784,6 +869,7 @@ public int hashCode() { + (this.digitalTwinAdapterId == null ? 43 : this.digitalTwinAdapterId.hashCode()); + result = (result * PRIME) + (this.gateways == null ? 43 : this.gateways.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceConnectivityType.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceConnectivityType.java new file mode 100644 index 00000000000..334f6c26cc0 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceConnectivityType.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Connectivity type of the digital twin instance. Possible values are: + * DIRECT - The instance connects directly to the cloud. + * INDIRECT - The instance connects to the cloud through a gateway. + * GATEWAY - The instance acts as a gateway and relays data from other instances. + * NONE - The instance is not expected to have any connectivity. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public enum DigitalTwinInstanceConnectivityType { + Direct("DIRECT"), + Indirect("INDIRECT"), + Gateway("GATEWAY"), + None("NONE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DigitalTwinInstanceConnectivityType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DigitalTwinInstanceConnectivityType v : DigitalTwinInstanceConnectivityType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DigitalTwinInstanceConnectivityType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DigitalTwinInstanceConnectivityType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DigitalTwinInstanceConnectivityType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java index 13d3535a97e..38c21059f45 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java @@ -25,6 +25,7 @@ public final class DigitalTwinInstanceSummary @java.beans.ConstructorProperties({ "id", "iotDomainId", + "connectivityType", "authId", "externalKey", "displayName", @@ -32,6 +33,7 @@ public final class DigitalTwinInstanceSummary "digitalTwinModelId", "digitalTwinModelSpecUri", "digitalTwinAdapterId", + "gateways", "lifecycleState", "freeformTags", "definedTags", @@ -42,6 +44,7 @@ public final class DigitalTwinInstanceSummary public DigitalTwinInstanceSummary( String id, String iotDomainId, + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -49,6 +52,7 @@ public DigitalTwinInstanceSummary( String digitalTwinModelId, String digitalTwinModelSpecUri, String digitalTwinAdapterId, + java.util.List gateways, LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, @@ -58,6 +62,7 @@ public DigitalTwinInstanceSummary( super(); this.id = id; this.iotDomainId = iotDomainId; + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -65,6 +70,7 @@ public DigitalTwinInstanceSummary( this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; this.digitalTwinAdapterId = digitalTwinAdapterId; + this.gateways = gateways; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -107,6 +113,22 @@ public Builder iotDomainId(String iotDomainId) { this.__explicitlySet__.add("iotDomainId"); return this; } + /** + * Connectivity type of the digital twin instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance + * @param connectivityType the value to set + * @return this builder + **/ + public Builder connectivityType(DigitalTwinInstanceConnectivityType connectivityType) { + this.connectivityType = connectivityType; + this.__explicitlySet__.add("connectivityType"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -227,6 +249,24 @@ public Builder digitalTwinAdapterId(String digitalTwinAdapterId) { this.__explicitlySet__.add("digitalTwinAdapterId"); return this; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @param gateways the value to set + * @return this builder + **/ + public Builder gateways(java.util.List gateways) { + this.gateways = gateways; + this.__explicitlySet__.add("gateways"); + return this; + } /** * The current state of the digital twin instance. **/ @@ -363,6 +403,7 @@ public DigitalTwinInstanceSummary build() { new DigitalTwinInstanceSummary( this.id, this.iotDomainId, + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -370,6 +411,7 @@ public DigitalTwinInstanceSummary build() { this.digitalTwinModelId, this.digitalTwinModelSpecUri, this.digitalTwinAdapterId, + this.gateways, this.lifecycleState, this.freeformTags, this.definedTags, @@ -390,6 +432,9 @@ public Builder copy(DigitalTwinInstanceSummary model) { if (model.wasPropertyExplicitlySet("iotDomainId")) { this.iotDomainId(model.getIotDomainId()); } + if (model.wasPropertyExplicitlySet("connectivityType")) { + this.connectivityType(model.getConnectivityType()); + } if (model.wasPropertyExplicitlySet("authId")) { this.authId(model.getAuthId()); } @@ -411,6 +456,9 @@ public Builder copy(DigitalTwinInstanceSummary model) { if (model.wasPropertyExplicitlySet("digitalTwinAdapterId")) { this.digitalTwinAdapterId(model.getDigitalTwinAdapterId()); } + if (model.wasPropertyExplicitlySet("gateways")) { + this.gateways(model.getGateways()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -472,6 +520,20 @@ public String getIotDomainId() { return iotDomainId; } + /** + * Connectivity type of the digital twin instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private final DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance + * @return the value + **/ + public DigitalTwinInstanceConnectivityType getConnectivityType() { + return connectivityType; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -578,6 +640,22 @@ public String getDigitalTwinAdapterId() { return digitalTwinAdapterId; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private final java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @return the value + **/ + public java.util.List getGateways() { + return gateways; + } + /** * The current state of the digital twin instance. **/ @@ -708,6 +786,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", connectivityType=").append(String.valueOf(this.connectivityType)); sb.append(", authId=").append(String.valueOf(this.authId)); sb.append(", externalKey=").append(String.valueOf(this.externalKey)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -716,6 +795,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", digitalTwinModelSpecUri=") .append(String.valueOf(this.digitalTwinModelSpecUri)); sb.append(", digitalTwinAdapterId=").append(String.valueOf(this.digitalTwinAdapterId)); + sb.append(", gateways=").append(String.valueOf(this.gateways)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -738,6 +818,7 @@ public boolean equals(Object o) { DigitalTwinInstanceSummary other = (DigitalTwinInstanceSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.connectivityType, other.connectivityType) && java.util.Objects.equals(this.authId, other.authId) && java.util.Objects.equals(this.externalKey, other.externalKey) && java.util.Objects.equals(this.displayName, other.displayName) @@ -746,6 +827,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.digitalTwinModelSpecUri, other.digitalTwinModelSpecUri) && java.util.Objects.equals(this.digitalTwinAdapterId, other.digitalTwinAdapterId) + && java.util.Objects.equals(this.gateways, other.gateways) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -761,6 +843,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.connectivityType == null ? 43 : this.connectivityType.hashCode()); result = (result * PRIME) + (this.authId == null ? 43 : this.authId.hashCode()); result = (result * PRIME) + (this.externalKey == null ? 43 : this.externalKey.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); @@ -780,6 +865,7 @@ public int hashCode() { + (this.digitalTwinAdapterId == null ? 43 : this.digitalTwinAdapterId.hashCode()); + result = (result * PRIME) + (this.gateways == null ? 43 : this.gateways.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroup.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroup.java index bf8fea0e3a5..72929d00053 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroup.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroup.java @@ -111,16 +111,20 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ @com.fasterxml.jackson.annotation.JsonProperty("type") private Type type; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * * @param type the value to set * @return this builder @@ -474,11 +478,15 @@ public String getCompartmentId() { } /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ public enum Type { + Production("PRODUCTION"), + Development("DEVELOPMENT"), Standard("STANDARD"), Lightweight("LIGHTWEIGHT"), @@ -522,16 +530,20 @@ public static Type create(String key) { } }; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ @com.fasterxml.jackson.annotation.JsonProperty("type") private final Type type; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * * @return the value **/ diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroupSummary.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroupSummary.java index 8041187f8cb..1dfdfbfee36 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroupSummary.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotDomainGroupSummary.java @@ -96,16 +96,20 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ @com.fasterxml.jackson.annotation.JsonProperty("type") private Type type; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * * @param type the value to set * @return this builder @@ -379,11 +383,15 @@ public String getCompartmentId() { } /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ public enum Type { + Production("PRODUCTION"), + Development("DEVELOPMENT"), Standard("STANDARD"), Lightweight("LIGHTWEIGHT"), @@ -427,16 +435,20 @@ public static Type create(String key) { } }; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * **/ @com.fasterxml.jackson.annotation.JsonProperty("type") private final Type type; /** - * Type of the domain group. LIGHTWEIGHT uses fewer resources and has a higher Recovery Time Objective (RTO), - * making it suitable for development and testing. STANDARD is recommended for production. + * Type of domain group. DEVELOPMENT uses fewer resources and has a higher Recovery Time Objective (RTO), + * making it suitable for development and testing. PRODUCTION is recommended for production workloads. + * LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION respectively and will be removed + * in a future release. * * @return the value **/ diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java index 404ad882166..dd6502ee896 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java @@ -31,6 +31,7 @@ public final class UpdateDigitalTwinInstanceDetails "digitalTwinAdapterId", "digitalTwinModelId", "digitalTwinModelSpecUri", + "gateways", "freeformTags", "definedTags" }) @@ -42,6 +43,7 @@ public UpdateDigitalTwinInstanceDetails( String digitalTwinAdapterId, String digitalTwinModelId, String digitalTwinModelSpecUri, + java.util.List gateways, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -52,6 +54,7 @@ public UpdateDigitalTwinInstanceDetails( this.digitalTwinAdapterId = digitalTwinAdapterId; this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; + this.gateways = gateways; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -178,6 +181,24 @@ public Builder digitalTwinModelSpecUri(String digitalTwinModelSpecUri) { this.__explicitlySet__.add("digitalTwinModelSpecUri"); return this; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @param gateways the value to set + * @return this builder + **/ + public Builder gateways(java.util.List gateways) { + this.gateways = gateways; + this.__explicitlySet__.add("gateways"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -241,6 +262,7 @@ public UpdateDigitalTwinInstanceDetails build() { this.digitalTwinAdapterId, this.digitalTwinModelId, this.digitalTwinModelSpecUri, + this.gateways, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -272,6 +294,9 @@ public Builder copy(UpdateDigitalTwinInstanceDetails model) { if (model.wasPropertyExplicitlySet("digitalTwinModelSpecUri")) { this.digitalTwinModelSpecUri(model.getDigitalTwinModelSpecUri()); } + if (model.wasPropertyExplicitlySet("gateways")) { + this.gateways(model.getGateways()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -399,6 +424,22 @@ public String getDigitalTwinModelSpecUri() { return digitalTwinModelSpecUri; } + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateways") + private final java.util.List gateways; + + /** + * An array of unique ids ([OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the IoT digital twin instances with connectivityType equals to GATEWAY. + * + * @return the value + **/ + public java.util.List getGateways() { + return gateways; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -465,6 +506,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", digitalTwinModelId=").append(String.valueOf(this.digitalTwinModelId)); sb.append(", digitalTwinModelSpecUri=") .append(String.valueOf(this.digitalTwinModelSpecUri)); + sb.append(", gateways=").append(String.valueOf(this.gateways)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -489,6 +531,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.digitalTwinModelId, other.digitalTwinModelId) && java.util.Objects.equals( this.digitalTwinModelSpecUri, other.digitalTwinModelSpecUri) + && java.util.Objects.equals(this.gateways, other.gateways) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -517,6 +560,7 @@ public int hashCode() { + (this.digitalTwinModelSpecUri == null ? 43 : this.digitalTwinModelSpecUri.hashCode()); + result = (result * PRIME) + (this.gateways == null ? 43 : this.gateways.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-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java index 3c8206e7e02..c5267e22614 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java @@ -220,6 +220,19 @@ public String getDigitalTwinModelId() { public String getDigitalTwinModelSpecUri() { return digitalTwinModelSpecUri; } + /** + * Filter resources whose connectivityType matches the specified value. + * + */ + private com.oracle.bmc.iot.model.DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Filter resources whose connectivityType matches the specified value. + * + */ + public com.oracle.bmc.iot.model.DigitalTwinInstanceConnectivityType getConnectivityType() { + return connectivityType; + } /** * Filter resources by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a valid OCID of the resource type. * @@ -415,6 +428,25 @@ public Builder digitalTwinModelSpecUri(String digitalTwinModelSpecUri) { return this; } + /** + * Filter resources whose connectivityType matches the specified value. + * + */ + private com.oracle.bmc.iot.model.DigitalTwinInstanceConnectivityType connectivityType = + null; + + /** + * Filter resources whose connectivityType matches the specified value. + * + * @param connectivityType the value to set + * @return this builder instance + */ + public Builder connectivityType( + com.oracle.bmc.iot.model.DigitalTwinInstanceConnectivityType connectivityType) { + this.connectivityType = connectivityType; + return this; + } + /** * Filter resources by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a valid OCID of the resource type. * @@ -470,6 +502,7 @@ public Builder copy(ListDigitalTwinInstancesRequest o) { opcRequestId(o.getOpcRequestId()); digitalTwinModelId(o.getDigitalTwinModelId()); digitalTwinModelSpecUri(o.getDigitalTwinModelSpecUri()); + connectivityType(o.getConnectivityType()); id(o.getId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -513,9 +546,10 @@ public ListDigitalTwinInstancesRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.digitalTwinModelId = digitalTwinModelId; request.digitalTwinModelSpecUri = digitalTwinModelSpecUri; + request.connectivityType = connectivityType; request.id = id; return request; - // new ListDigitalTwinInstancesRequest(iotDomainId, displayName, limit, page, lifecycleState, sortOrder, sortBy, opcRequestId, digitalTwinModelId, digitalTwinModelSpecUri, id); + // new ListDigitalTwinInstancesRequest(iotDomainId, displayName, limit, page, lifecycleState, sortOrder, sortBy, opcRequestId, digitalTwinModelId, digitalTwinModelSpecUri, connectivityType, id); } } @@ -535,6 +569,7 @@ public Builder toBuilder() { .opcRequestId(opcRequestId) .digitalTwinModelId(digitalTwinModelId) .digitalTwinModelSpecUri(digitalTwinModelSpecUri) + .connectivityType(connectivityType) .id(id); } @@ -561,6 +596,7 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",digitalTwinModelId=").append(String.valueOf(this.digitalTwinModelId)); sb.append(",digitalTwinModelSpecUri=").append(String.valueOf(this.digitalTwinModelSpecUri)); + sb.append(",connectivityType=").append(String.valueOf(this.connectivityType)); sb.append(",id=").append(String.valueOf(this.id)); sb.append(")"); return sb.toString(); @@ -588,6 +624,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.digitalTwinModelId, other.digitalTwinModelId) && java.util.Objects.equals( this.digitalTwinModelSpecUri, other.digitalTwinModelSpecUri) + && java.util.Objects.equals(this.connectivityType, other.connectivityType) && java.util.Objects.equals(this.id, other.id); } @@ -615,6 +652,9 @@ public int hashCode() { + (this.digitalTwinModelSpecUri == null ? 43 : this.digitalTwinModelSpecUri.hashCode()); + result = + (result * PRIME) + + (this.connectivityType == null ? 43 : this.connectivityType.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); return result; } diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index dbc102ac8c2..a0ab9fa8c8f 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-jms @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementService.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementService.java index 794758904c9..4f3dbfc53e5 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementService.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementService.java @@ -59,6 +59,13 @@ public interface JavaManagementService extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Add Java installation sites in a Fleet. * @param request The request object containing the details to send diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsync.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsync.java index b475206b063..0b9c90302e0 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsync.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsync.java @@ -58,6 +58,13 @@ public interface JavaManagementServiceAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Add Java installation sites in a Fleet. * diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsyncClient.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsyncClient.java index 3ae7256f4ee..416d8b22db8 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsyncClient.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceAsyncClient.java @@ -33,7 +33,8 @@ public class JavaManagementServiceAsyncClient implements JavaManagementServiceAs .serviceName(JavaManagementServiceClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://javamanagement.{region}.oci.{secondLevelDomain}") + "https://javamanagement.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("javamanagement") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +54,7 @@ public class JavaManagementServiceAsyncClient implements JavaManagementServiceAs private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +307,9 @@ public JavaManagementServiceAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -472,6 +477,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceClient.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceClient.java index 1b3538479d5..ec1ae7b76e2 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceClient.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/JavaManagementServiceClient.java @@ -21,7 +21,9 @@ public class JavaManagementServiceClient implements JavaManagementService { .serviceName(JavaManagementServiceClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://javamanagement.{region}.oci.{secondLevelDomain}") + "https://javamanagement.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .serviceUsesDualStackByDefault() + .endpointServiceName("javamanagement") .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; @@ -52,6 +54,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -382,6 +385,9 @@ protected JavaManagementServiceClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -561,6 +567,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/AddFleetInstallationSitesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/AddFleetInstallationSitesConverter.java index fd9779b608b..bf6629ae269 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/AddFleetInstallationSitesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/AddFleetInstallationSitesConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getAddFleetInstallationSitesDetails(), "addFleetInstallationSitesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CancelWorkRequestConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CancelWorkRequestConverter.java index 6219d6cfb94..90d11d889fc 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CancelWorkRequestConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CancelWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("workRequests") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ChangeFleetCompartmentConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ChangeFleetCompartmentConverter.java index a94def93cf4..9ac10f3ee7b 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ChangeFleetCompartmentConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ChangeFleetCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeFleetCompartmentDetails(), "changeFleetCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateBlocklistConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateBlocklistConverter.java index 13e4caa673c..aeaa9c37e93 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateBlocklistConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateBlocklistConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notNull(request.getCreateBlocklistDetails(), "createBlocklistDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateDrsFileConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateDrsFileConverter.java index c9184094f75..b2fd08d0f1b 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateDrsFileConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateDrsFileConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notNull(request.getCreateDrsFileDetails(), "createDrsFileDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateFleetConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateFleetConverter.java index 50c29a84716..9989836efcc 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateFleetConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateFleetConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateFleetDetails(), "createFleetDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("fleets"); + newBaseTarget.path("/20210610").path("fleets"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateJmsPluginConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateJmsPluginConverter.java index c1e32d0d638..fa35b7a12ff 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateJmsPluginConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateJmsPluginConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateJmsPluginDetails(), "createJmsPluginDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("jmsPlugins"); + newBaseTarget.path("/20210610").path("jmsPlugins"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateTaskScheduleConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateTaskScheduleConverter.java index 6a961e1c0f0..9abb72efb7c 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateTaskScheduleConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/CreateTaskScheduleConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateTaskScheduleDetails(), "createTaskScheduleDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("taskSchedules"); + newBaseTarget.path("/20210610").path("taskSchedules"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteBlocklistConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteBlocklistConverter.java index 12df71ac0af..242ae5faca5 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteBlocklistConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteBlocklistConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getBlocklistKey(), "blocklistKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("blocklistKey", request.getBlocklistKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteCryptoAnalysisResultConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteCryptoAnalysisResultConverter.java index 6313cc52aab..773f4e56467 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteCryptoAnalysisResultConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteCryptoAnalysisResultConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCryptoAnalysisResultId(), "cryptoAnalysisResultId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("cryptoAnalysisResultId", request.getCryptoAnalysisResultId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteDrsFileConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteDrsFileConverter.java index a9df3d4de57..38237705301 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteDrsFileConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteDrsFileConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getDrsFileKey(), "drsFileKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("drsFileKey", request.getDrsFileKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteFleetConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteFleetConverter.java index ca4813d871e..79ce6e2d928 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteFleetConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteFleetConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJavaMigrationAnalysisResultConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJavaMigrationAnalysisResultConverter.java index 92e6fcb2def..96f18760d3c 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJavaMigrationAnalysisResultConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJavaMigrationAnalysisResultConverter.java @@ -35,8 +35,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getJavaMigrationAnalysisResultId(), "javaMigrationAnalysisResultId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put( + "javaMigrationAnalysisResultId", request.getJavaMigrationAnalysisResultId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJmsPluginConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJmsPluginConverter.java index de796ab4dc5..3c76095d20c 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJmsPluginConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteJmsPluginConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getJmsPluginId(), "jmsPluginId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("jmsPluginId", request.getJmsPluginId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("jmsPlugins") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeletePerformanceTuningAnalysisResultConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeletePerformanceTuningAnalysisResultConverter.java index dee86455f99..d8f21e7dcca 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeletePerformanceTuningAnalysisResultConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeletePerformanceTuningAnalysisResultConverter.java @@ -36,8 +36,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPerformanceTuningAnalysisResultId(), "performanceTuningAnalysisResultId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put( + "performanceTuningAnalysisResultId", + request.getPerformanceTuningAnalysisResultId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteTaskScheduleConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteTaskScheduleConverter.java index 7555b705271..b4c34543cd9 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteTaskScheduleConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DeleteTaskScheduleConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getTaskScheduleId(), "taskScheduleId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("taskScheduleId", request.getTaskScheduleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("taskSchedules") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DisableDrsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DisableDrsConverter.java index 1fc2cdbd936..5e029a9abb0 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DisableDrsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/DisableDrsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notNull(request.getDisableDrsDetails(), "disableDrsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/EnableDrsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/EnableDrsConverter.java index 077a1017490..4d3889a788b 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/EnableDrsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/EnableDrsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notNull(request.getEnableDrsDetails(), "enableDrsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentDeployScriptConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentDeployScriptConverter.java index 92fa46e378f..5ffc110c36e 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentDeployScriptConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentDeployScriptConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGenerateAgentDeployScriptDetails(), "generateAgentDeployScriptDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentInstallerConfigurationConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentInstallerConfigurationConverter.java index 068ec9c0a17..436055c0c38 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentInstallerConfigurationConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateAgentInstallerConfigurationConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGenerateAgentInstallerConfigurationDetails(), "generateAgentInstallerConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("agentInstallers") .path("actions") diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateLoadPipelineScriptConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateLoadPipelineScriptConverter.java index cc12d1fa3a1..639a4d975f8 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateLoadPipelineScriptConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GenerateLoadPipelineScriptConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGenerateLoadPipelineScriptDetails(), "generateLoadPipelineScriptDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetCryptoAnalysisResultConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetCryptoAnalysisResultConverter.java index 4b903c16e25..a1b83864dc1 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetCryptoAnalysisResultConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetCryptoAnalysisResultConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCryptoAnalysisResultId(), "cryptoAnalysisResultId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("cryptoAnalysisResultId", request.getCryptoAnalysisResultId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetDrsFileConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetDrsFileConverter.java index 1961d22e3fd..e25edc04c7e 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetDrsFileConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetDrsFileConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getDrsFileKey(), "drsFileKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("drsFileKey", request.getDrsFileKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportSettingConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportSettingConverter.java index 16dae16a3a6..f9b672b1af8 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportSettingConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportSettingConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportStatusConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportStatusConverter.java index 35b8ed17d61..dee7cbe628d 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportStatusConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetExportStatusConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAdvancedFeatureConfigurationConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAdvancedFeatureConfigurationConverter.java index 1b4b60a1177..3a7e5e7ee5c 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAdvancedFeatureConfigurationConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAdvancedFeatureConfigurationConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAgentConfigurationConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAgentConfigurationConverter.java index 93462094a0c..44c750db6f4 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAgentConfigurationConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetAgentConfigurationConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetConverter.java index 0868bde8a84..ab1a94d4435 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetFleetConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaFamilyConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaFamilyConverter.java index 9b3ef667ba6..42f06b2b8ac 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaFamilyConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaFamilyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFamilyVersion(), "familyVersion must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("familyVersion", request.getFamilyVersion()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("javaFamilies") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaMigrationAnalysisResultConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaMigrationAnalysisResultConverter.java index 900da8b3dcc..6221dd3ac11 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaMigrationAnalysisResultConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaMigrationAnalysisResultConverter.java @@ -35,8 +35,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getJavaMigrationAnalysisResultId(), "javaMigrationAnalysisResultId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put( + "javaMigrationAnalysisResultId", request.getJavaMigrationAnalysisResultId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaReleaseConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaReleaseConverter.java index 85fd347d769..baa5dcf8de2 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaReleaseConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJavaReleaseConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getReleaseVersion(), "releaseVersion must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("releaseVersion", request.getReleaseVersion()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("javaReleases") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJmsPluginConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJmsPluginConverter.java index 9f679d39805..69d84cec2db 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJmsPluginConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetJmsPluginConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getJmsPluginId(), "jmsPluginId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("jmsPluginId", request.getJmsPluginId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("jmsPlugins") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetPerformanceTuningAnalysisResultConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetPerformanceTuningAnalysisResultConverter.java index 3d9f02e5024..39be9f78460 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetPerformanceTuningAnalysisResultConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetPerformanceTuningAnalysisResultConverter.java @@ -35,8 +35,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPerformanceTuningAnalysisResultId(), "performanceTuningAnalysisResultId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put( + "performanceTuningAnalysisResultId", + request.getPerformanceTuningAnalysisResultId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetTaskScheduleConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetTaskScheduleConverter.java index 049f672adc6..ba8e7dde89f 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetTaskScheduleConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetTaskScheduleConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getTaskScheduleId(), "taskScheduleId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("taskScheduleId", request.getTaskScheduleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("taskSchedules") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetWorkRequestConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetWorkRequestConverter.java index 03088198ec0..be980e52809 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetWorkRequestConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/GetWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("workRequests") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAgentInstallersConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAgentInstallersConverter.java index d98326523b8..5499e44f5e7 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAgentInstallersConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAgentInstallersConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListAgentInstallersRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("agentInstallers"); + newBaseTarget.path("/20210610").path("agentInstallers"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAnnouncementsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAnnouncementsConverter.java index 48dba2cc5a7..62f6b38ce43 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAnnouncementsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListAnnouncementsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListAnnouncementsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("announcements"); + newBaseTarget.path("/20210610").path("announcements"); if (request.getSummaryContains() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListBlocklistsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListBlocklistsConverter.java index e26250c7166..c3577542249 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListBlocklistsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListBlocklistsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListContainersConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListContainersConverter.java index 319f5bac0fb..95910ef764a 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListContainersConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListContainersConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListCryptoAnalysisResultsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListCryptoAnalysisResultsConverter.java index e7471e73420..0e4bf0b97f7 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListCryptoAnalysisResultsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListCryptoAnalysisResultsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListDrsFilesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListDrsFilesConverter.java index cf8f4bcea0f..0ed3ba07b1a 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListDrsFilesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListDrsFilesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetDiagnosesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetDiagnosesConverter.java index 11906e90baf..7690a87b859 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetDiagnosesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetDiagnosesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetErrorsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetErrorsConverter.java index 32633983bb3..b860b93ab08 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetErrorsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetErrorsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListFleetErrorsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("fleetErrors"); + newBaseTarget.path("/20210610").path("fleetErrors"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetsConverter.java index d4e4316fc62..d104b91ed78 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListFleetsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListFleetsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("fleets"); + newBaseTarget.path("/20210610").path("fleets"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListInstallationSitesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListInstallationSitesConverter.java index ee5ef49e9c2..539efec8c92 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListInstallationSitesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListInstallationSitesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaFamiliesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaFamiliesConverter.java index 8f65bf13337..299f1225d11 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaFamiliesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaFamiliesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListJavaFamiliesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("javaFamilies"); + newBaseTarget.path("/20210610").path("javaFamilies"); if (request.getFamilyVersion() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaMigrationAnalysisResultsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaMigrationAnalysisResultsConverter.java index e7480c37343..f3c97b0d8c9 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaMigrationAnalysisResultsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaMigrationAnalysisResultsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaReleasesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaReleasesConverter.java index 6e60850cf2f..d881ff423d5 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaReleasesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJavaReleasesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListJavaReleasesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("javaReleases"); + newBaseTarget.path("/20210610").path("javaReleases"); if (request.getReleaseVersion() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJmsPluginsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJmsPluginsConverter.java index 1260091808e..912edfff20f 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJmsPluginsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJmsPluginsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListJmsPluginsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("jmsPlugins"); + newBaseTarget.path("/20210610").path("jmsPlugins"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJreUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJreUsageConverter.java index e3037d2e3c0..f54b739804e 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJreUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListJreUsageConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListJreUsageRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("listJreUsage"); + newBaseTarget.path("/20210610").path("listJreUsage"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryApplicationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryApplicationUsageConverter.java index f9b21737ae6..9dae6e84069 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryApplicationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryApplicationUsageConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getLibraryKey(), "libraryKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("libraryKey", request.getLibraryKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryManagedInstanceUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryManagedInstanceUsageConverter.java index ad81c70edab..b602e3304f6 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryManagedInstanceUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListLibraryManagedInstanceUsageConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getLibraryKey(), "libraryKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("libraryKey", request.getLibraryKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPerformanceTuningAnalysisResultsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPerformanceTuningAnalysisResultsConverter.java index eb12496f393..d9085986a04 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPerformanceTuningAnalysisResultsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPerformanceTuningAnalysisResultsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPluginErrorsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPluginErrorsConverter.java index 7f481c77b00..5db4f55e1db 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPluginErrorsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListPluginErrorsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListPluginErrorsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("pluginErrors"); + newBaseTarget.path("/20210610").path("pluginErrors"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListTaskSchedulesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListTaskSchedulesConverter.java index fad3a3d140c..2872bce747a 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListTaskSchedulesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListTaskSchedulesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListTaskSchedulesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("taskSchedules"); + newBaseTarget.path("/20210610").path("taskSchedules"); if (request.getFleetId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageApplicationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageApplicationUsageConverter.java index 979100bbeef..236fbc6c035 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageApplicationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageApplicationUsageConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getPackageName(), "packageName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("packageName", request.getPackageName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageManagedInstanceUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageManagedInstanceUsageConverter.java index 72fd67c3f50..77ac90848fe 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageManagedInstanceUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageManagedInstanceUsageConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notBlank(request.getPackageName(), "packageName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("packageName", request.getPackageName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageUsageConverter.java index 29d5a919c82..a38576cc8f4 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListUncorrelatedPackageUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkItemsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkItemsConverter.java index 9b8ecd1b935..e8992ca9204 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkItemsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkItemsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("workRequests") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestErrorsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestErrorsConverter.java index 2c04f6bed81..8a356a1b2e5 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestErrorsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("workRequests") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestLogsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestLogsConverter.java index cd8f2e30095..3abefbf7599 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestLogsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("workRequests") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestsConverter.java index c813b171def..3d91efe6341 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ListWorkRequestsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.ListWorkRequestsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("workRequests"); + newBaseTarget.path("/20210610").path("workRequests"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RemoveFleetInstallationSitesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RemoveFleetInstallationSitesConverter.java index 027f81ad957..9ade34cd4e4 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RemoveFleetInstallationSitesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RemoveFleetInstallationSitesConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemoveFleetInstallationSitesDetails(), "removeFleetInstallationSitesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestCryptoAnalysesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestCryptoAnalysesConverter.java index 98f5e19b840..979db58175c 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestCryptoAnalysesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestCryptoAnalysesConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestCryptoAnalysesDetails(), "requestCryptoAnalysesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestDeployedApplicationMigrationAnalysesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestDeployedApplicationMigrationAnalysesConverter.java index 231c92bed1e..76eb25fcf73 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestDeployedApplicationMigrationAnalysesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestDeployedApplicationMigrationAnalysesConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestDeployedApplicationMigrationAnalysesDetails(), "requestDeployedApplicationMigrationAnalysesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJavaMigrationAnalysesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJavaMigrationAnalysesConverter.java index d4904ed974f..0bf32594f06 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJavaMigrationAnalysesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJavaMigrationAnalysesConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestJavaMigrationAnalysesDetails(), "requestJavaMigrationAnalysesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJfrRecordingsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJfrRecordingsConverter.java index fba2fb0e142..15ff6cb46bc 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJfrRecordingsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestJfrRecordingsConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestJfrRecordingsDetails(), "requestJfrRecordingsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestPerformanceTuningAnalysesConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestPerformanceTuningAnalysesConverter.java index e56ff390ee5..dd001163a17 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestPerformanceTuningAnalysesConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/RequestPerformanceTuningAnalysesConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestPerformanceTuningAnalysesDetails(), "requestPerformanceTuningAnalysesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanJavaServerUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanJavaServerUsageConverter.java index 27a59d092cc..bb7e61751d1 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanJavaServerUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanJavaServerUsageConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getScanJavaServerUsageDetails(), "scanJavaServerUsageDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanLibraryUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanLibraryUsageConverter.java index 9d1bfef4808..4d355013ad0 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanLibraryUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/ScanLibraryUsageConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getScanLibraryUsageDetails(), "scanLibraryUsageDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationInstallationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationInstallationUsageConverter.java index f790e649bb5..f7afb010174 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationInstallationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationInstallationUsageConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationUsageConverter.java index cdb414fb052..9a4af357b2c 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeApplicationUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationInstallationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationInstallationUsageConverter.java index fd42f3bba2a..1d06ca8de29 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationInstallationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationInstallationUsageConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationUsageConverter.java index db68f2e9c14..d29b96330cd 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeDeployedApplicationUsageConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeFleetErrorsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeFleetErrorsConverter.java index 845c9cfcb0b..8cbafd92898 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeFleetErrorsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeFleetErrorsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.SummarizeFleetErrorsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("fleetErrorAnalytics"); + newBaseTarget.path("/20210610").path("fleetErrorAnalytics"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeInstallationUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeInstallationUsageConverter.java index 3808a231432..408826d449e 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeInstallationUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeInstallationUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( @@ -163,6 +169,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPathContains())); } + if (request.getJreSecurityStatus() != null) { + target = + target.queryParam( + "jreSecurityStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getJreSecurityStatus().getValue())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerInstanceUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerInstanceUsageConverter.java index f59e7c7addc..50178a28a59 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerInstanceUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerInstanceUsageConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerUsageConverter.java index 5c3eae6e18f..5675d1bba7a 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJavaServerUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJreUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJreUsageConverter.java index 578b3873599..3be202bba28 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJreUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeJreUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryInventoryConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryInventoryConverter.java index d6e4295db08..a5df0d2d898 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryInventoryConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryInventoryConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryUsageConverter.java index 2ae6b6fdeba..be1de8523d0 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeLibraryUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeManagedInstanceUsageConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeManagedInstanceUsageConverter.java index 1d7b450aaa7..e696f6374e4 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeManagedInstanceUsageConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeManagedInstanceUsageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizePluginErrorsConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizePluginErrorsConverter.java index b5194fd4a25..a702baaa1d6 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizePluginErrorsConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizePluginErrorsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.SummarizePluginErrorsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("pluginErrorAnalytics"); + newBaseTarget.path("/20210610").path("pluginErrorAnalytics"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeResourceInventoryConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeResourceInventoryConverter.java index a6fb4b628bc..01cf334f8a9 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeResourceInventoryConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/SummarizeResourceInventoryConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jms.requests.SummarizeResourceInventoryRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210610").path("summarizeResourceInventory"); + newBaseTarget.path("/20210610").path("summarizeResourceInventory"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateDrsFileConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateDrsFileConverter.java index 64124670245..1f783c62b44 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateDrsFileConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateDrsFileConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getUpdateDrsFileDetails(), "updateDrsFileDetails is required"); Validate.notBlank(request.getDrsFileKey(), "drsFileKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + requiredParametersMap.put("drsFileKey", request.getDrsFileKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateExportSettingConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateExportSettingConverter.java index 61c40658691..b85c16b6546 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateExportSettingConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateExportSettingConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateExportSettingDetails(), "updateExportSettingDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAdvancedFeatureConfigurationConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAdvancedFeatureConfigurationConverter.java index 1ab242b8c08..003eba7a556 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAdvancedFeatureConfigurationConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAdvancedFeatureConfigurationConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateFleetAdvancedFeatureConfigurationDetails(), "updateFleetAdvancedFeatureConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAgentConfigurationConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAgentConfigurationConverter.java index c509e2b919f..3640d018ffa 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAgentConfigurationConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetAgentConfigurationConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateFleetAgentConfigurationDetails(), "updateFleetAgentConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetConverter.java index b8938a12b80..146346efa4f 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateFleetConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); Validate.notNull(request.getUpdateFleetDetails(), "updateFleetDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("fleetId", request.getFleetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("fleets") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateJmsPluginConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateJmsPluginConverter.java index a033b5039ec..adf1e25d335 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateJmsPluginConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateJmsPluginConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getJmsPluginId(), "jmsPluginId must not be blank"); Validate.notNull(request.getUpdateJmsPluginDetails(), "updateJmsPluginDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("jmsPluginId", request.getJmsPluginId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("jmsPlugins") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateTaskScheduleConverter.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateTaskScheduleConverter.java index 731fe59bfce..3b35936cefc 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateTaskScheduleConverter.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/internal/http/UpdateTaskScheduleConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateTaskScheduleDetails(), "updateTaskScheduleDetails is required"); Validate.notBlank(request.getTaskScheduleId(), "taskScheduleId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("taskScheduleId", request.getTaskScheduleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20210610") .path("taskSchedules") .path( diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/CreateTaskScheduleDetails.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/CreateTaskScheduleDetails.java index 933a8ee9c61..e7da810feea 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/CreateTaskScheduleDetails.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/CreateTaskScheduleDetails.java @@ -50,16 +50,16 @@ public Builder fleetId(String fleetId) { return this; } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @param executionRecurrences the value to set * @return this builder @@ -133,16 +133,16 @@ public String getFleetId() { } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private final String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @return the value **/ diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/ManagedInstanceUsage.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/ManagedInstanceUsage.java index 1d6a4475626..c82fc5e78ee 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/ManagedInstanceUsage.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/ManagedInstanceUsage.java @@ -8,7 +8,6 @@ * Managed instance usage during a specified time period. * An entity that emits usage events to Java Management Service (JMS) is represented as a managed instance. * A managed instance has a unique identity which is used by JMS to distinguish it from other managed instances. - * Currently, JMS supports only one kind of managed instance, a Management Agent. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskSchedule.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskSchedule.java index d2c5b0d73f9..044533e6d1a 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskSchedule.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskSchedule.java @@ -141,16 +141,16 @@ public Builder createdBy(String createdBy) { return this; } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @param executionRecurrences the value to set * @return this builder @@ -426,16 +426,16 @@ public String getCreatedBy() { } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private final String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @return the value **/ diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskScheduleSummary.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskScheduleSummary.java index 7008ad32974..e888ee43c86 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskScheduleSummary.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TaskScheduleSummary.java @@ -143,16 +143,16 @@ public Builder createdBy(String createdBy) { return this; } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @param executionRecurrences the value to set * @return this builder @@ -380,16 +380,16 @@ public String getCreatedBy() { } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private final String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @return the value **/ diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TlsVersions.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TlsVersions.java index d3aa8c57a32..d9eae449008 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TlsVersions.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/TlsVersions.java @@ -6,6 +6,9 @@ /** * List of TLS versions to be disabled. + * The following versions are deprecated and won't perform any action if specified in the payload: + * TLS_1_0, TLS_1_1 + * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210610") public enum TlsVersions { diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/UpdateTaskScheduleDetails.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/UpdateTaskScheduleDetails.java index 9dc5f40ee35..3cc9a46de68 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/model/UpdateTaskScheduleDetails.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/model/UpdateTaskScheduleDetails.java @@ -50,16 +50,16 @@ public Builder fleetId(String fleetId) { return this; } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @param executionRecurrences the value to set * @return this builder @@ -133,16 +133,16 @@ public String getFleetId() { } /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * **/ @com.fasterxml.jackson.annotation.JsonProperty("executionRecurrences") private final String executionRecurrences; /** - * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be 'DTSTART;TZID=America/New_York:20240902T090000 - * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be 'DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. + * Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; + * RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. * * @return the value **/ diff --git a/bmc-jms/src/main/java/com/oracle/bmc/jms/requests/SummarizeInstallationUsageRequest.java b/bmc-jms/src/main/java/com/oracle/bmc/jms/requests/SummarizeInstallationUsageRequest.java index 929fe9f13e5..5b8aaaef77b 100644 --- a/bmc-jms/src/main/java/com/oracle/bmc/jms/requests/SummarizeInstallationUsageRequest.java +++ b/bmc-jms/src/main/java/com/oracle/bmc/jms/requests/SummarizeInstallationUsageRequest.java @@ -215,6 +215,17 @@ public java.util.List getOsFamily() { public String getPathContains() { return pathContains; } + /** + * The security status of the Java Runtime. + */ + private com.oracle.bmc.jms.model.JreSecurityStatus jreSecurityStatus; + + /** + * The security status of the Java Runtime. + */ + public com.oracle.bmc.jms.model.JreSecurityStatus getJreSecurityStatus() { + return jreSecurityStatus; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -517,6 +528,22 @@ public Builder pathContains(String pathContains) { return this; } + /** + * The security status of the Java Runtime. + */ + private com.oracle.bmc.jms.model.JreSecurityStatus jreSecurityStatus = null; + + /** + * The security status of the Java Runtime. + * @param jreSecurityStatus the value to set + * @return this builder instance + */ + public Builder jreSecurityStatus( + com.oracle.bmc.jms.model.JreSecurityStatus jreSecurityStatus) { + this.jreSecurityStatus = jreSecurityStatus; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -562,6 +589,7 @@ public Builder copy(SummarizeInstallationUsageRequest o) { opcRequestId(o.getOpcRequestId()); osFamily(o.getOsFamily()); pathContains(o.getPathContains()); + jreSecurityStatus(o.getJreSecurityStatus()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -611,8 +639,9 @@ public SummarizeInstallationUsageRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.osFamily = osFamily; request.pathContains = pathContains; + request.jreSecurityStatus = jreSecurityStatus; return request; - // new SummarizeInstallationUsageRequest(fleetId, jreVendor, jreDistribution, jreVersion, installationPath, applicationId, managedInstanceId, fields, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId, osFamily, pathContains); + // new SummarizeInstallationUsageRequest(fleetId, jreVendor, jreDistribution, jreVersion, installationPath, applicationId, managedInstanceId, fields, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId, osFamily, pathContains, jreSecurityStatus); } } @@ -638,7 +667,8 @@ public Builder toBuilder() { .sortBy(sortBy) .opcRequestId(opcRequestId) .osFamily(osFamily) - .pathContains(pathContains); + .pathContains(pathContains) + .jreSecurityStatus(jreSecurityStatus); } /** @@ -671,6 +701,7 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",osFamily=").append(String.valueOf(this.osFamily)); sb.append(",pathContains=").append(String.valueOf(this.pathContains)); + sb.append(",jreSecurityStatus=").append(String.valueOf(this.jreSecurityStatus)); sb.append(")"); return sb.toString(); } @@ -702,7 +733,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.osFamily, other.osFamily) - && java.util.Objects.equals(this.pathContains, other.pathContains); + && java.util.Objects.equals(this.pathContains, other.pathContains) + && java.util.Objects.equals(this.jreSecurityStatus, other.jreSecurityStatus); } @Override @@ -734,6 +766,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); result = (result * PRIME) + (this.pathContains == null ? 43 : this.pathContains.hashCode()); + result = + (result * PRIME) + + (this.jreSecurityStatus == null ? 43 : this.jreSecurityStatus.hashCode()); return result; } } diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index d0ad80c9099..a7ddc1eddb2 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 fac452ed451..0abb2c67785 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 @@ -59,6 +59,13 @@ public interface JavaDownload extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Cancels the work request with the given ID. * @param request The request object containing the details to send 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 bb95725dd6b..1b4d9446f8e 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 @@ -58,6 +58,13 @@ public interface JavaDownloadAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Cancels the work request with the given ID. * 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 085c141d87c..555cad65e1a 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 @@ -33,7 +33,8 @@ public class JavaDownloadAsyncClient implements JavaDownloadAsync { .serviceName(JavaDownloadClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://javamanagementservice-download.{region}.oci.{secondLevelDomain}") + "https://{dualStack?download.javamanagement:javamanagementservice-download}.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("download.javamanagement") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +54,7 @@ public class JavaDownloadAsyncClient implements JavaDownloadAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +307,9 @@ public JavaDownloadAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -470,6 +475,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadClient.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadClient.java index 10a8fe9b4be..a5391a5a419 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 @@ -21,7 +21,9 @@ public class JavaDownloadClient implements JavaDownload { .serviceName(JavaDownloadClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://javamanagementservice-download.{region}.oci.{secondLevelDomain}") + "https://{dualStack?download.javamanagement:javamanagementservice-download}.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .serviceUsesDualStackByDefault() + .endpointServiceName("download.javamanagement") .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; @@ -52,6 +54,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -382,6 +385,9 @@ protected JavaDownloadClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -559,6 +565,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CancelWorkRequestConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CancelWorkRequestConverter.java index ced9c24cc59..a9f29c662d0 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CancelWorkRequestConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CancelWorkRequestConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("workRequests") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadReportConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadReportConverter.java index b66e819ece0..45c9dc1a9fe 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadReportConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadReportConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateJavaDownloadReportDetails(), "createJavaDownloadReportDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("javaDownloadReports"); + newBaseTarget.path("/").path("20230601").path("javaDownloadReports"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadTokenConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadTokenConverter.java index 9e4df06cd4a..c228f73a409 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadTokenConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaDownloadTokenConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateJavaDownloadTokenDetails(), "createJavaDownloadTokenDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("javaDownloadTokens"); + newBaseTarget.path("/").path("20230601").path("javaDownloadTokens"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaLicenseAcceptanceRecordConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaLicenseAcceptanceRecordConverter.java index 9fd308cf4dd..2b1108e3bcd 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaLicenseAcceptanceRecordConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/CreateJavaLicenseAcceptanceRecordConverter.java @@ -37,11 +37,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateJavaLicenseAcceptanceRecordDetails(), "createJavaLicenseAcceptanceRecordDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/") - .path("20230601") - .path("javaLicenseAcceptanceRecords"); + newBaseTarget.path("/").path("20230601").path("javaLicenseAcceptanceRecords"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadReportConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadReportConverter.java index d3b5f81ece2..ab3144968e3 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadReportConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadReportConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaDownloadReportId(), "javaDownloadReportId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaDownloadReportId", request.getJavaDownloadReportId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaDownloadReports") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadTokenConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadTokenConverter.java index 8672f9d22b0..2d6741e4b94 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadTokenConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaDownloadTokenConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaDownloadTokenId(), "javaDownloadTokenId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaDownloadTokenId", request.getJavaDownloadTokenId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaDownloadTokens") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaLicenseAcceptanceRecordConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaLicenseAcceptanceRecordConverter.java index 285366a7c8c..f87aab090bf 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaLicenseAcceptanceRecordConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/DeleteJavaLicenseAcceptanceRecordConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getJavaLicenseAcceptanceRecordId(), "javaLicenseAcceptanceRecordId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "javaLicenseAcceptanceRecordId", request.getJavaLicenseAcceptanceRecordId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaLicenseAcceptanceRecords") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GenerateArtifactDownloadUrlConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GenerateArtifactDownloadUrlConverter.java index f2a8b9f2505..6a99075180f 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GenerateArtifactDownloadUrlConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GenerateArtifactDownloadUrlConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGenerateArtifactDownloadUrlDetails(), "generateArtifactDownloadUrlDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("actions") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportContentConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportContentConverter.java index 0f58cf2e25e..b452ec997ae 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportContentConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportContentConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaDownloadReportId(), "javaDownloadReportId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaDownloadReportId", request.getJavaDownloadReportId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaDownloadReports") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportConverter.java index b0a6bc996b4..af1fdfa14ec 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadReportConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaDownloadReportId(), "javaDownloadReportId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaDownloadReportId", request.getJavaDownloadReportId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaDownloadReports") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadTokenConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadTokenConverter.java index df73dfbb129..f9d56536283 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadTokenConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaDownloadTokenConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaDownloadTokenId(), "javaDownloadTokenId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaDownloadTokenId", request.getJavaDownloadTokenId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaDownloadTokens") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseAcceptanceRecordConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseAcceptanceRecordConverter.java index 69e728de720..552011c8ba6 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseAcceptanceRecordConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseAcceptanceRecordConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getJavaLicenseAcceptanceRecordId(), "javaLicenseAcceptanceRecordId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "javaLicenseAcceptanceRecordId", request.getJavaLicenseAcceptanceRecordId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaLicenseAcceptanceRecords") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseConverter.java index 6f60d446004..983a74a3277 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetJavaLicenseConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getLicenseType().getValue(), "licenseType must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("licenseType", request.getLicenseType()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaLicenses") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetWorkRequestConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetWorkRequestConverter.java index d5b56b24706..dc8f38e92c0 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetWorkRequestConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/GetWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("workRequests") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadRecordsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadRecordsConverter.java index 7fb142291c5..abc70235646 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadRecordsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadRecordsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("javaDownloadRecords"); + newBaseTarget.path("/").path("20230601").path("javaDownloadRecords"); target = target.queryParam( diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadReportsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadReportsConverter.java index 80c102093b4..a81b2120c1c 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadReportsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadReportsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("javaDownloadReports"); + newBaseTarget.path("/").path("20230601").path("javaDownloadReports"); target = target.queryParam( diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadTokensConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadTokensConverter.java index b5c59830b7f..332b4227159 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadTokensConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaDownloadTokensConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("javaDownloadTokens"); + newBaseTarget.path("/").path("20230601").path("javaDownloadTokens"); target = target.queryParam( diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicenseAcceptanceRecordsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicenseAcceptanceRecordsConverter.java index 8d8e312a1d2..a230d48a1c7 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicenseAcceptanceRecordsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicenseAcceptanceRecordsConverter.java @@ -34,11 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/") - .path("20230601") - .path("javaLicenseAcceptanceRecords"); + newBaseTarget.path("/").path("20230601").path("javaLicenseAcceptanceRecords"); target = target.queryParam( diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicensesConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicensesConverter.java index ed0a965b738..fcde3d17ce7 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicensesConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListJavaLicensesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jmsjavadownloads.requests.ListJavaLicensesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("javaLicenses"); + newBaseTarget.path("/").path("20230601").path("javaLicenses"); if (request.getLicenseType() != null) { target = diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestErrorsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestErrorsConverter.java index e07052c4088..c67469cad93 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestErrorsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("workRequests") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestLogsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestLogsConverter.java index 617be37277b..4d67cb5dc07 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestLogsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("workRequests") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestsConverter.java index ee6a6fe2e9a..4a00f613d17 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/ListWorkRequestsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/").path("20230601").path("workRequests"); + newBaseTarget.path("/").path("20230601").path("workRequests"); target = target.queryParam( diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/RequestSummarizedJavaDownloadCountsConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/RequestSummarizedJavaDownloadCountsConverter.java index d96d66a4166..126e52c727c 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/RequestSummarizedJavaDownloadCountsConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/RequestSummarizedJavaDownloadCountsConverter.java @@ -38,8 +38,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestSummarizedJavaDownloadCountsDetails(), "requestSummarizedJavaDownloadCountsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("actions") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaDownloadTokenConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaDownloadTokenConverter.java index ee223a3fc3a..15b7a073220 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaDownloadTokenConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaDownloadTokenConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateJavaDownloadTokenDetails(), "updateJavaDownloadTokenDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaDownloadTokenId", request.getJavaDownloadTokenId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaDownloadTokens") diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaLicenseAcceptanceRecordConverter.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaLicenseAcceptanceRecordConverter.java index bf5e05ae28b..d59592688d3 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaLicenseAcceptanceRecordConverter.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/internal/http/UpdateJavaLicenseAcceptanceRecordConverter.java @@ -40,8 +40,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateJavaLicenseAcceptanceRecordDetails(), "updateJavaLicenseAcceptanceRecordDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "javaLicenseAcceptanceRecordId", request.getJavaLicenseAcceptanceRecordId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/") .path("20230601") .path("javaLicenseAcceptanceRecords") diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 35d6455c763..5529e2bf6f8 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtils.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtils.java index ea7b8e9e230..91aeea1e8b5 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtils.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtils.java @@ -59,6 +59,13 @@ public interface JmsUtils extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Cancels a work request. * @param request The request object containing the details to send diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsync.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsync.java index 82b073caadf..8c3d90f0285 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsync.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsync.java @@ -58,6 +58,13 @@ public interface JmsUtilsAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Cancels a work request. * diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsyncClient.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsyncClient.java index aa6f89a325d..3f1f16a2384 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsyncClient.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsAsyncClient.java @@ -33,7 +33,8 @@ public class JmsUtilsAsyncClient implements JmsUtilsAsync { .serviceName(JmsUtilsClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://javamanagement-utils.{region}.oci.{secondLevelDomain}") + "https://utils.javamanagement.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("utils.javamanagement") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +54,7 @@ public class JmsUtilsAsyncClient implements JmsUtilsAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +307,9 @@ public JmsUtilsAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -465,6 +470,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsClient.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsClient.java index c6b80b8a148..7df173ecdfa 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsClient.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/JmsUtilsClient.java @@ -21,7 +21,9 @@ public class JmsUtilsClient implements JmsUtils { .serviceName(JmsUtilsClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://javamanagement-utils.{region}.oci.{secondLevelDomain}") + "https://utils.javamanagement.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .serviceUsesDualStackByDefault() + .endpointServiceName("utils.javamanagement") .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; @@ -52,6 +54,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -382,6 +385,9 @@ protected JmsUtilsClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -554,6 +560,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/CancelWorkRequestConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/CancelWorkRequestConverter.java index e58cd0b1955..81fb61010de 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/CancelWorkRequestConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/CancelWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("workRequests") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeleteJavaMigrationAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeleteJavaMigrationAnalysisConverter.java index 6e5a9e7f16f..0968c6ccd1e 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeleteJavaMigrationAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeleteJavaMigrationAnalysisConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaMigrationAnalysisId(), "javaMigrationAnalysisId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaMigrationAnalysisId", request.getJavaMigrationAnalysisId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("javaMigrationAnalysis") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeletePerformanceTuningAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeletePerformanceTuningAnalysisConverter.java index ea2e23424b1..7ac408bcc1e 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeletePerformanceTuningAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/DeletePerformanceTuningAnalysisConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPerformanceTuningAnalysisId(), "performanceTuningAnalysisId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "performanceTuningAnalysisId", request.getPerformanceTuningAnalysisId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("performanceTuningAnalysis") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetAnalyzeApplicationsConfigurationConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetAnalyzeApplicationsConfigurationConverter.java index e16f3d85a5d..1209b25356c 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetAnalyzeApplicationsConfigurationConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetAnalyzeApplicationsConfigurationConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jmsutils.requests.GetAnalyzeApplicationsConfigurationRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250521").path("analyzeApplicationsConfiguration"); + newBaseTarget.path("/20250521").path("analyzeApplicationsConfiguration"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetJavaMigrationAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetJavaMigrationAnalysisConverter.java index eac02999418..e6991e18316 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetJavaMigrationAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetJavaMigrationAnalysisConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getJavaMigrationAnalysisId(), "javaMigrationAnalysisId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("javaMigrationAnalysisId", request.getJavaMigrationAnalysisId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("javaMigrationAnalysis") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetPerformanceTuningAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetPerformanceTuningAnalysisConverter.java index 8b9e4ba7690..069fe0e2670 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetPerformanceTuningAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetPerformanceTuningAnalysisConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPerformanceTuningAnalysisId(), "performanceTuningAnalysisId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "performanceTuningAnalysisId", request.getPerformanceTuningAnalysisId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("performanceTuningAnalysis") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetSubscriptionAcknowledgmentConfigurationConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetSubscriptionAcknowledgmentConfigurationConverter.java index 2cd9767054b..066e60920b5 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetSubscriptionAcknowledgmentConfigurationConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetSubscriptionAcknowledgmentConfigurationConverter.java @@ -35,10 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250521") - .path("subscriptionAcknowledgmentConfiguration"); + newBaseTarget.path("/20250521").path("subscriptionAcknowledgmentConfiguration"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetWorkRequestConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetWorkRequestConverter.java index fa7927d1254..ffc0c8b56e7 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetWorkRequestConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/GetWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("workRequests") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListJavaMigrationAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListJavaMigrationAnalysisConverter.java index d5911a7290f..c6858cef242 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListJavaMigrationAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListJavaMigrationAnalysisConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jmsutils.requests.ListJavaMigrationAnalysisRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250521").path("javaMigrationAnalysis"); + newBaseTarget.path("/20250521").path("javaMigrationAnalysis"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListPerformanceTuningAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListPerformanceTuningAnalysisConverter.java index 54f158c95d4..6e4117f8d93 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListPerformanceTuningAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListPerformanceTuningAnalysisConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jmsutils.requests.ListPerformanceTuningAnalysisRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250521").path("performanceTuningAnalysis"); + newBaseTarget.path("/20250521").path("performanceTuningAnalysis"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkItemsConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkItemsConverter.java index 17312f74d5f..0102abfe443 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkItemsConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkItemsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("workRequests") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestErrorsConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestErrorsConverter.java index 22c79bb0b9c..63487dd453c 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestErrorsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("workRequests") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestLogsConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestLogsConverter.java index 1a54f63d8dc..5ee5e0284ac 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestLogsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("workRequests") .path( diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestsConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestsConverter.java index ea164eb7c6f..4431c72a6d5 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestsConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/ListWorkRequestsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.jmsutils.requests.ListWorkRequestsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250521").path("workRequests"); + newBaseTarget.path("/20250521").path("workRequests"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestJavaMigrationAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestJavaMigrationAnalysisConverter.java index 4ccd1c4945c..2c1203f89f0 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestJavaMigrationAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestJavaMigrationAnalysisConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestJavaMigrationAnalysisDetails(), "requestJavaMigrationAnalysisDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("javaMigrationAnalysis") .path("actions") diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestPerformanceTuningAnalysisConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestPerformanceTuningAnalysisConverter.java index de3aefa711d..bebff304253 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestPerformanceTuningAnalysisConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/RequestPerformanceTuningAnalysisConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRequestPerformanceTuningAnalysisDetails(), "requestPerformanceTuningAnalysisDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20250521") .path("performanceTuningAnalysis") .path("actions") diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateAnalyzeApplicationsConfigurationConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateAnalyzeApplicationsConfigurationConverter.java index 66bfe86c8a2..c52098b2753 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateAnalyzeApplicationsConfigurationConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateAnalyzeApplicationsConfigurationConverter.java @@ -37,8 +37,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateAnalyzeApplicationsConfigurationDetails(), "updateAnalyzeApplicationsConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250521").path("analyzeApplicationsConfiguration"); + newBaseTarget.path("/20250521").path("analyzeApplicationsConfiguration"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateSubscriptionAcknowledgmentConfigurationConverter.java b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateSubscriptionAcknowledgmentConfigurationConverter.java index 47fd9ab3f84..eac8a560044 100644 --- a/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateSubscriptionAcknowledgmentConfigurationConverter.java +++ b/bmc-jmsutils/src/main/java/com/oracle/bmc/jmsutils/internal/http/UpdateSubscriptionAcknowledgmentConfigurationConverter.java @@ -39,10 +39,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateSubscriptionAcknowledgmentConfigurationDetails(), "updateSubscriptionAcknowledgmentConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250521") - .path("subscriptionAcknowledgmentConfiguration"); + newBaseTarget.path("/20250521").path("subscriptionAcknowledgmentConfiguration"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 72d0960e0eb..292b6969b3c 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmCluster.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmCluster.java index 4e73e616db2..c50f26af098 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmCluster.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmCluster.java @@ -100,6 +100,19 @@ ChangeHsmClusterCompartmentResponse changeHsmClusterCompartment( */ CreateHsmClusterResponse createHsmCluster(CreateHsmClusterRequest request); + /** + * Disables management audit logging for the given HSM Cluster resource. This requires the Crypto Officer (CO) password. This operation is idempotent: if audit logging is already disabled, the call is a no-op and returns success. + * + * @param request The request 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 DisableAuditMgmtLogging API. + */ + DisableAuditMgmtLoggingResponse disableAuditMgmtLogging(DisableAuditMgmtLoggingRequest request); + /** * Retrieves the certificate signing request for the designated HSM Cluster resource. * @@ -114,6 +127,21 @@ ChangeHsmClusterCompartmentResponse changeHsmClusterCompartment( DownloadCertificateSigningRequestResponse downloadCertificateSigningRequest( DownloadCertificateSigningRequestRequest request); + /** + * Validates that the Dynamic Group and bucket policy supplied during EnableAuditLogging / CreateHsmCluster are now in place. + * If the cluster is in WAITING_FOR_CUSTOMER, and validation is successful, status is progressed and a work request is started. + * If the cluster has already progressed past that gate, the call is idempotent and returns 202 with the current cluster representation. + * + * @param request The request 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 EnableAuditMgmtLogging API. + */ + EnableAuditMgmtLoggingResponse enableAuditMgmtLogging(EnableAuditMgmtLoggingRequest request); + /** * Retrieves configuration details for the specified HSM Cluster resource. *

@@ -158,6 +186,18 @@ DownloadCertificateSigningRequestResponse downloadCertificateSigningRequest( */ GetPreCoUserCredentialsResponse getPreCoUserCredentials(GetPreCoUserCredentialsRequest request); + /** + * Initiates the process of enabling audit logs for a HSM cluster resource by taking in the required parameters. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation 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 InitiateAuditLogging API. + */ + InitiateAuditLoggingResponse initiateAuditLogging(InitiateAuditLoggingRequest request); + /** * Lists all HSM cluster resources contained within the specified compartment. *

@@ -204,6 +244,19 @@ DownloadCertificateSigningRequestResponse downloadCertificateSigningRequest( ScheduleHsmClusterDeletionResponse scheduleHsmClusterDeletion( ScheduleHsmClusterDeletionRequest request); + /** + * update bucket details of management audit logs for a HSM cluster resource by hsmClusterId. + * @param request The request 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 UpdateAuditLoggingDestination API. + */ + UpdateAuditLoggingDestinationResponse updateAuditLoggingDestination( + UpdateAuditLoggingDestinationRequest request); + /** * Modifies properties of an HSM cluster resource, including `displayName`, `freeformTags` and `definedTags`. *

diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsync.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsync.java index 22a54060041..fba1078c17a 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsync.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsync.java @@ -108,6 +108,23 @@ java.util.concurrent.Future createHsmCluster( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Disables management audit logging for the given HSM Cluster resource. This requires the Crypto Officer (CO) password. This operation is idempotent: if audit logging is already disabled, the call is a no-op and returns success. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future disableAuditMgmtLogging( + DisableAuditMgmtLoggingRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableAuditMgmtLoggingRequest, DisableAuditMgmtLoggingResponse> + handler); + /** * Retrieves the certificate signing request for the designated HSM Cluster resource. * @@ -127,6 +144,25 @@ java.util.concurrent.Future createHsmCluster( DownloadCertificateSigningRequestResponse> handler); + /** + * Validates that the Dynamic Group and bucket policy supplied during EnableAuditLogging / CreateHsmCluster are now in place. + * If the cluster is in WAITING_FOR_CUSTOMER, and validation is successful, status is progressed and a work request is started. + * If the cluster has already progressed past that gate, the call is idempotent and returns 202 with the current cluster representation. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future enableAuditMgmtLogging( + EnableAuditMgmtLoggingRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableAuditMgmtLoggingRequest, EnableAuditMgmtLoggingResponse> + handler); + /** * Retrieves configuration details for the specified HSM Cluster resource. *

@@ -181,6 +217,22 @@ java.util.concurrent.Future getPreCoUserCredent GetPreCoUserCredentialsRequest, GetPreCoUserCredentialsResponse> handler); + /** + * Initiates the process of enabling audit logs for a HSM cluster resource by taking in the required parameters. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future initiateAuditLogging( + InitiateAuditLoggingRequest request, + com.oracle.bmc.responses.AsyncHandler< + InitiateAuditLoggingRequest, InitiateAuditLoggingResponse> + handler); + /** * Lists all HSM cluster resources contained within the specified compartment. *

@@ -237,6 +289,24 @@ java.util.concurrent.Future scheduleHsmClust ScheduleHsmClusterDeletionRequest, ScheduleHsmClusterDeletionResponse> handler); + /** + * update bucket details of management audit logs for a HSM cluster resource by hsmClusterId. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + updateAuditLoggingDestination( + UpdateAuditLoggingDestinationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateAuditLoggingDestinationRequest, + UpdateAuditLoggingDestinationResponse> + handler); + /** * Modifies properties of an HSM cluster resource, including `displayName`, `freeformTags` and `definedTags`. *

diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsyncClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsyncClient.java index 72035780887..a6d9579bc48 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsyncClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterAsyncClient.java @@ -627,6 +627,55 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future disableAuditMgmtLogging( + DisableAuditMgmtLoggingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableAuditMgmtLoggingRequest, DisableAuditMgmtLoggingResponse> + handler) { + LOG.trace("Called async disableAuditMgmtLogging"); + final DisableAuditMgmtLoggingRequest interceptedRequest = + DisableAuditMgmtLoggingConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableAuditMgmtLoggingConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "DisableAuditMgmtLogging", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/DisableAuditMgmtLogging"); + final java.util.function.Function< + javax.ws.rs.core.Response, DisableAuditMgmtLoggingResponse> + transformer = + DisableAuditMgmtLoggingConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DisableAuditMgmtLoggingRequest, DisableAuditMgmtLoggingResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DisableAuditMgmtLoggingRequest, DisableAuditMgmtLoggingResponse>, + 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< + DisableAuditMgmtLoggingRequest, DisableAuditMgmtLoggingResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future downloadCertificateSigningRequest( @@ -681,6 +730,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future enableAuditMgmtLogging( + EnableAuditMgmtLoggingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableAuditMgmtLoggingRequest, EnableAuditMgmtLoggingResponse> + handler) { + LOG.trace("Called async enableAuditMgmtLogging"); + final EnableAuditMgmtLoggingRequest interceptedRequest = + EnableAuditMgmtLoggingConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableAuditMgmtLoggingConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "EnableAuditMgmtLogging", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/EnableAuditMgmtLogging"); + final java.util.function.Function + transformer = + EnableAuditMgmtLoggingConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + EnableAuditMgmtLoggingRequest, EnableAuditMgmtLoggingResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + EnableAuditMgmtLoggingRequest, EnableAuditMgmtLoggingResponse>, + 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< + EnableAuditMgmtLoggingRequest, EnableAuditMgmtLoggingResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getHsmCluster( GetHsmClusterRequest request, @@ -821,6 +918,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future initiateAuditLogging( + InitiateAuditLoggingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + InitiateAuditLoggingRequest, InitiateAuditLoggingResponse> + handler) { + LOG.trace("Called async initiateAuditLogging"); + final InitiateAuditLoggingRequest interceptedRequest = + InitiateAuditLoggingConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InitiateAuditLoggingConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "InitiateAuditLogging", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/InitiateAuditLogging"); + final java.util.function.Function + transformer = + InitiateAuditLoggingConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + InitiateAuditLoggingRequest, InitiateAuditLoggingResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + InitiateAuditLoggingRequest, InitiateAuditLoggingResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getInitiateAuditLoggingDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + InitiateAuditLoggingRequest, InitiateAuditLoggingResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listHsmClusters( ListHsmClustersRequest request, @@ -970,6 +1120,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateAuditLoggingDestination( + UpdateAuditLoggingDestinationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateAuditLoggingDestinationRequest, + UpdateAuditLoggingDestinationResponse> + handler) { + LOG.trace("Called async updateAuditLoggingDestination"); + final UpdateAuditLoggingDestinationRequest interceptedRequest = + UpdateAuditLoggingDestinationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateAuditLoggingDestinationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "UpdateAuditLoggingDestination", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UpdateAuditLoggingDestination"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateAuditLoggingDestinationResponse> + transformer = + UpdateAuditLoggingDestinationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateAuditLoggingDestinationRequest, UpdateAuditLoggingDestinationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateAuditLoggingDestinationRequest, + UpdateAuditLoggingDestinationResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateAuditLoggingDestinationDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateAuditLoggingDestinationRequest, UpdateAuditLoggingDestinationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateHsmCluster( UpdateHsmClusterRequest request, diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterClient.java index 82e05e6bb67..ff27edaeab7 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterClient.java @@ -684,6 +684,46 @@ public CreateHsmClusterResponse createHsmCluster(CreateHsmClusterRequest request }); } + @Override + public DisableAuditMgmtLoggingResponse disableAuditMgmtLogging( + DisableAuditMgmtLoggingRequest request) { + LOG.trace("Called disableAuditMgmtLogging"); + final DisableAuditMgmtLoggingRequest interceptedRequest = + DisableAuditMgmtLoggingConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableAuditMgmtLoggingConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "DisableAuditMgmtLogging", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/DisableAuditMgmtLogging"); + java.util.function.Function + transformer = + DisableAuditMgmtLoggingConverter.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 DownloadCertificateSigningRequestResponse downloadCertificateSigningRequest( DownloadCertificateSigningRequestRequest request) { @@ -725,6 +765,46 @@ public DownloadCertificateSigningRequestResponse downloadCertificateSigningReque }); } + @Override + public EnableAuditMgmtLoggingResponse enableAuditMgmtLogging( + EnableAuditMgmtLoggingRequest request) { + LOG.trace("Called enableAuditMgmtLogging"); + final EnableAuditMgmtLoggingRequest interceptedRequest = + EnableAuditMgmtLoggingConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableAuditMgmtLoggingConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "EnableAuditMgmtLogging", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/EnableAuditMgmtLogging"); + java.util.function.Function + transformer = + EnableAuditMgmtLoggingConverter.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 GetHsmClusterResponse getHsmCluster(GetHsmClusterRequest request) { LOG.trace("Called getHsmCluster"); @@ -837,6 +917,48 @@ public GetPreCoUserCredentialsResponse getPreCoUserCredentials( }); } + @Override + public InitiateAuditLoggingResponse initiateAuditLogging(InitiateAuditLoggingRequest request) { + LOG.trace("Called initiateAuditLogging"); + final InitiateAuditLoggingRequest interceptedRequest = + InitiateAuditLoggingConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InitiateAuditLoggingConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "InitiateAuditLogging", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/InitiateAuditLogging"); + java.util.function.Function + transformer = + InitiateAuditLoggingConverter.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.getInitiateAuditLoggingDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListHsmClustersResponse listHsmClusters(ListHsmClustersRequest request) { LOG.trace("Called listHsmClusters"); @@ -955,6 +1077,51 @@ public ScheduleHsmClusterDeletionResponse scheduleHsmClusterDeletion( }); } + @Override + public UpdateAuditLoggingDestinationResponse updateAuditLoggingDestination( + UpdateAuditLoggingDestinationRequest request) { + LOG.trace("Called updateAuditLoggingDestination"); + final UpdateAuditLoggingDestinationRequest interceptedRequest = + UpdateAuditLoggingDestinationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateAuditLoggingDestinationConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsHsmCluster", + "UpdateAuditLoggingDestination", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UpdateAuditLoggingDestination"); + java.util.function.Function< + javax.ws.rs.core.Response, UpdateAuditLoggingDestinationResponse> + transformer = + UpdateAuditLoggingDestinationConverter.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 + .getUpdateAuditLoggingDestinationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateHsmClusterResponse updateHsmCluster(UpdateHsmClusterRequest request) { LOG.trace("Called updateHsmCluster"); diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVault.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVault.java index 704780ddee7..53d2c1fb2ef 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVault.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVault.java @@ -325,6 +325,20 @@ RestoreVaultFromObjectStoreResponse restoreVaultFromObjectStore( */ ScheduleVaultDeletionResponse scheduleVaultDeletion(ScheduleVaultDeletionRequest request); + /** + * Update fleet ids for the registered mTLS vault. + * + * @param request The request 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 UpdateRegisteredVaultForMtls API. + */ + UpdateRegisteredVaultForMtlsResponse updateRegisteredVaultForMtls( + UpdateRegisteredVaultForMtlsRequest request); + /** * Updates the properties of a vault. Specifically, you can update the * `displayName`, `freeformTags`, and `definedTags` properties. Furthermore, diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsync.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsync.java index 6b48bee9c0f..9cc60b405eb 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsync.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsync.java @@ -339,6 +339,24 @@ java.util.concurrent.Future scheduleVaultDeletion ScheduleVaultDeletionRequest, ScheduleVaultDeletionResponse> handler); + /** + * Update fleet ids for the registered mTLS vault. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateRegisteredVaultForMtls( + UpdateRegisteredVaultForMtlsRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateRegisteredVaultForMtlsRequest, + UpdateRegisteredVaultForMtlsResponse> + handler); + /** * Updates the properties of a vault. Specifically, you can update the * `displayName`, `freeformTags`, and `definedTags` properties. Furthermore, diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java index 6e18bbd9417..feff4286ceb 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java @@ -1124,6 +1124,62 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateRegisteredVaultForMtls( + UpdateRegisteredVaultForMtlsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateRegisteredVaultForMtlsRequest, + UpdateRegisteredVaultForMtlsResponse> + handler) { + LOG.trace("Called async updateRegisteredVaultForMtls"); + final UpdateRegisteredVaultForMtlsRequest interceptedRequest = + UpdateRegisteredVaultForMtlsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRegisteredVaultForMtlsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KmsVault", + "UpdateRegisteredVaultForMtls", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/UpdateRegisteredVaultForMtlsDetails/UpdateRegisteredVaultForMtls"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateRegisteredVaultForMtlsResponse> + transformer = + UpdateRegisteredVaultForMtlsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateRegisteredVaultForMtlsRequest, UpdateRegisteredVaultForMtlsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateRegisteredVaultForMtlsRequest, + UpdateRegisteredVaultForMtlsResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateRegisteredVaultForMtlsDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateRegisteredVaultForMtlsRequest, UpdateRegisteredVaultForMtlsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateVault( UpdateVaultRequest request, diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultClient.java index d09eabb5ec6..60638276007 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultClient.java @@ -1107,6 +1107,49 @@ public ScheduleVaultDeletionResponse scheduleVaultDeletion( }); } + @Override + public UpdateRegisteredVaultForMtlsResponse updateRegisteredVaultForMtls( + UpdateRegisteredVaultForMtlsRequest request) { + LOG.trace("Called updateRegisteredVaultForMtls"); + final UpdateRegisteredVaultForMtlsRequest interceptedRequest = + UpdateRegisteredVaultForMtlsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRegisteredVaultForMtlsConverter.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( + "KmsVault", + "UpdateRegisteredVaultForMtls", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/key/release/UpdateRegisteredVaultForMtlsDetails/UpdateRegisteredVaultForMtls"); + java.util.function.Function + transformer = + UpdateRegisteredVaultForMtlsConverter.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 + .getUpdateRegisteredVaultForMtlsDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateVaultResponse updateVault(UpdateVaultRequest request) { LOG.trace("Called updateVault"); diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/DisableAuditMgmtLoggingConverter.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/DisableAuditMgmtLoggingConverter.java new file mode 100644 index 00000000000..ad4e7affc46 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/DisableAuditMgmtLoggingConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.keymanagement.model.*; +import com.oracle.bmc.keymanagement.requests.*; +import com.oracle.bmc.keymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class DisableAuditMgmtLoggingConverter { + 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(DisableAuditMgmtLoggingConverter.class); + + public static com.oracle.bmc.keymanagement.requests.DisableAuditMgmtLoggingRequest + interceptRequest( + com.oracle.bmc.keymanagement.requests.DisableAuditMgmtLoggingRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.keymanagement.requests.DisableAuditMgmtLoggingRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getHsmClusterId(), "hsmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/") + .path("20180608") + .path("hsmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHsmClusterId())) + .path("actions") + .path("disableAuditMgmtLogging"); + + 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.keymanagement.responses.DisableAuditMgmtLoggingResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.DisableAuditMgmtLoggingResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.DisableAuditMgmtLoggingResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses + .DisableAuditMgmtLoggingResponse>() { + @Override + public com.oracle.bmc.keymanagement.responses + .DisableAuditMgmtLoggingResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.keymanagement.responses.DisableAuditMgmtLoggingResponse"); + 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.keymanagement.responses + .DisableAuditMgmtLoggingResponse.Builder + builder = + com.oracle.bmc.keymanagement.responses + .DisableAuditMgmtLoggingResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.keymanagement.responses + .DisableAuditMgmtLoggingResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/EnableAuditMgmtLoggingConverter.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/EnableAuditMgmtLoggingConverter.java new file mode 100644 index 00000000000..0654411e434 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/EnableAuditMgmtLoggingConverter.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.keymanagement.model.*; +import com.oracle.bmc.keymanagement.requests.*; +import com.oracle.bmc.keymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class EnableAuditMgmtLoggingConverter { + 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(EnableAuditMgmtLoggingConverter.class); + + public static com.oracle.bmc.keymanagement.requests.EnableAuditMgmtLoggingRequest + interceptRequest( + com.oracle.bmc.keymanagement.requests.EnableAuditMgmtLoggingRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.keymanagement.requests.EnableAuditMgmtLoggingRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getHsmClusterId(), "hsmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/") + .path("20180608") + .path("hsmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHsmClusterId())) + .path("actions") + .path("enableAuditMgmtLogging"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.EnableAuditMgmtLoggingResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.EnableAuditMgmtLoggingResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.EnableAuditMgmtLoggingResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses + .EnableAuditMgmtLoggingResponse>() { + @Override + public com.oracle.bmc.keymanagement.responses + .EnableAuditMgmtLoggingResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.keymanagement.responses.EnableAuditMgmtLoggingResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model + .EnableAuditMgmtLogging>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model + .EnableAuditMgmtLogging + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model + .EnableAuditMgmtLogging + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model + .EnableAuditMgmtLogging> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.keymanagement.responses + .EnableAuditMgmtLoggingResponse.Builder + builder = + com.oracle.bmc.keymanagement.responses + .EnableAuditMgmtLoggingResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.enableAuditMgmtLogging(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.keymanagement.responses + .EnableAuditMgmtLoggingResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/InitiateAuditLoggingConverter.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/InitiateAuditLoggingConverter.java new file mode 100644 index 00000000000..ba8aeaf9bbf --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/InitiateAuditLoggingConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.keymanagement.model.*; +import com.oracle.bmc.keymanagement.requests.*; +import com.oracle.bmc.keymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class InitiateAuditLoggingConverter { + 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(InitiateAuditLoggingConverter.class); + + public static com.oracle.bmc.keymanagement.requests.InitiateAuditLoggingRequest + interceptRequest( + com.oracle.bmc.keymanagement.requests.InitiateAuditLoggingRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.keymanagement.requests.InitiateAuditLoggingRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getHsmClusterId(), "hsmClusterId must not be blank"); + Validate.notNull( + request.getInitiateAuditLoggingDetails(), + "initiateAuditLoggingDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/") + .path("20180608") + .path("hsmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHsmClusterId())) + .path("actions") + .path("initiateAuditLogging"); + + 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.keymanagement.responses.InitiateAuditLoggingResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.InitiateAuditLoggingResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.InitiateAuditLoggingResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses + .InitiateAuditLoggingResponse>() { + @Override + public com.oracle.bmc.keymanagement.responses + .InitiateAuditLoggingResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.keymanagement.responses.InitiateAuditLoggingResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model + .AuditLogging>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model.AuditLogging + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model.AuditLogging + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model.AuditLogging> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.keymanagement.responses.InitiateAuditLoggingResponse + .Builder + builder = + com.oracle.bmc.keymanagement.responses + .InitiateAuditLoggingResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.auditLogging(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.keymanagement.responses.InitiateAuditLoggingResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/UpdateAuditLoggingDestinationConverter.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/UpdateAuditLoggingDestinationConverter.java new file mode 100644 index 00000000000..4677edabab2 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/UpdateAuditLoggingDestinationConverter.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.keymanagement.model.*; +import com.oracle.bmc.keymanagement.requests.*; +import com.oracle.bmc.keymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class UpdateAuditLoggingDestinationConverter { + 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(UpdateAuditLoggingDestinationConverter.class); + + public static com.oracle.bmc.keymanagement.requests.UpdateAuditLoggingDestinationRequest + interceptRequest( + com.oracle.bmc.keymanagement.requests.UpdateAuditLoggingDestinationRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.keymanagement.requests.UpdateAuditLoggingDestinationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getHsmClusterId(), "hsmClusterId must not be blank"); + Validate.notNull( + request.getUpdateAuditLoggingDestinationDetails(), + "updateAuditLoggingDestinationDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/") + .path("20180608") + .path("hsmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHsmClusterId())) + .path("actions") + .path("updateAuditLoggingDestination"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.UpdateAuditLoggingDestinationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.UpdateAuditLoggingDestinationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses + .UpdateAuditLoggingDestinationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses + .UpdateAuditLoggingDestinationResponse>() { + @Override + public com.oracle.bmc.keymanagement.responses + .UpdateAuditLoggingDestinationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.keymanagement.responses.UpdateAuditLoggingDestinationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model + .AuditLogging>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model.AuditLogging + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model.AuditLogging + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model.AuditLogging> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.keymanagement.responses + .UpdateAuditLoggingDestinationResponse.Builder + builder = + com.oracle.bmc.keymanagement.responses + .UpdateAuditLoggingDestinationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.auditLogging(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.keymanagement.responses + .UpdateAuditLoggingDestinationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/UpdateRegisteredVaultForMtlsConverter.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/UpdateRegisteredVaultForMtlsConverter.java new file mode 100644 index 00000000000..fa3e35b74e3 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/internal/http/UpdateRegisteredVaultForMtlsConverter.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.keymanagement.model.*; +import com.oracle.bmc.keymanagement.requests.*; +import com.oracle.bmc.keymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class UpdateRegisteredVaultForMtlsConverter { + 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(UpdateRegisteredVaultForMtlsConverter.class); + + public static com.oracle.bmc.keymanagement.requests.UpdateRegisteredVaultForMtlsRequest + interceptRequest( + com.oracle.bmc.keymanagement.requests.UpdateRegisteredVaultForMtlsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.keymanagement.requests.UpdateRegisteredVaultForMtlsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVaultId(), "vaultId must not be blank"); + Validate.notNull( + request.getUpdateRegisteredVaultForMtlsDetails(), + "updateRegisteredVaultForMtlsDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/") + .path("20180608") + .path("vaults") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVaultId())) + .path("updateRegisteredVaultForMtls"); + + 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.keymanagement.responses.UpdateRegisteredVaultForMtlsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.UpdateRegisteredVaultForMtlsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses.UpdateRegisteredVaultForMtlsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.keymanagement.responses + .UpdateRegisteredVaultForMtlsResponse>() { + @Override + public com.oracle.bmc.keymanagement.responses + .UpdateRegisteredVaultForMtlsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.keymanagement.responses.UpdateRegisteredVaultForMtlsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model + .VaultMtlsUpdateResponse>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model + .VaultMtlsUpdateResponse + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.keymanagement.model + .VaultMtlsUpdateResponse + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.keymanagement.model + .VaultMtlsUpdateResponse> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.keymanagement.responses + .UpdateRegisteredVaultForMtlsResponse.Builder + builder = + com.oracle.bmc.keymanagement.responses + .UpdateRegisteredVaultForMtlsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vaultMtlsUpdateResponse(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.keymanagement.responses + .UpdateRegisteredVaultForMtlsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AuditLogging.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AuditLogging.java new file mode 100644 index 00000000000..da5017f2461 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AuditLogging.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * The response on initiating management audit logging. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AuditLogging.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AuditLogging extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"workRequestId", "hsmClusterId"}) + public AuditLogging(String workRequestId, String hsmClusterId) { + super(); + this.workRequestId = workRequestId; + this.hsmClusterId = hsmClusterId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The workRequestId to track the request later. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + /** + * The workRequestId to track the request later. + * @param workRequestId the value to set + * @return this builder + **/ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } + /** + * The Hsm Cluster Id + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hsmClusterId") + private String hsmClusterId; + + /** + * The Hsm Cluster Id + * @param hsmClusterId the value to set + * @return this builder + **/ + public Builder hsmClusterId(String hsmClusterId) { + this.hsmClusterId = hsmClusterId; + this.__explicitlySet__.add("hsmClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AuditLogging build() { + AuditLogging model = new AuditLogging(this.workRequestId, this.hsmClusterId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AuditLogging model) { + if (model.wasPropertyExplicitlySet("workRequestId")) { + this.workRequestId(model.getWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("hsmClusterId")) { + this.hsmClusterId(model.getHsmClusterId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The workRequestId to track the request later. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private final String workRequestId; + + /** + * The workRequestId to track the request later. + * @return the value + **/ + public String getWorkRequestId() { + return workRequestId; + } + + /** + * The Hsm Cluster Id + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hsmClusterId") + private final String hsmClusterId; + + /** + * The Hsm Cluster Id + * @return the value + **/ + public String getHsmClusterId() { + return hsmClusterId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AuditLogging("); + sb.append("super=").append(super.toString()); + sb.append("workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(", hsmClusterId=").append(String.valueOf(this.hsmClusterId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AuditLogging)) { + return false; + } + + AuditLogging other = (AuditLogging) o; + return java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.hsmClusterId, other.hsmClusterId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.hsmClusterId == null ? 43 : this.hsmClusterId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AuditLoggingConfig.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AuditLoggingConfig.java new file mode 100644 index 00000000000..3f845211713 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AuditLoggingConfig.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * Configuration for management audit logging for the cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AuditLoggingConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AuditLoggingConfig extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabled", "bucketName", "namespace", "compartmentId"}) + public AuditLoggingConfig( + Boolean isEnabled, String bucketName, String namespace, String compartmentId) { + super(); + this.isEnabled = isEnabled; + this.bucketName = bucketName; + this.namespace = namespace; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates if management audit logging is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Indicates if management audit logging is enabled. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Name of the object store bucket for audit logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * Name of the object store bucket for audit logs. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * Object storage namespace for the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * Object storage namespace for the bucket. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * OCID of the compartment for the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment for the bucket. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AuditLoggingConfig build() { + AuditLoggingConfig model = + new AuditLoggingConfig( + this.isEnabled, this.bucketName, this.namespace, this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AuditLoggingConfig model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates if management audit logging is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Indicates if management audit logging is enabled. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Name of the object store bucket for audit logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * Name of the object store bucket for audit logs. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * Object storage namespace for the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * Object storage namespace for the bucket. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * OCID of the compartment for the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment for the bucket. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AuditLoggingConfig("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AuditLoggingConfig)) { + return false; + } + + AuditLoggingConfig other = (AuditLoggingConfig) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java index 0cc571217af..cb8dc810aed 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java @@ -26,18 +26,21 @@ public final class CreateHsmClusterDetails "compartmentId", "displayName", "definedTags", - "freeformTags" + "freeformTags", + "auditLogConfig" }) public CreateHsmClusterDetails( String compartmentId, String displayName, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + AuditLoggingConfig auditLogConfig) { super(); this.compartmentId = compartmentId; this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.auditLogConfig = auditLogConfig; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -124,6 +127,15 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("auditLogConfig") + private AuditLoggingConfig auditLogConfig; + + public Builder auditLogConfig(AuditLoggingConfig auditLogConfig) { + this.auditLogConfig = auditLogConfig; + this.__explicitlySet__.add("auditLogConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -133,7 +145,8 @@ public CreateHsmClusterDetails build() { this.compartmentId, this.displayName, this.definedTags, - this.freeformTags); + this.freeformTags, + this.auditLogConfig); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -154,6 +167,9 @@ public Builder copy(CreateHsmClusterDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("auditLogConfig")) { + this.auditLogConfig(model.getAuditLogConfig()); + } return this; } } @@ -241,6 +257,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("auditLogConfig") + private final AuditLoggingConfig auditLogConfig; + + public AuditLoggingConfig getAuditLogConfig() { + return auditLogConfig; + } + @Override public String toString() { return this.toString(true); @@ -259,6 +282,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", auditLogConfig=").append(String.valueOf(this.auditLogConfig)); sb.append(")"); return sb.toString(); } @@ -277,6 +301,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.auditLogConfig, other.auditLogConfig) && super.equals(other); } @@ -290,6 +315,9 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.auditLogConfig == null ? 43 : this.auditLogConfig.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/EnableAuditMgmtLogging.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/EnableAuditMgmtLogging.java new file mode 100644 index 00000000000..1ad1043247f --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/EnableAuditMgmtLogging.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * Audit Log resource for tracking status and details of audit logging operations on HSM clusters. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableAuditMgmtLogging.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class EnableAuditMgmtLogging + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "hsmClusterId", + "customerBucketName", + "namespace", + "clusterCompartmentId", + "auditLoggingStatus" + }) + public EnableAuditMgmtLogging( + String id, + String hsmClusterId, + String customerBucketName, + String namespace, + String clusterCompartmentId, + AuditLoggingStatus auditLoggingStatus) { + super(); + this.id = id; + this.hsmClusterId = hsmClusterId; + this.customerBucketName = customerBucketName; + this.namespace = namespace; + this.clusterCompartmentId = clusterCompartmentId; + this.auditLoggingStatus = auditLoggingStatus; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Workflow request identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Workflow request identifier. + * @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 HSM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hsmClusterId") + private String hsmClusterId; + + /** + * OCID of the HSM Cluster. + * @param hsmClusterId the value to set + * @return this builder + **/ + public Builder hsmClusterId(String hsmClusterId) { + this.hsmClusterId = hsmClusterId; + this.__explicitlySet__.add("hsmClusterId"); + return this; + } + /** + * Name of the audit log's associated customer bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customerBucketName") + private String customerBucketName; + + /** + * Name of the audit log's associated customer bucket. + * @param customerBucketName the value to set + * @return this builder + **/ + public Builder customerBucketName(String customerBucketName) { + this.customerBucketName = customerBucketName; + this.__explicitlySet__.add("customerBucketName"); + return this; + } + /** + * Object Storage namespace of the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * Object Storage namespace of the bucket. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * Compartment OCID for the HSM cluster (bucket compartment). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterCompartmentId") + private String clusterCompartmentId; + + /** + * Compartment OCID for the HSM cluster (bucket compartment). + * @param clusterCompartmentId the value to set + * @return this builder + **/ + public Builder clusterCompartmentId(String clusterCompartmentId) { + this.clusterCompartmentId = clusterCompartmentId; + this.__explicitlySet__.add("clusterCompartmentId"); + return this; + } + /** + * Status of the audit logging. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("auditLoggingStatus") + private AuditLoggingStatus auditLoggingStatus; + + /** + * Status of the audit logging. + * @param auditLoggingStatus the value to set + * @return this builder + **/ + public Builder auditLoggingStatus(AuditLoggingStatus auditLoggingStatus) { + this.auditLoggingStatus = auditLoggingStatus; + this.__explicitlySet__.add("auditLoggingStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableAuditMgmtLogging build() { + EnableAuditMgmtLogging model = + new EnableAuditMgmtLogging( + this.id, + this.hsmClusterId, + this.customerBucketName, + this.namespace, + this.clusterCompartmentId, + this.auditLoggingStatus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableAuditMgmtLogging model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("hsmClusterId")) { + this.hsmClusterId(model.getHsmClusterId()); + } + if (model.wasPropertyExplicitlySet("customerBucketName")) { + this.customerBucketName(model.getCustomerBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("clusterCompartmentId")) { + this.clusterCompartmentId(model.getClusterCompartmentId()); + } + if (model.wasPropertyExplicitlySet("auditLoggingStatus")) { + this.auditLoggingStatus(model.getAuditLoggingStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Workflow request identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Workflow request identifier. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * OCID of the HSM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hsmClusterId") + private final String hsmClusterId; + + /** + * OCID of the HSM Cluster. + * @return the value + **/ + public String getHsmClusterId() { + return hsmClusterId; + } + + /** + * Name of the audit log's associated customer bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customerBucketName") + private final String customerBucketName; + + /** + * Name of the audit log's associated customer bucket. + * @return the value + **/ + public String getCustomerBucketName() { + return customerBucketName; + } + + /** + * Object Storage namespace of the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * Object Storage namespace of the bucket. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * Compartment OCID for the HSM cluster (bucket compartment). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterCompartmentId") + private final String clusterCompartmentId; + + /** + * Compartment OCID for the HSM cluster (bucket compartment). + * @return the value + **/ + public String getClusterCompartmentId() { + return clusterCompartmentId; + } + + /** + * Status of the audit logging. + **/ + public enum AuditLoggingStatus { + Creating("CREATING"), + WaitingForCustomer("WAITING_FOR_CUSTOMER"), + Verifying("VERIFYING"), + DisablingInProgress("DISABLING_IN_PROGRESS"), + DisabledValidated("DISABLED_VALIDATED"), + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AuditLoggingStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AuditLoggingStatus v : AuditLoggingStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AuditLoggingStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AuditLoggingStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AuditLoggingStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Status of the audit logging. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("auditLoggingStatus") + private final AuditLoggingStatus auditLoggingStatus; + + /** + * Status of the audit logging. + * @return the value + **/ + public AuditLoggingStatus getAuditLoggingStatus() { + return auditLoggingStatus; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableAuditMgmtLogging("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", hsmClusterId=").append(String.valueOf(this.hsmClusterId)); + sb.append(", customerBucketName=").append(String.valueOf(this.customerBucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", clusterCompartmentId=").append(String.valueOf(this.clusterCompartmentId)); + sb.append(", auditLoggingStatus=").append(String.valueOf(this.auditLoggingStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAuditMgmtLogging)) { + return false; + } + + EnableAuditMgmtLogging other = (EnableAuditMgmtLogging) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.hsmClusterId, other.hsmClusterId) + && java.util.Objects.equals(this.customerBucketName, other.customerBucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.clusterCompartmentId, other.clusterCompartmentId) + && java.util.Objects.equals(this.auditLoggingStatus, other.auditLoggingStatus) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.hsmClusterId == null ? 43 : this.hsmClusterId.hashCode()); + result = + (result * PRIME) + + (this.customerBucketName == null + ? 43 + : this.customerBucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.clusterCompartmentId == null + ? 43 + : this.clusterCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.auditLoggingStatus == null + ? 43 + : this.auditLoggingStatus.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java index e046649d2a7..a7f90891c51 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java @@ -29,7 +29,9 @@ public final class HsmCluster extends com.oracle.bmc.http.internal.ExplicitlySet "dnsName", "timeOfDeletion", "definedTags", - "freeformTags" + "freeformTags", + "auditLogConfig", + "pendingInstructions" }) public HsmCluster( String id, @@ -41,7 +43,9 @@ public HsmCluster( String dnsName, java.util.Date timeOfDeletion, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + HsmClusterAuditLoggingInfo auditLogConfig, + HsmClusterPendingInstructions pendingInstructions) { super(); this.id = id; this.compartmentId = compartmentId; @@ -53,6 +57,8 @@ public HsmCluster( this.timeOfDeletion = timeOfDeletion; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.auditLogConfig = auditLogConfig; + this.pendingInstructions = pendingInstructions; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -257,6 +263,24 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("auditLogConfig") + private HsmClusterAuditLoggingInfo auditLogConfig; + + public Builder auditLogConfig(HsmClusterAuditLoggingInfo auditLogConfig) { + this.auditLogConfig = auditLogConfig; + this.__explicitlySet__.add("auditLogConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pendingInstructions") + private HsmClusterPendingInstructions pendingInstructions; + + public Builder pendingInstructions(HsmClusterPendingInstructions pendingInstructions) { + this.pendingInstructions = pendingInstructions; + this.__explicitlySet__.add("pendingInstructions"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -272,7 +296,9 @@ public HsmCluster build() { this.dnsName, this.timeOfDeletion, this.definedTags, - this.freeformTags); + this.freeformTags, + this.auditLogConfig, + this.pendingInstructions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -311,6 +337,12 @@ public Builder copy(HsmCluster model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("auditLogConfig")) { + this.auditLogConfig(model.getAuditLogConfig()); + } + if (model.wasPropertyExplicitlySet("pendingInstructions")) { + this.pendingInstructions(model.getPendingInstructions()); + } return this; } } @@ -564,6 +596,20 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("auditLogConfig") + private final HsmClusterAuditLoggingInfo auditLogConfig; + + public HsmClusterAuditLoggingInfo getAuditLogConfig() { + return auditLogConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pendingInstructions") + private final HsmClusterPendingInstructions pendingInstructions; + + public HsmClusterPendingInstructions getPendingInstructions() { + return pendingInstructions; + } + @Override public String toString() { return this.toString(true); @@ -588,6 +634,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeOfDeletion=").append(String.valueOf(this.timeOfDeletion)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", auditLogConfig=").append(String.valueOf(this.auditLogConfig)); + sb.append(", pendingInstructions=").append(String.valueOf(this.pendingInstructions)); sb.append(")"); return sb.toString(); } @@ -612,6 +660,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeOfDeletion, other.timeOfDeletion) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.auditLogConfig, other.auditLogConfig) + && java.util.Objects.equals(this.pendingInstructions, other.pendingInstructions) && super.equals(other); } @@ -635,6 +685,14 @@ public int hashCode() { + (this.timeOfDeletion == null ? 43 : this.timeOfDeletion.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.auditLogConfig == null ? 43 : this.auditLogConfig.hashCode()); + result = + (result * PRIME) + + (this.pendingInstructions == null + ? 43 + : this.pendingInstructions.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterAuditLoggingInfo.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterAuditLoggingInfo.java new file mode 100644 index 00000000000..fbc9c51d3b1 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterAuditLoggingInfo.java @@ -0,0 +1,405 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * Status of management audit logging for the cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HsmClusterAuditLoggingInfo.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class HsmClusterAuditLoggingInfo + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "bucketName", + "namespace", + "compartmentId", + "dynamicGroupName", + "auditLogLifecycleState" + }) + public HsmClusterAuditLoggingInfo( + Boolean isEnabled, + String bucketName, + String namespace, + String compartmentId, + String dynamicGroupName, + AuditLogLifecycleState auditLogLifecycleState) { + super(); + this.isEnabled = isEnabled; + this.bucketName = bucketName; + this.namespace = namespace; + this.compartmentId = compartmentId; + this.dynamicGroupName = dynamicGroupName; + this.auditLogLifecycleState = auditLogLifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Whether audit logging is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Whether audit logging is enabled. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Audit logs bucket name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * Audit logs bucket name. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * Bucket namespace. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * Bucket namespace. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * Compartment of the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment of the bucket. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Name of dynamic group used for audit log upload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicGroupName") + private String dynamicGroupName; + + /** + * Name of dynamic group used for audit log upload. + * @param dynamicGroupName the value to set + * @return this builder + **/ + public Builder dynamicGroupName(String dynamicGroupName) { + this.dynamicGroupName = dynamicGroupName; + this.__explicitlySet__.add("dynamicGroupName"); + return this; + } + /** + * The current lifecycle state of the audit logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("auditLogLifecycleState") + private AuditLogLifecycleState auditLogLifecycleState; + + /** + * The current lifecycle state of the audit logs. + * @param auditLogLifecycleState the value to set + * @return this builder + **/ + public Builder auditLogLifecycleState(AuditLogLifecycleState auditLogLifecycleState) { + this.auditLogLifecycleState = auditLogLifecycleState; + this.__explicitlySet__.add("auditLogLifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HsmClusterAuditLoggingInfo build() { + HsmClusterAuditLoggingInfo model = + new HsmClusterAuditLoggingInfo( + this.isEnabled, + this.bucketName, + this.namespace, + this.compartmentId, + this.dynamicGroupName, + this.auditLogLifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HsmClusterAuditLoggingInfo model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("dynamicGroupName")) { + this.dynamicGroupName(model.getDynamicGroupName()); + } + if (model.wasPropertyExplicitlySet("auditLogLifecycleState")) { + this.auditLogLifecycleState(model.getAuditLogLifecycleState()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Whether audit logging is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Whether audit logging is enabled. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Audit logs bucket name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * Audit logs bucket name. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * Bucket namespace. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * Bucket namespace. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * Compartment of the bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment of the bucket. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Name of dynamic group used for audit log upload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicGroupName") + private final String dynamicGroupName; + + /** + * Name of dynamic group used for audit log upload. + * @return the value + **/ + public String getDynamicGroupName() { + return dynamicGroupName; + } + + /** + * The current lifecycle state of the audit logs. + **/ + public enum AuditLogLifecycleState { + Creating("CREATING"), + WaitingForCustomer("WAITING_FOR_CUSTOMER"), + Verifying("VERIFYING"), + DisablingInProgress("DISABLING_IN_PROGRESS"), + DisablingBroken("DISABLING_BROKEN"), + DisabledValidated("DISABLED_VALIDATED"), + Failed("FAILED"), + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AuditLogLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AuditLogLifecycleState v : AuditLogLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AuditLogLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AuditLogLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AuditLogLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current lifecycle state of the audit logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("auditLogLifecycleState") + private final AuditLogLifecycleState auditLogLifecycleState; + + /** + * The current lifecycle state of the audit logs. + * @return the value + **/ + public AuditLogLifecycleState getAuditLogLifecycleState() { + return auditLogLifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HsmClusterAuditLoggingInfo("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", dynamicGroupName=").append(String.valueOf(this.dynamicGroupName)); + sb.append(", auditLogLifecycleState=").append(String.valueOf(this.auditLogLifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HsmClusterAuditLoggingInfo)) { + return false; + } + + HsmClusterAuditLoggingInfo other = (HsmClusterAuditLoggingInfo) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.dynamicGroupName, other.dynamicGroupName) + && java.util.Objects.equals( + this.auditLogLifecycleState, other.auditLogLifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.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.dynamicGroupName == null ? 43 : this.dynamicGroupName.hashCode()); + result = + (result * PRIME) + + (this.auditLogLifecycleState == null + ? 43 + : this.auditLogLifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterPendingCreateDynamicGroup.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterPendingCreateDynamicGroup.java new file mode 100644 index 00000000000..28d66dc9c71 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterPendingCreateDynamicGroup.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * Details to create the dynamic group. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HsmClusterPendingCreateDynamicGroup.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class HsmClusterPendingCreateDynamicGroup + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "matchingRule"}) + public HsmClusterPendingCreateDynamicGroup(String name, String matchingRule) { + super(); + this.name = name; + this.matchingRule = matchingRule; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the dynamic group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the dynamic group. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Matching rule for dynamic group membership. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private String matchingRule; + + /** + * Matching rule for dynamic group membership. + * @param matchingRule the value to set + * @return this builder + **/ + public Builder matchingRule(String matchingRule) { + this.matchingRule = matchingRule; + this.__explicitlySet__.add("matchingRule"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HsmClusterPendingCreateDynamicGroup build() { + HsmClusterPendingCreateDynamicGroup model = + new HsmClusterPendingCreateDynamicGroup(this.name, this.matchingRule); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HsmClusterPendingCreateDynamicGroup model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("matchingRule")) { + this.matchingRule(model.getMatchingRule()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the dynamic group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the dynamic group. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Matching rule for dynamic group membership. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private final String matchingRule; + + /** + * Matching rule for dynamic group membership. + * @return the value + **/ + public String getMatchingRule() { + return matchingRule; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HsmClusterPendingCreateDynamicGroup("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", matchingRule=").append(String.valueOf(this.matchingRule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HsmClusterPendingCreateDynamicGroup)) { + return false; + } + + HsmClusterPendingCreateDynamicGroup other = (HsmClusterPendingCreateDynamicGroup) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.matchingRule, other.matchingRule) + && 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.matchingRule == null ? 43 : this.matchingRule.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterPendingInstructions.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterPendingInstructions.java new file mode 100644 index 00000000000..f5d2b3589db --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterPendingInstructions.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * Pending instructions for audit logging setup. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HsmClusterPendingInstructions.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class HsmClusterPendingInstructions + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"createDynamicGroup", "addBucketPolicy"}) + public HsmClusterPendingInstructions( + HsmClusterPendingCreateDynamicGroup createDynamicGroup, String addBucketPolicy) { + super(); + this.createDynamicGroup = createDynamicGroup; + this.addBucketPolicy = addBucketPolicy; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("createDynamicGroup") + private HsmClusterPendingCreateDynamicGroup createDynamicGroup; + + public Builder createDynamicGroup(HsmClusterPendingCreateDynamicGroup createDynamicGroup) { + this.createDynamicGroup = createDynamicGroup; + this.__explicitlySet__.add("createDynamicGroup"); + return this; + } + /** + * Policy for the user to add to the log bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("addBucketPolicy") + private String addBucketPolicy; + + /** + * Policy for the user to add to the log bucket. + * @param addBucketPolicy the value to set + * @return this builder + **/ + public Builder addBucketPolicy(String addBucketPolicy) { + this.addBucketPolicy = addBucketPolicy; + this.__explicitlySet__.add("addBucketPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HsmClusterPendingInstructions build() { + HsmClusterPendingInstructions model = + new HsmClusterPendingInstructions( + this.createDynamicGroup, this.addBucketPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HsmClusterPendingInstructions model) { + if (model.wasPropertyExplicitlySet("createDynamicGroup")) { + this.createDynamicGroup(model.getCreateDynamicGroup()); + } + if (model.wasPropertyExplicitlySet("addBucketPolicy")) { + this.addBucketPolicy(model.getAddBucketPolicy()); + } + 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("createDynamicGroup") + private final HsmClusterPendingCreateDynamicGroup createDynamicGroup; + + public HsmClusterPendingCreateDynamicGroup getCreateDynamicGroup() { + return createDynamicGroup; + } + + /** + * Policy for the user to add to the log bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("addBucketPolicy") + private final String addBucketPolicy; + + /** + * Policy for the user to add to the log bucket. + * @return the value + **/ + public String getAddBucketPolicy() { + return addBucketPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HsmClusterPendingInstructions("); + sb.append("super=").append(super.toString()); + sb.append("createDynamicGroup=").append(String.valueOf(this.createDynamicGroup)); + sb.append(", addBucketPolicy=").append(String.valueOf(this.addBucketPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HsmClusterPendingInstructions)) { + return false; + } + + HsmClusterPendingInstructions other = (HsmClusterPendingInstructions) o; + return java.util.Objects.equals(this.createDynamicGroup, other.createDynamicGroup) + && java.util.Objects.equals(this.addBucketPolicy, other.addBucketPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.createDynamicGroup == null + ? 43 + : this.createDynamicGroup.hashCode()); + result = + (result * PRIME) + + (this.addBucketPolicy == null ? 43 : this.addBucketPolicy.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/InitiateAuditLoggingDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/InitiateAuditLoggingDetails.java new file mode 100644 index 00000000000..122c031a68f --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/InitiateAuditLoggingDetails.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * The information required for updating management audit logging 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: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InitiateAuditLoggingDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InitiateAuditLoggingDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"bucketName", "namespace", "compartmentId"}) + public InitiateAuditLoggingDetails(String bucketName, String namespace, String compartmentId) { + super(); + this.bucketName = bucketName; + this.namespace = namespace; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The bucket name to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The bucket name to which audit logs will be stored. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * The namespace under bucket to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The namespace under bucket to which audit logs will be stored. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InitiateAuditLoggingDetails build() { + InitiateAuditLoggingDetails model = + new InitiateAuditLoggingDetails( + this.bucketName, this.namespace, this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InitiateAuditLoggingDetails model) { + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The bucket name to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The bucket name to which audit logs will be stored. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * The namespace under bucket to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The namespace under bucket to which audit logs will be stored. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InitiateAuditLoggingDetails("); + sb.append("super=").append(super.toString()); + sb.append("bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InitiateAuditLoggingDetails)) { + return false; + } + + InitiateAuditLoggingDetails other = (InitiateAuditLoggingDetails) o; + return java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java index 76c3fa22a7d..326a715ac27 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java @@ -19,8 +19,17 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class OauthMetadata extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"idcsAccountNameUrl", "clientAppId", "clientAppSecret"}) public OauthMetadata(String idcsAccountNameUrl, String clientAppId, String clientAppSecret) { + super(); + this.idcsAccountNameUrl = idcsAccountNameUrl; + this.clientAppId = clientAppId; + this.clientAppSecret = clientAppSecret != null ? clientAppSecret.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"idcsAccountNameUrl", "clientAppId", "clientAppSecret"}) + public OauthMetadata(String idcsAccountNameUrl, String clientAppId, char[] clientAppSecret) { super(); this.idcsAccountNameUrl = idcsAccountNameUrl; this.clientAppId = clientAppId; @@ -65,19 +74,25 @@ public Builder clientAppId(String clientAppId) { * Secret of the client app created in IDP. **/ @com.fasterxml.jackson.annotation.JsonProperty("clientAppSecret") - private String clientAppSecret; + private char[] clientAppSecret; /** * Secret of the client app created in IDP. * @param clientAppSecret the value to set * @return this builder **/ - public Builder clientAppSecret(String clientAppSecret) { + public Builder clientAppSecret(char[] clientAppSecret) { this.clientAppSecret = clientAppSecret; this.__explicitlySet__.add("clientAppSecret"); return this; } + public Builder clientAppSecret(String clientAppSecret) { + this.clientAppSecret = clientAppSecret != null ? clientAppSecret.toCharArray() : null; + this.__explicitlySet__.add("clientAppSecret"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -149,13 +164,25 @@ public String getClientAppId() { * Secret of the client app created in IDP. **/ @com.fasterxml.jackson.annotation.JsonProperty("clientAppSecret") - private final String clientAppSecret; + private final char[] clientAppSecret; + + /** + * Secret of the client app created in IDP. + * return the value + * @Deprecated - Use getClientAppSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientAppSecret() { + return clientAppSecret != null ? new String(clientAppSecret) : null; + } /** * Secret of the client app created in IDP. * @return the value **/ - public String getClientAppSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientAppSecret") + public char[] getClientAppSecret__AsCharArray() { return clientAppSecret; } diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UpdateAuditLoggingDestinationDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UpdateAuditLoggingDestinationDetails.java new file mode 100644 index 00000000000..96fd8617c13 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UpdateAuditLoggingDestinationDetails.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * The information required for updating management audit logging 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: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateAuditLoggingDestinationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateAuditLoggingDestinationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"bucketName", "namespace", "compartmentId"}) + public UpdateAuditLoggingDestinationDetails( + String bucketName, String namespace, String compartmentId) { + super(); + this.bucketName = bucketName; + this.namespace = namespace; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The bucket name to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The bucket name to which audit logs will be stored. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * The namespace under bucket to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The namespace under bucket to which audit logs will be stored. + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateAuditLoggingDestinationDetails build() { + UpdateAuditLoggingDestinationDetails model = + new UpdateAuditLoggingDestinationDetails( + this.bucketName, this.namespace, this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateAuditLoggingDestinationDetails model) { + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The bucket name to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The bucket name to which audit logs will be stored. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * The namespace under bucket to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The namespace under bucket to which audit logs will be stored. + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartmentId [OCID] under namespace to which audit logs will be stored. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateAuditLoggingDestinationDetails("); + sb.append("super=").append(super.toString()); + sb.append("bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAuditLoggingDestinationDetails)) { + return false; + } + + UpdateAuditLoggingDestinationDetails other = (UpdateAuditLoggingDestinationDetails) o; + return java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UpdateRegisteredVaultForMtlsDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UpdateRegisteredVaultForMtlsDetails.java new file mode 100644 index 00000000000..ec604e46be1 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UpdateRegisteredVaultForMtlsDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * The details of the registered mTLS vault that you wish to update. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateRegisteredVaultForMtlsDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateRegisteredVaultForMtlsDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fleetId"}) + public UpdateRegisteredVaultForMtlsDetails(String fleetId) { + super(); + this.fleetId = fleetId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Identifier of the fleet associated with the mTLS connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fleetId") + private String fleetId; + + /** + * Identifier of the fleet associated with the mTLS connection. + * @param fleetId the value to set + * @return this builder + **/ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + this.__explicitlySet__.add("fleetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateRegisteredVaultForMtlsDetails build() { + UpdateRegisteredVaultForMtlsDetails model = + new UpdateRegisteredVaultForMtlsDetails(this.fleetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateRegisteredVaultForMtlsDetails model) { + if (model.wasPropertyExplicitlySet("fleetId")) { + this.fleetId(model.getFleetId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Identifier of the fleet associated with the mTLS connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fleetId") + private final String fleetId; + + /** + * Identifier of the fleet associated with the mTLS connection. + * @return the value + **/ + public String getFleetId() { + return fleetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateRegisteredVaultForMtlsDetails("); + sb.append("super=").append(super.toString()); + sb.append("fleetId=").append(String.valueOf(this.fleetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateRegisteredVaultForMtlsDetails)) { + return false; + } + + UpdateRegisteredVaultForMtlsDetails other = (UpdateRegisteredVaultForMtlsDetails) o; + return java.util.Objects.equals(this.fleetId, other.fleetId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/VaultMtlsUpdateResponse.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/VaultMtlsUpdateResponse.java new file mode 100644 index 00000000000..00a9810456f --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/VaultMtlsUpdateResponse.java @@ -0,0 +1,260 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.model; + +/** + * The response of the update mTLS vault api call. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VaultMtlsUpdateResponse.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VaultMtlsUpdateResponse + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mtlsCryptoDns", "fleetId", "status"}) + public VaultMtlsUpdateResponse(String mtlsCryptoDns, String fleetId, Status status) { + super(); + this.mtlsCryptoDns = mtlsCryptoDns; + this.fleetId = fleetId; + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The mTLS DNS endpoint for performing crypto operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mtlsCryptoDns") + private String mtlsCryptoDns; + + /** + * The mTLS DNS endpoint for performing crypto operations. + * @param mtlsCryptoDns the value to set + * @return this builder + **/ + public Builder mtlsCryptoDns(String mtlsCryptoDns) { + this.mtlsCryptoDns = mtlsCryptoDns; + this.__explicitlySet__.add("mtlsCryptoDns"); + return this; + } + /** + * Identifier of the fleet associated with the mTLS connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fleetId") + private String fleetId; + + /** + * Identifier of the fleet associated with the mTLS connection. + * @param fleetId the value to set + * @return this builder + **/ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + this.__explicitlySet__.add("fleetId"); + return this; + } + /** + * The mtls vault registering state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * The mtls vault registering state. + * @param status the value to set + * @return this builder + **/ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VaultMtlsUpdateResponse build() { + VaultMtlsUpdateResponse model = + new VaultMtlsUpdateResponse(this.mtlsCryptoDns, this.fleetId, this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VaultMtlsUpdateResponse model) { + if (model.wasPropertyExplicitlySet("mtlsCryptoDns")) { + this.mtlsCryptoDns(model.getMtlsCryptoDns()); + } + if (model.wasPropertyExplicitlySet("fleetId")) { + this.fleetId(model.getFleetId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The mTLS DNS endpoint for performing crypto operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mtlsCryptoDns") + private final String mtlsCryptoDns; + + /** + * The mTLS DNS endpoint for performing crypto operations. + * @return the value + **/ + public String getMtlsCryptoDns() { + return mtlsCryptoDns; + } + + /** + * Identifier of the fleet associated with the mTLS connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fleetId") + private final String fleetId; + + /** + * Identifier of the fleet associated with the mTLS connection. + * @return the value + **/ + public String getFleetId() { + return fleetId; + } + + /** + * The mtls vault registering state. + **/ + public enum Status { + Creating("CREATING"), + Created("CREATED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The mtls vault registering state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * The mtls vault registering state. + * @return the value + **/ + public Status getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VaultMtlsUpdateResponse("); + sb.append("super=").append(super.toString()); + sb.append("mtlsCryptoDns=").append(String.valueOf(this.mtlsCryptoDns)); + sb.append(", fleetId=").append(String.valueOf(this.fleetId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VaultMtlsUpdateResponse)) { + return false; + } + + VaultMtlsUpdateResponse other = (VaultMtlsUpdateResponse) o; + return java.util.Objects.equals(this.mtlsCryptoDns, other.mtlsCryptoDns) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.status, other.status) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.mtlsCryptoDns == null ? 43 : this.mtlsCryptoDns.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DisableAuditMgmtLoggingRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DisableAuditMgmtLoggingRequest.java new file mode 100644 index 00000000000..306b19ae8a0 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DisableAuditMgmtLoggingRequest.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.requests; + +import com.oracle.bmc.keymanagement.model.*; +/** + * Example: Click here to see how to use DisableAuditMgmtLoggingRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class DisableAuditMgmtLoggingRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + public String getHsmClusterId() { + return hsmClusterId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + 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 (e.g., 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 (e.g., if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableAuditMgmtLoggingRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + * @param hsmClusterId the value to set + * @return this builder instance + */ + public Builder hsmClusterId(String hsmClusterId) { + this.hsmClusterId = hsmClusterId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + * @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 (e.g., 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 (e.g., 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(DisableAuditMgmtLoggingRequest o) { + hsmClusterId(o.getHsmClusterId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableAuditMgmtLoggingRequest 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 DisableAuditMgmtLoggingRequest + */ + public DisableAuditMgmtLoggingRequest build() { + DisableAuditMgmtLoggingRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DisableAuditMgmtLoggingRequest 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 DisableAuditMgmtLoggingRequest + */ + public DisableAuditMgmtLoggingRequest buildWithoutInvocationCallback() { + DisableAuditMgmtLoggingRequest request = new DisableAuditMgmtLoggingRequest(); + request.hsmClusterId = hsmClusterId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new DisableAuditMgmtLoggingRequest(hsmClusterId, 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() + .hsmClusterId(hsmClusterId) + .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(",hsmClusterId=").append(String.valueOf(this.hsmClusterId)); + 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 DisableAuditMgmtLoggingRequest)) { + return false; + } + + DisableAuditMgmtLoggingRequest other = (DisableAuditMgmtLoggingRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.hsmClusterId, other.hsmClusterId) + && 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.hsmClusterId == null ? 43 : this.hsmClusterId.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-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/EnableAuditMgmtLoggingRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/EnableAuditMgmtLoggingRequest.java new file mode 100644 index 00000000000..4582bdd3960 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/EnableAuditMgmtLoggingRequest.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.requests; + +import com.oracle.bmc.keymanagement.model.*; +/** + * Example: Click here to see how to use EnableAuditMgmtLoggingRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class EnableAuditMgmtLoggingRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + public String getHsmClusterId() { + return hsmClusterId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated + * before then due to conflicting operations (e.g., 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 (e.g., if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableAuditMgmtLoggingRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + * @param hsmClusterId the value to set + * @return this builder instance + */ + public Builder hsmClusterId(String hsmClusterId) { + this.hsmClusterId = hsmClusterId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated + * before then due to conflicting operations (e.g., 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 (e.g., if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + * @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(EnableAuditMgmtLoggingRequest o) { + hsmClusterId(o.getHsmClusterId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableAuditMgmtLoggingRequest 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 EnableAuditMgmtLoggingRequest + */ + public EnableAuditMgmtLoggingRequest build() { + EnableAuditMgmtLoggingRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of EnableAuditMgmtLoggingRequest 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 EnableAuditMgmtLoggingRequest + */ + public EnableAuditMgmtLoggingRequest buildWithoutInvocationCallback() { + EnableAuditMgmtLoggingRequest request = new EnableAuditMgmtLoggingRequest(); + request.hsmClusterId = hsmClusterId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new EnableAuditMgmtLoggingRequest(hsmClusterId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hsmClusterId(hsmClusterId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hsmClusterId=").append(String.valueOf(this.hsmClusterId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAuditMgmtLoggingRequest)) { + return false; + } + + EnableAuditMgmtLoggingRequest other = (EnableAuditMgmtLoggingRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.hsmClusterId, other.hsmClusterId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.hsmClusterId == null ? 43 : this.hsmClusterId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/InitiateAuditLoggingRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/InitiateAuditLoggingRequest.java new file mode 100644 index 00000000000..8c961e30870 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/InitiateAuditLoggingRequest.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.requests; + +import com.oracle.bmc.keymanagement.model.*; +/** + * Example: Click here to see how to use InitiateAuditLoggingRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class InitiateAuditLoggingRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.keymanagement.model.InitiateAuditLoggingDetails> { + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + public String getHsmClusterId() { + return hsmClusterId; + } + /** + * The information need to make changes for management audit logs. + */ + private com.oracle.bmc.keymanagement.model.InitiateAuditLoggingDetails + initiateAuditLoggingDetails; + + /** + * The information need to make changes for management audit logs. + */ + public com.oracle.bmc.keymanagement.model.InitiateAuditLoggingDetails + getInitiateAuditLoggingDetails() { + return initiateAuditLoggingDetails; + } + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated + * before then due to conflicting operations (e.g., 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 (e.g., 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.keymanagement.model.InitiateAuditLoggingDetails getBody$() { + return initiateAuditLoggingDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + InitiateAuditLoggingRequest, + com.oracle.bmc.keymanagement.model.InitiateAuditLoggingDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + * @param hsmClusterId the value to set + * @return this builder instance + */ + public Builder hsmClusterId(String hsmClusterId) { + this.hsmClusterId = hsmClusterId; + return this; + } + + /** + * The information need to make changes for management audit logs. + */ + private com.oracle.bmc.keymanagement.model.InitiateAuditLoggingDetails + initiateAuditLoggingDetails = null; + + /** + * The information need to make changes for management audit logs. + * @param initiateAuditLoggingDetails the value to set + * @return this builder instance + */ + public Builder initiateAuditLoggingDetails( + com.oracle.bmc.keymanagement.model.InitiateAuditLoggingDetails + initiateAuditLoggingDetails) { + this.initiateAuditLoggingDetails = initiateAuditLoggingDetails; + return this; + } + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated + * before then due to conflicting operations (e.g., 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 (e.g., 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(InitiateAuditLoggingRequest o) { + hsmClusterId(o.getHsmClusterId()); + initiateAuditLoggingDetails(o.getInitiateAuditLoggingDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of InitiateAuditLoggingRequest 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 InitiateAuditLoggingRequest + */ + public InitiateAuditLoggingRequest build() { + InitiateAuditLoggingRequest 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.keymanagement.model.InitiateAuditLoggingDetails body) { + initiateAuditLoggingDetails(body); + return this; + } + + /** + * Build the instance of InitiateAuditLoggingRequest 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 InitiateAuditLoggingRequest + */ + public InitiateAuditLoggingRequest buildWithoutInvocationCallback() { + InitiateAuditLoggingRequest request = new InitiateAuditLoggingRequest(); + request.hsmClusterId = hsmClusterId; + request.initiateAuditLoggingDetails = initiateAuditLoggingDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new InitiateAuditLoggingRequest(hsmClusterId, initiateAuditLoggingDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hsmClusterId(hsmClusterId) + .initiateAuditLoggingDetails(initiateAuditLoggingDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hsmClusterId=").append(String.valueOf(this.hsmClusterId)); + sb.append(",initiateAuditLoggingDetails=") + .append(String.valueOf(this.initiateAuditLoggingDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InitiateAuditLoggingRequest)) { + return false; + } + + InitiateAuditLoggingRequest other = (InitiateAuditLoggingRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.hsmClusterId, other.hsmClusterId) + && java.util.Objects.equals( + this.initiateAuditLoggingDetails, other.initiateAuditLoggingDetails) + && 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.hsmClusterId == null ? 43 : this.hsmClusterId.hashCode()); + result = + (result * PRIME) + + (this.initiateAuditLoggingDetails == null + ? 43 + : this.initiateAuditLoggingDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateAuditLoggingDestinationRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateAuditLoggingDestinationRequest.java new file mode 100644 index 00000000000..2d66d9c117b --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateAuditLoggingDestinationRequest.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.requests; + +import com.oracle.bmc.keymanagement.model.*; +/** + * Example: Click here to see how to use UpdateAuditLoggingDestinationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class UpdateAuditLoggingDestinationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.keymanagement.model.UpdateAuditLoggingDestinationDetails> { + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + public String getHsmClusterId() { + return hsmClusterId; + } + /** + * The information need to make changes for management audit logs. + */ + private com.oracle.bmc.keymanagement.model.UpdateAuditLoggingDestinationDetails + updateAuditLoggingDestinationDetails; + + /** + * The information need to make changes for management audit logs. + */ + public com.oracle.bmc.keymanagement.model.UpdateAuditLoggingDestinationDetails + getUpdateAuditLoggingDestinationDetails() { + return updateAuditLoggingDestinationDetails; + } + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + 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 (e.g., 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 (e.g., 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; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that 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.keymanagement.model.UpdateAuditLoggingDestinationDetails getBody$() { + return updateAuditLoggingDestinationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateAuditLoggingDestinationRequest, + com.oracle.bmc.keymanagement.model.UpdateAuditLoggingDestinationDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + */ + private String hsmClusterId = null; + + /** + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. + * @param hsmClusterId the value to set + * @return this builder instance + */ + public Builder hsmClusterId(String hsmClusterId) { + this.hsmClusterId = hsmClusterId; + return this; + } + + /** + * The information need to make changes for management audit logs. + */ + private com.oracle.bmc.keymanagement.model.UpdateAuditLoggingDestinationDetails + updateAuditLoggingDestinationDetails = null; + + /** + * The information need to make changes for management audit logs. + * @param updateAuditLoggingDestinationDetails the value to set + * @return this builder instance + */ + public Builder updateAuditLoggingDestinationDetails( + com.oracle.bmc.keymanagement.model.UpdateAuditLoggingDestinationDetails + updateAuditLoggingDestinationDetails) { + this.updateAuditLoggingDestinationDetails = updateAuditLoggingDestinationDetails; + return this; + } + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + * @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 (e.g., 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 (e.g., 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that 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(UpdateAuditLoggingDestinationRequest o) { + hsmClusterId(o.getHsmClusterId()); + updateAuditLoggingDestinationDetails(o.getUpdateAuditLoggingDestinationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateAuditLoggingDestinationRequest 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 UpdateAuditLoggingDestinationRequest + */ + public UpdateAuditLoggingDestinationRequest build() { + UpdateAuditLoggingDestinationRequest 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.keymanagement.model.UpdateAuditLoggingDestinationDetails body) { + updateAuditLoggingDestinationDetails(body); + return this; + } + + /** + * Build the instance of UpdateAuditLoggingDestinationRequest 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 UpdateAuditLoggingDestinationRequest + */ + public UpdateAuditLoggingDestinationRequest buildWithoutInvocationCallback() { + UpdateAuditLoggingDestinationRequest request = + new UpdateAuditLoggingDestinationRequest(); + request.hsmClusterId = hsmClusterId; + request.updateAuditLoggingDestinationDetails = updateAuditLoggingDestinationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new UpdateAuditLoggingDestinationRequest(hsmClusterId, updateAuditLoggingDestinationDetails, opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hsmClusterId(hsmClusterId) + .updateAuditLoggingDestinationDetails(updateAuditLoggingDestinationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hsmClusterId=").append(String.valueOf(this.hsmClusterId)); + sb.append(",updateAuditLoggingDestinationDetails=") + .append(String.valueOf(this.updateAuditLoggingDestinationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAuditLoggingDestinationRequest)) { + return false; + } + + UpdateAuditLoggingDestinationRequest other = (UpdateAuditLoggingDestinationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.hsmClusterId, other.hsmClusterId) + && java.util.Objects.equals( + this.updateAuditLoggingDestinationDetails, + other.updateAuditLoggingDestinationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.hsmClusterId == null ? 43 : this.hsmClusterId.hashCode()); + result = + (result * PRIME) + + (this.updateAuditLoggingDestinationDetails == null + ? 43 + : this.updateAuditLoggingDestinationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateRegisteredVaultForMtlsRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateRegisteredVaultForMtlsRequest.java new file mode 100644 index 00000000000..e0903a84dec --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateRegisteredVaultForMtlsRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.requests; + +import com.oracle.bmc.keymanagement.model.*; +/** + * Example: Click here to see how to use UpdateRegisteredVaultForMtlsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class UpdateRegisteredVaultForMtlsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails> { + + /** + * The OCID of the vault. + */ + private String vaultId; + + /** + * The OCID of the vault. + */ + public String getVaultId() { + return vaultId; + } + /** + * Payload to update fleet ids for the registered mTLS vault for mtls. + */ + private com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails + updateRegisteredVaultForMtlsDetails; + + /** + * Payload to update fleet ids for the registered mTLS vault for mtls. + */ + public com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails + getUpdateRegisteredVaultForMtlsDetails() { + return updateRegisteredVaultForMtlsDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails getBody$() { + return updateRegisteredVaultForMtlsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateRegisteredVaultForMtlsRequest, + com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the vault. + */ + private String vaultId = null; + + /** + * The OCID of the vault. + * @param vaultId the value to set + * @return this builder instance + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + return this; + } + + /** + * Payload to update fleet ids for the registered mTLS vault for mtls. + */ + private com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails + updateRegisteredVaultForMtlsDetails = null; + + /** + * Payload to update fleet ids for the registered mTLS vault for mtls. + * @param updateRegisteredVaultForMtlsDetails the value to set + * @return this builder instance + */ + public Builder updateRegisteredVaultForMtlsDetails( + com.oracle.bmc.keymanagement.model.UpdateRegisteredVaultForMtlsDetails + updateRegisteredVaultForMtlsDetails) { + this.updateRegisteredVaultForMtlsDetails = updateRegisteredVaultForMtlsDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code if-match} parameter to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If provided, the returned request ID + * will include this value. Otherwise, a random request ID will be + * generated by the service. + * + * @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(UpdateRegisteredVaultForMtlsRequest o) { + vaultId(o.getVaultId()); + updateRegisteredVaultForMtlsDetails(o.getUpdateRegisteredVaultForMtlsDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateRegisteredVaultForMtlsRequest 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 UpdateRegisteredVaultForMtlsRequest + */ + public UpdateRegisteredVaultForMtlsRequest build() { + UpdateRegisteredVaultForMtlsRequest 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.keymanagement.model.UpdateRegisteredVaultForMtlsDetails body) { + updateRegisteredVaultForMtlsDetails(body); + return this; + } + + /** + * Build the instance of UpdateRegisteredVaultForMtlsRequest 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 UpdateRegisteredVaultForMtlsRequest + */ + public UpdateRegisteredVaultForMtlsRequest buildWithoutInvocationCallback() { + UpdateRegisteredVaultForMtlsRequest request = new UpdateRegisteredVaultForMtlsRequest(); + request.vaultId = vaultId; + request.updateRegisteredVaultForMtlsDetails = updateRegisteredVaultForMtlsDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateRegisteredVaultForMtlsRequest(vaultId, updateRegisteredVaultForMtlsDetails, 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() + .vaultId(vaultId) + .updateRegisteredVaultForMtlsDetails(updateRegisteredVaultForMtlsDetails) + .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(",vaultId=").append(String.valueOf(this.vaultId)); + sb.append(",updateRegisteredVaultForMtlsDetails=") + .append(String.valueOf(this.updateRegisteredVaultForMtlsDetails)); + 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 UpdateRegisteredVaultForMtlsRequest)) { + return false; + } + + UpdateRegisteredVaultForMtlsRequest other = (UpdateRegisteredVaultForMtlsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals( + this.updateRegisteredVaultForMtlsDetails, + other.updateRegisteredVaultForMtlsDetails) + && 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.vaultId == null ? 43 : this.vaultId.hashCode()); + result = + (result * PRIME) + + (this.updateRegisteredVaultForMtlsDetails == null + ? 43 + : this.updateRegisteredVaultForMtlsDetails.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-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/DisableAuditMgmtLoggingResponse.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/DisableAuditMgmtLoggingResponse.java new file mode 100644 index 00000000000..8d46abedb2e --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/DisableAuditMgmtLoggingResponse.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.responses; + +import com.oracle.bmc.keymanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class DisableAuditMgmtLoggingResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the work request. Use to track progress. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the work request. Use to track progress. + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DisableAuditMgmtLoggingResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * @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 work request. Use to track progress. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the work request. Use to track progress. + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DisableAuditMgmtLoggingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DisableAuditMgmtLoggingResponse build() { + return new DisableAuditMgmtLoggingResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableAuditMgmtLoggingResponse)) { + return false; + } + + DisableAuditMgmtLoggingResponse other = (DisableAuditMgmtLoggingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/EnableAuditMgmtLoggingResponse.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/EnableAuditMgmtLoggingResponse.java new file mode 100644 index 00000000000..85ac26487e4 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/EnableAuditMgmtLoggingResponse.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.responses; + +import com.oracle.bmc.keymanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class EnableAuditMgmtLoggingResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Work-request OCID tracking enable-audit-logging. + */ + private String opcWorkRequestId; + + /** + * Work-request OCID tracking enable-audit-logging. + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * @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 EnableAuditMgmtLogging instance. + */ + private com.oracle.bmc.keymanagement.model.EnableAuditMgmtLogging enableAuditMgmtLogging; + + /** + * The returned EnableAuditMgmtLogging instance. + * @return the value + */ + public com.oracle.bmc.keymanagement.model.EnableAuditMgmtLogging getEnableAuditMgmtLogging() { + return enableAuditMgmtLogging; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "enableAuditMgmtLogging" + }) + private EnableAuditMgmtLoggingResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.keymanagement.model.EnableAuditMgmtLogging enableAuditMgmtLogging) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.enableAuditMgmtLogging = enableAuditMgmtLogging; + } + + 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; + } + + /** + * Work-request OCID tracking enable-audit-logging. + */ + private String opcWorkRequestId; + + /** + * Work-request OCID tracking enable-audit-logging. + * @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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * @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 EnableAuditMgmtLogging instance. + */ + private com.oracle.bmc.keymanagement.model.EnableAuditMgmtLogging enableAuditMgmtLogging; + + /** + * The returned EnableAuditMgmtLogging instance. + * @param enableAuditMgmtLogging the value to set + * @return this builder + */ + public Builder enableAuditMgmtLogging( + com.oracle.bmc.keymanagement.model.EnableAuditMgmtLogging enableAuditMgmtLogging) { + this.enableAuditMgmtLogging = enableAuditMgmtLogging; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableAuditMgmtLoggingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + enableAuditMgmtLogging(o.getEnableAuditMgmtLogging()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public EnableAuditMgmtLoggingResponse build() { + return new EnableAuditMgmtLoggingResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + enableAuditMgmtLogging); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",enableAuditMgmtLogging=").append(String.valueOf(enableAuditMgmtLogging)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAuditMgmtLoggingResponse)) { + return false; + } + + EnableAuditMgmtLoggingResponse other = (EnableAuditMgmtLoggingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.enableAuditMgmtLogging, other.enableAuditMgmtLogging); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.enableAuditMgmtLogging == null + ? 43 + : this.enableAuditMgmtLogging.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/InitiateAuditLoggingResponse.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/InitiateAuditLoggingResponse.java new file mode 100644 index 00000000000..633cd304c9c --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/InitiateAuditLoggingResponse.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.responses; + +import com.oracle.bmc.keymanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class InitiateAuditLoggingResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned AuditLogging instance. + */ + private com.oracle.bmc.keymanagement.model.AuditLogging auditLogging; + + /** + * The returned AuditLogging instance. + * @return the value + */ + public com.oracle.bmc.keymanagement.model.AuditLogging getAuditLogging() { + return auditLogging; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "auditLogging" + }) + private InitiateAuditLoggingResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.keymanagement.model.AuditLogging auditLogging) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.auditLogging = auditLogging; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned AuditLogging instance. + */ + private com.oracle.bmc.keymanagement.model.AuditLogging auditLogging; + + /** + * The returned AuditLogging instance. + * @param auditLogging the value to set + * @return this builder + */ + public Builder auditLogging(com.oracle.bmc.keymanagement.model.AuditLogging auditLogging) { + this.auditLogging = auditLogging; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(InitiateAuditLoggingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + auditLogging(o.getAuditLogging()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public InitiateAuditLoggingResponse build() { + return new InitiateAuditLoggingResponse( + __httpStatusCode__, headers, etag, opcRequestId, auditLogging); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",auditLogging=").append(String.valueOf(auditLogging)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InitiateAuditLoggingResponse)) { + return false; + } + + InitiateAuditLoggingResponse other = (InitiateAuditLoggingResponse) 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.auditLogging, other.auditLogging); + } + + @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.auditLogging == null ? 43 : this.auditLogging.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/UpdateAuditLoggingDestinationResponse.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/UpdateAuditLoggingDestinationResponse.java new file mode 100644 index 00000000000..096e4351760 --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/UpdateAuditLoggingDestinationResponse.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.responses; + +import com.oracle.bmc.keymanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class UpdateAuditLoggingDestinationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The OCID of the work request. Use GetWorkRequest with this ID to track status. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use GetWorkRequest with this ID to track status. + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The returned AuditLogging instance. + */ + private com.oracle.bmc.keymanagement.model.AuditLogging auditLogging; + + /** + * The returned AuditLogging instance. + * @return the value + */ + public com.oracle.bmc.keymanagement.model.AuditLogging getAuditLogging() { + return auditLogging; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "auditLogging" + }) + private UpdateAuditLoggingDestinationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.keymanagement.model.AuditLogging auditLogging) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.auditLogging = auditLogging; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The OCID of the work request. Use GetWorkRequest with this ID to track status. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use GetWorkRequest with this ID to track status. + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The returned AuditLogging instance. + */ + private com.oracle.bmc.keymanagement.model.AuditLogging auditLogging; + + /** + * The returned AuditLogging instance. + * @param auditLogging the value to set + * @return this builder + */ + public Builder auditLogging(com.oracle.bmc.keymanagement.model.AuditLogging auditLogging) { + this.auditLogging = auditLogging; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateAuditLoggingDestinationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + auditLogging(o.getAuditLogging()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateAuditLoggingDestinationResponse build() { + return new UpdateAuditLoggingDestinationResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + auditLogging); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",auditLogging=").append(String.valueOf(auditLogging)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAuditLoggingDestinationResponse)) { + return false; + } + + UpdateAuditLoggingDestinationResponse other = (UpdateAuditLoggingDestinationResponse) 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.auditLogging, other.auditLogging); + } + + @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.auditLogging == null ? 43 : this.auditLogging.hashCode()); + return result; + } +} diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/UpdateRegisteredVaultForMtlsResponse.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/UpdateRegisteredVaultForMtlsResponse.java new file mode 100644 index 00000000000..93c8bb64b4b --- /dev/null +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/responses/UpdateRegisteredVaultForMtlsResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.keymanagement.responses; + +import com.oracle.bmc.keymanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") +public class UpdateRegisteredVaultForMtlsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned VaultMtlsUpdateResponse instance. + */ + private com.oracle.bmc.keymanagement.model.VaultMtlsUpdateResponse vaultMtlsUpdateResponse; + + /** + * The returned VaultMtlsUpdateResponse instance. + * @return the value + */ + public com.oracle.bmc.keymanagement.model.VaultMtlsUpdateResponse getVaultMtlsUpdateResponse() { + return vaultMtlsUpdateResponse; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "vaultMtlsUpdateResponse" + }) + private UpdateRegisteredVaultForMtlsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.keymanagement.model.VaultMtlsUpdateResponse vaultMtlsUpdateResponse) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.vaultMtlsUpdateResponse = vaultMtlsUpdateResponse; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned VaultMtlsUpdateResponse instance. + */ + private com.oracle.bmc.keymanagement.model.VaultMtlsUpdateResponse vaultMtlsUpdateResponse; + + /** + * The returned VaultMtlsUpdateResponse instance. + * @param vaultMtlsUpdateResponse the value to set + * @return this builder + */ + public Builder vaultMtlsUpdateResponse( + com.oracle.bmc.keymanagement.model.VaultMtlsUpdateResponse + vaultMtlsUpdateResponse) { + this.vaultMtlsUpdateResponse = vaultMtlsUpdateResponse; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateRegisteredVaultForMtlsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + vaultMtlsUpdateResponse(o.getVaultMtlsUpdateResponse()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateRegisteredVaultForMtlsResponse build() { + return new UpdateRegisteredVaultForMtlsResponse( + __httpStatusCode__, headers, etag, opcRequestId, vaultMtlsUpdateResponse); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",vaultMtlsUpdateResponse=").append(String.valueOf(vaultMtlsUpdateResponse)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateRegisteredVaultForMtlsResponse)) { + return false; + } + + UpdateRegisteredVaultForMtlsResponse other = (UpdateRegisteredVaultForMtlsResponse) 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.vaultMtlsUpdateResponse, other.vaultMtlsUpdateResponse); + } + + @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.vaultMtlsUpdateResponse == null + ? 43 + : this.vaultMtlsUpdateResponse.hashCode()); + return result; + } +} diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index e6fc1bcc6b2..ed64c57f575 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-licensemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 65d7fed6f83..7af3780facc 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-limits @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 48599aecb4e..80d82718be5 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseAsyncClient.java b/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseAsyncClient.java index 1351a36d2a3..9308b7f0e48 100644 --- a/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseAsyncClient.java +++ b/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseAsyncClient.java @@ -489,7 +489,7 @@ public void close() { "LimitsIncrease", "CancelLimitsIncreaseItemRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/CancelLimitsIncreaseItemRequest"); final java.util.function.Function< javax.ws.rs.core.Response, CancelLimitsIncreaseItemRequestResponse> transformer = @@ -543,7 +543,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "CancelLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CancelLimitsIncreaseRequest"); final java.util.function.Function< javax.ws.rs.core.Response, CancelLimitsIncreaseRequestResponse> transformer = @@ -595,7 +595,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "CreateLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CreateLimitsIncreaseRequest"); final java.util.function.Function< javax.ws.rs.core.Response, CreateLimitsIncreaseRequestResponse> transformer = @@ -651,7 +651,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "DeleteLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/DeleteLimitsIncreaseRequest"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteLimitsIncreaseRequestResponse> transformer = @@ -702,7 +702,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "GetLimitsIncreaseItemRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/GetLimitsIncreaseItemRequest"); final java.util.function.Function< javax.ws.rs.core.Response, GetLimitsIncreaseItemRequestResponse> transformer = @@ -751,7 +751,7 @@ public java.util.concurrent.Future getLimitsIn "LimitsIncrease", "GetLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/GetLimitsIncreaseRequest"); final java.util.function.Function< javax.ws.rs.core.Response, GetLimitsIncreaseRequestResponse> transformer = @@ -801,7 +801,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "ListLimitsIncreaseItemRequests", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequestCollection/ListLimitsIncreaseItemRequests"); final java.util.function.Function< javax.ws.rs.core.Response, ListLimitsIncreaseItemRequestsResponse> transformer = @@ -853,7 +853,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "ListLimitsIncreaseQuestions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseQuestionCollection/ListLimitsIncreaseQuestions"); final java.util.function.Function< javax.ws.rs.core.Response, ListLimitsIncreaseQuestionsResponse> transformer = @@ -904,7 +904,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "ListLimitsIncreaseRequests", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/ListLimitsIncreaseRequests"); final java.util.function.Function< javax.ws.rs.core.Response, ListLimitsIncreaseRequestsResponse> transformer = @@ -955,7 +955,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "PatchLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/PatchLimitsIncreaseRequest"); final java.util.function.Function< javax.ws.rs.core.Response, PatchLimitsIncreaseRequestResponse> transformer = @@ -1011,7 +1011,7 @@ protected void beforeRetryAction() {} "LimitsIncrease", "UpdateLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/UpdateLimitsIncreaseRequest"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateLimitsIncreaseRequestResponse> transformer = diff --git a/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseClient.java b/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseClient.java index 18a6fbbafe3..1543a12d040 100644 --- a/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseClient.java +++ b/bmc-limitsincrease/src/main/java/com/oracle/bmc/limitsincrease/LimitsIncreaseClient.java @@ -577,7 +577,7 @@ public CancelLimitsIncreaseItemRequestResponse cancelLimitsIncreaseItemRequest( "LimitsIncrease", "CancelLimitsIncreaseItemRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/CancelLimitsIncreaseItemRequest"); java.util.function.Function< javax.ws.rs.core.Response, CancelLimitsIncreaseItemRequestResponse> transformer = @@ -618,7 +618,7 @@ public CancelLimitsIncreaseRequestResponse cancelLimitsIncreaseRequest( "LimitsIncrease", "CancelLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CancelLimitsIncreaseRequest"); java.util.function.Function transformer = CancelLimitsIncreaseRequestConverter.fromResponse( @@ -658,7 +658,7 @@ public CreateLimitsIncreaseRequestResponse createLimitsIncreaseRequest( "LimitsIncrease", "CreateLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CreateLimitsIncreaseRequest"); java.util.function.Function transformer = CreateLimitsIncreaseRequestConverter.fromResponse( @@ -701,7 +701,7 @@ public DeleteLimitsIncreaseRequestResponse deleteLimitsIncreaseRequest( "LimitsIncrease", "DeleteLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/DeleteLimitsIncreaseRequest"); java.util.function.Function transformer = DeleteLimitsIncreaseRequestConverter.fromResponse( @@ -740,7 +740,7 @@ public GetLimitsIncreaseItemRequestResponse getLimitsIncreaseItemRequest( "LimitsIncrease", "GetLimitsIncreaseItemRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/GetLimitsIncreaseItemRequest"); java.util.function.Function transformer = GetLimitsIncreaseItemRequestConverter.fromResponse( @@ -778,7 +778,7 @@ public GetLimitsIncreaseRequestResponse getLimitsIncreaseRequest( "LimitsIncrease", "GetLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/GetLimitsIncreaseRequest"); java.util.function.Function transformer = GetLimitsIncreaseRequestConverter.fromResponse( @@ -816,7 +816,7 @@ public ListLimitsIncreaseItemRequestsResponse listLimitsIncreaseItemRequests( "LimitsIncrease", "ListLimitsIncreaseItemRequests", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequestCollection/ListLimitsIncreaseItemRequests"); java.util.function.Function< javax.ws.rs.core.Response, ListLimitsIncreaseItemRequestsResponse> transformer = @@ -855,7 +855,7 @@ public ListLimitsIncreaseQuestionsResponse listLimitsIncreaseQuestions( "LimitsIncrease", "ListLimitsIncreaseQuestions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseQuestionCollection/ListLimitsIncreaseQuestions"); java.util.function.Function transformer = ListLimitsIncreaseQuestionsConverter.fromResponse( @@ -893,7 +893,7 @@ public ListLimitsIncreaseRequestsResponse listLimitsIncreaseRequests( "LimitsIncrease", "ListLimitsIncreaseRequests", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/ListLimitsIncreaseRequests"); java.util.function.Function transformer = ListLimitsIncreaseRequestsConverter.fromResponse( @@ -931,7 +931,7 @@ public PatchLimitsIncreaseRequestResponse patchLimitsIncreaseRequest( "LimitsIncrease", "PatchLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/PatchLimitsIncreaseRequest"); java.util.function.Function transformer = PatchLimitsIncreaseRequestConverter.fromResponse( @@ -974,7 +974,7 @@ public UpdateLimitsIncreaseRequestResponse updateLimitsIncreaseRequest( "LimitsIncrease", "UpdateLimitsIncreaseRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/UpdateLimitsIncreaseRequest"); java.util.function.Function transformer = UpdateLimitsIncreaseRequestConverter.fromResponse( diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index aa3d9ab0d3b..c0fcc332cac 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 2ab1c605cad..a002c529491 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-lockbox @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index c01070ee2e7..f7cac256bd4 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-loganalytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 2cdb0a637fc..616b59502e8 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-logging @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagement.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagement.java index 2af607f5071..21428b66af4 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagement.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagement.java @@ -63,6 +63,13 @@ public interface LoggingManagement extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Moves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. * For information about moving resources between compartments, see [Moving Resources Between Compartments](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsync.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsync.java index 91674835103..752842dd86e 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsync.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsync.java @@ -62,6 +62,13 @@ public interface LoggingManagementAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Moves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. * For information about moving resources between compartments, see [Moving Resources Between Compartments](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java index e85b7faf8f4..d55cdbe04c1 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java @@ -32,7 +32,9 @@ public class LoggingManagementAsyncClient implements LoggingManagementAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(LoggingManagementClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://logging.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://logging.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("logging") .build(); private static final org.slf4j.Logger LOG = @@ -52,6 +54,7 @@ public class LoggingManagementAsyncClient implements LoggingManagementAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -304,6 +307,9 @@ public LoggingManagementAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -465,6 +471,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementClient.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementClient.java index 10ccba12b14..78e8011bf13 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementClient.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementClient.java @@ -20,7 +20,9 @@ public class LoggingManagementClient implements LoggingManagement { com.oracle.bmc.Services.serviceBuilder() .serviceName(LoggingManagementClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://logging.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://logging.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("logging") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -51,6 +53,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -381,6 +384,9 @@ protected LoggingManagementClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -553,6 +559,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogGroupCompartmentConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogGroupCompartmentConverter.java index 5ec38425360..0ac58960c46 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogGroupCompartmentConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogGroupCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeLogGroupCompartmentDetails(), "changeLogGroupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogLogGroupConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogLogGroupConverter.java index a69ce72fc44..5de2ef4d10e 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogLogGroupConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogLogGroupConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getChangeLogLogGroupDetails(), "changeLogLogGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + requiredParametersMap.put("logId", request.getLogId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogSavedSearchCompartmentConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogSavedSearchCompartmentConverter.java index 9ef40a764be..5c506d7d94f 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogSavedSearchCompartmentConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeLogSavedSearchCompartmentConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeLogSavedSearchCompartmentDetails(), "changeLogSavedSearchCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logSavedSearchId", request.getLogSavedSearchId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logSavedSearches") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeUnifiedAgentConfigurationCompartmentConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeUnifiedAgentConfigurationCompartmentConverter.java index e371c559947..18614e52fa9 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeUnifiedAgentConfigurationCompartmentConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ChangeUnifiedAgentConfigurationCompartmentConverter.java @@ -41,8 +41,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeUnifiedAgentConfigurationCompartmentDetails(), "changeUnifiedAgentConfigurationCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "unifiedAgentConfigurationId", request.getUnifiedAgentConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("unifiedAgentConfigurations") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogConverter.java index 921ef4cf37c..28ac0239164 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); Validate.notNull(request.getCreateLogDetails(), "createLogDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogGroupConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogGroupConverter.java index 9c554cb449a..49f77313b22 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogGroupConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogGroupConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateLogGroupDetails(), "createLogGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("logGroups"); + newBaseTarget.path("/20200531").path("logGroups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogSavedSearchConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogSavedSearchConverter.java index f08e72b3ae3..69d11246ab3 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogSavedSearchConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateLogSavedSearchConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateLogSavedSearchDetails(), "createLogSavedSearchDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("logSavedSearches"); + newBaseTarget.path("/20200531").path("logSavedSearches"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateUnifiedAgentConfigurationConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateUnifiedAgentConfigurationConverter.java index ec313301897..d1414c67c43 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateUnifiedAgentConfigurationConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/CreateUnifiedAgentConfigurationConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateUnifiedAgentConfigurationDetails(), "createUnifiedAgentConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("unifiedAgentConfigurations"); + newBaseTarget.path("/20200531").path("unifiedAgentConfigurations"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogConverter.java index 306260f551c..14a7249631c 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); Validate.notBlank(request.getLogId(), "logId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + requiredParametersMap.put("logId", request.getLogId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogGroupConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogGroupConverter.java index f272cf72369..06ac8bb2064 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogGroupConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogGroupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogSavedSearchConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogSavedSearchConverter.java index 95bc57b3c6f..2c298b25926 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogSavedSearchConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteLogSavedSearchConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getLogSavedSearchId(), "logSavedSearchId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logSavedSearchId", request.getLogSavedSearchId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logSavedSearches") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteUnifiedAgentConfigurationConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteUnifiedAgentConfigurationConverter.java index b1db633cceb..ec1cb71aef9 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteUnifiedAgentConfigurationConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteUnifiedAgentConfigurationConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUnifiedAgentConfigurationId(), "unifiedAgentConfigurationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "unifiedAgentConfigurationId", request.getUnifiedAgentConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("unifiedAgentConfigurations") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteWorkRequestConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteWorkRequestConverter.java index ba8ac088cee..ad0ed4f00db 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteWorkRequestConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/DeleteWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("workRequests") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogConverter.java index e3006326cb6..680d8fb1c42 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); Validate.notBlank(request.getLogId(), "logId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + requiredParametersMap.put("logId", request.getLogId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogGroupConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogGroupConverter.java index 71b01d15a93..9a5ed2657c1 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogGroupConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogGroupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogSavedSearchConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogSavedSearchConverter.java index e6376fe080a..1b1f67a57da 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogSavedSearchConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetLogSavedSearchConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getLogSavedSearchId(), "logSavedSearchId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logSavedSearchId", request.getLogSavedSearchId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logSavedSearches") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetUnifiedAgentConfigurationConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetUnifiedAgentConfigurationConverter.java index 62e15e7b826..b9619d5bb96 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetUnifiedAgentConfigurationConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetUnifiedAgentConfigurationConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUnifiedAgentConfigurationId(), "unifiedAgentConfigurationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "unifiedAgentConfigurationId", request.getUnifiedAgentConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("unifiedAgentConfigurations") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetWorkRequestConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetWorkRequestConverter.java index dcf196f1740..66b07bc1183 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetWorkRequestConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/GetWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("workRequests") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogGroupsConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogGroupsConverter.java index abdec624ba5..b4efd9b3511 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogGroupsConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogGroupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("logGroups"); + newBaseTarget.path("/20200531").path("logGroups"); target = target.queryParam( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogSavedSearchesConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogSavedSearchesConverter.java index e8dbb015641..40d86503a8c 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogSavedSearchesConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogSavedSearchesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("logSavedSearches"); + newBaseTarget.path("/20200531").path("logSavedSearches"); target = target.queryParam( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogsConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogsConverter.java index 295654441e7..6f82d08d56e 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogsConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListLogsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListServicesConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListServicesConverter.java index 636b7d0b975..19caab5631b 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListServicesConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListServicesConverter.java @@ -30,12 +30,21 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.logging.requests.ListServicesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20200531") - .path("v2") - .path("registry") - .path("services"); + newBaseTarget.path("/20200531").path("v2").path("registry").path("services"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListUnifiedAgentConfigurationsConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListUnifiedAgentConfigurationsConverter.java index f11be43d7ea..bcbcac597b8 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListUnifiedAgentConfigurationsConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListUnifiedAgentConfigurationsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("unifiedAgentConfigurations"); + newBaseTarget.path("/20200531").path("unifiedAgentConfigurations"); target = target.queryParam( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestErrorsConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestErrorsConverter.java index e32f6ad2ee3..033dcad6079 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestErrorsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("workRequests") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestLogsConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestLogsConverter.java index 0bc8aeab858..3a8304538c8 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestLogsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("workRequests") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestsConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestsConverter.java index 532e18b6ae2..1d3eec8bb1b 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestsConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/ListWorkRequestsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200531").path("workRequests"); + newBaseTarget.path("/20200531").path("workRequests"); target = target.queryParam( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogConverter.java index f8f5af4f2b6..73929f2a7ee 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getLogId(), "logId must not be blank"); Validate.notNull(request.getUpdateLogDetails(), "updateLogDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + requiredParametersMap.put("logId", request.getLogId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogGroupConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogGroupConverter.java index 6b788d32ae4..7e8690c679a 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogGroupConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogGroupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getLogGroupId(), "logGroupId must not be blank"); Validate.notNull(request.getUpdateLogGroupDetails(), "updateLogGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logGroupId", request.getLogGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logGroups") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogSavedSearchConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogSavedSearchConverter.java index 599fe5a3f30..f99127c8297 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogSavedSearchConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateLogSavedSearchConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateLogSavedSearchDetails(), "updateLogSavedSearchDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logSavedSearchId", request.getLogSavedSearchId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("logSavedSearches") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateUnifiedAgentConfigurationConverter.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateUnifiedAgentConfigurationConverter.java index dbdf72495af..1a48f56fdce 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateUnifiedAgentConfigurationConverter.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/internal/http/UpdateUnifiedAgentConfigurationConverter.java @@ -38,8 +38,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateUnifiedAgentConfigurationDetails(), "updateUnifiedAgentConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "unifiedAgentConfigurationId", request.getUnifiedAgentConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200531") .path("unifiedAgentConfigurations") .path( diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/Log.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/Log.java index 5415e261814..906326708a5 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/Log.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/Log.java @@ -28,6 +28,7 @@ public final class Log extends com.oracle.bmc.http.internal.ExplicitlySetBmcMode "isEnabled", "definedTags", "freeformTags", + "systemTags", "configuration", "lifecycleState", "timeCreated", @@ -44,6 +45,7 @@ public Log( Boolean isEnabled, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, Configuration configuration, LogLifecycleState lifecycleState, java.util.Date timeCreated, @@ -59,6 +61,7 @@ public Log( this.isEnabled = isEnabled; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.configuration = configuration; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; @@ -216,6 +219,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); 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.JsonProperty("configuration") private Configuration configuration; @@ -320,6 +343,7 @@ public Log build() { this.isEnabled, this.definedTags, this.freeformTags, + this.systemTags, this.configuration, this.lifecycleState, this.timeCreated, @@ -358,6 +382,9 @@ public Builder copy(Log model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("configuration")) { this.configuration(model.getConfiguration()); } @@ -569,6 +596,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * 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; + } + @com.fasterxml.jackson.annotation.JsonProperty("configuration") private final Configuration configuration; @@ -668,6 +713,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", configuration=").append(String.valueOf(this.configuration)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -696,6 +742,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.configuration, other.configuration) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -717,6 +764,7 @@ public int hashCode() { result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.configuration == null ? 43 : this.configuration.hashCode()); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroup.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroup.java index a232a1c599e..d857e7ab15a 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroup.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroup.java @@ -27,6 +27,7 @@ public final class LogGroup extends com.oracle.bmc.http.internal.ExplicitlySetBm "lifecycleState", "definedTags", "freeformTags", + "systemTags", "timeCreated", "timeLastModified" }) @@ -38,6 +39,7 @@ public LogGroup( LogGroupLifecycleState lifecycleState, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.Date timeLastModified) { super(); @@ -48,6 +50,7 @@ public LogGroup( this.lifecycleState = lifecycleState; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.timeLastModified = timeLastModified; } @@ -185,6 +188,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); 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; + } /** * Time the resource was created. **/ @@ -231,6 +254,7 @@ public LogGroup build() { this.lifecycleState, this.definedTags, this.freeformTags, + this.systemTags, this.timeCreated, this.timeLastModified); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -262,6 +286,9 @@ public Builder copy(LogGroup model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -399,6 +426,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * 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; + } + /** * Time the resource was created. **/ @@ -448,6 +493,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); sb.append(")"); @@ -471,6 +517,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) && super.equals(other); @@ -491,6 +538,7 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroupSummary.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroupSummary.java index dbc1344b1b0..ef39871537f 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroupSummary.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogGroupSummary.java @@ -26,6 +26,7 @@ public final class LogGroupSummary extends com.oracle.bmc.http.internal.Explicit "description", "definedTags", "freeformTags", + "systemTags", "timeCreated", "timeLastModified", "lifecycleState" @@ -37,6 +38,7 @@ public LogGroupSummary( String description, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.Date timeLastModified, LogGroupLifecycleState lifecycleState) { @@ -47,6 +49,7 @@ public LogGroupSummary( this.description = description; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.timeLastModified = timeLastModified; this.lifecycleState = lifecycleState; @@ -169,6 +172,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); 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; + } /** * Time the resource was created. **/ @@ -230,6 +253,7 @@ public LogGroupSummary build() { this.description, this.definedTags, this.freeformTags, + this.systemTags, this.timeCreated, this.timeLastModified, this.lifecycleState); @@ -259,6 +283,9 @@ public Builder copy(LogGroupSummary model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -385,6 +412,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * 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; + } + /** * Time the resource was created. **/ @@ -447,6 +492,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -470,6 +516,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -488,6 +535,7 @@ public int hashCode() { result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearch.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearch.java index 3fa4fedb806..90d76e059a0 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearch.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearch.java @@ -30,6 +30,7 @@ public final class LogSavedSearch extends com.oracle.bmc.http.internal.Explicitl "query", "definedTags", "freeformTags", + "systemTags", "lifecycleState" }) public LogSavedSearch( @@ -42,6 +43,7 @@ public LogSavedSearch( String query, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, LogSavedSearchLifecycleState lifecycleState) { super(); this.id = id; @@ -53,6 +55,7 @@ public LogSavedSearch( this.query = query; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.lifecycleState = lifecycleState; } @@ -223,6 +226,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The state of the LogSavedSearch * @@ -257,6 +280,7 @@ public LogSavedSearch build() { this.query, this.definedTags, this.freeformTags, + this.systemTags, this.lifecycleState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -293,6 +317,9 @@ public Builder copy(LogSavedSearch model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -457,6 +484,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The state of the LogSavedSearch * @@ -496,6 +541,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", query=").append(String.valueOf(this.query)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(")"); return sb.toString(); @@ -520,6 +566,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.query, other.query) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && super.equals(other); } @@ -541,6 +588,7 @@ public int hashCode() { result = (result * PRIME) + (this.query == null ? 43 : this.query.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearchSummary.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearchSummary.java index c3359e80dc9..4097b6437b0 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearchSummary.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSavedSearchSummary.java @@ -33,6 +33,7 @@ public final class LogSavedSearchSummary "query", "definedTags", "freeformTags", + "systemTags", "lifecycleState" }) public LogSavedSearchSummary( @@ -45,6 +46,7 @@ public LogSavedSearchSummary( String query, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, LogSavedSearchLifecycleState lifecycleState) { super(); this.id = id; @@ -56,6 +58,7 @@ public LogSavedSearchSummary( this.query = query; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.lifecycleState = lifecycleState; } @@ -226,6 +229,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The state of the LogSavedSearch * @@ -260,6 +283,7 @@ public LogSavedSearchSummary build() { this.query, this.definedTags, this.freeformTags, + this.systemTags, this.lifecycleState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -296,6 +320,9 @@ public Builder copy(LogSavedSearchSummary model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -460,6 +487,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The state of the LogSavedSearch * @@ -499,6 +544,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", query=").append(String.valueOf(this.query)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(")"); return sb.toString(); @@ -523,6 +569,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.query, other.query) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && super.equals(other); } @@ -544,6 +591,7 @@ public int hashCode() { result = (result * PRIME) + (this.query == null ? 43 : this.query.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSummary.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSummary.java index b9d8d9ff33a..4c15ae1b0f4 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSummary.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/LogSummary.java @@ -29,6 +29,7 @@ public final class LogSummary extends com.oracle.bmc.http.internal.ExplicitlySet "configuration", "definedTags", "freeformTags", + "systemTags", "timeCreated", "timeLastModified", "retentionDuration", @@ -44,6 +45,7 @@ public LogSummary( Configuration configuration, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.Date timeLastModified, Integer retentionDuration, @@ -58,6 +60,7 @@ public LogSummary( this.configuration = configuration; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.timeLastModified = timeLastModified; this.retentionDuration = retentionDuration; @@ -222,6 +225,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); 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; + } /** * Time the resource was created. **/ @@ -302,6 +325,7 @@ public LogSummary build() { this.configuration, this.definedTags, this.freeformTags, + this.systemTags, this.timeCreated, this.timeLastModified, this.retentionDuration, @@ -341,6 +365,9 @@ public Builder copy(LogSummary model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -553,6 +580,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * 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; + } + /** * Time the resource was created. **/ @@ -632,6 +677,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", configuration=").append(String.valueOf(this.configuration)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); sb.append(", retentionDuration=").append(String.valueOf(this.retentionDuration)); @@ -659,6 +705,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.configuration, other.configuration) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) && java.util.Objects.equals(this.retentionDuration, other.retentionDuration) @@ -683,6 +730,7 @@ public int hashCode() { + (this.configuration == null ? 43 : this.configuration.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/OciService.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/OciService.java index 055edab480d..e0ad73e98e6 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/OciService.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/OciService.java @@ -42,13 +42,13 @@ public Builder service(String service) { return this; } /** - * The unique identifier of the resource emitting the log. + * The unique identifier of the resource emitting the log. The resource can be updated, and the resource value can vary depending on the OCI service to which the resource belongs to. **/ @com.fasterxml.jackson.annotation.JsonProperty("resource") private String resource; /** - * The unique identifier of the resource emitting the log. + * The unique identifier of the resource emitting the log. The resource can be updated, and the resource value can vary depending on the OCI service to which the resource belongs to. * @param resource the value to set * @return this builder **/ @@ -74,13 +74,13 @@ public Builder category(String category) { return this; } /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. **/ @com.fasterxml.jackson.annotation.JsonProperty("parameters") private java.util.Map parameters; /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. * @param parameters the value to set * @return this builder **/ @@ -159,13 +159,13 @@ public String getService() { } /** - * The unique identifier of the resource emitting the log. + * The unique identifier of the resource emitting the log. The resource can be updated, and the resource value can vary depending on the OCI service to which the resource belongs to. **/ @com.fasterxml.jackson.annotation.JsonProperty("resource") private final String resource; /** - * The unique identifier of the resource emitting the log. + * The unique identifier of the resource emitting the log. The resource can be updated, and the resource value can vary depending on the OCI service to which the resource belongs to. * @return the value **/ public String getResource() { @@ -187,13 +187,13 @@ public String getCategory() { } /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. **/ @com.fasterxml.jackson.annotation.JsonProperty("parameters") private final java.util.Map parameters; /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. * @return the value **/ public java.util.Map getParameters() { diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/SourceUpdateDetails.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/SourceUpdateDetails.java index 4f608e0e4ec..e3fd8155ade 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/SourceUpdateDetails.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/SourceUpdateDetails.java @@ -30,13 +30,13 @@ public SourceUpdateDetails(java.util.Map parameters) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. **/ @com.fasterxml.jackson.annotation.JsonProperty("parameters") private java.util.Map parameters; /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. * @param parameters the value to set * @return this builder **/ @@ -78,13 +78,13 @@ public Builder toBuilder() { } /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. **/ @com.fasterxml.jackson.annotation.JsonProperty("parameters") private final java.util.Map parameters; /** - * Log category parameters are stored here. + * Log category parameters are stored here. The resource for a service log can't be updated. * @return the value **/ public java.util.Map getParameters() { diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfiguration.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfiguration.java index eebb78eb07b..4a1e0a773b8 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfiguration.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfiguration.java @@ -29,6 +29,7 @@ public final class UnifiedAgentConfiguration "description", "definedTags", "freeformTags", + "systemTags", "timeCreated", "timeLastModified", "lifecycleState", @@ -44,6 +45,7 @@ public UnifiedAgentConfiguration( String description, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.Date timeLastModified, LogLifecycleState lifecycleState, @@ -58,6 +60,7 @@ public UnifiedAgentConfiguration( this.description = description; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.timeLastModified = timeLastModified; this.lifecycleState = lifecycleState; @@ -184,6 +187,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); 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; + } /** * Time the resource was created. **/ @@ -297,6 +320,7 @@ public UnifiedAgentConfiguration build() { this.description, this.definedTags, this.freeformTags, + this.systemTags, this.timeCreated, this.timeLastModified, this.lifecycleState, @@ -330,6 +354,9 @@ public Builder copy(UnifiedAgentConfiguration model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -468,6 +495,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * 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; + } + /** * Time the resource was created. **/ @@ -572,6 +617,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -599,6 +645,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -621,6 +668,7 @@ public int hashCode() { result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfigurationSummary.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfigurationSummary.java index b91b1eceabd..6f4bb338555 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfigurationSummary.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentConfigurationSummary.java @@ -29,6 +29,7 @@ public final class UnifiedAgentConfigurationSummary "description", "definedTags", "freeformTags", + "systemTags", "timeCreated", "timeLastModified", "lifecycleState", @@ -43,6 +44,7 @@ public UnifiedAgentConfigurationSummary( String description, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.Date timeLastModified, LogLifecycleState lifecycleState, @@ -56,6 +58,7 @@ public UnifiedAgentConfigurationSummary( this.description = description; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.timeLastModified = timeLastModified; this.lifecycleState = lifecycleState; @@ -181,6 +184,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); 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; + } /** * Time the resource was created. **/ @@ -291,6 +314,7 @@ public UnifiedAgentConfigurationSummary build() { this.description, this.definedTags, this.freeformTags, + this.systemTags, this.timeCreated, this.timeLastModified, this.lifecycleState, @@ -323,6 +347,9 @@ public Builder copy(UnifiedAgentConfigurationSummary model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -458,6 +485,24 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * 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; + } + /** * Time the resource was created. **/ @@ -562,6 +607,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -588,6 +634,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -609,6 +656,7 @@ public int hashCode() { result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentMonitoringUrlSource.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentMonitoringUrlSource.java index 7838413b51c..5d7d3d10ed8 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentMonitoringUrlSource.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/model/UnifiedAgentMonitoringUrlSource.java @@ -49,13 +49,13 @@ public Builder name(String name) { return this; } /** - * List of UnifiedAgentKubernetesScrapeTarget. + * List of UnifiedAgentUrlScrapeTarget. **/ @com.fasterxml.jackson.annotation.JsonProperty("scrapeTargets") private java.util.List scrapeTargets; /** - * List of UnifiedAgentKubernetesScrapeTarget. + * List of UnifiedAgentUrlScrapeTarget. * @param scrapeTargets the value to set * @return this builder **/ @@ -115,13 +115,13 @@ public String getName() { } /** - * List of UnifiedAgentKubernetesScrapeTarget. + * List of UnifiedAgentUrlScrapeTarget. **/ @com.fasterxml.jackson.annotation.JsonProperty("scrapeTargets") private final java.util.List scrapeTargets; /** - * List of UnifiedAgentKubernetesScrapeTarget. + * List of UnifiedAgentUrlScrapeTarget. * @return the value **/ public java.util.List getScrapeTargets() { diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogGroupsRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogGroupsRequest.java index d3151e98b15..fac5091f1f8 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogGroupsRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogGroupsRequest.java @@ -64,13 +64,13 @@ public String getPage() { return page; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -271,13 +271,13 @@ public Builder page(String page) { } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogSavedSearchesRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogSavedSearchesRequest.java index 6e6c5d85976..0bc5c12e944 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogSavedSearchesRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogSavedSearchesRequest.java @@ -67,13 +67,13 @@ public String getPage() { return page; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -276,13 +276,13 @@ public Builder page(String page) { } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogsRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogsRequest.java index afc6816c0c9..f7ca3ee72bb 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogsRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListLogsRequest.java @@ -129,13 +129,13 @@ public String getPage() { return page; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -377,13 +377,13 @@ public Builder page(String page) { } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListServicesRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListServicesRequest.java index 7211fb848f7..8a9c2f74ae4 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListServicesRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListServicesRequest.java @@ -11,6 +11,21 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200531") public class ListServicesRequest extends com.oracle.bmc.requests.BmcRequest { + /** + * Compartment OCID to list resources in. Please see compartmentIdInSubtree + * for nested compartments traversal. + * + */ + private String compartmentId; + + /** + * Compartment OCID to list resources in. Please see compartmentIdInSubtree + * for nested compartments traversal. + * + */ + public String getCompartmentId() { + return compartmentId; + } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about * a particular request, please provide the request ID. @@ -34,6 +49,25 @@ public static class Builder invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + /** + * Compartment OCID to list resources in. Please see compartmentIdInSubtree + * for nested compartments traversal. + * + */ + private String compartmentId = null; + + /** + * Compartment OCID to list resources in. Please see compartmentIdInSubtree + * for nested compartments traversal. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about * a particular request, please provide the request ID. @@ -81,6 +115,7 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ListServicesRequest o) { + compartmentId(o.getCompartmentId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -114,9 +149,10 @@ public ListServicesRequest build() { */ public ListServicesRequest buildWithoutInvocationCallback() { ListServicesRequest request = new ListServicesRequest(); + request.compartmentId = compartmentId; request.opcRequestId = opcRequestId; return request; - // new ListServicesRequest(opcRequestId); + // new ListServicesRequest(compartmentId, opcRequestId); } } @@ -125,7 +161,7 @@ public ListServicesRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().opcRequestId(opcRequestId); + return new Builder().compartmentId(compartmentId).opcRequestId(opcRequestId); } /** @@ -141,6 +177,7 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -156,13 +193,18 @@ public boolean equals(Object o) { } ListServicesRequest other = (ListServicesRequest) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListUnifiedAgentConfigurationsRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListUnifiedAgentConfigurationsRequest.java index 74b1d02a151..8415380c5bc 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListUnifiedAgentConfigurationsRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListUnifiedAgentConfigurationsRequest.java @@ -85,13 +85,13 @@ public com.oracle.bmc.logging.model.LogLifecycleState getLifecycleState() { return lifecycleState; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -336,13 +336,13 @@ public Builder lifecycleState( } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestErrorsRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestErrorsRequest.java index eb554c0685d..8063e09320b 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestErrorsRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestErrorsRequest.java @@ -54,13 +54,13 @@ public String getPage() { return page; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -128,13 +128,13 @@ public Builder page(String page) { } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestLogsRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestLogsRequest.java index be38ce9526f..95ec345f46d 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestLogsRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestLogsRequest.java @@ -53,13 +53,13 @@ public String getPage() { return page; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -127,13 +127,13 @@ public Builder page(String page) { } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestsRequest.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestsRequest.java index b4395708168..c9c97bef2f9 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestsRequest.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/requests/ListWorkRequestsRequest.java @@ -81,13 +81,13 @@ public String getPage() { return page; } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ public Integer getLimit() { @@ -292,13 +292,13 @@ public Builder page(String page) { } /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * */ private Integer limit = null; /** - * The maximum number of items to return in a paginated "List" call. + * When setting the page limit, specifies the maximum number of unfiltered records that can be fetched from the data store in one request. Filtering happens after the records are retrieved. Subsequent pages might include results that match the query criteria. * * @param limit the value to set * @return this builder instance diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 42ed17250d9..f20a3924f6e 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-loggingingestion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/Logging.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/Logging.java index 0a59ec939d8..bb16dda4a84 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/Logging.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/Logging.java @@ -8,7 +8,7 @@ import com.oracle.bmc.loggingingestion.responses.*; /** - * Use the Logging Ingestion API to ingest your application logs. + * Use the Logging Ingestion API to ingest your application logs. For more information, see [Logging Overview](https://docs.oracle.com/iaas/Content/Logging/Concepts/loggingoverview.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200831") @@ -59,6 +59,13 @@ public interface Logging extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * This API allows ingesting logs associated with a logId. A success * response implies the data has been accepted. diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsync.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsync.java index a3b612b1a17..55bec577711 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsync.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.loggingingestion.responses.*; /** - * Use the Logging Ingestion API to ingest your application logs. + * Use the Logging Ingestion API to ingest your application logs. For more information, see [Logging Overview](https://docs.oracle.com/iaas/Content/Logging/Concepts/loggingoverview.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200831") public interface LoggingAsync extends AutoCloseable { @@ -58,6 +58,13 @@ public interface LoggingAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * This API allows ingesting logs associated with a logId. A success * response implies the data has been accepted. diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java index 3a34d97151d..ee8760c9f01 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java @@ -33,7 +33,7 @@ public class LoggingAsyncClient implements LoggingAsync { .serviceName(LoggingClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://ingestion.logging.{region}.oci.{secondLevelDomain}") + "https://ingestion.logging.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +53,7 @@ public class LoggingAsyncClient implements LoggingAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +306,9 @@ public LoggingAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -465,6 +469,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingClient.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingClient.java index 9edb2c31669..eef733b2d32 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingClient.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingClient.java @@ -21,7 +21,7 @@ public class LoggingClient implements Logging { .serviceName(LoggingClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://ingestion.logging.{region}.oci.{secondLevelDomain}") + "https://ingestion.logging.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -49,6 +49,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -318,6 +319,9 @@ protected LoggingClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -477,6 +481,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/internal/http/PutLogsConverter.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/internal/http/PutLogsConverter.java index c69c0543a15..d886c8ff623 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/internal/http/PutLogsConverter.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/internal/http/PutLogsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getLogId(), "logId must not be blank"); Validate.notNull(request.getPutLogsDetails(), "putLogsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("logId", request.getLogId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200831") .path("logs") .path( diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/model/LogEntry.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/model/LogEntry.java index cb5c51088ca..8c60c343404 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/model/LogEntry.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/model/LogEntry.java @@ -6,7 +6,7 @@ /** * Contains the log content with the associated timestamp and ID. Each - * entry should be less than 1 MB size. + * entry should be less than 1 MB size. Any log data field cannot be more than 10,000 characters. If your data exceeds this limit, the field is truncated during ingestion. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 2fe222921d6..c7bd836d017 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-loggingsearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearch.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearch.java index 7a68bbb3acb..d9bc4509205 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearch.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearch.java @@ -8,7 +8,7 @@ import com.oracle.bmc.loggingsearch.responses.*; /** - * Search for logs in your compartments, log groups, and log objects. + * Use the Logging Search API to search for logs in your compartments, log groups, and log objects. For more information, see [Logging Overview](https://docs.oracle.com/iaas/Content/Logging/Concepts/loggingoverview.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190909") @@ -59,6 +59,13 @@ public interface LogSearch extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Submit a query to search logs. *

diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsync.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsync.java index f44363fe53a..3e73b6c21e0 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsync.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.loggingsearch.responses.*; /** - * Search for logs in your compartments, log groups, and log objects. + * Use the Logging Search API to search for logs in your compartments, log groups, and log objects. For more information, see [Logging Overview](https://docs.oracle.com/iaas/Content/Logging/Concepts/loggingoverview.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190909") public interface LogSearchAsync extends AutoCloseable { @@ -58,6 +58,13 @@ public interface LogSearchAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Submit a query to search logs. *

diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java index ca7d65ccb89..8d690eeea81 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java @@ -32,7 +32,8 @@ public class LogSearchAsyncClient implements LogSearchAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(LogSearchClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://logging.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://logging.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -52,6 +53,7 @@ public class LogSearchAsyncClient implements LogSearchAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -304,6 +306,9 @@ public LogSearchAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -464,6 +469,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchClient.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchClient.java index 313a7182196..82bfa88b0a6 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchClient.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchClient.java @@ -20,7 +20,8 @@ public class LogSearchClient implements LogSearch { com.oracle.bmc.Services.serviceBuilder() .serviceName(LogSearchClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://logging.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://logging.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -48,6 +49,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -317,6 +319,9 @@ protected LogSearchClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -476,6 +481,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/internal/http/SearchLogsConverter.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/internal/http/SearchLogsConverter.java index 4be4e35009b..68d218b886a 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/internal/http/SearchLogsConverter.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/internal/http/SearchLogsConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getSearchLogsDetails(), "searchLogsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20190909").path("search"); + newBaseTarget.path("/20190909").path("search"); if (request.getLimit() != null) { target = diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/model/SearchLogsDetails.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/model/SearchLogsDetails.java index d7c90a47f09..de9082925f9 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/model/SearchLogsDetails.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/model/SearchLogsDetails.java @@ -37,14 +37,14 @@ public SearchLogsDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Start filter log's date and time, in the format defined by RFC3339. + * Start filter log's date and time, in the format defined by RFC 3339. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeStart") private java.util.Date timeStart; /** - * Start filter log's date and time, in the format defined by RFC3339. + * Start filter log's date and time, in the format defined by RFC 3339. * * @param timeStart the value to set * @return this builder @@ -55,14 +55,14 @@ public Builder timeStart(java.util.Date timeStart) { return this; } /** - * End filter log's date and time, in the format defined by RFC3339. + * End filter log's date and time, in the format defined by RFC 3339. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeEnd") private java.util.Date timeEnd; /** - * End filter log's date and time, in the format defined by RFC3339. + * End filter log's date and time, in the format defined by RFC 3339. * * @param timeEnd the value to set * @return this builder @@ -156,14 +156,14 @@ public Builder toBuilder() { } /** - * Start filter log's date and time, in the format defined by RFC3339. + * Start filter log's date and time, in the format defined by RFC 3339. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeStart") private final java.util.Date timeStart; /** - * Start filter log's date and time, in the format defined by RFC3339. + * Start filter log's date and time, in the format defined by RFC 3339. * * @return the value **/ @@ -172,14 +172,14 @@ public java.util.Date getTimeStart() { } /** - * End filter log's date and time, in the format defined by RFC3339. + * End filter log's date and time, in the format defined by RFC 3339. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeEnd") private final java.util.Date timeEnd; /** - * End filter log's date and time, in the format defined by RFC3339. + * End filter log's date and time, in the format defined by RFC 3339. * * @return the value **/ diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/requests/SearchLogsRequest.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/requests/SearchLogsRequest.java index 3a80d2bc532..6ef0571802c 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/requests/SearchLogsRequest.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/requests/SearchLogsRequest.java @@ -27,28 +27,28 @@ public com.oracle.bmc.loggingsearch.model.SearchLogsDetails getSearchLogsDetails return searchLogsDetails; } /** - * 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. The input value can be null but an empty string will return an error. + * If you need to contact Oracle about a particular request, please provide the request ID. * */ private 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. The input value can be null but an empty string will return an error. + * If you need to contact Oracle about a particular request, please provide the request ID. * */ public String getOpcRequestId() { return opcRequestId; } /** - * The maximum number of items to return in a response. Pagination is not supported in this API. + * The maximum number of items to return in a response. * */ private Integer limit; /** - * The maximum number of items to return in a response. Pagination is not supported in this API. + * The maximum number of items to return in a response. * */ public Integer getLimit() { @@ -56,6 +56,7 @@ public Integer getLimit() { } /** * For list pagination. The value of the opc-next-page response header from the previous "Search" call. + * The input value can be null but an empty string will return an error. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ @@ -63,6 +64,7 @@ public Integer getLimit() { /** * For list pagination. The value of the opc-next-page response header from the previous "Search" call. + * The input value can be null but an empty string will return an error. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ @@ -106,15 +108,15 @@ public Builder searchLogsDetails( } /** - * 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. The input value can be null but an empty string will return an error. + * If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - * a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. The input value can be null but an empty string will return an error. + * 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 @@ -125,13 +127,13 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The maximum number of items to return in a response. Pagination is not supported in this API. + * The maximum number of items to return in a response. * */ private Integer limit = null; /** - * The maximum number of items to return in a response. Pagination is not supported in this API. + * The maximum number of items to return in a response. * * @param limit the value to set * @return this builder instance @@ -143,6 +145,7 @@ public Builder limit(Integer limit) { /** * For list pagination. The value of the opc-next-page response header from the previous "Search" call. + * The input value can be null but an empty string will return an error. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ @@ -150,6 +153,7 @@ public Builder limit(Integer limit) { /** * For list pagination. The value of the opc-next-page response header from the previous "Search" call. + * The input value can be null but an empty string will return an error. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param page the value to set diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 31d920150f7..31e4c718a70 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 20c37315bba..1045a71b014 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index e495812e8c2..10c53c6ba8a 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-managementagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgent.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgent.java index 126d95a0708..1b3d95340c8 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgent.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgent.java @@ -61,6 +61,13 @@ public interface ManagementAgent extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Datasource creation request to given Management Agent. * @@ -352,7 +359,7 @@ ListManagementAgentPluginsResponse listManagementAgentPlugins( /** * Returns a list of Management Agents. - * If no explicit page size limit is specified, it will default to 1000 when compartmentIdInSubtree is true and 5000 otherwise. + * If no explicit page size limit is specified, it will default to 1000. * The response is limited to maximum 1000 records when compartmentIdInSubtree is true. * * @param request The request object containing the details to send diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsync.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsync.java index 4c401ba3a3f..632d83d5949 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsync.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsync.java @@ -60,6 +60,13 @@ public interface ManagementAgentAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Datasource creation request to given Management Agent. * @@ -434,7 +441,7 @@ java.util.concurrent.Future listManagementAg /** * Returns a list of Management Agents. - * If no explicit page size limit is specified, it will default to 1000 when compartmentIdInSubtree is true and 5000 otherwise. + * If no explicit page size limit is specified, it will default to 1000. * The response is limited to maximum 1000 records when compartmentIdInSubtree is true. * * diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java index d991b1af055..cfa283b8fb4 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java @@ -33,7 +33,8 @@ public class ManagementAgentAsyncClient implements ManagementAgentAsync { .serviceName(ManagementAgentClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://management-agent.{region}.oci.{secondLevelDomain}") + "https://management-agent.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("management-agent") .build(); private static final org.slf4j.Logger LOG = @@ -53,6 +54,7 @@ public class ManagementAgentAsyncClient implements ManagementAgentAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -305,6 +307,9 @@ public ManagementAgentAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -471,6 +476,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentClient.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentClient.java index 5b3e991f8c1..9f5fcd10089 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentClient.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentClient.java @@ -21,7 +21,8 @@ public class ManagementAgentClient implements ManagementAgent { .serviceName(ManagementAgentClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://management-agent.{region}.oci.{secondLevelDomain}") + "https://management-agent.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") + .endpointServiceName("management-agent") .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; @@ -52,6 +53,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -382,6 +384,9 @@ protected ManagementAgentClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -559,6 +564,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateDataSourceConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateDataSourceConverter.java index bfd6ad6e50f..9d3dbd8156d 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateDataSourceConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateDataSourceConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateDataSourceDetails(), "createDataSourceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateManagementAgentInstallKeyConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateManagementAgentInstallKeyConverter.java index 78e114cf46c..6215a13ea82 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateManagementAgentInstallKeyConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateManagementAgentInstallKeyConverter.java @@ -36,8 +36,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateManagementAgentInstallKeyDetails(), "createManagementAgentInstallKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgentInstallKeys"); + newBaseTarget.path("/20200202").path("managementAgentInstallKeys"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateNamedCredentialConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateNamedCredentialConverter.java index cd4b58b8bb4..524c83e82c5 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateNamedCredentialConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/CreateNamedCredentialConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateNamedCredentialDetails(), "createNamedCredentialDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("namedCredentials"); + newBaseTarget.path("/20200202").path("namedCredentials"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteDataSourceConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteDataSourceConverter.java index fb0c808502a..f5d7fe94326 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteDataSourceConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteDataSourceConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getManagementAgentId(), "managementAgentId must not be blank"); Validate.notBlank(request.getDataSourceKey(), "dataSourceKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + requiredParametersMap.put("dataSourceKey", request.getDataSourceKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentConverter.java index 538260382d4..2b8001c7264 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getManagementAgentId(), "managementAgentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentInstallKeyConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentInstallKeyConverter.java index 1a2c9227d35..2c6b35495a6 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentInstallKeyConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteManagementAgentInstallKeyConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getManagementAgentInstallKeyId(), "managementAgentInstallKeyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "managementAgentInstallKeyId", request.getManagementAgentInstallKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgentInstallKeys") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteNamedCredentialConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteNamedCredentialConverter.java index 371f43547c9..0e3d9c38274 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteNamedCredentialConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteNamedCredentialConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namedCredentialId", request.getNamedCredentialId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("namedCredentials") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteWorkRequestConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteWorkRequestConverter.java index 00989e07db8..92524202002 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteWorkRequestConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeleteWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("workRequests") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeployPluginsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeployPluginsConverter.java index e882b0e83dc..a34cb52eea9 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeployPluginsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/DeployPluginsConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getDeployPluginsDetails(), "deployPluginsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path("actions") diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetAutoUpgradableConfigConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetAutoUpgradableConfigConverter.java index fb05a42fb7e..3484a5c8c12 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetAutoUpgradableConfigConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetAutoUpgradableConfigConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path("actions") diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetDataSourceConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetDataSourceConverter.java index b8c72396ef7..385ecb236ab 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetDataSourceConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetDataSourceConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getManagementAgentId(), "managementAgentId must not be blank"); Validate.notBlank(request.getDataSourceKey(), "dataSourceKey must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + requiredParametersMap.put("dataSourceKey", request.getDataSourceKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentConverter.java index c135ece32e5..0848ab927b8 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getManagementAgentId(), "managementAgentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyContentConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyContentConverter.java index 03ed7baa16d..5f3ea2efb2d 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyContentConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyContentConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getManagementAgentInstallKeyId(), "managementAgentInstallKeyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "managementAgentInstallKeyId", request.getManagementAgentInstallKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgentInstallKeys") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyConverter.java index 536d334d63c..04333e35239 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetManagementAgentInstallKeyConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getManagementAgentInstallKeyId(), "managementAgentInstallKeyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "managementAgentInstallKeyId", request.getManagementAgentInstallKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgentInstallKeys") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialConverter.java index 5602e4ed203..83bbad02334 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namedCredentialId", request.getNamedCredentialId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("namedCredentials") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialsMetadatumConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialsMetadatumConverter.java index d22480b9e12..a0fe9d5c1c4 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialsMetadatumConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetNamedCredentialsMetadatumConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path("namedCredentialsMetadata"); diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetWorkRequestConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetWorkRequestConverter.java index bb7052c6fd8..ee8585de23d 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetWorkRequestConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/GetWorkRequestConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("workRequests") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListAvailabilityHistoriesConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListAvailabilityHistoriesConverter.java index a0b6927dae1..b0b99e5b682 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListAvailabilityHistoriesConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListAvailabilityHistoriesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getManagementAgentId(), "managementAgentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListDataSourcesConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListDataSourcesConverter.java index c3e109ff461..f730617663c 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListDataSourcesConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListDataSourcesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getManagementAgentId(), "managementAgentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentImagesConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentImagesConverter.java index 0ce246aa9b3..df4801d52ce 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentImagesConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentImagesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgentImages"); + newBaseTarget.path("/20200202").path("managementAgentImages"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentInstallKeysConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentInstallKeysConverter.java index d73bc3ccb1f..296329aea2f 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentInstallKeysConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentInstallKeysConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgentInstallKeys"); + newBaseTarget.path("/20200202").path("managementAgentInstallKeys"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentPluginsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentPluginsConverter.java index 97672ac095b..a02cfa314b5 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentPluginsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentPluginsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgentPlugins"); + newBaseTarget.path("/20200202").path("managementAgentPlugins"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentsConverter.java index b7ed01059ee..ab2586d36e5 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListManagementAgentsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgents"); + newBaseTarget.path("/20200202").path("managementAgents"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListNamedCredentialsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListNamedCredentialsConverter.java index f8be716a2f4..d9b33f7017b 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListNamedCredentialsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListNamedCredentialsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getManagementAgentId(), "managementAgentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("namedCredentials"); + newBaseTarget.path("/20200202").path("namedCredentials"); if (request.getPage() != null) { target = diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestErrorsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestErrorsConverter.java index e286836d008..2a1f1fcc5a6 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestErrorsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("workRequests") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestLogsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestLogsConverter.java index e39a1a911aa..feabf46067f 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestLogsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("workRequestId", request.getWorkRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("workRequests") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestsConverter.java index a46562e1d0b..e86801d8588 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/ListWorkRequestsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("workRequests"); + newBaseTarget.path("/20200202").path("workRequests"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SetAutoUpgradableConfigConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SetAutoUpgradableConfigConverter.java index f4340226d3a..e7fe23da6ad 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SetAutoUpgradableConfigConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SetAutoUpgradableConfigConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSetAutoUpgradableConfigDetails(), "setAutoUpgradableConfigDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path("actions") diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentCountsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentCountsConverter.java index cb9b1ee4d0e..e8236941d58 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentCountsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentCountsConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notNull(request.getGroupBy(), "groupBy is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("groupBy", request.getGroupBy()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgentCounts"); + newBaseTarget.path("/20200202").path("managementAgentCounts"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentPluginCountsConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentPluginCountsConverter.java index 80b18c40886..22602c3ca9a 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentPluginCountsConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/SummarizeManagementAgentPluginCountsConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notNull(request.getGroupBy(), "groupBy is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("groupBy", request.getGroupBy()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20200202").path("managementAgentPluginCounts"); + newBaseTarget.path("/20200202").path("managementAgentPluginCounts"); target = target.queryParam( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateDataSourceConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateDataSourceConverter.java index 7371b12539a..3a551b70281 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateDataSourceConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateDataSourceConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateDataSourceDetails(), "updateDataSourceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + requiredParametersMap.put("dataSourceKey", request.getDataSourceKey()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentConverter.java index 98333ae395e..d0fe0989336 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateManagementAgentDetails(), "updateManagementAgentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("managementAgentId", request.getManagementAgentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgents") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentInstallKeyConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentInstallKeyConverter.java index b29b46f48d0..b424d372388 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentInstallKeyConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateManagementAgentInstallKeyConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateManagementAgentInstallKeyDetails(), "updateManagementAgentInstallKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "managementAgentInstallKeyId", request.getManagementAgentInstallKeyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("managementAgentInstallKeys") .path( diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateNamedCredentialConverter.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateNamedCredentialConverter.java index 22733b27bb8..4d71a90099e 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateNamedCredentialConverter.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/internal/http/UpdateNamedCredentialConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateNamedCredentialDetails(), "updateNamedCredentialDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namedCredentialId", request.getNamedCredentialId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20200202") .path("namedCredentials") .path( diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 97d2abdfde7..05171244ecc 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-managementdashboard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 27e67fdb230..8dbb88a3792 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-marketplace @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index e6f6bd27de6..7a15931e656 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 9c2f4cc9ac4..0a616da2890 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index f0de3972186..559ddeaac14 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-mediaservices @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 10a0c5cb936..5bf6fbc1ee0 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index cf7087c982e..c96e3fb0c40 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 81e32fbea0f..d45193b065c 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-monitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 3d977ec6f59..6396098d67f 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Metadata.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Metadata.java index f26bb3ae061..879ec08a7cc 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Metadata.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Metadata.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") @@ -74,7 +74,13 @@ ListExternalLocationDetailsMetadataResponse listExternalLocationDetailsMetadata( ListExternalLocationDetailsMetadataRequest request); /** - * List externalLocation metadata from OCI to the Cloud Service Provider for regions, Physical Availability Zones. + * List mapped partner cloud regions and zones across cloud service providers + * for the specified Multicloud base compartment and subscription service name. + * Each mapping includes the OCI region, logical availability domain, and physical availability domain, + * along with mapped partner cloud details that depend on the partner cloud. + * For example, Azure includes a logical zone while AWS doesn't. + * For more information, see + * [Cross-Cloud Region-Zone Mapping](https://docs.oracle.com/iaas/Content/multicloud-hub/view-cloud-mapping.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MetadataAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MetadataAsync.java index cd455615621..6ac1161012b 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MetadataAsync.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MetadataAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") public interface MetadataAsync extends AutoCloseable { @@ -78,7 +78,13 @@ public interface MetadataAsync extends AutoCloseable { handler); /** - * List externalLocation metadata from OCI to the Cloud Service Provider for regions, Physical Availability Zones. + * List mapped partner cloud regions and zones across cloud service providers + * for the specified Multicloud base compartment and subscription service name. + * Each mapping includes the OCI region, logical availability domain, and physical availability domain, + * along with mapped partner cloud details that depend on the partner cloud. + * For example, Azure includes a logical zone while AWS doesn't. + * For more information, see + * [Cross-Cloud Region-Zone Mapping](https://docs.oracle.com/iaas/Content/multicloud-hub/view-cloud-mapping.htm). * * * @param request The request object containing the details to send diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadata.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadata.java index 0f38a09d4b6..df32ce3e813 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadata.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadata.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") @@ -60,8 +60,10 @@ public interface MultiCloudsMetadata extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about the Multicloud base compartment for a given tenancy Id. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * Gets details for Multicloud metadata for the specified Multicloud subscription. + * Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment). + * For more information, see + * [Getting Details for Multicloud Metadata](https://docs.oracle.com/iaas/Content/multicloud-hub/get-subscription-metadata.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -74,8 +76,10 @@ public interface MultiCloudsMetadata extends AutoCloseable { GetMultiCloudMetadataResponse getMultiCloudMetadata(GetMultiCloudMetadataRequest request); /** - * Gets a list of multicloud metadata with pairs of Multicloud base compartment and subscription across Cloud Service Providers from a tenancy Id. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * Lists Multicloud metadata for Multicloud subscriptions in the specified compartment. + * Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment). + * For more information, see + * [Listing Multicloud Metadata for a Subscription](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscription-metadata.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadataAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadataAsync.java index 0a8d52e61e9..b780de34582 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadataAsync.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MultiCloudsMetadataAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") public interface MultiCloudsMetadataAsync extends AutoCloseable { @@ -59,8 +59,10 @@ public interface MultiCloudsMetadataAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about the Multicloud base compartment for a given tenancy Id. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * Gets details for Multicloud metadata for the specified Multicloud subscription. + * Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment). + * For more information, see + * [Getting Details for Multicloud Metadata](https://docs.oracle.com/iaas/Content/multicloud-hub/get-subscription-metadata.htm). * * * @param request The request object containing the details to send @@ -77,8 +79,10 @@ java.util.concurrent.Future getMultiCloudMetadata handler); /** - * Gets a list of multicloud metadata with pairs of Multicloud base compartment and subscription across Cloud Service Providers from a tenancy Id. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * Lists Multicloud metadata for Multicloud subscriptions in the specified compartment. + * Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment). + * For more information, see + * [Listing Multicloud Metadata for a Subscription](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscription-metadata.htm). * * * @param request The request object containing the details to send diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlerts.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlerts.java new file mode 100644 index 00000000000..fcee564ead2 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlerts.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; + +/** + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public interface MulticloudAlerts extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets a list of Multicloud Alerts for a given root compartment. + * Optional query parameters can be used to filter alerts by resource, + * subscription, severity, lifecycle state, and alert status. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListMulticloudAlerts API. + */ + ListMulticloudAlertsResponse listMulticloudAlerts(ListMulticloudAlertsRequest request); + + /** + * Gets the pre-configured paginators available for list operations in this service which may return multiple + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + MulticloudAlertsPaginators getPaginators(); +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsAsync.java new file mode 100644 index 00000000000..57c113a3f81 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsAsync.java @@ -0,0 +1,79 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; + +/** + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public interface MulticloudAlertsAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets a list of Multicloud Alerts for a given root compartment. + * Optional query parameters can be used to filter alerts by resource, + * subscription, severity, lifecycle state, and alert status. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listMulticloudAlerts( + ListMulticloudAlertsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse> + handler); +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsAsyncClient.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsAsyncClient.java new file mode 100644 index 00000000000..77066fe0e55 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsAsyncClient.java @@ -0,0 +1,519 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.internal.http.*; +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for MulticloudAlerts 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: 20180828") +public class MulticloudAlertsAsyncClient implements MulticloudAlertsAsync { + /** + * Service instance for MulticloudAlerts. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(MulticloudAlertsClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://multicloud.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MulticloudAlertsAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + 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 MulticloudAlertsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, MulticloudAlertsAsyncClient> { + 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 MulticloudAlertsAsyncClient 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 MulticloudAlertsAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future listMulticloudAlerts( + ListMulticloudAlertsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse> + handler) { + LOG.trace("Called async listMulticloudAlerts"); + final ListMulticloudAlertsRequest interceptedRequest = + ListMulticloudAlertsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMulticloudAlertsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MulticloudAlerts", + "ListMulticloudAlerts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/multicloud-omhub-cp/20180828/MulticloudAlertCollection/ListMulticloudAlerts"); + final java.util.function.Function + transformer = + ListMulticloudAlertsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse>, + 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< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsClient.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsClient.java new file mode 100644 index 00000000000..cbfa6f7af04 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsClient.java @@ -0,0 +1,528 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.internal.http.*; +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class MulticloudAlertsClient implements MulticloudAlerts { + /** + * Service instance for MulticloudAlerts. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(MulticloudAlertsClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://multicloud.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MulticloudAlertsClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final MulticloudAlertsPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public MulticloudAlertsClient( + 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 MulticloudAlertsClient( + 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 MulticloudAlertsClient( + 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 MulticloudAlertsClient( + 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 MulticloudAlertsClient( + 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 MulticloudAlertsClient( + 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 MulticloudAlertsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected MulticloudAlertsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + this.paginators = new MulticloudAlertsPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public MulticloudAlertsClient 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 MulticloudAlertsClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ListMulticloudAlertsResponse listMulticloudAlerts(ListMulticloudAlertsRequest request) { + LOG.trace("Called listMulticloudAlerts"); + final ListMulticloudAlertsRequest interceptedRequest = + ListMulticloudAlertsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMulticloudAlertsConverter.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( + "MulticloudAlerts", + "ListMulticloudAlerts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/multicloud-omhub-cp/20180828/MulticloudAlertCollection/ListMulticloudAlerts"); + java.util.function.Function + transformer = + ListMulticloudAlertsConverter.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 MulticloudAlertsPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsPaginators.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsPaginators.java new file mode 100644 index 00000000000..0436520a5e5 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudAlertsPaginators.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of MulticloudAlerts 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: 20180828") +public class MulticloudAlertsPaginators { + private final MulticloudAlerts client; + + public MulticloudAlertsPaginators(MulticloudAlerts client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listMulticloudAlerts 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 listMulticloudAlertsResponseIterator( + final ListMulticloudAlertsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMulticloudAlertsRequest.Builder, ListMulticloudAlertsRequest, + ListMulticloudAlertsResponse>( + new java.util.function.Supplier() { + @Override + public ListMulticloudAlertsRequest.Builder get() { + return ListMulticloudAlertsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMulticloudAlertsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudAlertsRequest.Builder>, + ListMulticloudAlertsRequest>() { + @Override + public ListMulticloudAlertsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudAlertsRequest.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< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse>() { + @Override + public ListMulticloudAlertsResponse apply(ListMulticloudAlertsRequest request) { + return client.listMulticloudAlerts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.multicloud.model.MulticloudAlertSummary} objects + * contained in responses from the listMulticloudAlerts 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.multicloud.model.MulticloudAlertSummary} objects + * contained in responses received from the service. + */ + public Iterable + listMulticloudAlertsRecordIterator(final ListMulticloudAlertsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMulticloudAlertsRequest.Builder, ListMulticloudAlertsRequest, + ListMulticloudAlertsResponse, + com.oracle.bmc.multicloud.model.MulticloudAlertSummary>( + new java.util.function.Supplier() { + @Override + public ListMulticloudAlertsRequest.Builder get() { + return ListMulticloudAlertsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMulticloudAlertsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudAlertsRequest.Builder>, + ListMulticloudAlertsRequest>() { + @Override + public ListMulticloudAlertsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudAlertsRequest.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< + ListMulticloudAlertsRequest, ListMulticloudAlertsResponse>() { + @Override + public ListMulticloudAlertsResponse apply(ListMulticloudAlertsRequest request) { + return client.listMulticloudAlerts(request); + } + }, + new java.util.function.Function< + ListMulticloudAlertsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListMulticloudAlertsResponse response) { + return response.getMulticloudAlertCollection().getItems(); + } + }); + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPolicies.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPolicies.java new file mode 100644 index 00000000000..0188cfc156a --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPolicies.java @@ -0,0 +1,83 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; + +/** + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public interface MulticloudPolicies extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets a list of Multicloud IAM Policies. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListMulticloudPolicies API. + */ + ListMulticloudPoliciesResponse listMulticloudPolicies(ListMulticloudPoliciesRequest request); + + /** + * Gets the pre-configured paginators available for list operations in this service which may return multiple + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + MulticloudPoliciesPaginators getPaginators(); +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesAsync.java new file mode 100644 index 00000000000..328db70f07b --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesAsync.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; + +/** + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public interface MulticloudPoliciesAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets a list of Multicloud IAM Policies. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listMulticloudPolicies( + ListMulticloudPoliciesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse> + handler); +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesAsyncClient.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesAsyncClient.java new file mode 100644 index 00000000000..0d4fbc59651 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesAsyncClient.java @@ -0,0 +1,519 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.internal.http.*; +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for MulticloudPolicies 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: 20180828") +public class MulticloudPoliciesAsyncClient implements MulticloudPoliciesAsync { + /** + * Service instance for MulticloudPolicies. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(MulticloudPoliciesClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://multicloud.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MulticloudPoliciesAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + 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 MulticloudPoliciesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, MulticloudPoliciesAsyncClient> { + 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 MulticloudPoliciesAsyncClient 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 MulticloudPoliciesAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future listMulticloudPolicies( + ListMulticloudPoliciesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse> + handler) { + LOG.trace("Called async listMulticloudPolicies"); + final ListMulticloudPoliciesRequest interceptedRequest = + ListMulticloudPoliciesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMulticloudPoliciesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MulticloudPolicies", + "ListMulticloudPolicies", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/multicloud-omhub-cp/20180828/MulticloudPolicyCollection/ListMulticloudPolicies"); + final java.util.function.Function + transformer = + ListMulticloudPoliciesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse>, + 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< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesClient.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesClient.java new file mode 100644 index 00000000000..7407fc301fe --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesClient.java @@ -0,0 +1,529 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.internal.http.*; +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class MulticloudPoliciesClient implements MulticloudPolicies { + /** + * Service instance for MulticloudPolicies. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(MulticloudPoliciesClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://multicloud.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MulticloudPoliciesClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final MulticloudPoliciesPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public MulticloudPoliciesClient( + 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 MulticloudPoliciesClient( + 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 MulticloudPoliciesClient( + 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 MulticloudPoliciesClient( + 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 MulticloudPoliciesClient( + 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 MulticloudPoliciesClient( + 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 MulticloudPoliciesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected MulticloudPoliciesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + this.paginators = new MulticloudPoliciesPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public MulticloudPoliciesClient 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 MulticloudPoliciesClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ListMulticloudPoliciesResponse listMulticloudPolicies( + ListMulticloudPoliciesRequest request) { + LOG.trace("Called listMulticloudPolicies"); + final ListMulticloudPoliciesRequest interceptedRequest = + ListMulticloudPoliciesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMulticloudPoliciesConverter.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( + "MulticloudPolicies", + "ListMulticloudPolicies", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/multicloud-omhub-cp/20180828/MulticloudPolicyCollection/ListMulticloudPolicies"); + java.util.function.Function + transformer = + ListMulticloudPoliciesConverter.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 MulticloudPoliciesPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesPaginators.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesPaginators.java new file mode 100644 index 00000000000..0d2de9fe2b5 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudPoliciesPaginators.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud; + +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of MulticloudPolicies 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: 20180828") +public class MulticloudPoliciesPaginators { + private final MulticloudPolicies client; + + public MulticloudPoliciesPaginators(MulticloudPolicies client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listMulticloudPolicies 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 listMulticloudPoliciesResponseIterator( + final ListMulticloudPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMulticloudPoliciesRequest.Builder, ListMulticloudPoliciesRequest, + ListMulticloudPoliciesResponse>( + new java.util.function.Supplier() { + @Override + public ListMulticloudPoliciesRequest.Builder get() { + return ListMulticloudPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMulticloudPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudPoliciesRequest.Builder>, + ListMulticloudPoliciesRequest>() { + @Override + public ListMulticloudPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudPoliciesRequest.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< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse>() { + @Override + public ListMulticloudPoliciesResponse apply( + ListMulticloudPoliciesRequest request) { + return client.listMulticloudPolicies(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.multicloud.model.MulticloudPolicySummary} objects + * contained in responses from the listMulticloudPolicies 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.multicloud.model.MulticloudPolicySummary} objects + * contained in responses received from the service. + */ + public Iterable + listMulticloudPoliciesRecordIterator(final ListMulticloudPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMulticloudPoliciesRequest.Builder, ListMulticloudPoliciesRequest, + ListMulticloudPoliciesResponse, + com.oracle.bmc.multicloud.model.MulticloudPolicySummary>( + new java.util.function.Supplier() { + @Override + public ListMulticloudPoliciesRequest.Builder get() { + return ListMulticloudPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMulticloudPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudPoliciesRequest.Builder>, + ListMulticloudPoliciesRequest>() { + @Override + public ListMulticloudPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMulticloudPoliciesRequest.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< + ListMulticloudPoliciesRequest, ListMulticloudPoliciesResponse>() { + @Override + public ListMulticloudPoliciesResponse apply( + ListMulticloudPoliciesRequest request) { + return client.listMulticloudPolicies(request); + } + }, + new java.util.function.Function< + ListMulticloudPoliciesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListMulticloudPoliciesResponse response) { + return response.getMulticloudPolicyCollection().getItems(); + } + }); + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResources.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResources.java index a25a1eed0ab..12fdd37bbdc 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResources.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResources.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") @@ -60,7 +60,10 @@ public interface MulticloudResources extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets a list of multicloud resources with multicloud base compartment and subscription across Cloud Service Providers. + * Lists Multicloud resources in the specified Multicloud subscription. + * Details for each resource include Multicloud base compartment, name, state, resource type, and network anchor. + * For more information, see + * [Multicloud Resources](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resources.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResourcesAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResourcesAsync.java index 453f1fab408..53bd777383b 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResourcesAsync.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudResourcesAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") public interface MulticloudResourcesAsync extends AutoCloseable { @@ -59,7 +59,10 @@ public interface MulticloudResourcesAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets a list of multicloud resources with multicloud base compartment and subscription across Cloud Service Providers. + * Lists Multicloud resources in the specified Multicloud subscription. + * Details for each resource include Multicloud base compartment, name, state, resource type, and network anchor. + * For more information, see + * [Multicloud Resources](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resources.htm). * * * @param request The request object containing the details to send diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Multicloudsubscriptions.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Multicloudsubscriptions.java index 17f225c2437..342dcac0f33 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Multicloudsubscriptions.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/Multicloudsubscriptions.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") @@ -60,7 +60,8 @@ public interface Multicloudsubscriptions extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets a list of Multicloud Resources. + * Lists activated Multicloud subscriptions in the specified compartment. For more information, see + * [Listing Multicloud Subscriptions](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscriptions.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudsubscriptionsAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudsubscriptionsAsync.java index a2a9af673e6..4c8fad6a9c2 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudsubscriptionsAsync.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/MulticloudsubscriptionsAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") public interface MulticloudsubscriptionsAsync extends AutoCloseable { @@ -59,7 +59,8 @@ public interface MulticloudsubscriptionsAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets a list of Multicloud Resources. + * Lists activated Multicloud subscriptions in the specified compartment. For more information, see + * [Listing Multicloud Subscriptions](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscriptions.htm). * * * @param request The request object containing the details to send diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchor.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchor.java index e884621f2dd..ef5b634af1c 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchor.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchor.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") @@ -60,7 +60,10 @@ public interface OmhubNetworkAnchor extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about a NetworkAnchor. + * Gets details for the specified network anchor. The subscription OCID and service name are required. + * For more information, see + * [Getting a Network Anchor's Details](https://docs.oracle.com/iaas/Content/multicloud-hub/get-network-anchor.htm). + * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. @@ -72,7 +75,10 @@ public interface OmhubNetworkAnchor extends AutoCloseable { GetNetworkAnchorResponse getNetworkAnchor(GetNetworkAnchorRequest request); /** - * Gets a list of NetworkAnchors. + * Lists network anchors in the specified Multicloud subscription, Multicloud compartment, and partner cloud region. + * Details listed for each resource include name, state, VCN, and ODB network ID. + * For more information, see + * [Listing Network Anchors](https://docs.oracle.com/iaas/Content/multicloud-hub/list-network-anchors.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchorAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchorAsync.java index 1e7af5e218a..7897d0675a3 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchorAsync.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubNetworkAnchorAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") public interface OmhubNetworkAnchorAsync extends AutoCloseable { @@ -59,7 +59,10 @@ public interface OmhubNetworkAnchorAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about a NetworkAnchor. + * Gets details for the specified network anchor. The subscription OCID and service name are required. + * For more information, see + * [Getting a Network Anchor's Details](https://docs.oracle.com/iaas/Content/multicloud-hub/get-network-anchor.htm). + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -74,7 +77,10 @@ java.util.concurrent.Future getNetworkAnchor( handler); /** - * Gets a list of NetworkAnchors. + * Lists network anchors in the specified Multicloud subscription, Multicloud compartment, and partner cloud region. + * Details listed for each resource include name, state, VCN, and ODB network ID. + * For more information, see + * [Listing Network Anchors](https://docs.oracle.com/iaas/Content/multicloud-hub/list-network-anchors.htm). * * * @param request The request object containing the details to send diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchor.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchor.java index a6cb62e8bb6..411e87482fc 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchor.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchor.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") @@ -60,7 +60,10 @@ public interface OmhubResourceAnchor extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about a ResourceAnchor. + * Gets details for the specified resource anchor. The subscription OCID and service name are required. + * For more information, see + * [Getting a Resource Anchor's Details (OCI)](https://docs.oracle.com/iaas/Content/multicloud-hub/get-resource-anchor.htm). + * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. @@ -72,7 +75,10 @@ public interface OmhubResourceAnchor extends AutoCloseable { GetResourceAnchorResponse getResourceAnchor(GetResourceAnchorRequest request); /** - * Gets a list of ResourceAnchors. + * Lists resource anchors in the specified Multicloud subscription. + * Details listed for each resource anchor include name, state, and the related Multicloud compartment. + * For more information, see + * [Listing Resource Anchors](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resource-anchors.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchorAsync.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchorAsync.java index d2bc6c5f696..a0f8f23e3bc 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchorAsync.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/OmhubResourceAnchorAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.multicloud.responses.*; /** - * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see . + * Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") public interface OmhubResourceAnchorAsync extends AutoCloseable { @@ -59,7 +59,10 @@ public interface OmhubResourceAnchorAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about a ResourceAnchor. + * Gets details for the specified resource anchor. The subscription OCID and service name are required. + * For more information, see + * [Getting a Resource Anchor's Details (OCI)](https://docs.oracle.com/iaas/Content/multicloud-hub/get-resource-anchor.htm). + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -75,7 +78,10 @@ java.util.concurrent.Future getResourceAnchor( handler); /** - * Gets a list of ResourceAnchors. + * Lists resource anchors in the specified Multicloud subscription. + * Details listed for each resource anchor include name, state, and the related Multicloud compartment. + * For more information, see + * [Listing Resource Anchors](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resource-anchors.htm). * * * @param request The request object containing the details to send diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/SdkClientsMetadata.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/SdkClientsMetadata.java index dc546542b0d..3fd91597abf 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/SdkClientsMetadata.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/SdkClientsMetadata.java @@ -12,6 +12,10 @@ MetadataClient.class, MultiCloudsMetadataAsyncClient.class, MultiCloudsMetadataClient.class, + MulticloudAlertsAsyncClient.class, + MulticloudAlertsClient.class, + MulticloudPoliciesAsyncClient.class, + MulticloudPoliciesClient.class, MulticloudResourcesAsyncClient.class, MulticloudResourcesClient.class, MulticloudsubscriptionsAsyncClient.class, diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudAlertsConverter.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudAlertsConverter.java new file mode 100644 index 00000000000..9e3bda88b6b --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudAlertsConverter.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.multicloud.model.*; +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class ListMulticloudAlertsConverter { + 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(ListMulticloudAlertsConverter.class); + + public static com.oracle.bmc.multicloud.requests.ListMulticloudAlertsRequest interceptRequest( + com.oracle.bmc.multicloud.requests.ListMulticloudAlertsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.multicloud.requests.ListMulticloudAlertsRequest 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("/20180828").path("multicloudalerts"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getResourceId() != null) { + target = + target.queryParam( + "resourceId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceId())); + } + + if (request.getResourceType() != null) { + target = + target.queryParam( + "resourceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceType())); + } + + if (request.getAlertType() != null) { + target = + target.queryParam( + "alertType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAlertType())); + } + + if (request.getAlertFunctionName() != null) { + target = + target.queryParam( + "alertFunctionName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAlertFunctionName())); + } + + if (request.getSeverity() != null) { + target = + target.queryParam( + "severity", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSeverity().getValue())); + } + + if (request.getAlertStatus() != null) { + target = + target.queryParam( + "alertStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAlertStatus().getValue())); + } + + if (request.getSubscriptionServiceName() != null) { + target = + target.queryParam( + "subscriptionServiceName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubscriptionServiceName().getValue())); + } + + if (request.getSubscriptionId() != null) { + target = + target.queryParam( + "subscriptionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubscriptionId())); + } + + 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.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + 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.multicloud.responses.ListMulticloudAlertsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.multicloud.responses.ListMulticloudAlertsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.multicloud.responses.ListMulticloudAlertsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.multicloud.responses + .ListMulticloudAlertsResponse>() { + @Override + public com.oracle.bmc.multicloud.responses.ListMulticloudAlertsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.multicloud.responses.ListMulticloudAlertsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.multicloud.model + .MulticloudAlertCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.multicloud.model + .MulticloudAlertCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.multicloud.model + .MulticloudAlertCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.multicloud.model + .MulticloudAlertCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.multicloud.responses.ListMulticloudAlertsResponse + .Builder + builder = + com.oracle.bmc.multicloud.responses + .ListMulticloudAlertsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.multicloudAlertCollection(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.multicloud.responses.ListMulticloudAlertsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudPoliciesConverter.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudPoliciesConverter.java new file mode 100644 index 00000000000..487f9b8fd46 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudPoliciesConverter.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.multicloud.model.*; +import com.oracle.bmc.multicloud.requests.*; +import com.oracle.bmc.multicloud.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class ListMulticloudPoliciesConverter { + 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(ListMulticloudPoliciesConverter.class); + + public static com.oracle.bmc.multicloud.requests.ListMulticloudPoliciesRequest interceptRequest( + com.oracle.bmc.multicloud.requests.ListMulticloudPoliciesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.multicloud.requests.ListMulticloudPoliciesRequest 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("/20180828").path("multicloudpolicies"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getIsForceRefresh() != null) { + target = + target.queryParam( + "isForceRefresh", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsForceRefresh())); + } + + if (request.getSubscriptionId() != null) { + target = + target.queryParam( + "subscriptionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubscriptionId())); + } + + 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.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + 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.multicloud.responses.ListMulticloudPoliciesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.multicloud.responses.ListMulticloudPoliciesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.multicloud.responses.ListMulticloudPoliciesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.multicloud.responses + .ListMulticloudPoliciesResponse>() { + @Override + public com.oracle.bmc.multicloud.responses + .ListMulticloudPoliciesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.multicloud.responses.ListMulticloudPoliciesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.multicloud.model + .MulticloudPolicyCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.multicloud.model + .MulticloudPolicyCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.multicloud.model + .MulticloudPolicyCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.multicloud.model + .MulticloudPolicyCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.multicloud.responses.ListMulticloudPoliciesResponse + .Builder + builder = + com.oracle.bmc.multicloud.responses + .ListMulticloudPoliciesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.multicloudPolicyCollection(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.multicloud.responses.ListMulticloudPoliciesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudResourcesConverter.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudResourcesConverter.java index a6336c0f684..4103d9403a1 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudResourcesConverter.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListMulticloudResourcesConverter.java @@ -30,9 +30,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.multicloud.requests.ListMulticloudResourcesRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getSubscriptionServiceName(), "subscriptionServiceName is required"); - Validate.notNull(request.getSubscriptionId(), "subscriptionId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20180828").path("omHub").path("multicloudResources"); @@ -85,17 +82,21 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortBy().getValue())); } - target = - target.queryParam( - "subscriptionServiceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSubscriptionServiceName().getValue())); + if (request.getSubscriptionServiceName() != null) { + target = + target.queryParam( + "subscriptionServiceName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubscriptionServiceName().getValue())); + } - target = - target.queryParam( - "subscriptionId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSubscriptionId())); + if (request.getSubscriptionId() != null) { + target = + target.queryParam( + "subscriptionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubscriptionId())); + } if (request.getExternalLocation() != null) { target = @@ -105,6 +106,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getExternalLocation())); } + if (request.getResourceType() != null) { + target = + target.queryParam( + "resourceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceType())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListNetworkAnchorsConverter.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListNetworkAnchorsConverter.java index 8e630efd280..056fbd5e557 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListNetworkAnchorsConverter.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/internal/http/ListNetworkAnchorsConverter.java @@ -89,14 +89,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getNetworkAnchorOciSubnetId())); } - if (request.getCompartmentIdInSubtree() != null) { - target = - target.queryParam( - "compartmentIdInSubtree", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentIdInSubtree())); - } - if (request.getNetworkAnchorOciVcnId() != null) { target = target.queryParam( diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ExternalLocationMappingMetadatumSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ExternalLocationMappingMetadatumSummary.java index e69451c46f9..8cf522f7bcc 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ExternalLocationMappingMetadatumSummary.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ExternalLocationMappingMetadatumSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.multicloud.model; /** - * Flat Map of CSP Region -> CSP-Physical-AZ -> OCI Site Group - * All fields in this object has immutable mappings. Please don't add any field that case change - * for any customer as this is only for Oracle Cloud Infrastructure internal service use. + * Flat Map of CSP Region -> CSP-Physical-AZ -> OCI Site Group. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadata.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadata.java index 424342651fd..7980948c8eb 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadata.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadata.java @@ -5,7 +5,10 @@ package com.oracle.bmc.multicloud.model; /** - * Multicloud metadata information including base multicloud compartments information. + * The Multicloud metadata for the indicated subscription. + * Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment). + * For more information, see + * [Getting Details for Multicloud Metadata](https://docs.oracle.com/iaas/Content/multicloud-hub/get-subscription-metadata.htm). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -49,13 +52,13 @@ public MultiCloudMetadata( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). * @param compartmentId the value to set * @return this builder **/ @@ -65,13 +68,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private String subscriptionId; /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. * @param subscriptionId the value to set * @return this builder **/ @@ -81,7 +84,7 @@ public Builder subscriptionId(String subscriptionId) { return this; } /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -90,7 +93,7 @@ public Builder subscriptionId(String subscriptionId) { private java.util.Date timeCreated; /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -228,13 +231,13 @@ public Builder toBuilder() { } /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). * @return the value **/ public String getCompartmentId() { @@ -242,13 +245,13 @@ public String getCompartmentId() { } /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private final String subscriptionId; /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. * @return the value **/ public String getSubscriptionId() { @@ -256,7 +259,7 @@ public String getSubscriptionId() { } /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -265,7 +268,7 @@ public String getSubscriptionId() { private final java.util.Date timeCreated; /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataCollection.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataCollection.java index ae35edfb925..b7c32428e51 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataCollection.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataCollection.java @@ -5,7 +5,10 @@ package com.oracle.bmc.multicloud.model; /** - * Multicloud metadata information across clouds. + * Multicloud metadata for Multicloud subscriptions in the indicated compartment. + * For more information, see + * [Listing Multicloud Metadata for a Subscription](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscription-metadata.htm). + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataSummary.java index 36d709547fa..bc01256b5a1 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataSummary.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MultiCloudMetadataSummary.java @@ -5,7 +5,10 @@ package com.oracle.bmc.multicloud.model; /** - * Multicloud metadata information including base multicloud compartments information. + * The Multicloud metadata for the indicated subscription. + * Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment). + * For more information, see + * [Getting Details for Multicloud Metadata](https://docs.oracle.com/iaas/Content/multicloud-hub/get-subscription-metadata.htm). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -50,13 +53,13 @@ public MultiCloudMetadataSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). * @param compartmentId the value to set * @return this builder **/ @@ -66,7 +69,7 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -75,7 +78,7 @@ public Builder compartmentId(String compartmentId) { private java.util.Date timeCreated; /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -88,13 +91,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private String subscriptionId; /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. * @param subscriptionId the value to set * @return this builder **/ @@ -229,13 +232,13 @@ public Builder toBuilder() { } /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * MultiCloud base compartment OCID associated with subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment associated with the indicated subscription ({@code subscriptionId}). * @return the value **/ public String getCompartmentId() { @@ -243,7 +246,7 @@ public String getCompartmentId() { } /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -252,7 +255,7 @@ public String getCompartmentId() { private final java.util.Date timeCreated; /** - * The date and time the multicloud compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time that the Multicloud base compartment was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -263,13 +266,13 @@ public java.util.Date getTimeCreated() { } /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private final String subscriptionId; /** - * Oracle Cloud Infrastructure subscriptionId. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI subscription. * @return the value **/ public String getSubscriptionId() { diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlert.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlert.java new file mode 100644 index 00000000000..dc21e50dd78 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlert.java @@ -0,0 +1,1186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.model; + +/** + * A multicloud Alert + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MulticloudAlert.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MulticloudAlert extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "alertType", + "severity", + "subscriptionId", + "subscriptionType", + "alertStatus", + "timeCreated", + "timeUpdated", + "resourceId", + "resourceType", + "compartmentId", + "functionType", + "source", + "alertId", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags", + "sourceRegion", + "additionalParameters" + }) + public MulticloudAlert( + String id, + String displayName, + String description, + String alertType, + Severity severity, + String subscriptionId, + SubscriptionType subscriptionType, + AlertStatus alertStatus, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String resourceId, + String resourceType, + String compartmentId, + String functionType, + String source, + String alertId, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + String sourceRegion, + java.util.Map additionalParameters) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.alertType = alertType; + this.severity = severity; + this.subscriptionId = subscriptionId; + this.subscriptionType = subscriptionType; + this.alertStatus = alertStatus; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.resourceId = resourceId; + this.resourceType = resourceType; + this.compartmentId = compartmentId; + this.functionType = functionType; + this.source = source; + this.alertId = alertId; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.sourceRegion = sourceRegion; + this.additionalParameters = additionalParameters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud alert. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Human-readable name of the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Human-readable name of the alert. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Description of the alert and its purpose. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the alert and its purpose. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Type/category of the alert (e.g. IAM_POLICY_GAP, TAG_INCONSISTENCY). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alertType") + private String alertType; + + /** + * Type/category of the alert (e.g. IAM_POLICY_GAP, TAG_INCONSISTENCY). + * @param alertType the value to set + * @return this builder + **/ + public Builder alertType(String alertType) { + this.alertType = alertType; + this.__explicitlySet__.add("alertType"); + return this; + } + /** + * Severity of the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private Severity severity; + + /** + * Severity of the alert. + * @param severity the value to set + * @return this builder + **/ + public Builder severity(Severity severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud subscription. + * @param subscriptionId the value to set + * @return this builder + **/ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + /** + * Oracle Cloud Infrastructure Subscription Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionType") + private SubscriptionType subscriptionType; + + /** + * Oracle Cloud Infrastructure Subscription Type. + * @param subscriptionType the value to set + * @return this builder + **/ + public Builder subscriptionType(SubscriptionType subscriptionType) { + this.subscriptionType = subscriptionType; + this.__explicitlySet__.add("subscriptionType"); + return this; + } + /** + * Current acknowledgment status of the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alertStatus") + private AlertStatus alertStatus; + + /** + * Current acknowledgment status of the alert. + * @param alertStatus the value to set + * @return this builder + **/ + public Builder alertStatus(AlertStatus alertStatus) { + this.alertStatus = alertStatus; + this.__explicitlySet__.add("alertStatus"); + return this; + } + /** + * Timestamp when the alert was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Timestamp when the alert 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; + } + /** + * Timestamp when the alert was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Timestamp when the alert was last updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the affected resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the affected resource. + * @param resourceId the value to set + * @return this builder + **/ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** + * Type of the affected resource (e.g. ADBD). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * Type of the affected resource (e.g. ADBD). + * @param resourceType the value to set + * @return this builder + **/ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * Root Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (TenantId) associated with the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Root Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (TenantId) associated with the alert. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Internal service or function type generating the alert (e.g. ORP, ODBG_NETWORK, BILLING, OBSERVABILITY). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("functionType") + private String functionType; + + /** + * Internal service or function type generating the alert (e.g. ORP, ODBG_NETWORK, BILLING, OBSERVABILITY). + * @param functionType the value to set + * @return this builder + **/ + public Builder functionType(String functionType) { + this.functionType = functionType; + this.__explicitlySet__.add("functionType"); + return this; + } + /** + * Source subsystem that generated the alert. (Azure Tag Validation) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private String source; + + /** + * Source subsystem that generated the alert. (Azure Tag Validation) + * @param source the value to set + * @return this builder + **/ + public Builder source(String source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + /** + * External or human-friendly alert identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alertId") + private String alertId; + + /** + * External or human-friendly alert identifier. + * @param alertId the value to set + * @return this builder + **/ + public Builder alertId(String alertId) { + this.alertId = alertId; + this.__explicitlySet__.add("alertId"); + return this; + } + /** + * The current state of the Multicloud Network Alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Network Alert. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * OCI region where the alert originated (e.g. us-phoenix-1) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceRegion") + private String sourceRegion; + + /** + * OCI region where the alert originated (e.g. us-phoenix-1) + * @param sourceRegion the value to set + * @return this builder + **/ + public Builder sourceRegion(String sourceRegion) { + this.sourceRegion = sourceRegion; + this.__explicitlySet__.add("sourceRegion"); + return this; + } + /** + * Alert-specific contextual parameters. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalParameters") + private java.util.Map additionalParameters; + + /** + * Alert-specific contextual parameters. + * @param additionalParameters the value to set + * @return this builder + **/ + public Builder additionalParameters(java.util.Map additionalParameters) { + this.additionalParameters = additionalParameters; + this.__explicitlySet__.add("additionalParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MulticloudAlert build() { + MulticloudAlert model = + new MulticloudAlert( + this.id, + this.displayName, + this.description, + this.alertType, + this.severity, + this.subscriptionId, + this.subscriptionType, + this.alertStatus, + this.timeCreated, + this.timeUpdated, + this.resourceId, + this.resourceType, + this.compartmentId, + this.functionType, + this.source, + this.alertId, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags, + this.sourceRegion, + this.additionalParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MulticloudAlert 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("alertType")) { + this.alertType(model.getAlertType()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("subscriptionType")) { + this.subscriptionType(model.getSubscriptionType()); + } + if (model.wasPropertyExplicitlySet("alertStatus")) { + this.alertStatus(model.getAlertStatus()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("functionType")) { + this.functionType(model.getFunctionType()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("alertId")) { + this.alertId(model.getAlertId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("sourceRegion")) { + this.sourceRegion(model.getSourceRegion()); + } + if (model.wasPropertyExplicitlySet("additionalParameters")) { + this.additionalParameters(model.getAdditionalParameters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud alert. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Human-readable name of the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Human-readable name of the alert. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Description of the alert and its purpose. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the alert and its purpose. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Type/category of the alert (e.g. IAM_POLICY_GAP, TAG_INCONSISTENCY). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alertType") + private final String alertType; + + /** + * Type/category of the alert (e.g. IAM_POLICY_GAP, TAG_INCONSISTENCY). + * @return the value + **/ + public String getAlertType() { + return alertType; + } + + /** + * Severity of the alert. + **/ + public enum Severity { + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Critical("CRITICAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Severity.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Severity v : Severity.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Severity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Severity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Severity', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Severity of the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final Severity severity; + + /** + * Severity of the alert. + * @return the value + **/ + public Severity getSeverity() { + return severity; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the multicloud subscription. + * @return the value + **/ + public String getSubscriptionId() { + return subscriptionId; + } + + /** + * Oracle Cloud Infrastructure Subscription Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionType") + private final SubscriptionType subscriptionType; + + /** + * Oracle Cloud Infrastructure Subscription Type. + * @return the value + **/ + public SubscriptionType getSubscriptionType() { + return subscriptionType; + } + + /** + * Current acknowledgment status of the alert. + **/ + public enum AlertStatus { + Unacknowledged("UNACKNOWLEDGED"), + Acknowledged("ACKNOWLEDGED"), + Resolved("RESOLVED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AlertStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AlertStatus v : AlertStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AlertStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AlertStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AlertStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Current acknowledgment status of the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alertStatus") + private final AlertStatus alertStatus; + + /** + * Current acknowledgment status of the alert. + * @return the value + **/ + public AlertStatus getAlertStatus() { + return alertStatus; + } + + /** + * Timestamp when the alert was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Timestamp when the alert was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Timestamp when the alert was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Timestamp when the alert was last updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the affected resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the affected resource. + * @return the value + **/ + public String getResourceId() { + return resourceId; + } + + /** + * Type of the affected resource (e.g. ADBD). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * Type of the affected resource (e.g. ADBD). + * @return the value + **/ + public String getResourceType() { + return resourceType; + } + + /** + * Root Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (TenantId) associated with the alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Root Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (TenantId) associated with the alert. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Internal service or function type generating the alert (e.g. ORP, ODBG_NETWORK, BILLING, OBSERVABILITY). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("functionType") + private final String functionType; + + /** + * Internal service or function type generating the alert (e.g. ORP, ODBG_NETWORK, BILLING, OBSERVABILITY). + * @return the value + **/ + public String getFunctionType() { + return functionType; + } + + /** + * Source subsystem that generated the alert. (Azure Tag Validation) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final String source; + + /** + * Source subsystem that generated the alert. (Azure Tag Validation) + * @return the value + **/ + public String getSource() { + return source; + } + + /** + * External or human-friendly alert identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alertId") + private final String alertId; + + /** + * External or human-friendly alert identifier. + * @return the value + **/ + public String getAlertId() { + return alertId; + } + + /** + * The current state of the Multicloud Network Alert. + **/ + 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 Multicloud Network Alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Network Alert. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * OCI region where the alert originated (e.g. us-phoenix-1) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceRegion") + private final String sourceRegion; + + /** + * OCI region where the alert originated (e.g. us-phoenix-1) + * @return the value + **/ + public String getSourceRegion() { + return sourceRegion; + } + + /** + * Alert-specific contextual parameters. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalParameters") + private final java.util.Map additionalParameters; + + /** + * Alert-specific contextual parameters. + * @return the value + **/ + public java.util.Map getAdditionalParameters() { + return additionalParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MulticloudAlert("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", alertType=").append(String.valueOf(this.alertType)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", subscriptionType=").append(String.valueOf(this.subscriptionType)); + sb.append(", alertStatus=").append(String.valueOf(this.alertStatus)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", functionType=").append(String.valueOf(this.functionType)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", alertId=").append(String.valueOf(this.alertId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", sourceRegion=").append(String.valueOf(this.sourceRegion)); + sb.append(", additionalParameters=").append(String.valueOf(this.additionalParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MulticloudAlert)) { + return false; + } + + MulticloudAlert other = (MulticloudAlert) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.alertType, other.alertType) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.subscriptionType, other.subscriptionType) + && java.util.Objects.equals(this.alertStatus, other.alertStatus) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.functionType, other.functionType) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.alertId, other.alertId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.sourceRegion, other.sourceRegion) + && java.util.Objects.equals(this.additionalParameters, other.additionalParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.alertType == null ? 43 : this.alertType.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.subscriptionType == null ? 43 : this.subscriptionType.hashCode()); + result = (result * PRIME) + (this.alertStatus == null ? 43 : this.alertStatus.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.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.functionType == null ? 43 : this.functionType.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.alertId == null ? 43 : this.alertId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.sourceRegion == null ? 43 : this.sourceRegion.hashCode()); + result = + (result * PRIME) + + (this.additionalParameters == null + ? 43 + : this.additionalParameters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlertCollection.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlertCollection.java new file mode 100644 index 00000000000..73166f12fbe --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlertCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.model; + +/** + * Multicloud Alert information. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MulticloudAlertCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MulticloudAlertCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MulticloudAlertCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of MulticloudAlertSummary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of MulticloudAlertSummary. + * @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 MulticloudAlertCollection build() { + MulticloudAlertCollection model = new MulticloudAlertCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MulticloudAlertCollection 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 MulticloudAlertSummary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of MulticloudAlertSummary. + * @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("MulticloudAlertCollection("); + 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 MulticloudAlertCollection)) { + return false; + } + + MulticloudAlertCollection other = (MulticloudAlertCollection) 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-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlertSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlertSummary.java new file mode 100644 index 00000000000..a991315bd40 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudAlertSummary.java @@ -0,0 +1,390 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.model; + +/** + * Summary of missing IAM policies for a multicloud subscription. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MulticloudAlertSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MulticloudAlertSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "count", + "multicloudAlerts", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public MulticloudAlertSummary( + Integer count, + java.util.List multicloudAlerts, + MulticloudAlert.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.count = count; + this.multicloudAlerts = multicloudAlerts; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Total number of alerts + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private Integer count; + + /** + * Total number of alerts + * @param count the value to set + * @return this builder + **/ + public Builder count(Integer count) { + this.count = count; + this.__explicitlySet__.add("count"); + return this; + } + /** + * List of Multicloud Alerts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multicloudAlerts") + private java.util.List multicloudAlerts; + + /** + * List of Multicloud Alerts. + * @param multicloudAlerts the value to set + * @return this builder + **/ + public Builder multicloudAlerts(java.util.List multicloudAlerts) { + this.multicloudAlerts = multicloudAlerts; + this.__explicitlySet__.add("multicloudAlerts"); + return this; + } + /** + * The current state of the Multicloud Network Alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MulticloudAlert.LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Network Alert. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MulticloudAlert.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MulticloudAlertSummary build() { + MulticloudAlertSummary model = + new MulticloudAlertSummary( + this.count, + this.multicloudAlerts, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MulticloudAlertSummary model) { + if (model.wasPropertyExplicitlySet("count")) { + this.count(model.getCount()); + } + if (model.wasPropertyExplicitlySet("multicloudAlerts")) { + this.multicloudAlerts(model.getMulticloudAlerts()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Total number of alerts + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private final Integer count; + + /** + * Total number of alerts + * @return the value + **/ + public Integer getCount() { + return count; + } + + /** + * List of Multicloud Alerts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multicloudAlerts") + private final java.util.List multicloudAlerts; + + /** + * List of Multicloud Alerts. + * @return the value + **/ + public java.util.List getMulticloudAlerts() { + return multicloudAlerts; + } + + /** + * The current state of the Multicloud Network Alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MulticloudAlert.LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Network Alert. + * @return the value + **/ + public MulticloudAlert.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MulticloudAlertSummary("); + sb.append("super=").append(super.toString()); + sb.append("count=").append(String.valueOf(this.count)); + sb.append(", multicloudAlerts=").append(String.valueOf(this.multicloudAlerts)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MulticloudAlertSummary)) { + return false; + } + + MulticloudAlertSummary other = (MulticloudAlertSummary) o; + return java.util.Objects.equals(this.count, other.count) + && java.util.Objects.equals(this.multicloudAlerts, other.multicloudAlerts) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.count == null ? 43 : this.count.hashCode()); + result = + (result * PRIME) + + (this.multicloudAlerts == null ? 43 : this.multicloudAlerts.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicy.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicy.java new file mode 100644 index 00000000000..7cc3188722d --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicy.java @@ -0,0 +1,561 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.model; + +/** + * A missing IAM policy required for multicloud operation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MulticloudPolicy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MulticloudPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "compartmentName", + "name", + "description", + "statements", + "freeformTags", + "definedTags", + "systemTags", + "lifecycleState" + }) + public MulticloudPolicy( + String compartmentId, + String compartmentName, + String name, + String description, + java.util.List statements, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + LifecycleState lifecycleState) { + super(); + this.compartmentId = compartmentId; + this.compartmentName = compartmentName; + this.name = name; + this.description = description; + this.statements = statements; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the policy is configured. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the policy is configured. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Description of the compartment e.g. Base Compartment, Root Compartment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") + private String compartmentName; + + /** + * Description of the compartment e.g. Base Compartment, Root Compartment + * @param compartmentName the value to set + * @return this builder + **/ + public Builder compartmentName(String compartmentName) { + this.compartmentName = compartmentName; + this.__explicitlySet__.add("compartmentName"); + return this; + } + /** + * Name of the missing policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the missing policy. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Description of the policy purpose. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the policy purpose. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * IAM policy statements required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statements") + private java.util.List statements; + + /** + * IAM policy statements required. + * @param statements the value to set + * @return this builder + **/ + public Builder statements(java.util.List statements) { + this.statements = statements; + this.__explicitlySet__.add("statements"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The current state of the Multicloud Policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Policy. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MulticloudPolicy build() { + MulticloudPolicy model = + new MulticloudPolicy( + this.compartmentId, + this.compartmentName, + this.name, + this.description, + this.statements, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MulticloudPolicy model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("compartmentName")) { + this.compartmentName(model.getCompartmentName()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("statements")) { + this.statements(model.getStatements()); + } + 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()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the policy is configured. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the policy is configured. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Description of the compartment e.g. Base Compartment, Root Compartment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") + private final String compartmentName; + + /** + * Description of the compartment e.g. Base Compartment, Root Compartment + * @return the value + **/ + public String getCompartmentName() { + return compartmentName; + } + + /** + * Name of the missing policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the missing policy. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Description of the policy purpose. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the policy purpose. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * IAM policy statements required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statements") + private final java.util.List statements; + + /** + * IAM policy statements required. + * @return the value + **/ + public java.util.List getStatements() { + return statements; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The current state of the Multicloud Policy. + **/ + 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 Multicloud Policy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Policy. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MulticloudPolicy("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", compartmentName=").append(String.valueOf(this.compartmentName)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", statements=").append(String.valueOf(this.statements)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MulticloudPolicy)) { + return false; + } + + MulticloudPolicy other = (MulticloudPolicy) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.compartmentName, other.compartmentName) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.statements, other.statements) + && 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) + && 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.compartmentName == null ? 43 : this.compartmentName.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.statements == null ? 43 : this.statements.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicyCollection.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicyCollection.java new file mode 100644 index 00000000000..ba73c0fbb7c --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicyCollection.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.model; + +/** + * Multicloud Policy information. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MulticloudPolicyCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MulticloudPolicyCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "items"}) + public MulticloudPolicyCollection( + String compartmentId, java.util.List items) { + super(); + this.compartmentId = compartmentId; + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the query. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the query. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * List of MulticloudPolicySummary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of MulticloudPolicySummary. + * @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 MulticloudPolicyCollection build() { + MulticloudPolicyCollection model = + new MulticloudPolicyCollection(this.compartmentId, this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MulticloudPolicyCollection model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + 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); + } + + /** + * Tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the query. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the query. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * List of MulticloudPolicySummary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of MulticloudPolicySummary. + * @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("MulticloudPolicyCollection("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + 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 MulticloudPolicyCollection)) { + return false; + } + + MulticloudPolicyCollection other = (MulticloudPolicyCollection) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicySummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicySummary.java new file mode 100644 index 00000000000..292cd26ecac --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudPolicySummary.java @@ -0,0 +1,472 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.model; + +/** + * Summary of missing IAM policies for a multicloud subscription. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MulticloudPolicySummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MulticloudPolicySummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "subscriptionId", + "subscriptionType", + "groups", + "policies", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public MulticloudPolicySummary( + String subscriptionId, + SubscriptionType subscriptionType, + java.util.List groups, + java.util.List policies, + MulticloudPolicy.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.subscriptionId = subscriptionId; + this.subscriptionType = subscriptionType; + this.groups = groups; + this.policies = policies; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Subscription + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Subscription + * @param subscriptionId the value to set + * @return this builder + **/ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + /** + * Oracle Cloud Infrastructure Subscription Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionType") + private SubscriptionType subscriptionType; + + /** + * Oracle Cloud Infrastructure Subscription Type. + * @param subscriptionType the value to set + * @return this builder + **/ + public Builder subscriptionType(SubscriptionType subscriptionType) { + this.subscriptionType = subscriptionType; + this.__explicitlySet__.add("subscriptionType"); + return this; + } + /** + * groups required for the particular subscriptionType IAM policy statements required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groups") + private java.util.List groups; + + /** + * groups required for the particular subscriptionType IAM policy statements required. + * @param groups the value to set + * @return this builder + **/ + public Builder groups(java.util.List groups) { + this.groups = groups; + this.__explicitlySet__.add("groups"); + return this; + } + /** + * Missing policy definitions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("policies") + private java.util.List policies; + + /** + * Missing policy definitions. + * @param policies the value to set + * @return this builder + **/ + public Builder policies(java.util.List policies) { + this.policies = policies; + this.__explicitlySet__.add("policies"); + return this; + } + /** + * The current state of the Multicloud Network Alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MulticloudPolicy.LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Network Alert. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MulticloudPolicy.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MulticloudPolicySummary build() { + MulticloudPolicySummary model = + new MulticloudPolicySummary( + this.subscriptionId, + this.subscriptionType, + this.groups, + this.policies, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MulticloudPolicySummary model) { + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("subscriptionType")) { + this.subscriptionType(model.getSubscriptionType()); + } + if (model.wasPropertyExplicitlySet("groups")) { + this.groups(model.getGroups()); + } + if (model.wasPropertyExplicitlySet("policies")) { + this.policies(model.getPolicies()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Subscription + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * Compartment The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Subscription + * @return the value + **/ + public String getSubscriptionId() { + return subscriptionId; + } + + /** + * Oracle Cloud Infrastructure Subscription Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionType") + private final SubscriptionType subscriptionType; + + /** + * Oracle Cloud Infrastructure Subscription Type. + * @return the value + **/ + public SubscriptionType getSubscriptionType() { + return subscriptionType; + } + + /** + * groups required for the particular subscriptionType IAM policy statements required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groups") + private final java.util.List groups; + + /** + * groups required for the particular subscriptionType IAM policy statements required. + * @return the value + **/ + public java.util.List getGroups() { + return groups; + } + + /** + * Missing policy definitions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("policies") + private final java.util.List policies; + + /** + * Missing policy definitions. + * @return the value + **/ + public java.util.List getPolicies() { + return policies; + } + + /** + * The current state of the Multicloud Network Alert. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MulticloudPolicy.LifecycleState lifecycleState; + + /** + * The current state of the Multicloud Network Alert. + * @return the value + **/ + public MulticloudPolicy.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MulticloudPolicySummary("); + sb.append("super=").append(super.toString()); + sb.append("subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", subscriptionType=").append(String.valueOf(this.subscriptionType)); + sb.append(", groups=").append(String.valueOf(this.groups)); + sb.append(", policies=").append(String.valueOf(this.policies)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MulticloudPolicySummary)) { + return false; + } + + MulticloudPolicySummary other = (MulticloudPolicySummary) o; + return java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.subscriptionType, other.subscriptionType) + && java.util.Objects.equals(this.groups, other.groups) + && java.util.Objects.equals(this.policies, other.policies) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.subscriptionType == null ? 43 : this.subscriptionType.hashCode()); + result = (result * PRIME) + (this.groups == null ? 43 : this.groups.hashCode()); + result = (result * PRIME) + (this.policies == null ? 43 : this.policies.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceCollection.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceCollection.java index 3d4eb65225e..81246107623 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceCollection.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceCollection.java @@ -5,7 +5,10 @@ package com.oracle.bmc.multicloud.model; /** - * Multicloud resource information across clouds. + * Multicloud resources in the indicated Multicloud subscription. + * For more information, see + * [Multicloud Resources](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resources.htm). + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceSummary.java index 26ba8d5b693..35af755538d 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceSummary.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudResourceSummary.java @@ -5,7 +5,10 @@ package com.oracle.bmc.multicloud.model; /** - * The multicloud resource, for eg. VMCluster, ExaInfra, and its attributes. The resource and network anchor that represents + * The properties that define the Multicloud resource. + * Details for each resource include Multicloud base compartment, name, state, resource type, and network anchor. + * For more information, see + * [Multicloud Resources](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resources.htm). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -36,6 +39,7 @@ public final class MulticloudResourceSummary "cspResourceId", "timeCreated", "cspAdditionalProperties", + "resourceAdditionalProperties", "timeUpdated", "lifecycleState", "freeformTags", @@ -55,6 +59,7 @@ public MulticloudResourceSummary( String cspResourceId, java.util.Date timeCreated, java.util.Map cspAdditionalProperties, + java.util.Map resourceAdditionalProperties, java.util.Date timeUpdated, LifecycleState lifecycleState, java.util.Map freeformTags, @@ -73,6 +78,7 @@ public MulticloudResourceSummary( this.cspResourceId = cspResourceId; this.timeCreated = timeCreated; this.cspAdditionalProperties = cspAdditionalProperties; + this.resourceAdditionalProperties = resourceAdditionalProperties; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; @@ -99,13 +105,13 @@ public Builder resourceId(String resourceId) { return this; } /** - * Endpoint used to retrieve displayName and lifeCycleState of the resource. + * Endpoint used to retrieve the resource's display name and lifecycle state. **/ @com.fasterxml.jackson.annotation.JsonProperty("resourceDisplayName") private String resourceDisplayName; /** - * Endpoint used to retrieve displayName and lifeCycleState of the resource. + * Endpoint used to retrieve the resource's display name and lifecycle state. * @param resourceDisplayName the value to set * @return this builder **/ @@ -115,13 +121,13 @@ public Builder resourceDisplayName(String resourceDisplayName) { return this; } /** - * What resource it refers to. Eg. VMCluster, ExaInfra, etc. + * Type of resource, such as {@code VMCluster} or {@code ExaInfra}, **/ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") private String resourceType; /** - * What resource it refers to. Eg. VMCluster, ExaInfra, etc. + * Type of resource, such as {@code VMCluster} or {@code ExaInfra}, * @param resourceType the value to set * @return this builder **/ @@ -131,13 +137,13 @@ public Builder resourceType(String resourceType) { return this; } /** - * Compartment name associated the resource. + * Name of the compartment associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") private String compartmentName; /** - * Compartment name associated the resource. + * Name of the compartment associated with the resource. * @param compartmentName the value to set * @return this builder **/ @@ -147,13 +153,13 @@ public Builder compartmentName(String compartmentName) { return this; } /** - * Compartment Id of the resource. + * Id of the compartment associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Compartment Id of the resource. + * Id of the compartment associated with the resource. * @param compartmentId the value to set * @return this builder **/ @@ -163,13 +169,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Resource Anchor name. + * Name of the virtual cloud network (VCN) associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnName") private String vcnName; /** - * Resource Anchor name. + * Name of the virtual cloud network (VCN) associated with the resource. * @param vcnName the value to set * @return this builder **/ @@ -179,13 +185,13 @@ public Builder vcnName(String vcnName) { return this; } /** - * Id of the Virtual Cloud Network associated to the resource. + * Id of the virtual cloud network (VCN) associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private String vcnId; /** - * Id of the Virtual Cloud Network associated to the resource. + * Id of the virtual cloud network (VCN) associated with the resource. * @param vcnId the value to set * @return this builder **/ @@ -195,13 +201,13 @@ public Builder vcnId(String vcnId) { return this; } /** - * Name of the network anchor associated to the resource. + * Name of the network anchor associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("networkAnchorName") private String networkAnchorName; /** - * Name of the network anchor associated to the resource. + * Name of the network anchor associated with the resource. * @param networkAnchorName the value to set * @return this builder **/ @@ -211,13 +217,13 @@ public Builder networkAnchorName(String networkAnchorName) { return this; } /** - * OCID of the Network Anchor + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network anchor associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("networkAnchorId") private String networkAnchorId; /** - * OCID of the Network Anchor + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network anchor associated with the resource. * @param networkAnchorId the value to set * @return this builder **/ @@ -227,13 +233,13 @@ public Builder networkAnchorId(String networkAnchorId) { return this; } /** - * Resource Id that comes from the Multi Cloud Control Plane + * The resource Id that comes from the Multicloud control plane. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspResourceId") private String cspResourceId; /** - * Resource Id that comes from the Multi Cloud Control Plane + * The resource Id that comes from the Multicloud control plane. * @param cspResourceId the value to set * @return this builder **/ @@ -263,13 +269,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspAdditionalProperties") private java.util.Map cspAdditionalProperties; /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. * @param cspAdditionalProperties the value to set * @return this builder **/ @@ -279,6 +285,23 @@ public Builder cspAdditionalProperties( this.__explicitlySet__.add("cspAdditionalProperties"); return this; } + /** + * Additional attributes specific to certain resource types, used to construct a URL for accessing the resource in the OCI console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceAdditionalProperties") + private java.util.Map resourceAdditionalProperties; + + /** + * Additional attributes specific to certain resource types, used to construct a URL for accessing the resource in the OCI console. + * @param resourceAdditionalProperties the value to set + * @return this builder + **/ + public Builder resourceAdditionalProperties( + java.util.Map resourceAdditionalProperties) { + this.resourceAdditionalProperties = resourceAdditionalProperties; + this.__explicitlySet__.add("resourceAdditionalProperties"); + return this; + } /** * The date and time the subscription was updated, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). @@ -300,13 +323,13 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * The current state of the multicloud resource. + * The current state of the Multicloud resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the multicloud resource. + * The current state of the Multicloud resource. * @param lifecycleState the value to set * @return this builder **/ @@ -405,6 +428,7 @@ public MulticloudResourceSummary build() { this.cspResourceId, this.timeCreated, this.cspAdditionalProperties, + this.resourceAdditionalProperties, this.timeUpdated, this.lifecycleState, this.freeformTags, @@ -454,6 +478,9 @@ public Builder copy(MulticloudResourceSummary model) { if (model.wasPropertyExplicitlySet("cspAdditionalProperties")) { this.cspAdditionalProperties(model.getCspAdditionalProperties()); } + if (model.wasPropertyExplicitlySet("resourceAdditionalProperties")) { + this.resourceAdditionalProperties(model.getResourceAdditionalProperties()); + } if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } @@ -499,13 +526,13 @@ public String getResourceId() { } /** - * Endpoint used to retrieve displayName and lifeCycleState of the resource. + * Endpoint used to retrieve the resource's display name and lifecycle state. **/ @com.fasterxml.jackson.annotation.JsonProperty("resourceDisplayName") private final String resourceDisplayName; /** - * Endpoint used to retrieve displayName and lifeCycleState of the resource. + * Endpoint used to retrieve the resource's display name and lifecycle state. * @return the value **/ public String getResourceDisplayName() { @@ -513,13 +540,13 @@ public String getResourceDisplayName() { } /** - * What resource it refers to. Eg. VMCluster, ExaInfra, etc. + * Type of resource, such as {@code VMCluster} or {@code ExaInfra}, **/ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") private final String resourceType; /** - * What resource it refers to. Eg. VMCluster, ExaInfra, etc. + * Type of resource, such as {@code VMCluster} or {@code ExaInfra}, * @return the value **/ public String getResourceType() { @@ -527,13 +554,13 @@ public String getResourceType() { } /** - * Compartment name associated the resource. + * Name of the compartment associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") private final String compartmentName; /** - * Compartment name associated the resource. + * Name of the compartment associated with the resource. * @return the value **/ public String getCompartmentName() { @@ -541,13 +568,13 @@ public String getCompartmentName() { } /** - * Compartment Id of the resource. + * Id of the compartment associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Compartment Id of the resource. + * Id of the compartment associated with the resource. * @return the value **/ public String getCompartmentId() { @@ -555,13 +582,13 @@ public String getCompartmentId() { } /** - * Resource Anchor name. + * Name of the virtual cloud network (VCN) associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnName") private final String vcnName; /** - * Resource Anchor name. + * Name of the virtual cloud network (VCN) associated with the resource. * @return the value **/ public String getVcnName() { @@ -569,13 +596,13 @@ public String getVcnName() { } /** - * Id of the Virtual Cloud Network associated to the resource. + * Id of the virtual cloud network (VCN) associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private final String vcnId; /** - * Id of the Virtual Cloud Network associated to the resource. + * Id of the virtual cloud network (VCN) associated with the resource. * @return the value **/ public String getVcnId() { @@ -583,13 +610,13 @@ public String getVcnId() { } /** - * Name of the network anchor associated to the resource. + * Name of the network anchor associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("networkAnchorName") private final String networkAnchorName; /** - * Name of the network anchor associated to the resource. + * Name of the network anchor associated with the resource. * @return the value **/ public String getNetworkAnchorName() { @@ -597,13 +624,13 @@ public String getNetworkAnchorName() { } /** - * OCID of the Network Anchor + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network anchor associated with the resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("networkAnchorId") private final String networkAnchorId; /** - * OCID of the Network Anchor + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network anchor associated with the resource. * @return the value **/ public String getNetworkAnchorId() { @@ -611,13 +638,13 @@ public String getNetworkAnchorId() { } /** - * Resource Id that comes from the Multi Cloud Control Plane + * The resource Id that comes from the Multicloud control plane. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspResourceId") private final String cspResourceId; /** - * Resource Id that comes from the Multi Cloud Control Plane + * The resource Id that comes from the Multicloud control plane. * @return the value **/ public String getCspResourceId() { @@ -643,19 +670,33 @@ public java.util.Date getTimeCreated() { } /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspAdditionalProperties") private final java.util.Map cspAdditionalProperties; /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. * @return the value **/ public java.util.Map getCspAdditionalProperties() { return cspAdditionalProperties; } + /** + * Additional attributes specific to certain resource types, used to construct a URL for accessing the resource in the OCI console. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceAdditionalProperties") + private final java.util.Map resourceAdditionalProperties; + + /** + * Additional attributes specific to certain resource types, used to construct a URL for accessing the resource in the OCI console. + * @return the value + **/ + public java.util.Map getResourceAdditionalProperties() { + return resourceAdditionalProperties; + } + /** * The date and time the subscription was updated, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). @@ -675,7 +716,7 @@ public java.util.Date getTimeUpdated() { } /** - * The current state of the multicloud resource. + * The current state of the Multicloud resource. **/ public enum LifecycleState { Active("ACTIVE"), @@ -723,13 +764,13 @@ public static LifecycleState create(String key) { } }; /** - * The current state of the multicloud resource. + * The current state of the Multicloud resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the multicloud resource. + * The current state of the Multicloud resource. * @return the value **/ public LifecycleState getLifecycleState() { @@ -827,6 +868,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", cspAdditionalProperties=") .append(String.valueOf(this.cspAdditionalProperties)); + sb.append(", resourceAdditionalProperties=") + .append(String.valueOf(this.resourceAdditionalProperties)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -859,6 +902,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals( this.cspAdditionalProperties, other.cspAdditionalProperties) + && java.util.Objects.equals( + this.resourceAdditionalProperties, other.resourceAdditionalProperties) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -901,6 +946,11 @@ public int hashCode() { + (this.cspAdditionalProperties == null ? 43 : this.cspAdditionalProperties.hashCode()); + result = + (result * PRIME) + + (this.resourceAdditionalProperties == null + ? 43 + : this.resourceAdditionalProperties.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionCollection.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionCollection.java index 412cbc5d164..f18fe2ce3ec 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionCollection.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionCollection.java @@ -5,7 +5,10 @@ package com.oracle.bmc.multicloud.model; /** - * Results of a multicloud subscription. Contains both MulticloudSubscription information. + * Properties that define activated Multicloud subscriptions in the indicated compartment. + * For more information, see + * [Listing Multicloud Subscriptions](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscriptions.htm). + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -31,13 +34,13 @@ public MulticloudSubscriptionCollection(java.util.List items; /** - * List of MulticloudSubscriptions. + * List of Multicloud subscriptions. * @param items the value to set * @return this builder **/ @@ -80,13 +83,13 @@ public Builder toBuilder() { } /** - * List of MulticloudSubscriptions. + * List of Multicloud subscriptions. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * List of MulticloudSubscriptions. + * List of Multicloud subscriptions. * @return the value **/ public java.util.List getItems() { diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionSummary.java index 6be21972364..40bcad9e165 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionSummary.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/MulticloudSubscriptionSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.multicloud.model; /** - * Multicloud subscription object + * A Multicloud subscription. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -26,6 +26,7 @@ public final class MulticloudSubscriptionSummary "classicSubscriptionId", "subscriptionId", "partnerCloudAccountIdentifier", + "partnerCloudTenantIdentifier", "serviceName", "timeLinkedDate", "paymentPlan", @@ -43,6 +44,7 @@ public MulticloudSubscriptionSummary( String classicSubscriptionId, String subscriptionId, String partnerCloudAccountIdentifier, + String partnerCloudTenantIdentifier, SubscriptionType serviceName, java.util.Date timeLinkedDate, String paymentPlan, @@ -59,6 +61,7 @@ public MulticloudSubscriptionSummary( this.classicSubscriptionId = classicSubscriptionId; this.subscriptionId = subscriptionId; this.partnerCloudAccountIdentifier = partnerCloudAccountIdentifier; + this.partnerCloudTenantIdentifier = partnerCloudTenantIdentifier; this.serviceName = serviceName; this.timeLinkedDate = timeLinkedDate; this.paymentPlan = paymentPlan; @@ -76,13 +79,13 @@ public MulticloudSubscriptionSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Subscription ID for OCI and Partner cloud in classic format. + * Subscription ID for OCI and partner cloud in classic format. **/ @com.fasterxml.jackson.annotation.JsonProperty("classicSubscriptionId") private String classicSubscriptionId; /** - * Subscription ID for OCI and Partner cloud in classic format. + * Subscription ID for OCI and partner cloud in classic format. * @param classicSubscriptionId the value to set * @return this builder **/ @@ -92,13 +95,17 @@ public Builder classicSubscriptionId(String classicSubscriptionId) { return this; } /** - * URL to the subscription page https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.amaaaaaapf266qyaqohz27zvh45jzaielgwojo53bh24s7cy5q5g7fiknpxa?region=us-ashburn-1. + * URL to the subscription details page. + * Example: {@code https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.exampleuniqueid?region=us-ashburn-1}. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private String subscriptionId; /** - * URL to the subscription page https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.amaaaaaapf266qyaqohz27zvh45jzaielgwojo53bh24s7cy5q5g7fiknpxa?region=us-ashburn-1. + * URL to the subscription details page. + * Example: {@code https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.exampleuniqueid?region=us-ashburn-1}. + * * @param subscriptionId the value to set * @return this builder **/ @@ -124,13 +131,29 @@ public Builder partnerCloudAccountIdentifier(String partnerCloudAccountIdentifie return this; } /** - * The serviceName that externalLocation map object belongs to. + * The partner cloud tenant ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("partnerCloudTenantIdentifier") + private String partnerCloudTenantIdentifier; + + /** + * The partner cloud tenant ID. + * @param partnerCloudTenantIdentifier the value to set + * @return this builder + **/ + public Builder partnerCloudTenantIdentifier(String partnerCloudTenantIdentifier) { + this.partnerCloudTenantIdentifier = partnerCloudTenantIdentifier; + this.__explicitlySet__.add("partnerCloudTenantIdentifier"); + return this; + } + /** + * The cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceName") private SubscriptionType serviceName; /** - * The serviceName that externalLocation map object belongs to. + * The cloud service provider. * @param serviceName the value to set * @return this builder **/ @@ -140,7 +163,7 @@ public Builder serviceName(SubscriptionType serviceName) { return this; } /** - * The date and time for when the multicloud was created, in the format defined by + * The date and time that the Multicloud base compartment was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -148,7 +171,7 @@ public Builder serviceName(SubscriptionType serviceName) { private java.util.Date timeLinkedDate; /** - * The date and time for when the multicloud was created, in the format defined by + * The date and time that the Multicloud base compartment was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @param timeLinkedDate the value to set @@ -192,7 +215,7 @@ public Builder activeCommitment(String activeCommitment) { return this; } /** - * The date and time for when the subscription is finishing, in the format defined by + * The end date and time for the subscription, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -200,7 +223,7 @@ public Builder activeCommitment(String activeCommitment) { private java.util.Date timeEndDate; /** - * The date and time for when the subscription is finishing, in the format defined by + * The end date and time for the subscription, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @param timeEndDate the value to set @@ -228,13 +251,15 @@ public Builder lifecycleState(LifecycleState lifecycleState) { return this; } /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("cspAdditionalProperties") private java.util.Map cspAdditionalProperties; /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. + * * @param cspAdditionalProperties the value to set * @return this builder **/ @@ -245,7 +270,7 @@ public Builder cspAdditionalProperties( return this; } /** - * The date and time the subscription was created, in the format defined by + * The date and time that the subscription was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -253,7 +278,7 @@ public Builder cspAdditionalProperties( private java.util.Date timeCreated; /** - * The date and time the subscription was created, in the format defined by + * The date and time that the subscription was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @param timeCreated the value to set @@ -265,7 +290,7 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The date and time the subscription was updated, in the format defined by + * The date and time that the subscription was updated, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -273,7 +298,7 @@ public Builder timeCreated(java.util.Date timeCreated) { private java.util.Date timeUpdated; /** - * The date and time the subscription was updated, in the format defined by + * The date and time that the subscription was updated, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @param timeUpdated the value to set @@ -365,6 +390,7 @@ public MulticloudSubscriptionSummary build() { this.classicSubscriptionId, this.subscriptionId, this.partnerCloudAccountIdentifier, + this.partnerCloudTenantIdentifier, this.serviceName, this.timeLinkedDate, this.paymentPlan, @@ -394,6 +420,9 @@ public Builder copy(MulticloudSubscriptionSummary model) { if (model.wasPropertyExplicitlySet("partnerCloudAccountIdentifier")) { this.partnerCloudAccountIdentifier(model.getPartnerCloudAccountIdentifier()); } + if (model.wasPropertyExplicitlySet("partnerCloudTenantIdentifier")) { + this.partnerCloudTenantIdentifier(model.getPartnerCloudTenantIdentifier()); + } if (model.wasPropertyExplicitlySet("serviceName")) { this.serviceName(model.getServiceName()); } @@ -446,13 +475,13 @@ public Builder toBuilder() { } /** - * Subscription ID for OCI and Partner cloud in classic format. + * Subscription ID for OCI and partner cloud in classic format. **/ @com.fasterxml.jackson.annotation.JsonProperty("classicSubscriptionId") private final String classicSubscriptionId; /** - * Subscription ID for OCI and Partner cloud in classic format. + * Subscription ID for OCI and partner cloud in classic format. * @return the value **/ public String getClassicSubscriptionId() { @@ -460,13 +489,17 @@ public String getClassicSubscriptionId() { } /** - * URL to the subscription page https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.amaaaaaapf266qyaqohz27zvh45jzaielgwojo53bh24s7cy5q5g7fiknpxa?region=us-ashburn-1. + * URL to the subscription details page. + * Example: {@code https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.exampleuniqueid?region=us-ashburn-1}. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private final String subscriptionId; /** - * URL to the subscription page https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.amaaaaaapf266qyaqohz27zvh45jzaielgwojo53bh24s7cy5q5g7fiknpxa?region=us-ashburn-1. + * URL to the subscription details page. + * Example: {@code https://{console-url}/org-mgmt/subscription/ocid1.organizationssubscription.oc1.iad.exampleuniqueid?region=us-ashburn-1}. + * * @return the value **/ public String getSubscriptionId() { @@ -488,13 +521,27 @@ public String getPartnerCloudAccountIdentifier() { } /** - * The serviceName that externalLocation map object belongs to. + * The partner cloud tenant ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("partnerCloudTenantIdentifier") + private final String partnerCloudTenantIdentifier; + + /** + * The partner cloud tenant ID. + * @return the value + **/ + public String getPartnerCloudTenantIdentifier() { + return partnerCloudTenantIdentifier; + } + + /** + * The cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceName") private final SubscriptionType serviceName; /** - * The serviceName that externalLocation map object belongs to. + * The cloud service provider. * @return the value **/ public SubscriptionType getServiceName() { @@ -502,7 +549,7 @@ public SubscriptionType getServiceName() { } /** - * The date and time for when the multicloud was created, in the format defined by + * The date and time that the Multicloud base compartment was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -510,7 +557,7 @@ public SubscriptionType getServiceName() { private final java.util.Date timeLinkedDate; /** - * The date and time for when the multicloud was created, in the format defined by + * The date and time that the Multicloud base compartment was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @return the value @@ -548,7 +595,7 @@ public String getActiveCommitment() { } /** - * The date and time for when the subscription is finishing, in the format defined by + * The end date and time for the subscription, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -556,7 +603,7 @@ public String getActiveCommitment() { private final java.util.Date timeEndDate; /** - * The date and time for when the subscription is finishing, in the format defined by + * The end date and time for the subscription, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @return the value @@ -628,13 +675,15 @@ public LifecycleState getLifecycleState() { } /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("cspAdditionalProperties") private final java.util.Map cspAdditionalProperties; /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Properties specific to the cloud service provider. For example, AzureSubnetId for Azure. + * * @return the value **/ public java.util.Map getCspAdditionalProperties() { @@ -642,7 +691,7 @@ public java.util.Map getCspAdditionalProperties() { } /** - * The date and time the subscription was created, in the format defined by + * The date and time that the subscription was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -650,7 +699,7 @@ public java.util.Map getCspAdditionalProperties() { private final java.util.Date timeCreated; /** - * The date and time the subscription was created, in the format defined by + * The date and time that the subscription was created, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @return the value @@ -660,7 +709,7 @@ public java.util.Date getTimeCreated() { } /** - * The date and time the subscription was updated, in the format defined by + * The date and time that the subscription was updated, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * **/ @@ -668,7 +717,7 @@ public java.util.Date getTimeCreated() { private final java.util.Date timeUpdated; /** - * The date and time the subscription was updated, in the format defined by + * The date and time that the subscription was updated, in the format defined by * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * * @return the value @@ -759,6 +808,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", partnerCloudAccountIdentifier=") .append(String.valueOf(this.partnerCloudAccountIdentifier)); + sb.append(", partnerCloudTenantIdentifier=") + .append(String.valueOf(this.partnerCloudTenantIdentifier)); sb.append(", serviceName=").append(String.valueOf(this.serviceName)); sb.append(", timeLinkedDate=").append(String.valueOf(this.timeLinkedDate)); sb.append(", paymentPlan=").append(String.valueOf(this.paymentPlan)); @@ -790,6 +841,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals( this.partnerCloudAccountIdentifier, other.partnerCloudAccountIdentifier) + && java.util.Objects.equals( + this.partnerCloudTenantIdentifier, other.partnerCloudTenantIdentifier) && java.util.Objects.equals(this.serviceName, other.serviceName) && java.util.Objects.equals(this.timeLinkedDate, other.timeLinkedDate) && java.util.Objects.equals(this.paymentPlan, other.paymentPlan) @@ -823,6 +876,11 @@ public int hashCode() { + (this.partnerCloudAccountIdentifier == null ? 43 : this.partnerCloudAccountIdentifier.hashCode()); + result = + (result * PRIME) + + (this.partnerCloudTenantIdentifier == null + ? 43 + : this.partnerCloudTenantIdentifier.hashCode()); result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); result = (result * PRIME) diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/NetworkAnchorSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/NetworkAnchorSummary.java index a2290f33717..1cbd7bac8ed 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/NetworkAnchorSummary.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/NetworkAnchorSummary.java @@ -40,7 +40,8 @@ public final class NetworkAnchorSummary extends com.oracle.bmc.http.internal.Exp "freeformTags", "definedTags", "systemTags", - "subscriptionType" + "subscriptionType", + "cidrBlocks" }) public NetworkAnchorSummary( String id, @@ -61,7 +62,8 @@ public NetworkAnchorSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - SubscriptionType subscriptionType) { + SubscriptionType subscriptionType, + java.util.List cidrBlocks) { super(); this.id = id; this.displayName = displayName; @@ -82,6 +84,7 @@ public NetworkAnchorSummary( this.definedTags = definedTags; this.systemTags = systemTags; this.subscriptionType = subscriptionType; + this.cidrBlocks = cidrBlocks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -432,6 +435,22 @@ public Builder subscriptionType(SubscriptionType subscriptionType) { this.__explicitlySet__.add("subscriptionType"); return this; } + /** + * An Azure/GCP/AWS cidrBlocks + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cidrBlocks") + private java.util.List cidrBlocks; + + /** + * An Azure/GCP/AWS cidrBlocks + * @param cidrBlocks the value to set + * @return this builder + **/ + public Builder cidrBlocks(java.util.List cidrBlocks) { + this.cidrBlocks = cidrBlocks; + this.__explicitlySet__.add("cidrBlocks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -457,7 +476,8 @@ public NetworkAnchorSummary build() { this.freeformTags, this.definedTags, this.systemTags, - this.subscriptionType); + this.subscriptionType, + this.cidrBlocks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -523,6 +543,9 @@ public Builder copy(NetworkAnchorSummary model) { if (model.wasPropertyExplicitlySet("subscriptionType")) { this.subscriptionType(model.getSubscriptionType()); } + if (model.wasPropertyExplicitlySet("cidrBlocks")) { + this.cidrBlocks(model.getCidrBlocks()); + } return this; } } @@ -842,6 +865,20 @@ public SubscriptionType getSubscriptionType() { return subscriptionType; } + /** + * An Azure/GCP/AWS cidrBlocks + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cidrBlocks") + private final java.util.List cidrBlocks; + + /** + * An Azure/GCP/AWS cidrBlocks + * @return the value + **/ + public java.util.List getCidrBlocks() { + return cidrBlocks; + } + @Override public String toString() { return this.toString(true); @@ -879,6 +916,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", subscriptionType=").append(String.valueOf(this.subscriptionType)); + sb.append(", cidrBlocks=").append(String.valueOf(this.cidrBlocks)); sb.append(")"); return sb.toString(); } @@ -916,6 +954,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.subscriptionType, other.subscriptionType) + && java.util.Objects.equals(this.cidrBlocks, other.cidrBlocks) && super.equals(other); } @@ -972,6 +1011,7 @@ public int hashCode() { result = (result * PRIME) + (this.subscriptionType == null ? 43 : this.subscriptionType.hashCode()); + result = (result * PRIME) + (this.cidrBlocks == null ? 43 : this.cidrBlocks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchor.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchor.java index 49c6980f776..01005dc7621 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchor.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchor.java @@ -5,7 +5,7 @@ package com.oracle.bmc.multicloud.model; /** - * A ResourceAnchor is a description of a ResourceAnchor. + * A resource anchor. *

* 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 @@ -87,13 +87,13 @@ public ResourceAnchor( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @param id the value to set * @return this builder **/ @@ -167,7 +167,7 @@ public Builder compartmentName(String compartmentName) { return this; } /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -176,7 +176,7 @@ public Builder compartmentName(String compartmentName) { private java.util.Date timeCreated; /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

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

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -198,7 +198,7 @@ public Builder timeCreated(java.util.Date timeCreated) { private java.util.Date timeUpdated; /** - * The date and time the ResourceAnchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -211,13 +211,13 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. * @param lifecycleState the value to set * @return this builder **/ @@ -227,7 +227,7 @@ public Builder lifecycleState(LifecycleState lifecycleState) { return this; } /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. * **/ @@ -235,7 +235,7 @@ public Builder lifecycleState(LifecycleState lifecycleState) { private String lifecycleDetails; /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor 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 @@ -520,13 +520,13 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @return the value **/ public String getId() { @@ -590,7 +590,7 @@ public String getCompartmentName() { } /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -599,7 +599,7 @@ public String getCompartmentName() { private final java.util.Date timeCreated; /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

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

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -619,7 +619,7 @@ public java.util.Date getTimeCreated() { private final java.util.Date timeUpdated; /** - * The date and time the ResourceAnchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -630,7 +630,7 @@ public java.util.Date getTimeUpdated() { } /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. **/ public enum LifecycleState { Creating("CREATING"), @@ -682,13 +682,13 @@ public static LifecycleState create(String key) { } }; /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. * @return the value **/ public LifecycleState getLifecycleState() { @@ -696,7 +696,7 @@ public LifecycleState getLifecycleState() { } /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. * **/ @@ -704,7 +704,7 @@ public LifecycleState getLifecycleState() { private final String lifecycleDetails; /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. * * @return the value diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorCollection.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorCollection.java index a1fca26b4f1..45e752b16a0 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorCollection.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.multicloud.model; /** - * Results of a resourceAnchor search. Contains both ResourceAnchorSummary items and other information, such as metadata. + * List of resource anchors in the indicated Multicloud subscription. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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 ResourceAnchorCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * List of resourceAnchors. + * List of resource anchors. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * List of resourceAnchors. + * List of resource anchors. * @param items the value to set * @return this builder **/ @@ -79,13 +79,13 @@ public Builder toBuilder() { } /** - * List of resourceAnchors. + * List of resource anchors. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * List of resourceAnchors. + * List of resource anchors. * @return the value **/ public java.util.List getItems() { diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorSummary.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorSummary.java index d8487b3285f..13d225ecb01 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorSummary.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/model/ResourceAnchorSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.multicloud.model; /** - * Summary information about a ResourceAnchor. + * The properties that define a resource anchor. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -40,7 +40,8 @@ public final class ResourceAnchorSummary "subscriptionId", "systemTags", "linkedCompartmentId", - "linkedCompartmentName" + "linkedCompartmentName", + "resourceAnchorUri" }) public ResourceAnchorSummary( String id, @@ -60,7 +61,8 @@ public ResourceAnchorSummary( String subscriptionId, java.util.Map> systemTags, String linkedCompartmentId, - String linkedCompartmentName) { + String linkedCompartmentName, + String resourceAnchorUri) { super(); this.id = id; this.displayName = displayName; @@ -80,18 +82,19 @@ public ResourceAnchorSummary( this.systemTags = systemTags; this.linkedCompartmentId = linkedCompartmentId; this.linkedCompartmentName = linkedCompartmentName; + this.resourceAnchorUri = resourceAnchorUri; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @param id the value to set * @return this builder **/ @@ -149,13 +152,13 @@ public Builder compartmentName(String compartmentName) { return this; } /** - * Partner Cloud Account Identifier of the Cloud Service Provider. + * Partner cloud account identifier of the cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("partnerCloudAccountIdentifier") private String partnerCloudAccountIdentifier; /** - * Partner Cloud Account Identifier of the Cloud Service Provider. + * Partner cloud account identifier of the cloud service provider. * @param partnerCloudAccountIdentifier the value to set * @return this builder **/ @@ -165,13 +168,13 @@ public Builder partnerCloudAccountIdentifier(String partnerCloudAccountIdentifie return this; } /** - * Resource Anchor Id in the Cloud Service Provider. + * Resource anchor ID in the cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspResourceAnchorId") private String cspResourceAnchorId; /** - * Resource Anchor Id in the Cloud Service Provider. + * Resource anchor ID in the cloud service provider. * @param cspResourceAnchorId the value to set * @return this builder **/ @@ -181,13 +184,13 @@ public Builder cspResourceAnchorId(String cspResourceAnchorId) { return this; } /** - * Resource Anchor Name in the Cloud Service Provider. + * Resource anchor name in the cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspResourceAnchorName") private String cspResourceAnchorName; /** - * Resource Anchor Name in the Cloud Service Provider. + * Resource anchor name in the cloud service provider. * @param cspResourceAnchorName the value to set * @return this builder **/ @@ -197,13 +200,13 @@ public Builder cspResourceAnchorName(String cspResourceAnchorName) { return this; } /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Cloud service provider-specific properties, such as AzureSubnetId for Azure. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspAdditionalProperties") private java.util.Map cspAdditionalProperties; /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Cloud service provider-specific properties, such as AzureSubnetId for Azure. * @param cspAdditionalProperties the value to set * @return this builder **/ @@ -214,7 +217,7 @@ public Builder cspAdditionalProperties( return this; } /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -223,7 +226,7 @@ public Builder cspAdditionalProperties( private java.util.Date timeCreated; /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

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

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -245,7 +248,7 @@ public Builder timeCreated(java.util.Date timeCreated) { private java.util.Date timeUpdated; /** - * The date and time the ResourceAnchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -258,13 +261,13 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private ResourceAnchor.LifecycleState lifecycleState; /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. * @param lifecycleState the value to set * @return this builder **/ @@ -274,7 +277,7 @@ public Builder lifecycleState(ResourceAnchor.LifecycleState lifecycleState) { return this; } /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. * **/ @@ -282,7 +285,7 @@ public Builder lifecycleState(ResourceAnchor.LifecycleState lifecycleState) { private String lifecycleDetails; /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor 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 @@ -381,16 +384,16 @@ public Builder systemTags(java.util.Map> s return this; } /** - * Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. - * This compartmentId is different from where resource Anchor live. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. * **/ @com.fasterxml.jackson.annotation.JsonProperty("linkedCompartmentId") private String linkedCompartmentId; /** - * Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. - * This compartmentId is different from where resource Anchor live. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. * * @param linkedCompartmentId the value to set * @return this builder @@ -401,13 +404,17 @@ public Builder linkedCompartmentId(String linkedCompartmentId) { return this; } /** - * The name assigned to the compartment which was created or linked by customer with resource anchor. This compartment is different from where resource Anchor live. + * The name of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("linkedCompartmentName") private String linkedCompartmentName; /** - * The name assigned to the compartment which was created or linked by customer with resource anchor. This compartment is different from where resource Anchor live. + * The name of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. + * * @param linkedCompartmentName the value to set * @return this builder **/ @@ -416,6 +423,22 @@ public Builder linkedCompartmentName(String linkedCompartmentName) { this.__explicitlySet__.add("linkedCompartmentName"); return this; } + /** + * URI for the cloud service provider's resource anchor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceAnchorUri") + private String resourceAnchorUri; + + /** + * URI for the cloud service provider's resource anchor. + * @param resourceAnchorUri the value to set + * @return this builder + **/ + public Builder resourceAnchorUri(String resourceAnchorUri) { + this.resourceAnchorUri = resourceAnchorUri; + this.__explicitlySet__.add("resourceAnchorUri"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -440,7 +463,8 @@ public ResourceAnchorSummary build() { this.subscriptionId, this.systemTags, this.linkedCompartmentId, - this.linkedCompartmentName); + this.linkedCompartmentName, + this.resourceAnchorUri); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -503,6 +527,9 @@ public Builder copy(ResourceAnchorSummary model) { if (model.wasPropertyExplicitlySet("linkedCompartmentName")) { this.linkedCompartmentName(model.getLinkedCompartmentName()); } + if (model.wasPropertyExplicitlySet("resourceAnchorUri")) { + this.resourceAnchorUri(model.getResourceAnchorUri()); + } return this; } } @@ -519,13 +546,13 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @return the value **/ public String getId() { @@ -575,13 +602,13 @@ public String getCompartmentName() { } /** - * Partner Cloud Account Identifier of the Cloud Service Provider. + * Partner cloud account identifier of the cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("partnerCloudAccountIdentifier") private final String partnerCloudAccountIdentifier; /** - * Partner Cloud Account Identifier of the Cloud Service Provider. + * Partner cloud account identifier of the cloud service provider. * @return the value **/ public String getPartnerCloudAccountIdentifier() { @@ -589,13 +616,13 @@ public String getPartnerCloudAccountIdentifier() { } /** - * Resource Anchor Id in the Cloud Service Provider. + * Resource anchor ID in the cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspResourceAnchorId") private final String cspResourceAnchorId; /** - * Resource Anchor Id in the Cloud Service Provider. + * Resource anchor ID in the cloud service provider. * @return the value **/ public String getCspResourceAnchorId() { @@ -603,13 +630,13 @@ public String getCspResourceAnchorId() { } /** - * Resource Anchor Name in the Cloud Service Provider. + * Resource anchor name in the cloud service provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspResourceAnchorName") private final String cspResourceAnchorName; /** - * Resource Anchor Name in the Cloud Service Provider. + * Resource anchor name in the cloud service provider. * @return the value **/ public String getCspResourceAnchorName() { @@ -617,13 +644,13 @@ public String getCspResourceAnchorName() { } /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Cloud service provider-specific properties, such as AzureSubnetId for Azure. **/ @com.fasterxml.jackson.annotation.JsonProperty("cspAdditionalProperties") private final java.util.Map cspAdditionalProperties; /** - * CSP Specific Additional Properties, AzureSubnetId for Azure + * Cloud service provider-specific properties, such as AzureSubnetId for Azure. * @return the value **/ public java.util.Map getCspAdditionalProperties() { @@ -631,7 +658,7 @@ public java.util.Map getCspAdditionalProperties() { } /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -640,7 +667,7 @@ public java.util.Map getCspAdditionalProperties() { private final java.util.Date timeCreated; /** - * The date and time the ResourceAnchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -651,7 +678,7 @@ public java.util.Date getTimeCreated() { } /** - * The date and time the ResourceAnchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -660,7 +687,7 @@ public java.util.Date getTimeCreated() { private final java.util.Date timeUpdated; /** - * The date and time the ResourceAnchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * The date and time the resource anchor was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -671,13 +698,13 @@ public java.util.Date getTimeUpdated() { } /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final ResourceAnchor.LifecycleState lifecycleState; /** - * The current state of the ResourceAnchor. + * The current state of the resource anchor. * @return the value **/ public ResourceAnchor.LifecycleState getLifecycleState() { @@ -685,7 +712,7 @@ public ResourceAnchor.LifecycleState getLifecycleState() { } /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. * **/ @@ -693,7 +720,7 @@ public ResourceAnchor.LifecycleState getLifecycleState() { private final String lifecycleDetails; /** - * A message that describes the current state of the ResourceAnchor in more detail. For example, + * A message that describes the current state of the resource anchor in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. * * @return the value @@ -781,16 +808,16 @@ public java.util.Map> getSystemTags() { } /** - * Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. - * This compartmentId is different from where resource Anchor live. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. * **/ @com.fasterxml.jackson.annotation.JsonProperty("linkedCompartmentId") private final String linkedCompartmentId; /** - * Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. - * This compartmentId is different from where resource Anchor live. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. * * @return the value **/ @@ -799,19 +826,37 @@ public String getLinkedCompartmentId() { } /** - * The name assigned to the compartment which was created or linked by customer with resource anchor. This compartment is different from where resource Anchor live. + * The name of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("linkedCompartmentName") private final String linkedCompartmentName; /** - * The name assigned to the compartment which was created or linked by customer with resource anchor. This compartment is different from where resource Anchor live. + * The name of the optional OCI compartment that was created or linked with the resource anchor. + * This compartment is different from the compartment that contains the resource anchor. + * * @return the value **/ public String getLinkedCompartmentName() { return linkedCompartmentName; } + /** + * URI for the cloud service provider's resource anchor. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceAnchorUri") + private final String resourceAnchorUri; + + /** + * URI for the cloud service provider's resource anchor. + * @return the value + **/ + public String getResourceAnchorUri() { + return resourceAnchorUri; + } + @Override public String toString() { return this.toString(true); @@ -846,6 +891,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", linkedCompartmentId=").append(String.valueOf(this.linkedCompartmentId)); sb.append(", linkedCompartmentName=").append(String.valueOf(this.linkedCompartmentName)); + sb.append(", resourceAnchorUri=").append(String.valueOf(this.resourceAnchorUri)); sb.append(")"); return sb.toString(); } @@ -880,6 +926,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.linkedCompartmentId, other.linkedCompartmentId) && java.util.Objects.equals(this.linkedCompartmentName, other.linkedCompartmentName) + && java.util.Objects.equals(this.resourceAnchorUri, other.resourceAnchorUri) && super.equals(other); } @@ -939,6 +986,9 @@ public int hashCode() { + (this.linkedCompartmentName == null ? 43 : this.linkedCompartmentName.hashCode()); + result = + (result * PRIME) + + (this.resourceAnchorUri == null ? 43 : this.resourceAnchorUri.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetNetworkAnchorRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetNetworkAnchorRequest.java index 938980d8395..0ef7c6dd8fa 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetNetworkAnchorRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetNetworkAnchorRequest.java @@ -23,12 +23,12 @@ public String getNetworkAnchorId() { return networkAnchorId; } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { return subscriptionServiceName; @@ -64,12 +64,12 @@ public String getOpcRequestId() { return opcRequestId; } /** - * The Cloud Service Provider region. + * The cloud service provider region. */ private String externalLocation; /** - * The Cloud Service Provider region. + * The cloud service provider region. */ public String getExternalLocation() { return externalLocation; @@ -109,12 +109,12 @@ public Builder networkAnchorId(String networkAnchorId) { } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ @@ -163,12 +163,12 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The Cloud Service Provider region. + * The cloud service provider region. */ private String externalLocation = null; /** - * The Cloud Service Provider region. + * The cloud service provider region. * @param externalLocation the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetResourceAnchorRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetResourceAnchorRequest.java index 1c38b16f101..8da37022b30 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetResourceAnchorRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/GetResourceAnchorRequest.java @@ -12,23 +12,23 @@ public class GetResourceAnchorRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ private String resourceAnchorId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ public String getResourceAnchorId() { return resourceAnchorId; } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { return subscriptionServiceName; @@ -64,12 +64,16 @@ public String getOpcRequestId() { return opcRequestId; } /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * */ private Boolean shouldFetchCompartmentName; /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * */ public Boolean getShouldFetchCompartmentName() { return shouldFetchCompartmentName; @@ -83,12 +87,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ private String resourceAnchorId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @param resourceAnchorId the value to set * @return this builder instance */ @@ -98,12 +102,12 @@ public Builder resourceAnchorId(String resourceAnchorId) { } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ @@ -152,12 +156,16 @@ public Builder opcRequestId(String opcRequestId) { } /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * */ private Boolean shouldFetchCompartmentName = null; /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * * @param shouldFetchCompartmentName the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationDetailsMetadataRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationDetailsMetadataRequest.java index a4c6f7ef7e2..37c7a39d306 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationDetailsMetadataRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationDetailsMetadataRequest.java @@ -24,23 +24,23 @@ public String getSubscriptionId() { return subscriptionId; } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { return subscriptionServiceName; } /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). */ private EntityType entityType; /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). **/ public enum EntityType { Dbsystem("dbsystem"), @@ -75,21 +75,21 @@ public static EntityType create(String key) { }; /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). */ public EntityType getEntityType() { return entityType; } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ public String getCompartmentId() { @@ -107,34 +107,34 @@ public String getLinkedCompartmentId() { return linkedCompartmentId; } /** - * The Cloud Service Provider region. + * The cloud service provider region. */ private String externalLocation; /** - * The Cloud Service Provider region. + * The cloud service provider region. */ public String getExternalLocation() { return externalLocation; } /** - * OCI Logical AD to filter the response. + * OCI logical availability domain (AD) to filter the response. */ private String logicalZone; /** - * OCI Logical AD to filter the response. + * OCI logical availability domain (AD) to filter the response. */ public String getLogicalZone() { return logicalZone; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cluster Placement Group. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group. */ private String clusterPlacementGroupId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cluster Placement Group. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group. */ public String getClusterPlacementGroupId() { return clusterPlacementGroupId; @@ -175,11 +175,15 @@ public String getPage() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -280,12 +284,12 @@ public Builder subscriptionId(String subscriptionId) { } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ @@ -296,12 +300,12 @@ public Builder subscriptionServiceName( } /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). */ private EntityType entityType = null; /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). * @param entityType the value to set * @return this builder instance */ @@ -312,14 +316,14 @@ public Builder entityType(EntityType entityType) { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * * @param compartmentId the value to set * @return this builder instance @@ -345,12 +349,12 @@ public Builder linkedCompartmentId(String linkedCompartmentId) { } /** - * The Cloud Service Provider region. + * The cloud service provider region. */ private String externalLocation = null; /** - * The Cloud Service Provider region. + * The cloud service provider region. * @param externalLocation the value to set * @return this builder instance */ @@ -360,12 +364,12 @@ public Builder externalLocation(String externalLocation) { } /** - * OCI Logical AD to filter the response. + * OCI logical availability domain (AD) to filter the response. */ private String logicalZone = null; /** - * OCI Logical AD to filter the response. + * OCI logical availability domain (AD) to filter the response. * @param logicalZone the value to set * @return this builder instance */ @@ -375,12 +379,12 @@ public Builder logicalZone(String logicalZone) { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cluster Placement Group. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group. */ private String clusterPlacementGroupId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cluster Placement Group. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group. * @param clusterPlacementGroupId the value to set * @return this builder instance */ @@ -433,11 +437,15 @@ public Builder page(String page) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationMappingMetadataRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationMappingMetadataRequest.java index db873370b88..622decd02ce 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationMappingMetadataRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationMappingMetadataRequest.java @@ -13,13 +13,13 @@ public class ListExternalLocationMappingMetadataRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The subscription type of the Cloud Service Provider. + * The cloud service provider. */ private java.util.List subscriptionServiceName; /** - * The subscription type of the Cloud Service Provider. + * The cloud service provider. */ public java.util.List getSubscriptionServiceName() { @@ -27,14 +27,14 @@ public class ListExternalLocationMappingMetadataRequest } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ public String getCompartmentId() { @@ -87,11 +87,15 @@ public String getPage() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -177,13 +181,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The subscription type of the Cloud Service Provider. + * The cloud service provider. */ private java.util.List subscriptionServiceName = null; /** - * The subscription type of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ @@ -195,7 +199,7 @@ public Builder subscriptionServiceName( } /** - * Singular setter. The subscription type of the Cloud Service Provider. + * Singular setter. The cloud service provider. * @param singularValue the singular value to set * @return this builder instance */ @@ -205,14 +209,14 @@ public Builder subscriptionServiceName(SubscriptionType singularValue) { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * * @param compartmentId the value to set * @return this builder instance @@ -281,11 +285,15 @@ public Builder page(String page) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationSummariesMetadataRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationSummariesMetadataRequest.java index 3060f707139..81c0a63d03f 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationSummariesMetadataRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListExternalLocationSummariesMetadataRequest.java @@ -13,26 +13,26 @@ public class ListExternalLocationSummariesMetadataRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { return subscriptionServiceName; } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ public String getCompartmentId() { @@ -50,12 +50,12 @@ public String getSubscriptionId() { return subscriptionId; } /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). */ private EntityType entityType; /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). **/ public enum EntityType { Dbsystem("dbsystem"), @@ -90,7 +90,7 @@ public static EntityType create(String key) { }; /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). */ public EntityType getEntityType() { return entityType; @@ -131,11 +131,15 @@ public String getPage() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -221,12 +225,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ @@ -238,14 +242,14 @@ public Builder subscriptionServiceName( /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * * @param compartmentId the value to set * @return this builder instance @@ -271,12 +275,12 @@ public Builder subscriptionId(String subscriptionId) { } /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). */ private EntityType entityType = null; /** - * The resource type query (i.e. dbsystem, instance etc.) + * The resource type query (for example, dbsystem or instance). * @param entityType the value to set * @return this builder instance */ @@ -329,11 +333,15 @@ public Builder page(String page) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMultiCloudMetadataRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMultiCloudMetadataRequest.java index c02d47339b6..38368f30a39 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMultiCloudMetadataRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMultiCloudMetadataRequest.java @@ -59,11 +59,15 @@ public String getPage() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -207,11 +211,15 @@ public Builder page(String page) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudAlertsRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudAlertsRequest.java new file mode 100644 index 00000000000..30f3b907eae --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudAlertsRequest.java @@ -0,0 +1,816 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.requests; + +import com.oracle.bmc.multicloud.model.*; +/** + * Example: Click here to see how to use ListMulticloudAlertsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class ListMulticloudAlertsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Filter alerts associated with a specific resource OCID. + */ + private String resourceId; + + /** + * Filter alerts associated with a specific resource OCID. + */ + public String getResourceId() { + return resourceId; + } + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + */ + private String resourceType; + + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + */ + public String getResourceType() { + return resourceType; + } + /** + * Filter alerts by alert type (e.g. IAM_POLICY_GAP). + */ + private String alertType; + + /** + * Filter alerts by alert type (e.g. IAM_POLICY_GAP). + */ + public String getAlertType() { + return alertType; + } + /** + * Filter alerts generated by a specific internal component + * (e.g. MCL, BILLING, ORP). + * + */ + private String alertFunctionName; + + /** + * Filter alerts generated by a specific internal component + * (e.g. MCL, BILLING, ORP). + * + */ + public String getAlertFunctionName() { + return alertFunctionName; + } + /** + * Filter alerts by severity. + */ + private Severity severity; + + /** + * Filter alerts by severity. + **/ + public enum Severity { + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Critical("CRITICAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Severity v : Severity.values()) { + map.put(v.getValue(), v); + } + } + + Severity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Severity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Severity: " + key); + } + }; + + /** + * Filter alerts by severity. + */ + public Severity getSeverity() { + return severity; + } + /** + * Filter alerts by alert status. + * User interaction: ACKNOWLEDGED, UNACKNOWLEDGED + * System lifecycle: RESOLVED + * + */ + private AlertStatus alertStatus; + + /** + * Filter alerts by alert status. + * User interaction: ACKNOWLEDGED, UNACKNOWLEDGED + * System lifecycle: RESOLVED + * + **/ + public enum AlertStatus { + Unacknowledged("UNACKNOWLEDGED"), + Acknowledged("ACKNOWLEDGED"), + Resolved("RESOLVED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AlertStatus v : AlertStatus.values()) { + map.put(v.getValue(), v); + } + } + + AlertStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AlertStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AlertStatus: " + key); + } + }; + + /** + * Filter alerts by alert status. + * User interaction: ACKNOWLEDGED, UNACKNOWLEDGED + * System lifecycle: RESOLVED + * + */ + public AlertStatus getAlertStatus() { + return alertStatus; + } + /** + * The cloud service provider. + */ + private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; + + /** + * The cloud service provider. + */ + public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { + return subscriptionServiceName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * 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 field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + */ + private com.oracle.bmc.multicloud.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + */ + public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMulticloudAlertsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Filter alerts associated with a specific resource OCID. + */ + private String resourceId = null; + + /** + * Filter alerts associated with a specific resource OCID. + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + */ + private String resourceType = null; + + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + * @param resourceType the value to set + * @return this builder instance + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Filter alerts by alert type (e.g. IAM_POLICY_GAP). + */ + private String alertType = null; + + /** + * Filter alerts by alert type (e.g. IAM_POLICY_GAP). + * @param alertType the value to set + * @return this builder instance + */ + public Builder alertType(String alertType) { + this.alertType = alertType; + return this; + } + + /** + * Filter alerts generated by a specific internal component + * (e.g. MCL, BILLING, ORP). + * + */ + private String alertFunctionName = null; + + /** + * Filter alerts generated by a specific internal component + * (e.g. MCL, BILLING, ORP). + * + * @param alertFunctionName the value to set + * @return this builder instance + */ + public Builder alertFunctionName(String alertFunctionName) { + this.alertFunctionName = alertFunctionName; + return this; + } + + /** + * Filter alerts by severity. + */ + private Severity severity = null; + + /** + * Filter alerts by severity. + * @param severity the value to set + * @return this builder instance + */ + public Builder severity(Severity severity) { + this.severity = severity; + return this; + } + + /** + * Filter alerts by alert status. + * User interaction: ACKNOWLEDGED, UNACKNOWLEDGED + * System lifecycle: RESOLVED + * + */ + private AlertStatus alertStatus = null; + + /** + * Filter alerts by alert status. + * User interaction: ACKNOWLEDGED, UNACKNOWLEDGED + * System lifecycle: RESOLVED + * + * @param alertStatus the value to set + * @return this builder instance + */ + public Builder alertStatus(AlertStatus alertStatus) { + this.alertStatus = alertStatus; + return this; + } + + /** + * The cloud service provider. + */ + private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; + + /** + * The cloud service provider. + * @param subscriptionServiceName the value to set + * @return this builder instance + */ + public Builder subscriptionServiceName( + com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName) { + this.subscriptionServiceName = subscriptionServiceName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + private String subscriptionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + * @param subscriptionId the value to set + * @return this builder instance + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + */ + private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.multicloud.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMulticloudAlertsRequest o) { + compartmentId(o.getCompartmentId()); + resourceId(o.getResourceId()); + resourceType(o.getResourceType()); + alertType(o.getAlertType()); + alertFunctionName(o.getAlertFunctionName()); + severity(o.getSeverity()); + alertStatus(o.getAlertStatus()); + subscriptionServiceName(o.getSubscriptionServiceName()); + subscriptionId(o.getSubscriptionId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMulticloudAlertsRequest 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 ListMulticloudAlertsRequest + */ + public ListMulticloudAlertsRequest build() { + ListMulticloudAlertsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMulticloudAlertsRequest 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 ListMulticloudAlertsRequest + */ + public ListMulticloudAlertsRequest buildWithoutInvocationCallback() { + ListMulticloudAlertsRequest request = new ListMulticloudAlertsRequest(); + request.compartmentId = compartmentId; + request.resourceId = resourceId; + request.resourceType = resourceType; + request.alertType = alertType; + request.alertFunctionName = alertFunctionName; + request.severity = severity; + request.alertStatus = alertStatus; + request.subscriptionServiceName = subscriptionServiceName; + request.subscriptionId = subscriptionId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.displayName = displayName; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListMulticloudAlertsRequest(compartmentId, resourceId, resourceType, alertType, alertFunctionName, severity, alertStatus, subscriptionServiceName, subscriptionId, opcRequestId, limit, page, displayName, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .resourceId(resourceId) + .resourceType(resourceType) + .alertType(alertType) + .alertFunctionName(alertFunctionName) + .severity(severity) + .alertStatus(alertStatus) + .subscriptionServiceName(subscriptionServiceName) + .subscriptionId(subscriptionId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .displayName(displayName) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",resourceType=").append(String.valueOf(this.resourceType)); + sb.append(",alertType=").append(String.valueOf(this.alertType)); + sb.append(",alertFunctionName=").append(String.valueOf(this.alertFunctionName)); + sb.append(",severity=").append(String.valueOf(this.severity)); + sb.append(",alertStatus=").append(String.valueOf(this.alertStatus)); + sb.append(",subscriptionServiceName=").append(String.valueOf(this.subscriptionServiceName)); + sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); + 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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMulticloudAlertsRequest)) { + return false; + } + + ListMulticloudAlertsRequest other = (ListMulticloudAlertsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.alertType, other.alertType) + && java.util.Objects.equals(this.alertFunctionName, other.alertFunctionName) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.alertStatus, other.alertStatus) + && java.util.Objects.equals( + this.subscriptionServiceName, other.subscriptionServiceName) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && 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.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.alertType == null ? 43 : this.alertType.hashCode()); + result = + (result * PRIME) + + (this.alertFunctionName == null ? 43 : this.alertFunctionName.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = (result * PRIME) + (this.alertStatus == null ? 43 : this.alertStatus.hashCode()); + result = + (result * PRIME) + + (this.subscriptionServiceName == null + ? 43 + : this.subscriptionServiceName.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudPoliciesRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudPoliciesRequest.java new file mode 100644 index 00000000000..2a648c66b04 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudPoliciesRequest.java @@ -0,0 +1,520 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.requests; + +import com.oracle.bmc.multicloud.model.*; +/** + * Example: Click here to see how to use ListMulticloudPoliciesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class ListMulticloudPoliciesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Refresh the policies. + */ + private Boolean isForceRefresh; + + /** + * Refresh the policies. + */ + public Boolean getIsForceRefresh() { + return isForceRefresh; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * 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 field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + */ + private com.oracle.bmc.multicloud.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + */ + public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMulticloudPoliciesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Refresh the policies. + */ + private Boolean isForceRefresh = null; + + /** + * Refresh the policies. + * @param isForceRefresh the value to set + * @return this builder instance + */ + public Builder isForceRefresh(Boolean isForceRefresh) { + this.isForceRefresh = isForceRefresh; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + private String subscriptionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + * @param subscriptionId the value to set + * @return this builder instance + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + */ + private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.multicloud.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMulticloudPoliciesRequest o) { + compartmentId(o.getCompartmentId()); + isForceRefresh(o.getIsForceRefresh()); + subscriptionId(o.getSubscriptionId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMulticloudPoliciesRequest 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 ListMulticloudPoliciesRequest + */ + public ListMulticloudPoliciesRequest build() { + ListMulticloudPoliciesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMulticloudPoliciesRequest 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 ListMulticloudPoliciesRequest + */ + public ListMulticloudPoliciesRequest buildWithoutInvocationCallback() { + ListMulticloudPoliciesRequest request = new ListMulticloudPoliciesRequest(); + request.compartmentId = compartmentId; + request.isForceRefresh = isForceRefresh; + request.subscriptionId = subscriptionId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.displayName = displayName; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListMulticloudPoliciesRequest(compartmentId, isForceRefresh, subscriptionId, opcRequestId, limit, page, displayName, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .isForceRefresh(isForceRefresh) + .subscriptionId(subscriptionId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .displayName(displayName) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",isForceRefresh=").append(String.valueOf(this.isForceRefresh)); + sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); + 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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMulticloudPoliciesRequest)) { + return false; + } + + ListMulticloudPoliciesRequest other = (ListMulticloudPoliciesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.isForceRefresh, other.isForceRefresh) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && 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.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.isForceRefresh == null ? 43 : this.isForceRefresh.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudResourcesRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudResourcesRequest.java index 55f8d425380..a648f2a20d6 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudResourcesRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudResourcesRequest.java @@ -13,34 +13,12 @@ public class ListMulticloudResourcesRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The subscription service name of the Cloud Service Provider. - */ - private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; - - /** - * The subscription service name of the Cloud Service Provider. - */ - public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { - return subscriptionServiceName; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. - */ - private String subscriptionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. - */ - public String getSubscriptionId() { - return subscriptionId; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ private String resourceAnchorId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ public String getResourceAnchorId() { return resourceAnchorId; @@ -92,11 +70,15 @@ public String getPage() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -155,16 +137,49 @@ public SortBy getSortBy() { return sortBy; } /** - * The Cloud Service Provider region. + * The cloud service provider. + */ + private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; + + /** + * The cloud service provider. + */ + public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { + return subscriptionServiceName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** + * The cloud service provider region. */ private String externalLocation; /** - * The Cloud Service Provider region. + * The cloud service provider region. */ public String getExternalLocation() { return externalLocation; } + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + */ + private String resourceType; + + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + */ + public String getResourceType() { + return resourceType; + } /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -193,43 +208,12 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The subscription service name of the Cloud Service Provider. - */ - private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; - - /** - * The subscription service name of the Cloud Service Provider. - * @param subscriptionServiceName the value to set - * @return this builder instance - */ - public Builder subscriptionServiceName( - com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName) { - this.subscriptionServiceName = subscriptionServiceName; - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. - */ - private String subscriptionId = null; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. - * @param subscriptionId the value to set - * @return this builder instance - */ - public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ private String resourceAnchorId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @param resourceAnchorId the value to set * @return this builder instance */ @@ -297,11 +281,15 @@ public Builder page(String page) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ @@ -330,12 +318,43 @@ public Builder sortBy(SortBy sortBy) { } /** - * The Cloud Service Provider region. + * The cloud service provider. + */ + private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; + + /** + * The cloud service provider. + * @param subscriptionServiceName the value to set + * @return this builder instance + */ + public Builder subscriptionServiceName( + com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName) { + this.subscriptionServiceName = subscriptionServiceName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + */ + private String subscriptionId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud subscription in which to list resources. + * @param subscriptionId the value to set + * @return this builder instance + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * The cloud service provider region. */ private String externalLocation = null; /** - * The Cloud Service Provider region. + * The cloud service provider region. * @param externalLocation the value to set * @return this builder instance */ @@ -344,6 +363,21 @@ public Builder externalLocation(String externalLocation) { return this; } + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + */ + private String resourceType = null; + + /** + * Filter alerts by resource type (e.g. ADBD, VMCluster). + * @param resourceType the value to set + * @return this builder instance + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -395,15 +429,16 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ListMulticloudResourcesRequest o) { - subscriptionServiceName(o.getSubscriptionServiceName()); - subscriptionId(o.getSubscriptionId()); resourceAnchorId(o.getResourceAnchorId()); compartmentId(o.getCompartmentId()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); + subscriptionServiceName(o.getSubscriptionServiceName()); + subscriptionId(o.getSubscriptionId()); externalLocation(o.getExternalLocation()); + resourceType(o.getResourceType()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -437,18 +472,19 @@ public ListMulticloudResourcesRequest build() { */ public ListMulticloudResourcesRequest buildWithoutInvocationCallback() { ListMulticloudResourcesRequest request = new ListMulticloudResourcesRequest(); - request.subscriptionServiceName = subscriptionServiceName; - request.subscriptionId = subscriptionId; request.resourceAnchorId = resourceAnchorId; request.compartmentId = compartmentId; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; + request.subscriptionServiceName = subscriptionServiceName; + request.subscriptionId = subscriptionId; request.externalLocation = externalLocation; + request.resourceType = resourceType; request.opcRequestId = opcRequestId; return request; - // new ListMulticloudResourcesRequest(subscriptionServiceName, subscriptionId, resourceAnchorId, compartmentId, limit, page, sortOrder, sortBy, externalLocation, opcRequestId); + // new ListMulticloudResourcesRequest(resourceAnchorId, compartmentId, limit, page, sortOrder, sortBy, subscriptionServiceName, subscriptionId, externalLocation, resourceType, opcRequestId); } } @@ -458,15 +494,16 @@ public ListMulticloudResourcesRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .subscriptionServiceName(subscriptionServiceName) - .subscriptionId(subscriptionId) .resourceAnchorId(resourceAnchorId) .compartmentId(compartmentId) .limit(limit) .page(page) .sortOrder(sortOrder) .sortBy(sortBy) + .subscriptionServiceName(subscriptionServiceName) + .subscriptionId(subscriptionId) .externalLocation(externalLocation) + .resourceType(resourceType) .opcRequestId(opcRequestId); } @@ -483,15 +520,16 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",subscriptionServiceName=").append(String.valueOf(this.subscriptionServiceName)); - sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(",resourceAnchorId=").append(String.valueOf(this.resourceAnchorId)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",subscriptionServiceName=").append(String.valueOf(this.subscriptionServiceName)); + sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(",externalLocation=").append(String.valueOf(this.externalLocation)); + sb.append(",resourceType=").append(String.valueOf(this.resourceType)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -508,16 +546,17 @@ public boolean equals(Object o) { ListMulticloudResourcesRequest other = (ListMulticloudResourcesRequest) o; return super.equals(o) - && java.util.Objects.equals( - this.subscriptionServiceName, other.subscriptionServiceName) - && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.resourceAnchorId, other.resourceAnchorId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals( + this.subscriptionServiceName, other.subscriptionServiceName) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.externalLocation, other.externalLocation) + && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -525,14 +564,6 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = - (result * PRIME) - + (this.subscriptionServiceName == null - ? 43 - : this.subscriptionServiceName.hashCode()); - result = - (result * PRIME) - + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); result = (result * PRIME) + (this.resourceAnchorId == null ? 43 : this.resourceAnchorId.hashCode()); @@ -543,9 +574,18 @@ public int 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.subscriptionServiceName == null + ? 43 + : this.subscriptionServiceName.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); result = (result * PRIME) + (this.externalLocation == null ? 43 : this.externalLocation.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudSubscriptionsRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudSubscriptionsRequest.java index 552e548bdda..e11d52f0263 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudSubscriptionsRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListMulticloudSubscriptionsRequest.java @@ -142,11 +142,15 @@ public SortBy getSortBy() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -275,11 +279,15 @@ public Builder sortBy(SortBy sortBy) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListNetworkAnchorsRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListNetworkAnchorsRequest.java index ab9e9716823..d9f3053d020 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListNetworkAnchorsRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListNetworkAnchorsRequest.java @@ -13,14 +13,14 @@ public class ListNetworkAnchorsRequest extends com.oracle.bmc.requests.BmcReques /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ public String getCompartmentId() { @@ -38,12 +38,12 @@ public String getSubscriptionId() { return subscriptionId; } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { return subscriptionServiceName; @@ -77,12 +77,12 @@ public String getDisplayName() { return displayName; } /** - * The Cloud Service Provider region. + * The cloud service provider region. */ private String externalLocation; /** - * The Cloud Service Provider region. + * The cloud service provider region. */ public String getExternalLocation() { return externalLocation; @@ -98,17 +98,6 @@ public String getExternalLocation() { public String getNetworkAnchorOciSubnetId() { return networkAnchorOciSubnetId; } - /** - * If set to true, a list operation will return NetworkAnchors from all child compartments in the provided compartmentId parameter. - */ - private Boolean compartmentIdInSubtree; - - /** - * If set to true, a list operation will return NetworkAnchors from all child compartments in the provided compartmentId parameter. - */ - public Boolean getCompartmentIdInSubtree() { - return compartmentIdInSubtree; - } /** * A filter to return only NetworkAnchor resources that match the given OCI Vcn Id. */ @@ -178,11 +167,15 @@ public Boolean getShouldFetchVcnName() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -269,14 +262,14 @@ public static class Builder /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * * @param compartmentId the value to set * @return this builder instance @@ -302,12 +295,12 @@ public Builder subscriptionId(String subscriptionId) { } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ @@ -355,12 +348,12 @@ public Builder displayName(String displayName) { } /** - * The Cloud Service Provider region. + * The cloud service provider region. */ private String externalLocation = null; /** - * The Cloud Service Provider region. + * The cloud service provider region. * @param externalLocation the value to set * @return this builder instance */ @@ -384,21 +377,6 @@ public Builder networkAnchorOciSubnetId(String networkAnchorOciSubnetId) { return this; } - /** - * If set to true, a list operation will return NetworkAnchors from all child compartments in the provided compartmentId parameter. - */ - private Boolean compartmentIdInSubtree = null; - - /** - * If set to true, a list operation will return NetworkAnchors from all child compartments in the provided compartmentId parameter. - * @param compartmentIdInSubtree the value to set - * @return this builder instance - */ - public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { - this.compartmentIdInSubtree = compartmentIdInSubtree; - return this; - } - /** * A filter to return only NetworkAnchor resources that match the given OCI Vcn Id. */ @@ -488,11 +466,15 @@ public Builder shouldFetchVcnName(Boolean shouldFetchVcnName) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ @@ -578,7 +560,6 @@ public Builder copy(ListNetworkAnchorsRequest o) { displayName(o.getDisplayName()); externalLocation(o.getExternalLocation()); networkAnchorOciSubnetId(o.getNetworkAnchorOciSubnetId()); - compartmentIdInSubtree(o.getCompartmentIdInSubtree()); networkAnchorOciVcnId(o.getNetworkAnchorOciVcnId()); id(o.getId()); limit(o.getLimit()); @@ -626,7 +607,6 @@ public ListNetworkAnchorsRequest buildWithoutInvocationCallback() { request.displayName = displayName; request.externalLocation = externalLocation; request.networkAnchorOciSubnetId = networkAnchorOciSubnetId; - request.compartmentIdInSubtree = compartmentIdInSubtree; request.networkAnchorOciVcnId = networkAnchorOciVcnId; request.id = id; request.limit = limit; @@ -636,7 +616,7 @@ public ListNetworkAnchorsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListNetworkAnchorsRequest(compartmentId, subscriptionId, subscriptionServiceName, networkAnchorLifecycleState, displayName, externalLocation, networkAnchorOciSubnetId, compartmentIdInSubtree, networkAnchorOciVcnId, id, limit, page, shouldFetchVcnName, sortOrder, sortBy, opcRequestId); + // new ListNetworkAnchorsRequest(compartmentId, subscriptionId, subscriptionServiceName, networkAnchorLifecycleState, displayName, externalLocation, networkAnchorOciSubnetId, networkAnchorOciVcnId, id, limit, page, shouldFetchVcnName, sortOrder, sortBy, opcRequestId); } } @@ -653,7 +633,6 @@ public Builder toBuilder() { .displayName(displayName) .externalLocation(externalLocation) .networkAnchorOciSubnetId(networkAnchorOciSubnetId) - .compartmentIdInSubtree(compartmentIdInSubtree) .networkAnchorOciVcnId(networkAnchorOciVcnId) .id(id) .limit(limit) @@ -686,7 +665,6 @@ public String toString() { sb.append(",externalLocation=").append(String.valueOf(this.externalLocation)); sb.append(",networkAnchorOciSubnetId=") .append(String.valueOf(this.networkAnchorOciSubnetId)); - sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); sb.append(",networkAnchorOciVcnId=").append(String.valueOf(this.networkAnchorOciVcnId)); sb.append(",id=").append(String.valueOf(this.id)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -720,8 +698,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.externalLocation, other.externalLocation) && java.util.Objects.equals( this.networkAnchorOciSubnetId, other.networkAnchorOciSubnetId) - && java.util.Objects.equals( - this.compartmentIdInSubtree, other.compartmentIdInSubtree) && java.util.Objects.equals(this.networkAnchorOciVcnId, other.networkAnchorOciVcnId) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.limit, other.limit) @@ -761,11 +737,6 @@ public int hashCode() { + (this.networkAnchorOciSubnetId == null ? 43 : this.networkAnchorOciSubnetId.hashCode()); - result = - (result * PRIME) - + (this.compartmentIdInSubtree == null - ? 43 - : this.compartmentIdInSubtree.hashCode()); result = (result * PRIME) + (this.networkAnchorOciVcnId == null diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListResourceAnchorsRequest.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListResourceAnchorsRequest.java index 7f3270e01bf..8c25010d436 100644 --- a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListResourceAnchorsRequest.java +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/requests/ListResourceAnchorsRequest.java @@ -13,14 +13,14 @@ public class ListResourceAnchorsRequest extends com.oracle.bmc.requests.BmcReque /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ public String getCompartmentId() { @@ -64,12 +64,12 @@ public String getDisplayName() { return displayName; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ private String id; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ public String getId() { return id; @@ -110,11 +110,15 @@ public String getPage() { } /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ public com.oracle.bmc.multicloud.model.SortOrder getSortOrder() { return sortOrder; @@ -173,34 +177,38 @@ public SortBy getSortBy() { return sortBy; } /** - * Check the sub-compartments of a given compartmentId + * Check the sub-compartments of a given {@code compartmentId}. */ private Boolean isCompartmentIdInSubtree; /** - * Check the sub-compartments of a given compartmentId + * Check the sub-compartments of a given {@code compartmentId}. */ public Boolean getIsCompartmentIdInSubtree() { return isCompartmentIdInSubtree; } /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * */ private Boolean shouldFetchCompartmentName; /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * */ public Boolean getShouldFetchCompartmentName() { return shouldFetchCompartmentName; } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ public com.oracle.bmc.multicloud.model.SubscriptionType getSubscriptionServiceName() { return subscriptionServiceName; @@ -245,14 +253,14 @@ public static class Builder /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * */ private String compartmentId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Multicloud base compartment or sub-compartment in which to list resources. - * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud). + * A Multicloud base compartment is an OCI compartment that maps to a subscription in a cloud service provider (such as Azure or AWS). * * @param compartmentId the value to set * @return this builder instance @@ -313,12 +321,12 @@ public Builder displayName(String displayName) { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. */ private String id = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ResourceAnchor. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource anchor. * @param id the value to set * @return this builder instance */ @@ -371,11 +379,15 @@ public Builder page(String page) { /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * */ private com.oracle.bmc.multicloud.model.SortOrder sortOrder = null; /** * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * In general, the sort order is {@code DESC} when sorting by time and {@code ASC} otherwise. + * * @param sortOrder the value to set * @return this builder instance */ @@ -404,12 +416,12 @@ public Builder sortBy(SortBy sortBy) { } /** - * Check the sub-compartments of a given compartmentId + * Check the sub-compartments of a given {@code compartmentId}. */ private Boolean isCompartmentIdInSubtree = null; /** - * Check the sub-compartments of a given compartmentId + * Check the sub-compartments of a given {@code compartmentId}. * @param isCompartmentIdInSubtree the value to set * @return this builder instance */ @@ -419,12 +431,16 @@ public Builder isCompartmentIdInSubtree(Boolean isCompartmentIdInSubtree) { } /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * */ private Boolean shouldFetchCompartmentName = null; /** - * Whether to fetch and include the compartment name, setting this field to yes may introduce additional latency. + * Whether to fetch and include the compartment name. + * Setting this field to {@code true} might introduce additional latency. + * * @param shouldFetchCompartmentName the value to set * @return this builder instance */ @@ -434,12 +450,12 @@ public Builder shouldFetchCompartmentName(Boolean shouldFetchCompartmentName) { } /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. */ private com.oracle.bmc.multicloud.model.SubscriptionType subscriptionServiceName = null; /** - * The subscription service name of the Cloud Service Provider. + * The cloud service provider. * @param subscriptionServiceName the value to set * @return this builder instance */ diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/responses/ListMulticloudAlertsResponse.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/responses/ListMulticloudAlertsResponse.java new file mode 100644 index 00000000000..33d16463403 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/responses/ListMulticloudAlertsResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.responses; + +import com.oracle.bmc.multicloud.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class ListMulticloudAlertsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned MulticloudAlertCollection instance. + */ + private com.oracle.bmc.multicloud.model.MulticloudAlertCollection multicloudAlertCollection; + + /** + * The returned MulticloudAlertCollection instance. + * @return the value + */ + public com.oracle.bmc.multicloud.model.MulticloudAlertCollection + getMulticloudAlertCollection() { + return multicloudAlertCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "multicloudAlertCollection" + }) + private ListMulticloudAlertsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.multicloud.model.MulticloudAlertCollection multicloudAlertCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.multicloudAlertCollection = multicloudAlertCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned MulticloudAlertCollection instance. + */ + private com.oracle.bmc.multicloud.model.MulticloudAlertCollection multicloudAlertCollection; + + /** + * The returned MulticloudAlertCollection instance. + * @param multicloudAlertCollection the value to set + * @return this builder + */ + public Builder multicloudAlertCollection( + com.oracle.bmc.multicloud.model.MulticloudAlertCollection + multicloudAlertCollection) { + this.multicloudAlertCollection = multicloudAlertCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMulticloudAlertsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + multicloudAlertCollection(o.getMulticloudAlertCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListMulticloudAlertsResponse build() { + return new ListMulticloudAlertsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + multicloudAlertCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",multicloudAlertCollection=").append(String.valueOf(multicloudAlertCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMulticloudAlertsResponse)) { + return false; + } + + ListMulticloudAlertsResponse other = (ListMulticloudAlertsResponse) 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.multicloudAlertCollection, other.multicloudAlertCollection); + } + + @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.multicloudAlertCollection == null + ? 43 + : this.multicloudAlertCollection.hashCode()); + return result; + } +} diff --git a/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/responses/ListMulticloudPoliciesResponse.java b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/responses/ListMulticloudPoliciesResponse.java new file mode 100644 index 00000000000..ddf7c4ec764 --- /dev/null +++ b/bmc-multicloud/src/main/java/com/oracle/bmc/multicloud/responses/ListMulticloudPoliciesResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.multicloud.responses; + +import com.oracle.bmc.multicloud.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public class ListMulticloudPoliciesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned MulticloudPolicyCollection instance. + */ + private com.oracle.bmc.multicloud.model.MulticloudPolicyCollection multicloudPolicyCollection; + + /** + * The returned MulticloudPolicyCollection instance. + * @return the value + */ + public com.oracle.bmc.multicloud.model.MulticloudPolicyCollection + getMulticloudPolicyCollection() { + return multicloudPolicyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "multicloudPolicyCollection" + }) + private ListMulticloudPoliciesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.multicloud.model.MulticloudPolicyCollection multicloudPolicyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.multicloudPolicyCollection = multicloudPolicyCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned MulticloudPolicyCollection instance. + */ + private com.oracle.bmc.multicloud.model.MulticloudPolicyCollection + multicloudPolicyCollection; + + /** + * The returned MulticloudPolicyCollection instance. + * @param multicloudPolicyCollection the value to set + * @return this builder + */ + public Builder multicloudPolicyCollection( + com.oracle.bmc.multicloud.model.MulticloudPolicyCollection + multicloudPolicyCollection) { + this.multicloudPolicyCollection = multicloudPolicyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMulticloudPoliciesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + multicloudPolicyCollection(o.getMulticloudPolicyCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListMulticloudPoliciesResponse build() { + return new ListMulticloudPoliciesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + multicloudPolicyCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",multicloudPolicyCollection=") + .append(String.valueOf(multicloudPolicyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMulticloudPoliciesResponse)) { + return false; + } + + ListMulticloudPoliciesResponse other = (ListMulticloudPoliciesResponse) 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.multicloudPolicyCollection, other.multicloudPolicyCollection); + } + + @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.multicloudPolicyCollection == null + ? 43 + : this.multicloudPolicyCollection.hashCode()); + return result; + } +} diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 46de16303c2..c455735ea01 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-mysql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java index 7ee25e6bb5c..0d7ee5557ea 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java @@ -91,7 +91,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the replication user. The password must be @@ -102,11 +102,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The SSL mode of the Channel. **/ @@ -213,6 +220,26 @@ public CreateChannelSourceFromMysqlDetails( this.hostname = hostname; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + this.anonymousTransactionsHandling = anonymousTransactionsHandling; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateChannelSourceFromMysqlDetails( + String hostname, + Integer port, + String username, + char[] password, + ChannelSourceMysql.SslMode sslMode, + CaCertificate sslCaCertificate, + AnonymousTransactionsHandling anonymousTransactionsHandling) { + super(); + this.hostname = hostname; + this.port = port; + this.username = username; this.password = password; this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; @@ -275,7 +302,22 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the replication user. The password must be @@ -285,7 +327,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java index 0797d92dd28..6dc26c27f76 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java @@ -23,6 +23,86 @@ public final class CreateDbSystemDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDbSystemDetails( + String displayName, + String description, + String compartmentId, + CreateRestDetails rest, + CreateDatabaseConsoleDetails databaseConsole, + Boolean isHighlyAvailable, + String availabilityDomain, + String faultDomain, + String configurationId, + String shapeName, + String mysqlVersion, + String subnetId, + java.util.List nsgIds, + java.util.Map> securityAttributes, + String adminUsername, + String adminPassword, + Integer dataStorageSizeInGBs, + DataStorageDetails dataStorage, + String hostnameLabel, + String ipAddress, + Integer port, + Integer portX, + CreateBackupPolicyDetails backupPolicy, + CreateDbSystemSourceDetails source, + CreateMaintenanceDetails maintenance, + java.util.Map freeformTags, + java.util.Map> definedTags, + CreateDeletionPolicyDetails deletionPolicy, + CrashRecoveryStatus crashRecovery, + DatabaseManagementStatus databaseManagement, + SecureConnectionDetails secureConnections, + EncryptDataDetails encryptData, + DbSystem.DatabaseMode databaseMode, + DbSystem.AccessMode accessMode, + java.util.List customerContacts, + CreateReadEndpointDetails readEndpoint, + CreateTelemetryConfigurationDetails telemetryConfiguration) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.rest = rest; + this.databaseConsole = databaseConsole; + this.isHighlyAvailable = isHighlyAvailable; + this.availabilityDomain = availabilityDomain; + this.faultDomain = faultDomain; + this.configurationId = configurationId; + this.shapeName = shapeName; + this.mysqlVersion = mysqlVersion; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; + this.hostnameLabel = hostnameLabel; + this.ipAddress = ipAddress; + this.port = port; + this.portX = portX; + this.backupPolicy = backupPolicy; + this.source = source; + this.maintenance = maintenance; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.deletionPolicy = deletionPolicy; + this.crashRecovery = crashRecovery; + this.databaseManagement = databaseManagement; + this.secureConnections = secureConnections; + this.encryptData = encryptData; + this.databaseMode = databaseMode; + this.accessMode = accessMode; + this.customerContacts = customerContacts; + this.readEndpoint = readEndpoint; + this.telemetryConfiguration = telemetryConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -78,7 +158,7 @@ public CreateDbSystemDetails( java.util.List nsgIds, java.util.Map> securityAttributes, String adminUsername, - String adminPassword, + char[] adminPassword, Integer dataStorageSizeInGBs, DataStorageDetails dataStorage, String hostnameLabel, @@ -435,7 +515,7 @@ public Builder adminUsername(String adminUsername) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password for the administrative user. The password must be @@ -446,11 +526,18 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** * Initial size of the data volume in GBs that will be created and attached. * Keep in mind that this only specifies the size of the database data volume, @@ -1236,7 +1323,22 @@ public String getAdminUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The password for the administrative user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and + * 1 special (nonalphanumeric) character. + * + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The password for the administrative user. The password must be @@ -1246,7 +1348,8 @@ public String getAdminUsername() { * * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceDetails.java index 700b1b445c9..7b504cd2da2 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceDetails.java @@ -23,6 +23,10 @@ defaultImpl = CreateDbSystemSourceDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDbSystemSourceFromDbSystemDetails.class, + name = "DBSYSTEM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDbSystemSourceFromBackupDetails.class, name = "BACKUP" @@ -97,6 +101,7 @@ public enum SourceType { Backup("BACKUP"), Pitr("PITR"), Importurl("IMPORTURL"), + Dbsystem("DBSYSTEM"), ; private final String value; diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceFromDbSystemChannelDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceFromDbSystemChannelDetails.java new file mode 100644 index 00000000000..00e71fd4c01 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceFromDbSystemChannelDetails.java @@ -0,0 +1,364 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * Properties to setup a replication channel with the source (cloned) DB system. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateDbSystemSourceFromDbSystemChannelDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateDbSystemSourceFromDbSystemChannelDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public CreateDbSystemSourceFromDbSystemChannelDetails( + String sourceUsername, + String sourcePassword, + SslMode sslMode, + CaCertificate sslCaCertificate, + String applierUsername) { + super(); + this.sourceUsername = sourceUsername; + this.sourcePassword = sourcePassword != null ? sourcePassword.toCharArray() : null; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + this.applierUsername = applierUsername; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "sourceUsername", + "sourcePassword", + "sslMode", + "sslCaCertificate", + "applierUsername" + }) + public CreateDbSystemSourceFromDbSystemChannelDetails( + String sourceUsername, + char[] sourcePassword, + SslMode sslMode, + CaCertificate sslCaCertificate, + String applierUsername) { + super(); + this.sourceUsername = sourceUsername; + this.sourcePassword = sourcePassword; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + this.applierUsername = applierUsername; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the replication user on the source DB system. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/en/change-replication-source-to.html) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUsername") + private String sourceUsername; + + /** + * The name of the replication user on the source DB system. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/en/change-replication-source-to.html) + * + * @param sourceUsername the value to set + * @return this builder + **/ + public Builder sourceUsername(String sourceUsername) { + this.sourceUsername = sourceUsername; + this.__explicitlySet__.add("sourceUsername"); + return this; + } + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + private char[] sourcePassword; + + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * @param sourcePassword the value to set + * @return this builder + **/ + public Builder sourcePassword(char[] sourcePassword) { + this.sourcePassword = sourcePassword; + this.__explicitlySet__.add("sourcePassword"); + return this; + } + + public Builder sourcePassword(String sourcePassword) { + this.sourcePassword = sourcePassword != null ? sourcePassword.toCharArray() : null; + this.__explicitlySet__.add("sourcePassword"); + return this; + } + + /** + * The SSL mode of the Channel. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private SslMode sslMode; + + /** + * The SSL mode of the Channel. + * @param sslMode the value to set + * @return this builder + **/ + public Builder sslMode(SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + private CaCertificate sslCaCertificate; + + public Builder sslCaCertificate(CaCertificate sslCaCertificate) { + this.sslCaCertificate = sslCaCertificate; + this.__explicitlySet__.add("sslCaCertificate"); + return this; + } + /** + * The username for the replication applier of the created MySQL DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applierUsername") + private String applierUsername; + + /** + * The username for the replication applier of the created MySQL DB System. + * @param applierUsername the value to set + * @return this builder + **/ + public Builder applierUsername(String applierUsername) { + this.applierUsername = applierUsername; + this.__explicitlySet__.add("applierUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDbSystemSourceFromDbSystemChannelDetails build() { + CreateDbSystemSourceFromDbSystemChannelDetails model = + new CreateDbSystemSourceFromDbSystemChannelDetails( + this.sourceUsername, + this.sourcePassword, + this.sslMode, + this.sslCaCertificate, + this.applierUsername); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDbSystemSourceFromDbSystemChannelDetails model) { + if (model.wasPropertyExplicitlySet("sourceUsername")) { + this.sourceUsername(model.getSourceUsername()); + } + if (model.wasPropertyExplicitlySet("sourcePassword")) { + this.sourcePassword(model.getSourcePassword()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("sslCaCertificate")) { + this.sslCaCertificate(model.getSslCaCertificate()); + } + if (model.wasPropertyExplicitlySet("applierUsername")) { + this.applierUsername(model.getApplierUsername()); + } + 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 replication user on the source DB system. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/en/change-replication-source-to.html) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUsername") + private final String sourceUsername; + + /** + * The name of the replication user on the source DB system. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/en/change-replication-source-to.html) + * + * @return the value + **/ + public String getSourceUsername() { + return sourceUsername; + } + + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + private final char[] sourcePassword; + + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * return the value + * @Deprecated - Use getSourcePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourcePassword() { + return sourcePassword != null ? new String(sourcePassword) : null; + } + + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + public char[] getSourcePassword__AsCharArray() { + return sourcePassword; + } + + /** + * The SSL mode of the Channel. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final SslMode sslMode; + + /** + * The SSL mode of the Channel. + * @return the value + **/ + public SslMode getSslMode() { + return sslMode; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + private final CaCertificate sslCaCertificate; + + public CaCertificate getSslCaCertificate() { + return sslCaCertificate; + } + + /** + * The username for the replication applier of the created MySQL DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applierUsername") + private final String applierUsername; + + /** + * The username for the replication applier of the created MySQL DB System. + * @return the value + **/ + public String getApplierUsername() { + return applierUsername; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDbSystemSourceFromDbSystemChannelDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceUsername=").append(String.valueOf(this.sourceUsername)); + sb.append(", sourcePassword=").append(""); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", sslCaCertificate=").append(String.valueOf(this.sslCaCertificate)); + sb.append(", applierUsername=").append(String.valueOf(this.applierUsername)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDbSystemSourceFromDbSystemChannelDetails)) { + return false; + } + + CreateDbSystemSourceFromDbSystemChannelDetails other = + (CreateDbSystemSourceFromDbSystemChannelDetails) o; + return java.util.Objects.equals(this.sourceUsername, other.sourceUsername) + && java.util.Objects.equals(this.sourcePassword, other.sourcePassword) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.sslCaCertificate, other.sslCaCertificate) + && java.util.Objects.equals(this.applierUsername, other.applierUsername) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceUsername == null ? 43 : this.sourceUsername.hashCode()); + result = + (result * PRIME) + + (this.sourcePassword == null ? 43 : this.sourcePassword.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = + (result * PRIME) + + (this.sslCaCertificate == null ? 43 : this.sslCaCertificate.hashCode()); + result = + (result * PRIME) + + (this.applierUsername == null ? 43 : this.applierUsername.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceFromDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceFromDbSystemDetails.java new file mode 100644 index 00000000000..c9de1444fb8 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceFromDbSystemDetails.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * The source DB System identifier (OCID) and region from which the new DB system will be + * cloned by copying its data. Optionally, channel properties can be provided to create a replication + * channel between the newly created DB system and the source DB system. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = CreateDbSystemSourceFromDbSystemDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateDbSystemSourceFromDbSystemDetails extends CreateDbSystemSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the DB system to be used as the source for the new DB System. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The OCID of the DB system to be used as the source for the new DB System. + * + * @param dbSystemId the value to set + * @return this builder + **/ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + /** + * The region identifier of the source region where the DB system exists, only if it is in a different region. + * If the source DB system is in the same region, then no region must be specified. + * 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 source region where the DB system exists, only if it is in a different region. + * If the source DB system is in the same region, then no region must be specified. + * 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.JsonProperty("channel") + private CreateDbSystemSourceFromDbSystemChannelDetails channel; + + public Builder channel(CreateDbSystemSourceFromDbSystemChannelDetails channel) { + this.channel = channel; + this.__explicitlySet__.add("channel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDbSystemSourceFromDbSystemDetails build() { + CreateDbSystemSourceFromDbSystemDetails model = + new CreateDbSystemSourceFromDbSystemDetails( + this.dbSystemId, this.region, this.channel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDbSystemSourceFromDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("channel")) { + this.channel(model.getChannel()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDbSystemSourceFromDbSystemDetails( + String dbSystemId, + String region, + CreateDbSystemSourceFromDbSystemChannelDetails channel) { + super(); + this.dbSystemId = dbSystemId; + this.region = region; + this.channel = channel; + } + + /** + * The OCID of the DB system to be used as the source for the new DB System. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The OCID of the DB system to be used as the source for the new DB System. + * + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * The region identifier of the source region where the DB system exists, only if it is in a different region. + * If the source DB system is in the same region, then no region must be specified. + * 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 source region where the DB system exists, only if it is in a different region. + * If the source DB system is in the same region, then no region must be specified. + * 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private final CreateDbSystemSourceFromDbSystemChannelDetails channel; + + public CreateDbSystemSourceFromDbSystemChannelDetails getChannel() { + return channel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDbSystemSourceFromDbSystemDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", channel=").append(String.valueOf(this.channel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDbSystemSourceFromDbSystemDetails)) { + return false; + } + + CreateDbSystemSourceFromDbSystemDetails other = (CreateDbSystemSourceFromDbSystemDetails) o; + return java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.channel, other.channel) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.channel == null ? 43 : this.channel.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java index 4085576286b..b3ce98f5918 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java @@ -37,7 +37,7 @@ public static class Builder { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") - private String sourceUrl; + private char[] sourceUrl; /** * The Pre-Authenticated Request (PAR) of a bucket/prefix or PAR of a @.manifest.json object from the Object Storage. @@ -49,12 +49,18 @@ public static class Builder { * @param sourceUrl the value to set * @return this builder **/ - public Builder sourceUrl(String sourceUrl) { + public Builder sourceUrl(char[] sourceUrl) { this.sourceUrl = sourceUrl; this.__explicitlySet__.add("sourceUrl"); return this; } + public Builder sourceUrl(String sourceUrl) { + this.sourceUrl = sourceUrl != null ? sourceUrl.toCharArray() : null; + this.__explicitlySet__.add("sourceUrl"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -89,6 +95,13 @@ public Builder toBuilder() { @Deprecated public CreateDbSystemSourceImportFromUrlDetails(String sourceUrl) { + super(); + this.sourceUrl = sourceUrl != null ? sourceUrl.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDbSystemSourceImportFromUrlDetails(char[] sourceUrl) { super(); this.sourceUrl = sourceUrl; } @@ -102,7 +115,23 @@ public CreateDbSystemSourceImportFromUrlDetails(String sourceUrl) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") - private final String sourceUrl; + private final char[] sourceUrl; + + /** + * The Pre-Authenticated Request (PAR) of a bucket/prefix or PAR of a @.manifest.json object from the Object Storage. + * Check [Using Pre-Authenticated Requests](https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) + * for information related to PAR creation. + * Please create PAR with "Permit object reads" access type and "Enable Object Listing" permission when using a bucket/prefix PAR. + * Please create PAR with "Permit object reads" access type when using a @.manifest.json object PAR. + * + * return the value + * @Deprecated - Use getSourceUrl__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourceUrl() { + return sourceUrl != null ? new String(sourceUrl) : null; + } /** * The Pre-Authenticated Request (PAR) of a bucket/prefix or PAR of a @.manifest.json object from the Object Storage. @@ -113,7 +142,8 @@ public CreateDbSystemSourceImportFromUrlDetails(String sourceUrl) { * * @return the value **/ - public String getSourceUrl() { + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") + public char[] getSourceUrl__AsCharArray() { return sourceUrl; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSource.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSource.java index 1a61bb7e88b..e3e85aed9bd 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSource.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSource.java @@ -35,6 +35,10 @@ value = DbSystemSourceFromNone.class, name = "NONE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DbSystemSourceFromDbSystem.class, + name = "DBSYSTEM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DbSystemSourceImportFromUrl.class, name = "IMPORTURL" @@ -96,6 +100,7 @@ public enum SourceType { Backup("BACKUP"), Pitr("PITR"), Importurl("IMPORTURL"), + Dbsystem("DBSYSTEM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSourceFromDbSystem.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSourceFromDbSystem.java new file mode 100644 index 00000000000..10a099f7285 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSourceFromDbSystem.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * The source DB system identifier (OCID) from which the cloned DB system was created. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does 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 = DbSystemSourceFromDbSystem.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DbSystemSourceFromDbSystem extends DbSystemSource { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the DB system used as the source for the new DB system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The OCID of the DB system used as the source for the new DB system. + * + * @param dbSystemId the value to set + * @return this builder + **/ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbSystemSourceFromDbSystem build() { + DbSystemSourceFromDbSystem model = new DbSystemSourceFromDbSystem(this.dbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbSystemSourceFromDbSystem model) { + 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 DbSystemSourceFromDbSystem(String dbSystemId) { + super(); + this.dbSystemId = dbSystemId; + } + + /** + * The OCID of the DB system used as the source for the new DB system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The OCID of the DB system used as the source for the new DB system. + * + * @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("DbSystemSourceFromDbSystem("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 DbSystemSourceFromDbSystem)) { + return false; + } + + DbSystemSourceFromDbSystem other = (DbSystemSourceFromDbSystem) o; + return 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.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/MaintenanceDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/MaintenanceDetails.java index bed1756a71f..003aaecadf9 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/MaintenanceDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/MaintenanceDetails.java @@ -137,7 +137,7 @@ public Builder versionTrackPreference(VersionTrackPreference versionTrackPrefere } /** * The maintenance schedule type of the DB system. - * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. + * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. * REGULAR: Maintenance schedule follows the normal cycle where upgrades are performed when versions become unavailable. * **/ @@ -146,7 +146,7 @@ public Builder versionTrackPreference(VersionTrackPreference versionTrackPrefere /** * The maintenance schedule type of the DB system. - * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. + * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. * REGULAR: Maintenance schedule follows the normal cycle where upgrades are performed when versions become unavailable. * * @param maintenanceScheduleType the value to set @@ -356,7 +356,7 @@ public VersionTrackPreference getVersionTrackPreference() { /** * The maintenance schedule type of the DB system. - * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. + * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. * REGULAR: Maintenance schedule follows the normal cycle where upgrades are performed when versions become unavailable. * **/ @@ -365,7 +365,7 @@ public VersionTrackPreference getVersionTrackPreference() { /** * The maintenance schedule type of the DB system. - * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. + * EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. * REGULAR: Maintenance schedule follows the normal cycle where upgrades are performed when versions become unavailable. * * @return the value diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java new file mode 100644 index 00000000000..1517c50fb1b --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * The SSL mode of the Channel. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public enum SslMode { + VerifyIdentity("VERIFY_IDENTITY"), + VerifyCa("VERIFY_CA"), + Required("REQUIRED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SslMode v : SslMode.values()) { + 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); + } + throw new IllegalArgumentException("Invalid SslMode: " + key); + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java index 3b072e0d36f..39b4bd78895 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java @@ -91,7 +91,7 @@ public Builder username(String username) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the replication user. The password must be @@ -102,11 +102,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The SSL mode of the Channel. **/ @@ -213,6 +220,26 @@ public UpdateChannelSourceFromMysqlDetails( this.hostname = hostname; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + this.anonymousTransactionsHandling = anonymousTransactionsHandling; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateChannelSourceFromMysqlDetails( + String hostname, + Integer port, + String username, + char[] password, + ChannelSourceMysql.SslMode sslMode, + CaCertificate sslCaCertificate, + AnonymousTransactionsHandling anonymousTransactionsHandling) { + super(); + this.hostname = hostname; + this.port = port; + this.username = username; this.password = password; this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; @@ -275,7 +302,22 @@ public String getUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the replication user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the replication user. The password must be @@ -285,7 +327,8 @@ public String getUsername() { * * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java index b8e80f5997f..e26fa55c62e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java @@ -23,6 +23,82 @@ public final class UpdateDbSystemDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDbSystemDetails( + String displayName, + String description, + String subnetId, + java.util.List nsgIds, + java.util.Map> securityAttributes, + DbSystem.DatabaseMode databaseMode, + DbSystem.AccessMode accessMode, + UpdateRestDetails rest, + UpdateDatabaseConsoleDetails databaseConsole, + Boolean isHighlyAvailable, + String availabilityDomain, + String faultDomain, + String shapeName, + String mysqlVersion, + String configurationId, + String adminUsername, + String adminPassword, + Integer dataStorageSizeInGBs, + DataStorageDetails dataStorage, + String hostnameLabel, + String ipAddress, + Integer port, + Integer portX, + UpdateBackupPolicyDetails backupPolicy, + UpdateMaintenanceDetails maintenance, + java.util.Map freeformTags, + java.util.Map> definedTags, + UpdateDeletionPolicyDetails deletionPolicy, + CrashRecoveryStatus crashRecovery, + DatabaseManagementStatus databaseManagement, + SecureConnectionDetails secureConnections, + EncryptDataDetails encryptData, + java.util.List customerContacts, + UpdateReadEndpointDetails readEndpoint, + UpdateTelemetryConfigurationDetails telemetryConfiguration) { + super(); + this.displayName = displayName; + this.description = description; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; + this.databaseMode = databaseMode; + this.accessMode = accessMode; + this.rest = rest; + this.databaseConsole = databaseConsole; + this.isHighlyAvailable = isHighlyAvailable; + this.availabilityDomain = availabilityDomain; + this.faultDomain = faultDomain; + this.shapeName = shapeName; + this.mysqlVersion = mysqlVersion; + this.configurationId = configurationId; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; + this.hostnameLabel = hostnameLabel; + this.ipAddress = ipAddress; + this.port = port; + this.portX = portX; + this.backupPolicy = backupPolicy; + this.maintenance = maintenance; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.deletionPolicy = deletionPolicy; + this.crashRecovery = crashRecovery; + this.databaseManagement = databaseManagement; + this.secureConnections = secureConnections; + this.encryptData = encryptData; + this.customerContacts = customerContacts; + this.readEndpoint = readEndpoint; + this.telemetryConfiguration = telemetryConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -77,7 +153,7 @@ public UpdateDbSystemDetails( String mysqlVersion, String configurationId, String adminUsername, - String adminPassword, + char[] adminPassword, Integer dataStorageSizeInGBs, DataStorageDetails dataStorage, String hostnameLabel, @@ -473,7 +549,7 @@ public Builder adminUsername(String adminUsername) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password for the administrative user. The password must be @@ -484,11 +560,18 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder **/ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** * Expands the DB System's storage to the specified value. Only supports values larger than the current DB System's * storage size. @@ -1253,7 +1336,22 @@ public String getAdminUsername() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The password for the administrative user. The password must be + * between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and + * 1 special (nonalphanumeric) character. + * + * return the value + * @Deprecated - Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The password for the administrative user. The password must be @@ -1263,7 +1361,8 @@ public String getAdminUsername() { * * @return the value **/ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index cbd13da7e38..aab18f70ac5 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-networkfirewall @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewall.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewall.java index 2fd5781876f..5bef26737f1 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewall.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewall.java @@ -8,7 +8,7 @@ import com.oracle.bmc.networkfirewall.responses.*; /** - * Use the Network Firewall API to create network firewalls and configure policies that regulates network traffic in and across VCNs. + * Use the Network Firewall API to create network firewalls and configure policies that regulates network traffic in and across VCNs. For more information, see [Overview of Network Firewall](https://docs.oracle.com/iaas/Content/network-firewall/overview.htm). * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") @@ -1057,6 +1057,20 @@ DeleteTunnelInspectionRuleResponse deleteTunnelInspectionRule( */ GetNetworkFirewallResponse getNetworkFirewall(GetNetworkFirewallRequest request); + /** + * Get Overall health status of Network Firewall + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetNetworkFirewallHealthStatus API. + */ + GetNetworkFirewallHealthStatusResponse getNetworkFirewallHealthStatus( + GetNetworkFirewallHealthStatusRequest request); + /** * Gets a NetworkFirewallPolicy given the network firewall policy identifier. * @param request The request object containing the details to send diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsync.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsync.java index bd15a229f55..24834f87778 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsync.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.networkfirewall.responses.*; /** - * Use the Network Firewall API to create network firewalls and configure policies that regulates network traffic in and across VCNs. + * Use the Network Firewall API to create network firewalls and configure policies that regulates network traffic in and across VCNs. For more information, see [Overview of Network Firewall](https://docs.oracle.com/iaas/Content/network-firewall/overview.htm). */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") public interface NetworkFirewallAsync extends AutoCloseable { @@ -928,6 +928,25 @@ java.util.concurrent.Future getNetworkFirewall( GetNetworkFirewallRequest, GetNetworkFirewallResponse> handler); + /** + * Get Overall health status of Network Firewall + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + getNetworkFirewallHealthStatus( + GetNetworkFirewallHealthStatusRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetNetworkFirewallHealthStatusRequest, + GetNetworkFirewallHealthStatusResponse> + handler); + /** * Gets a NetworkFirewallPolicy given the network firewall policy identifier. * diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsyncClient.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsyncClient.java index f60fe0d6d73..f61fe1b52a7 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsyncClient.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallAsyncClient.java @@ -3301,6 +3301,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + getNetworkFirewallHealthStatus( + GetNetworkFirewallHealthStatusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetNetworkFirewallHealthStatusRequest, + GetNetworkFirewallHealthStatusResponse> + handler) { + LOG.trace("Called async getNetworkFirewallHealthStatus"); + final GetNetworkFirewallHealthStatusRequest interceptedRequest = + GetNetworkFirewallHealthStatusConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetNetworkFirewallHealthStatusConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "NetworkFirewall", + "GetNetworkFirewallHealthStatus", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/network-firewall/20230501/NetworkFirewallHealthStatus/GetNetworkFirewallHealthStatus"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetNetworkFirewallHealthStatusResponse> + transformer = + GetNetworkFirewallHealthStatusConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetNetworkFirewallHealthStatusRequest, + GetNetworkFirewallHealthStatusResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetNetworkFirewallHealthStatusRequest, + GetNetworkFirewallHealthStatusResponse>, + 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< + GetNetworkFirewallHealthStatusRequest, GetNetworkFirewallHealthStatusResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getNetworkFirewallPolicy( GetNetworkFirewallPolicyRequest request, diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallClient.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallClient.java index 9b76264f4e5..bbd29fa0426 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallClient.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/NetworkFirewallClient.java @@ -3099,6 +3099,45 @@ public GetNetworkFirewallResponse getNetworkFirewall(GetNetworkFirewallRequest r }); } + @Override + public GetNetworkFirewallHealthStatusResponse getNetworkFirewallHealthStatus( + GetNetworkFirewallHealthStatusRequest request) { + LOG.trace("Called getNetworkFirewallHealthStatus"); + final GetNetworkFirewallHealthStatusRequest interceptedRequest = + GetNetworkFirewallHealthStatusConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetNetworkFirewallHealthStatusConverter.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( + "NetworkFirewall", + "GetNetworkFirewallHealthStatus", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/network-firewall/20230501/NetworkFirewallHealthStatus/GetNetworkFirewallHealthStatus"); + java.util.function.Function< + javax.ws.rs.core.Response, GetNetworkFirewallHealthStatusResponse> + transformer = + GetNetworkFirewallHealthStatusConverter.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 GetNetworkFirewallPolicyResponse getNetworkFirewallPolicy( GetNetworkFirewallPolicyRequest request) { diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/internal/http/GetNetworkFirewallHealthStatusConverter.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/internal/http/GetNetworkFirewallHealthStatusConverter.java new file mode 100644 index 00000000000..f8a405c74b0 --- /dev/null +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/internal/http/GetNetworkFirewallHealthStatusConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.networkfirewall.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.networkfirewall.model.*; +import com.oracle.bmc.networkfirewall.requests.*; +import com.oracle.bmc.networkfirewall.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") +public class GetNetworkFirewallHealthStatusConverter { + 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(GetNetworkFirewallHealthStatusConverter.class); + + public static com.oracle.bmc.networkfirewall.requests.GetNetworkFirewallHealthStatusRequest + interceptRequest( + com.oracle.bmc.networkfirewall.requests.GetNetworkFirewallHealthStatusRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.networkfirewall.requests.GetNetworkFirewallHealthStatusRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNetworkFirewallId(), "networkFirewallId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230501") + .path("networkFirewalls") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNetworkFirewallId())) + .path("healthStatus"); + + 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.networkfirewall.responses.GetNetworkFirewallHealthStatusResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.networkfirewall.responses.GetNetworkFirewallHealthStatusResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.networkfirewall.responses + .GetNetworkFirewallHealthStatusResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.networkfirewall.responses + .GetNetworkFirewallHealthStatusResponse>() { + @Override + public com.oracle.bmc.networkfirewall.responses + .GetNetworkFirewallHealthStatusResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.networkfirewall.responses.GetNetworkFirewallHealthStatusResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.networkfirewall.model + .NetworkFirewallHealthStatus>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.networkfirewall.model + .NetworkFirewallHealthStatus + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.networkfirewall.model + .NetworkFirewallHealthStatus + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.networkfirewall.model + .NetworkFirewallHealthStatus> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.networkfirewall.responses + .GetNetworkFirewallHealthStatusResponse.Builder + builder = + com.oracle.bmc.networkfirewall.responses + .GetNetworkFirewallHealthStatusResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.networkFirewallHealthStatus(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.networkfirewall.responses + .GetNetworkFirewallHealthStatusResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/AppType.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/AppType.java index caf9af77849..2e17940d681 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/AppType.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/AppType.java @@ -6,8 +6,8 @@ /** * Application Type: - * * ICMP - An ICMP application. - * * ICMPv6 - An ICMPv6 support application. + * * ICMP - A user-defined ICMP application. + * * ICMPv6 - A user-defined ICMPv6 support application. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateDecryptionRuleDetails.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateDecryptionRuleDetails.java index 3c0baf9fb19..7f902887e63 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateDecryptionRuleDetails.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateDecryptionRuleDetails.java @@ -31,6 +31,7 @@ public final class CreateDecryptionRuleDetails "action", "decryptionProfile", "secret", + "secrets", "position" }) public CreateDecryptionRuleDetails( @@ -40,6 +41,7 @@ public CreateDecryptionRuleDetails( DecryptionActionType action, String decryptionProfile, String secret, + java.util.List secrets, RulePosition position) { super(); this.name = name; @@ -48,6 +50,7 @@ public CreateDecryptionRuleDetails( this.action = action; this.decryptionProfile = decryptionProfile; this.secret = secret; + this.secrets = secrets; this.position = position; } @@ -150,6 +153,22 @@ public Builder secret(String secret) { this.__explicitlySet__.add("secret"); return this; } + /** + * An array of mapped secrets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secrets") + private java.util.List secrets; + + /** + * An array of mapped secrets. + * @param secrets the value to set + * @return this builder + **/ + public Builder secrets(java.util.List secrets) { + this.secrets = secrets; + this.__explicitlySet__.add("secrets"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("position") private RulePosition position; @@ -172,6 +191,7 @@ public CreateDecryptionRuleDetails build() { this.action, this.decryptionProfile, this.secret, + this.secrets, this.position); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -199,6 +219,9 @@ public Builder copy(CreateDecryptionRuleDetails model) { if (model.wasPropertyExplicitlySet("secret")) { this.secret(model.getSecret()); } + if (model.wasPropertyExplicitlySet("secrets")) { + this.secrets(model.getSecrets()); + } if (model.wasPropertyExplicitlySet("position")) { this.position(model.getPosition()); } @@ -302,6 +325,20 @@ public String getSecret() { return secret; } + /** + * An array of mapped secrets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secrets") + private final java.util.List secrets; + + /** + * An array of mapped secrets. + * @return the value + **/ + public java.util.List getSecrets() { + return secrets; + } + @com.fasterxml.jackson.annotation.JsonProperty("position") private final RulePosition position; @@ -329,6 +366,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", action=").append(String.valueOf(this.action)); sb.append(", decryptionProfile=").append(String.valueOf(this.decryptionProfile)); sb.append(", secret=").append(String.valueOf(this.secret)); + sb.append(", secrets=").append(String.valueOf(this.secrets)); sb.append(", position=").append(String.valueOf(this.position)); sb.append(")"); return sb.toString(); @@ -350,6 +388,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.action, other.action) && java.util.Objects.equals(this.decryptionProfile, other.decryptionProfile) && java.util.Objects.equals(this.secret, other.secret) + && java.util.Objects.equals(this.secrets, other.secrets) && java.util.Objects.equals(this.position, other.position) && super.equals(other); } @@ -366,6 +405,7 @@ public int hashCode() { (result * PRIME) + (this.decryptionProfile == null ? 43 : this.decryptionProfile.hashCode()); result = (result * PRIME) + (this.secret == null ? 43 : this.secret.hashCode()); + result = (result * PRIME) + (this.secrets == null ? 43 : this.secrets.hashCode()); result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateNetworkFirewallDetails.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateNetworkFirewallDetails.java index 35c34f3ca1e..30245f5a3c8 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateNetworkFirewallDetails.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/CreateNetworkFirewallDetails.java @@ -34,7 +34,8 @@ public final class CreateNetworkFirewallDetails "natConfiguration", "shape", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateNetworkFirewallDetails( String displayName, @@ -48,7 +49,8 @@ public CreateNetworkFirewallDetails( NatConfigurationRequest natConfiguration, String shape, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -62,6 +64,7 @@ public CreateNetworkFirewallDetails( this.shape = shape; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -270,6 +273,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -288,7 +316,8 @@ public CreateNetworkFirewallDetails build() { this.natConfiguration, this.shape, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -333,6 +362,9 @@ public Builder copy(CreateNetworkFirewallDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -527,6 +559,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -555,6 +609,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -583,6 +638,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -618,6 +674,11 @@ public int hashCode() { result = (result * PRIME) + (this.shape == null ? 43 : this.shape.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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRule.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRule.java index 31b182cb2fb..4f30bfe729e 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRule.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRule.java @@ -27,6 +27,7 @@ public final class DecryptionRule extends com.oracle.bmc.http.internal.Explicitl "action", "decryptionProfile", "secret", + "secrets", "position", "parentResourceId", "description" @@ -37,6 +38,7 @@ public DecryptionRule( DecryptionActionType action, String decryptionProfile, String secret, + java.util.List secrets, RulePosition position, String parentResourceId, String description) { @@ -46,6 +48,7 @@ public DecryptionRule( this.action = action; this.decryptionProfile = decryptionProfile; this.secret = secret; + this.secrets = secrets; this.position = position; this.parentResourceId = parentResourceId; this.description = description; @@ -134,6 +137,22 @@ public Builder secret(String secret) { this.__explicitlySet__.add("secret"); return this; } + /** + * An array of mapped secrets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secrets") + private java.util.List secrets; + + /** + * An array of mapped secrets. + * @param secrets the value to set + * @return this builder + **/ + public Builder secrets(java.util.List secrets) { + this.secrets = secrets; + this.__explicitlySet__.add("secrets"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("position") private RulePosition position; @@ -187,6 +206,7 @@ public DecryptionRule build() { this.action, this.decryptionProfile, this.secret, + this.secrets, this.position, this.parentResourceId, this.description); @@ -213,6 +233,9 @@ public Builder copy(DecryptionRule model) { if (model.wasPropertyExplicitlySet("secret")) { this.secret(model.getSecret()); } + if (model.wasPropertyExplicitlySet("secrets")) { + this.secrets(model.getSecrets()); + } if (model.wasPropertyExplicitlySet("position")) { this.position(model.getPosition()); } @@ -308,6 +331,20 @@ public String getSecret() { return secret; } + /** + * An array of mapped secrets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secrets") + private final java.util.List secrets; + + /** + * An array of mapped secrets. + * @return the value + **/ + public java.util.List getSecrets() { + return secrets; + } + @com.fasterxml.jackson.annotation.JsonProperty("position") private final RulePosition position; @@ -362,6 +399,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", action=").append(String.valueOf(this.action)); sb.append(", decryptionProfile=").append(String.valueOf(this.decryptionProfile)); sb.append(", secret=").append(String.valueOf(this.secret)); + sb.append(", secrets=").append(String.valueOf(this.secrets)); sb.append(", position=").append(String.valueOf(this.position)); sb.append(", parentResourceId=").append(String.valueOf(this.parentResourceId)); sb.append(", description=").append(String.valueOf(this.description)); @@ -384,6 +422,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.action, other.action) && java.util.Objects.equals(this.decryptionProfile, other.decryptionProfile) && java.util.Objects.equals(this.secret, other.secret) + && java.util.Objects.equals(this.secrets, other.secrets) && java.util.Objects.equals(this.position, other.position) && java.util.Objects.equals(this.parentResourceId, other.parentResourceId) && java.util.Objects.equals(this.description, other.description) @@ -401,6 +440,7 @@ public int hashCode() { (result * PRIME) + (this.decryptionProfile == null ? 43 : this.decryptionProfile.hashCode()); result = (result * PRIME) + (this.secret == null ? 43 : this.secret.hashCode()); + result = (result * PRIME) + (this.secrets == null ? 43 : this.secrets.hashCode()); result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); result = (result * PRIME) diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRuleMatchCriteria.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRuleMatchCriteria.java index f214db6bbe1..d3ff82cf831 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRuleMatchCriteria.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/DecryptionRuleMatchCriteria.java @@ -33,13 +33,13 @@ public DecryptionRuleMatchCriteria( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceAddress") private java.util.List sourceAddress; /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. * @param sourceAddress the value to set * @return this builder **/ @@ -49,13 +49,13 @@ public Builder sourceAddress(java.util.List sourceAddress) { return this; } /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationAddress") private java.util.List destinationAddress; /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. * @param destinationAddress the value to set * @return this builder **/ @@ -101,13 +101,13 @@ public Builder toBuilder() { } /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceAddress") private final java.util.List sourceAddress; /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. * @return the value **/ public java.util.List getSourceAddress() { @@ -115,13 +115,13 @@ public java.util.List getSourceAddress() { } /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationAddress") private final java.util.List destinationAddress; /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. * @return the value **/ public java.util.List getDestinationAddress() { diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/HealthStatus.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/HealthStatus.java new file mode 100644 index 00000000000..ccdbe69dfa6 --- /dev/null +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/HealthStatus.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.networkfirewall.model; + +/** + * Overall health status of Network firewall + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") +public enum HealthStatus { + Critical("CRITICAL"), + Warning("WARNING"), + Ok("OK"), + Unknown("UNKNOWN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HealthStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HealthStatus v : HealthStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HealthStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HealthStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HealthStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NatRuleMatchCriteria.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NatRuleMatchCriteria.java index b2ef91ae9bb..e10fed4db8d 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NatRuleMatchCriteria.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NatRuleMatchCriteria.java @@ -35,13 +35,13 @@ public NatRuleMatchCriteria( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceAddress") private java.util.List sourceAddress; /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. * @param sourceAddress the value to set * @return this builder **/ @@ -51,13 +51,13 @@ public Builder sourceAddress(java.util.List sourceAddress) { return this; } /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationAddress") private java.util.List destinationAddress; /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. * @param destinationAddress the value to set * @return this builder **/ @@ -123,13 +123,13 @@ public Builder toBuilder() { } /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceAddress") private final java.util.List sourceAddress; /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. * @return the value **/ public java.util.List getSourceAddress() { @@ -137,13 +137,13 @@ public java.util.List getSourceAddress() { } /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationAddress") private final java.util.List destinationAddress; /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. * @return the value **/ public java.util.List getDestinationAddress() { diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewall.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewall.java index 75d44faab36..0f4275980c1 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewall.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewall.java @@ -38,7 +38,8 @@ public final class NetworkFirewall extends com.oracle.bmc.http.internal.Explicit "lifecycleDetails", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public NetworkFirewall( String id, @@ -58,7 +59,8 @@ public NetworkFirewall( String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.compartmentId = compartmentId; @@ -78,6 +80,7 @@ public NetworkFirewall( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -394,6 +397,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -418,7 +446,8 @@ public NetworkFirewall build() { this.lifecycleDetails, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -481,6 +510,9 @@ public Builder copy(NetworkFirewall model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -771,6 +803,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -805,6 +859,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -839,6 +894,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -884,6 +940,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallHealthStatus.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallHealthStatus.java new file mode 100644 index 00000000000..7420ae2fc3c --- /dev/null +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallHealthStatus.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.networkfirewall.model; + +/** + * Response for network firewall health status. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NetworkFirewallHealthStatus.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NetworkFirewallHealthStatus + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"status"}) + public NetworkFirewallHealthStatus(HealthStatus status) { + super(); + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Overall health status of Network firewall + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private HealthStatus status; + + /** + * Overall health status of Network firewall + * + * @param status the value to set + * @return this builder + **/ + public Builder status(HealthStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NetworkFirewallHealthStatus build() { + NetworkFirewallHealthStatus model = new NetworkFirewallHealthStatus(this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NetworkFirewallHealthStatus model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Overall health status of Network firewall + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final HealthStatus status; + + /** + * Overall health status of Network firewall + * + * @return the value + **/ + public HealthStatus getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NetworkFirewallHealthStatus("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NetworkFirewallHealthStatus)) { + return false; + } + + NetworkFirewallHealthStatus other = (NetworkFirewallHealthStatus) o; + return java.util.Objects.equals(this.status, other.status) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallSummary.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallSummary.java index 94ba43c5fd9..935657e7b2c 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallSummary.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/NetworkFirewallSummary.java @@ -39,7 +39,8 @@ public final class NetworkFirewallSummary "lifecycleDetails", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public NetworkFirewallSummary( String id, @@ -58,7 +59,8 @@ public NetworkFirewallSummary( String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.compartmentId = compartmentId; @@ -77,6 +79,7 @@ public NetworkFirewallSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -377,6 +380,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -400,7 +428,8 @@ public NetworkFirewallSummary build() { this.lifecycleDetails, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -460,6 +489,9 @@ public Builder copy(NetworkFirewallSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -736,6 +768,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -768,6 +822,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -800,6 +855,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -840,6 +896,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/SecurityRuleMatchCriteria.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/SecurityRuleMatchCriteria.java index c1fe79c5f3e..b4d8b6d022a 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/SecurityRuleMatchCriteria.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/SecurityRuleMatchCriteria.java @@ -48,13 +48,13 @@ public SecurityRuleMatchCriteria( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceAddress") private java.util.List sourceAddress; /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. * @param sourceAddress the value to set * @return this builder **/ @@ -64,13 +64,13 @@ public Builder sourceAddress(java.util.List sourceAddress) { return this; } /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationAddress") private java.util.List destinationAddress; /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. * @param destinationAddress the value to set * @return this builder **/ @@ -178,13 +178,13 @@ public Builder toBuilder() { } /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceAddress") private final java.util.List sourceAddress; /** - * An array of IP address list names to be evaluated against the traffic source address. + * An array of address list names to be evaluated against the traffic source address. * @return the value **/ public java.util.List getSourceAddress() { @@ -192,13 +192,13 @@ public java.util.List getSourceAddress() { } /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationAddress") private final java.util.List destinationAddress; /** - * An array of IP address list names to be evaluated against the traffic destination address. + * An array of address list names to be evaluated against the traffic destination address. * @return the value **/ public java.util.List getDestinationAddress() { diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateDecryptionRuleDetails.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateDecryptionRuleDetails.java index f390543ed21..e420cc6006c 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateDecryptionRuleDetails.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateDecryptionRuleDetails.java @@ -30,6 +30,7 @@ public final class UpdateDecryptionRuleDetails "action", "decryptionProfile", "secret", + "secrets", "position" }) public UpdateDecryptionRuleDetails( @@ -38,6 +39,7 @@ public UpdateDecryptionRuleDetails( DecryptionActionType action, String decryptionProfile, String secret, + java.util.List secrets, RulePosition position) { super(); this.description = description; @@ -45,6 +47,7 @@ public UpdateDecryptionRuleDetails( this.action = action; this.decryptionProfile = decryptionProfile; this.secret = secret; + this.secrets = secrets; this.position = position; } @@ -131,6 +134,22 @@ public Builder secret(String secret) { this.__explicitlySet__.add("secret"); return this; } + /** + * An array of mapped secrets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secrets") + private java.util.List secrets; + + /** + * An array of mapped secrets. + * @param secrets the value to set + * @return this builder + **/ + public Builder secrets(java.util.List secrets) { + this.secrets = secrets; + this.__explicitlySet__.add("secrets"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("position") private RulePosition position; @@ -152,6 +171,7 @@ public UpdateDecryptionRuleDetails build() { this.action, this.decryptionProfile, this.secret, + this.secrets, this.position); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -176,6 +196,9 @@ public Builder copy(UpdateDecryptionRuleDetails model) { if (model.wasPropertyExplicitlySet("secret")) { this.secret(model.getSecret()); } + if (model.wasPropertyExplicitlySet("secrets")) { + this.secrets(model.getSecrets()); + } if (model.wasPropertyExplicitlySet("position")) { this.position(model.getPosition()); } @@ -265,6 +288,20 @@ public String getSecret() { return secret; } + /** + * An array of mapped secrets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secrets") + private final java.util.List secrets; + + /** + * An array of mapped secrets. + * @return the value + **/ + public java.util.List getSecrets() { + return secrets; + } + @com.fasterxml.jackson.annotation.JsonProperty("position") private final RulePosition position; @@ -291,6 +328,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", action=").append(String.valueOf(this.action)); sb.append(", decryptionProfile=").append(String.valueOf(this.decryptionProfile)); sb.append(", secret=").append(String.valueOf(this.secret)); + sb.append(", secrets=").append(String.valueOf(this.secrets)); sb.append(", position=").append(String.valueOf(this.position)); sb.append(")"); return sb.toString(); @@ -311,6 +349,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.action, other.action) && java.util.Objects.equals(this.decryptionProfile, other.decryptionProfile) && java.util.Objects.equals(this.secret, other.secret) + && java.util.Objects.equals(this.secrets, other.secrets) && java.util.Objects.equals(this.position, other.position) && super.equals(other); } @@ -326,6 +365,7 @@ public int hashCode() { (result * PRIME) + (this.decryptionProfile == null ? 43 : this.decryptionProfile.hashCode()); result = (result * PRIME) + (this.secret == null ? 43 : this.secret.hashCode()); + result = (result * PRIME) + (this.secrets == null ? 43 : this.secrets.hashCode()); result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateNetworkFirewallDetails.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateNetworkFirewallDetails.java index d5dc51ef3c2..48698cfd554 100644 --- a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateNetworkFirewallDetails.java +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/model/UpdateNetworkFirewallDetails.java @@ -29,7 +29,8 @@ public final class UpdateNetworkFirewallDetails "natConfiguration", "shape", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateNetworkFirewallDetails( String displayName, @@ -38,7 +39,8 @@ public UpdateNetworkFirewallDetails( NatConfigurationRequest natConfiguration, String shape, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.networkFirewallPolicyId = networkFirewallPolicyId; @@ -47,6 +49,7 @@ public UpdateNetworkFirewallDetails( this.shape = shape; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -169,6 +172,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -182,7 +210,8 @@ public UpdateNetworkFirewallDetails build() { this.natConfiguration, this.shape, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -212,6 +241,9 @@ public Builder copy(UpdateNetworkFirewallDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -330,6 +362,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -353,6 +407,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -376,6 +431,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -400,6 +456,11 @@ public int hashCode() { result = (result * PRIME) + (this.shape == null ? 43 : this.shape.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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/requests/GetNetworkFirewallHealthStatusRequest.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/requests/GetNetworkFirewallHealthStatusRequest.java new file mode 100644 index 00000000000..fa12df8b30a --- /dev/null +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/requests/GetNetworkFirewallHealthStatusRequest.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.networkfirewall.requests; + +import com.oracle.bmc.networkfirewall.model.*; +/** + * Example: Click here to see how to use GetNetworkFirewallHealthStatusRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") +public class GetNetworkFirewallHealthStatusRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Network Firewall resource. + */ + private String networkFirewallId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Network Firewall resource. + */ + public String getNetworkFirewallId() { + return networkFirewallId; + } + /** + * 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< + GetNetworkFirewallHealthStatusRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Network Firewall resource. + */ + private String networkFirewallId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Network Firewall resource. + * @param networkFirewallId the value to set + * @return this builder instance + */ + public Builder networkFirewallId(String networkFirewallId) { + this.networkFirewallId = networkFirewallId; + 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(GetNetworkFirewallHealthStatusRequest o) { + networkFirewallId(o.getNetworkFirewallId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetNetworkFirewallHealthStatusRequest 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 GetNetworkFirewallHealthStatusRequest + */ + public GetNetworkFirewallHealthStatusRequest build() { + GetNetworkFirewallHealthStatusRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetNetworkFirewallHealthStatusRequest 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 GetNetworkFirewallHealthStatusRequest + */ + public GetNetworkFirewallHealthStatusRequest buildWithoutInvocationCallback() { + GetNetworkFirewallHealthStatusRequest request = + new GetNetworkFirewallHealthStatusRequest(); + request.networkFirewallId = networkFirewallId; + request.opcRequestId = opcRequestId; + return request; + // new GetNetworkFirewallHealthStatusRequest(networkFirewallId, 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().networkFirewallId(networkFirewallId).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(",networkFirewallId=").append(String.valueOf(this.networkFirewallId)); + 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 GetNetworkFirewallHealthStatusRequest)) { + return false; + } + + GetNetworkFirewallHealthStatusRequest other = (GetNetworkFirewallHealthStatusRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.networkFirewallId, other.networkFirewallId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.networkFirewallId == null ? 43 : this.networkFirewallId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/responses/GetNetworkFirewallHealthStatusResponse.java b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/responses/GetNetworkFirewallHealthStatusResponse.java new file mode 100644 index 00000000000..f261c8bf980 --- /dev/null +++ b/bmc-networkfirewall/src/main/java/com/oracle/bmc/networkfirewall/responses/GetNetworkFirewallHealthStatusResponse.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.networkfirewall.responses; + +import com.oracle.bmc.networkfirewall.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") +public class GetNetworkFirewallHealthStatusResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned NetworkFirewallHealthStatus instance. + */ + private com.oracle.bmc.networkfirewall.model.NetworkFirewallHealthStatus + networkFirewallHealthStatus; + + /** + * The returned NetworkFirewallHealthStatus instance. + * @return the value + */ + public com.oracle.bmc.networkfirewall.model.NetworkFirewallHealthStatus + getNetworkFirewallHealthStatus() { + return networkFirewallHealthStatus; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "networkFirewallHealthStatus" + }) + private GetNetworkFirewallHealthStatusResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.networkfirewall.model.NetworkFirewallHealthStatus + networkFirewallHealthStatus) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.networkFirewallHealthStatus = networkFirewallHealthStatus; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned NetworkFirewallHealthStatus instance. + */ + private com.oracle.bmc.networkfirewall.model.NetworkFirewallHealthStatus + networkFirewallHealthStatus; + + /** + * The returned NetworkFirewallHealthStatus instance. + * @param networkFirewallHealthStatus the value to set + * @return this builder + */ + public Builder networkFirewallHealthStatus( + com.oracle.bmc.networkfirewall.model.NetworkFirewallHealthStatus + networkFirewallHealthStatus) { + this.networkFirewallHealthStatus = networkFirewallHealthStatus; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetNetworkFirewallHealthStatusResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + networkFirewallHealthStatus(o.getNetworkFirewallHealthStatus()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetNetworkFirewallHealthStatusResponse build() { + return new GetNetworkFirewallHealthStatusResponse( + __httpStatusCode__, headers, etag, opcRequestId, networkFirewallHealthStatus); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",networkFirewallHealthStatus=") + .append(String.valueOf(networkFirewallHealthStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetNetworkFirewallHealthStatusResponse)) { + return false; + } + + GetNetworkFirewallHealthStatusResponse other = (GetNetworkFirewallHealthStatusResponse) 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.networkFirewallHealthStatus, other.networkFirewallHealthStatus); + } + + @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.networkFirewallHealthStatus == null + ? 43 + : this.networkFirewallHealthStatus.hashCode()); + return result; + } +} diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index aa3185bbef0..fa50ab79efe 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 1d667ff055b..1db51dd35f7 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-nosql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index cd1c560e686..fcdbc0d878e 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.91.0 + 2.93.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.91.0 + 2.93.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 41e2e5c3148..dcee93646e8 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.91.0 + 2.93.0 ../pom.xml @@ -28,12 +28,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.91.0 + 2.93.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index bbc5ae042e9..8b93db3605e 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.91.0 + 2.93.0 ../pom.xml @@ -20,7 +20,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java index 3b2b09c8e4e..b6c1e48cf68 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java @@ -47,7 +47,8 @@ public final class Bucket extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "isReadOnly", "id", "versioning", - "autoTiering" + "autoTiering", + "bucketScope" }) public Bucket( String namespace, @@ -70,7 +71,8 @@ public Bucket( Boolean isReadOnly, String id, Versioning versioning, - AutoTiering autoTiering) { + AutoTiering autoTiering, + BucketScope bucketScope) { super(); this.namespace = namespace; this.name = name; @@ -93,6 +95,7 @@ public Bucket( this.id = id; this.versioning = versioning; this.autoTiering = autoTiering; + this.bucketScope = bucketScope; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -506,6 +509,32 @@ public Builder autoTiering(AutoTiering autoTiering) { this.__explicitlySet__.add("autoTiering"); return this; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + * @param bucketScope the value to set + * @return this builder + **/ + public Builder bucketScope(BucketScope bucketScope) { + this.bucketScope = bucketScope; + this.__explicitlySet__.add("bucketScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -533,7 +562,8 @@ public Bucket build() { this.isReadOnly, this.id, this.versioning, - this.autoTiering); + this.autoTiering, + this.bucketScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -605,6 +635,9 @@ public Builder copy(Bucket model) { if (model.wasPropertyExplicitlySet("autoTiering")) { this.autoTiering(model.getAutoTiering()); } + if (model.wasPropertyExplicitlySet("bucketScope")) { + this.bucketScope(model.getBucketScope()); + } return this; } } @@ -1194,6 +1227,83 @@ public AutoTiering getAutoTiering() { return autoTiering; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + public enum BucketScope { + Namespace("NAMESPACE"), + Region("REGION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BucketScope.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BucketScope v : BucketScope.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BucketScope(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BucketScope create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BucketScope', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private final BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + * @return the value + **/ + public BucketScope getBucketScope() { + return bucketScope; + } + @Override public String toString() { return this.toString(true); @@ -1230,6 +1340,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", versioning=").append(String.valueOf(this.versioning)); sb.append(", autoTiering=").append(String.valueOf(this.autoTiering)); + sb.append(", bucketScope=").append(String.valueOf(this.bucketScope)); sb.append(")"); return sb.toString(); } @@ -1266,6 +1377,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.versioning, other.versioning) && java.util.Objects.equals(this.autoTiering, other.autoTiering) + && java.util.Objects.equals(this.bucketScope, other.bucketScope) && super.equals(other); } @@ -1314,6 +1426,7 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.versioning == null ? 43 : this.versioning.hashCode()); result = (result * PRIME) + (this.autoTiering == null ? 43 : this.autoTiering.hashCode()); + result = (result * PRIME) + (this.bucketScope == null ? 43 : this.bucketScope.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java index 410034c217e..ba8dd3b80d3 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java @@ -30,7 +30,8 @@ public final class BucketSummary extends com.oracle.bmc.http.internal.Explicitly "timeCreated", "etag", "freeformTags", - "definedTags" + "definedTags", + "bucketScope" }) public BucketSummary( String namespace, @@ -40,7 +41,8 @@ public BucketSummary( java.util.Date timeCreated, String etag, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + Bucket.BucketScope bucketScope) { super(); this.namespace = namespace; this.name = name; @@ -50,6 +52,7 @@ public BucketSummary( this.etag = etag; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.bucketScope = bucketScope; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -199,6 +202,32 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private Bucket.BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + * @param bucketScope the value to set + * @return this builder + **/ + public Builder bucketScope(Bucket.BucketScope bucketScope) { + this.bucketScope = bucketScope; + this.__explicitlySet__.add("bucketScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -213,7 +242,8 @@ public BucketSummary build() { this.timeCreated, this.etag, this.freeformTags, - this.definedTags); + this.definedTags, + this.bucketScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -246,6 +276,9 @@ public Builder copy(BucketSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("bucketScope")) { + this.bucketScope(model.getBucketScope()); + } return this; } } @@ -389,6 +422,30 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private final Bucket.BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + * @return the value + **/ + public Bucket.BucketScope getBucketScope() { + return bucketScope; + } + @Override public String toString() { return this.toString(true); @@ -411,6 +468,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", etag=").append(String.valueOf(this.etag)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", bucketScope=").append(String.valueOf(this.bucketScope)); sb.append(")"); return sb.toString(); } @@ -433,6 +491,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.bucketScope, other.bucketScope) && super.equals(other); } @@ -450,6 +509,7 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.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.bucketScope == null ? 43 : this.bucketScope.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java index e8f748132a0..2d57944c00b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java @@ -35,7 +35,8 @@ public final class CreateBucketDetails extends com.oracle.bmc.http.internal.Expl "definedTags", "kmsKeyId", "versioning", - "autoTiering" + "autoTiering", + "bucketScope" }) public CreateBucketDetails( String name, @@ -48,7 +49,8 @@ public CreateBucketDetails( java.util.Map> definedTags, String kmsKeyId, Versioning versioning, - Bucket.AutoTiering autoTiering) { + Bucket.AutoTiering autoTiering, + Bucket.BucketScope bucketScope) { super(); this.name = name; this.compartmentId = compartmentId; @@ -61,6 +63,7 @@ public CreateBucketDetails( this.kmsKeyId = kmsKeyId; this.versioning = versioning; this.autoTiering = autoTiering; + this.bucketScope = bucketScope; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -298,6 +301,32 @@ public Builder autoTiering(Bucket.AutoTiering autoTiering) { this.__explicitlySet__.add("autoTiering"); return this; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private Bucket.BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + * @param bucketScope the value to set + * @return this builder + **/ + public Builder bucketScope(Bucket.BucketScope bucketScope) { + this.bucketScope = bucketScope; + this.__explicitlySet__.add("bucketScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -315,7 +344,8 @@ public CreateBucketDetails build() { this.definedTags, this.kmsKeyId, this.versioning, - this.autoTiering); + this.autoTiering, + this.bucketScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -357,6 +387,9 @@ public Builder copy(CreateBucketDetails model) { if (model.wasPropertyExplicitlySet("autoTiering")) { this.autoTiering(model.getAutoTiering()); } + if (model.wasPropertyExplicitlySet("bucketScope")) { + this.bucketScope(model.getBucketScope()); + } return this; } } @@ -698,6 +731,30 @@ public Bucket.AutoTiering getAutoTiering() { return autoTiering; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private final Bucket.BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * + * @return the value + **/ + public Bucket.BucketScope getBucketScope() { + return bucketScope; + } + @Override public String toString() { return this.toString(true); @@ -723,6 +780,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", versioning=").append(String.valueOf(this.versioning)); sb.append(", autoTiering=").append(String.valueOf(this.autoTiering)); + sb.append(", bucketScope=").append(String.valueOf(this.bucketScope)); sb.append(")"); return sb.toString(); } @@ -748,6 +806,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.versioning, other.versioning) && java.util.Objects.equals(this.autoTiering, other.autoTiering) + && java.util.Objects.equals(this.bucketScope, other.bucketScope) && super.equals(other); } @@ -774,6 +833,7 @@ public int hashCode() { result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + (this.versioning == null ? 43 : this.versioning.hashCode()); result = (result * PRIME) + (this.autoTiering == null ? 43 : this.autoTiering.hashCode()); + result = (result * PRIME) + (this.bucketScope == null ? 43 : this.bucketScope.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java index daddc5eacea..1ee11261326 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java @@ -35,7 +35,8 @@ public final class UpdateBucketDetails extends com.oracle.bmc.http.internal.Expl "definedTags", "kmsKeyId", "versioning", - "autoTiering" + "autoTiering", + "bucketScope" }) public UpdateBucketDetails( String namespace, @@ -48,7 +49,8 @@ public UpdateBucketDetails( java.util.Map> definedTags, String kmsKeyId, Versioning versioning, - Bucket.AutoTiering autoTiering) { + Bucket.AutoTiering autoTiering, + Bucket.BucketScope bucketScope) { super(); this.namespace = namespace; this.compartmentId = compartmentId; @@ -61,6 +63,7 @@ public UpdateBucketDetails( this.kmsKeyId = kmsKeyId; this.versioning = versioning; this.autoTiering = autoTiering; + this.bucketScope = bucketScope; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -294,6 +297,38 @@ public Builder autoTiering(Bucket.AutoTiering autoTiering) { this.__explicitlySet__.add("autoTiering"); return this; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION to NAMESPACE. + * Updating bucket scope is possible only if the bucket name is valid and there is no existing regionally unique + * bucket with the same name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private Bucket.BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION to NAMESPACE. + * Updating bucket scope is possible only if the bucket name is valid and there is no existing regionally unique + * bucket with the same name. + * + * @param bucketScope the value to set + * @return this builder + **/ + public Builder bucketScope(Bucket.BucketScope bucketScope) { + this.bucketScope = bucketScope; + this.__explicitlySet__.add("bucketScope"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -311,7 +346,8 @@ public UpdateBucketDetails build() { this.definedTags, this.kmsKeyId, this.versioning, - this.autoTiering); + this.autoTiering, + this.bucketScope); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -353,6 +389,9 @@ public Builder copy(UpdateBucketDetails model) { if (model.wasPropertyExplicitlySet("autoTiering")) { this.autoTiering(model.getAutoTiering()); } + if (model.wasPropertyExplicitlySet("bucketScope")) { + this.bucketScope(model.getBucketScope()); + } return this; } } @@ -652,6 +691,36 @@ public Bucket.AutoTiering getAutoTiering() { return autoTiering; } + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION to NAMESPACE. + * Updating bucket scope is possible only if the bucket name is valid and there is no existing regionally unique + * bucket with the same name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") + private final Bucket.BucketScope bucketScope; + + /** + * Scope in which the bucket is unique. Default value is NAMESPACE. + * Bucket scope as NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other + * tenancies can have a bucket with same name in their namespace. + * Bucket scope as REGION means that the bucket is regionally unique. No other tenancy can have a bucket with + * same name and scope REGION. + * BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION to NAMESPACE. + * Updating bucket scope is possible only if the bucket name is valid and there is no existing regionally unique + * bucket with the same name. + * + * @return the value + **/ + public Bucket.BucketScope getBucketScope() { + return bucketScope; + } + @Override public String toString() { return this.toString(true); @@ -677,6 +746,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", versioning=").append(String.valueOf(this.versioning)); sb.append(", autoTiering=").append(String.valueOf(this.autoTiering)); + sb.append(", bucketScope=").append(String.valueOf(this.bucketScope)); sb.append(")"); return sb.toString(); } @@ -702,6 +772,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.versioning, other.versioning) && java.util.Objects.equals(this.autoTiering, other.autoTiering) + && java.util.Objects.equals(this.bucketScope, other.bucketScope) && super.equals(other); } @@ -728,6 +799,7 @@ public int hashCode() { result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + (this.versioning == null ? 43 : this.versioning.hashCode()); result = (result * PRIME) + (this.autoTiering == null ? 43 : this.autoTiering.hashCode()); + result = (result * PRIME) + (this.bucketScope == null ? 43 : this.bucketScope.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index a8b6ab428d6..08f6001746b 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 06128d8b361..2decd6a526b 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-oce @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 8d6be918014..a1bd427d1f7 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index d85209f718a..e162fcd2d2f 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-ocvp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java index fdc73ba2e46..aba9ec2b0de 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java @@ -637,7 +637,12 @@ public java.util.concurrent.Future inplaceUpgrade( com.oracle.bmc.responses.AsyncHandler< InplaceUpgradeRequest, InplaceUpgradeResponse>, java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getInplaceUpgradeDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java index 4385c217af4..c52a7b509c7 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java @@ -700,7 +700,10 @@ public InplaceUpgradeResponse inplaceUpgrade(InplaceUpgradeRequest request) { retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest.getInplaceUpgradeDetails(), + retriedRequest); return transformer.apply(response); }); }); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Byol.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Byol.java index dbb72874e07..60dac5de8f1 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Byol.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Byol.java @@ -33,6 +33,7 @@ public final class Byol extends com.oracle.bmc.http.internal.ExplicitlySetBmcMod "timeTermStart", "timeTermEnd", "entitlementKey", + "siteId", "timeCreated", "timeUpdated", "freeformTags", @@ -51,6 +52,7 @@ public Byol( java.util.Date timeTermStart, java.util.Date timeTermEnd, String entitlementKey, + String siteId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -68,6 +70,7 @@ public Byol( this.timeTermStart = timeTermStart; this.timeTermEnd = timeTermEnd; this.entitlementKey = entitlementKey; + this.siteId = siteId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -297,6 +300,24 @@ public Builder entitlementKey(String entitlementKey) { this.__explicitlySet__.add("entitlementKey"); return this; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @param siteId the value to set + * @return this builder + **/ + public Builder siteId(String siteId) { + this.siteId = siteId; + this.__explicitlySet__.add("siteId"); + return this; + } /** * The date and time the BYOL was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -426,6 +447,7 @@ public Byol build() { this.timeTermStart, this.timeTermEnd, this.entitlementKey, + this.siteId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -472,6 +494,9 @@ public Builder copy(Byol model) { if (model.wasPropertyExplicitlySet("entitlementKey")) { this.entitlementKey(model.getEntitlementKey()); } + if (model.wasPropertyExplicitlySet("siteId")) { + this.siteId(model.getSiteId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -809,6 +834,22 @@ public String getEntitlementKey() { return entitlementKey; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private final String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @return the value + **/ + public String getSiteId() { + return siteId; + } + /** * The date and time the BYOL was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -934,6 +975,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeTermStart=").append(String.valueOf(this.timeTermStart)); sb.append(", timeTermEnd=").append(String.valueOf(this.timeTermEnd)); sb.append(", entitlementKey=").append(String.valueOf(this.entitlementKey)); + sb.append(", siteId=").append(String.valueOf(this.siteId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -964,6 +1006,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeTermStart, other.timeTermStart) && java.util.Objects.equals(this.timeTermEnd, other.timeTermEnd) && java.util.Objects.equals(this.entitlementKey, other.entitlementKey) + && java.util.Objects.equals(this.siteId, other.siteId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -997,6 +1040,7 @@ public int hashCode() { result = (result * PRIME) + (this.entitlementKey == null ? 43 : this.entitlementKey.hashCode()); + result = (result * PRIME) + (this.siteId == null ? 43 : this.siteId.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()); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ByolAllocation.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ByolAllocation.java index c26d9fbd1c5..e7556fb1458 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ByolAllocation.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ByolAllocation.java @@ -33,6 +33,7 @@ public final class ByolAllocation extends com.oracle.bmc.http.internal.Explicitl "timeTermEnd", "byolId", "entitlementKey", + "siteId", "timeCreated", "timeUpdated", "freeformTags", @@ -51,6 +52,7 @@ public ByolAllocation( java.util.Date timeTermEnd, String byolId, String entitlementKey, + String siteId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -68,6 +70,7 @@ public ByolAllocation( this.timeTermEnd = timeTermEnd; this.byolId = byolId; this.entitlementKey = entitlementKey; + this.siteId = siteId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -291,6 +294,24 @@ public Builder entitlementKey(String entitlementKey) { this.__explicitlySet__.add("entitlementKey"); return this; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @param siteId the value to set + * @return this builder + **/ + public Builder siteId(String siteId) { + this.siteId = siteId; + this.__explicitlySet__.add("siteId"); + return this; + } /** * The date and time the BYOL Allocation was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -420,6 +441,7 @@ public ByolAllocation build() { this.timeTermEnd, this.byolId, this.entitlementKey, + this.siteId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -466,6 +488,9 @@ public Builder copy(ByolAllocation model) { if (model.wasPropertyExplicitlySet("entitlementKey")) { this.entitlementKey(model.getEntitlementKey()); } + if (model.wasPropertyExplicitlySet("siteId")) { + this.siteId(model.getSiteId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -797,6 +822,22 @@ public String getEntitlementKey() { return entitlementKey; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private final String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @return the value + **/ + public String getSiteId() { + return siteId; + } + /** * The date and time the BYOL Allocation was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -922,6 +963,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeTermEnd=").append(String.valueOf(this.timeTermEnd)); sb.append(", byolId=").append(String.valueOf(this.byolId)); sb.append(", entitlementKey=").append(String.valueOf(this.entitlementKey)); + sb.append(", siteId=").append(String.valueOf(this.siteId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -952,6 +994,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeTermEnd, other.timeTermEnd) && java.util.Objects.equals(this.byolId, other.byolId) && java.util.Objects.equals(this.entitlementKey, other.entitlementKey) + && java.util.Objects.equals(this.siteId, other.siteId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -987,6 +1030,7 @@ public int hashCode() { result = (result * PRIME) + (this.entitlementKey == null ? 43 : this.entitlementKey.hashCode()); + result = (result * PRIME) + (this.siteId == null ? 43 : this.siteId.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()); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateByolDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateByolDetails.java index 8a5f130ef4b..b0e3874ad42 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateByolDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateByolDetails.java @@ -30,6 +30,7 @@ public final class CreateByolDetails extends com.oracle.bmc.http.internal.Explic "timeTermStart", "timeTermEnd", "entitlementKey", + "siteId", "freeformTags", "definedTags" }) @@ -42,6 +43,7 @@ public CreateByolDetails( java.util.Date timeTermStart, java.util.Date timeTermEnd, String entitlementKey, + String siteId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -53,6 +55,7 @@ public CreateByolDetails( this.timeTermStart = timeTermStart; this.timeTermEnd = timeTermEnd; this.entitlementKey = entitlementKey; + this.siteId = siteId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -227,6 +230,24 @@ public Builder entitlementKey(String entitlementKey) { this.__explicitlySet__.add("entitlementKey"); return this; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @param siteId the value to set + * @return this builder + **/ + public Builder siteId(String siteId) { + this.siteId = siteId; + this.__explicitlySet__.add("siteId"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -291,6 +312,7 @@ public CreateByolDetails build() { this.timeTermStart, this.timeTermEnd, this.entitlementKey, + this.siteId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -325,6 +347,9 @@ public Builder copy(CreateByolDetails model) { if (model.wasPropertyExplicitlySet("entitlementKey")) { this.entitlementKey(model.getEntitlementKey()); } + if (model.wasPropertyExplicitlySet("siteId")) { + this.siteId(model.getSiteId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -498,6 +523,22 @@ public String getEntitlementKey() { return entitlementKey; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private final String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @return the value + **/ + public String getSiteId() { + return siteId; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -564,6 +605,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeTermStart=").append(String.valueOf(this.timeTermStart)); sb.append(", timeTermEnd=").append(String.valueOf(this.timeTermEnd)); sb.append(", entitlementKey=").append(String.valueOf(this.entitlementKey)); + sb.append(", siteId=").append(String.valueOf(this.siteId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -588,6 +630,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeTermStart, other.timeTermStart) && java.util.Objects.equals(this.timeTermEnd, other.timeTermEnd) && java.util.Objects.equals(this.entitlementKey, other.entitlementKey) + && java.util.Objects.equals(this.siteId, other.siteId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -611,6 +654,7 @@ public int hashCode() { result = (result * PRIME) + (this.entitlementKey == null ? 43 : this.entitlementKey.hashCode()); + result = (result * PRIME) + (this.siteId == null ? 43 : this.siteId.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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java new file mode 100644 index 00000000000..d53728e1e14 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.model; + +/** + * The details for upgrading ESXi 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 + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InplaceUpgradeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InplaceUpgradeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vcfByolAllocationId"}) + public InplaceUpgradeDetails(String vcfByolAllocationId) { + super(); + this.vcfByolAllocationId = vcfByolAllocationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcfByolAllocationId") + private String vcfByolAllocationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + * @param vcfByolAllocationId the value to set + * @return this builder + **/ + public Builder vcfByolAllocationId(String vcfByolAllocationId) { + this.vcfByolAllocationId = vcfByolAllocationId; + this.__explicitlySet__.add("vcfByolAllocationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InplaceUpgradeDetails build() { + InplaceUpgradeDetails model = new InplaceUpgradeDetails(this.vcfByolAllocationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InplaceUpgradeDetails model) { + if (model.wasPropertyExplicitlySet("vcfByolAllocationId")) { + this.vcfByolAllocationId(model.getVcfByolAllocationId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcfByolAllocationId") + private final String vcfByolAllocationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + * @return the value + **/ + public String getVcfByolAllocationId() { + return vcfByolAllocationId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InplaceUpgradeDetails("); + sb.append("super=").append(super.toString()); + sb.append("vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InplaceUpgradeDetails)) { + return false; + } + + InplaceUpgradeDetails other = (InplaceUpgradeDetails) o; + return java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.vcfByolAllocationId == null + ? 43 + : this.vcfByolAllocationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java index 80f1b5329e1..3baed4b0aaa 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java @@ -22,10 +22,11 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class ReplaceHostDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"esxiSoftwareVersion"}) - public ReplaceHostDetails(String esxiSoftwareVersion) { + @java.beans.ConstructorProperties({"esxiSoftwareVersion", "vcfByolAllocationId"}) + public ReplaceHostDetails(String esxiSoftwareVersion, String vcfByolAllocationId) { super(); this.esxiSoftwareVersion = esxiSoftwareVersion; + this.vcfByolAllocationId = vcfByolAllocationId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -54,12 +55,31 @@ public Builder esxiSoftwareVersion(String esxiSoftwareVersion) { this.__explicitlySet__.add("esxiSoftwareVersion"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcfByolAllocationId") + private String vcfByolAllocationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + * @param vcfByolAllocationId the value to set + * @return this builder + **/ + public Builder vcfByolAllocationId(String vcfByolAllocationId) { + this.vcfByolAllocationId = vcfByolAllocationId; + this.__explicitlySet__.add("vcfByolAllocationId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ReplaceHostDetails build() { - ReplaceHostDetails model = new ReplaceHostDetails(this.esxiSoftwareVersion); + ReplaceHostDetails model = + new ReplaceHostDetails(this.esxiSoftwareVersion, this.vcfByolAllocationId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -71,6 +91,9 @@ public Builder copy(ReplaceHostDetails model) { if (model.wasPropertyExplicitlySet("esxiSoftwareVersion")) { this.esxiSoftwareVersion(model.getEsxiSoftwareVersion()); } + if (model.wasPropertyExplicitlySet("vcfByolAllocationId")) { + this.vcfByolAllocationId(model.getVcfByolAllocationId()); + } return this; } } @@ -108,6 +131,22 @@ public String getEsxiSoftwareVersion() { return esxiSoftwareVersion; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vcfByolAllocationId") + private final String vcfByolAllocationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. + * + * @return the value + **/ + public String getVcfByolAllocationId() { + return vcfByolAllocationId; + } + @Override public String toString() { return this.toString(true); @@ -123,6 +162,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ReplaceHostDetails("); sb.append("super=").append(super.toString()); sb.append("esxiSoftwareVersion=").append(String.valueOf(this.esxiSoftwareVersion)); + sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId)); sb.append(")"); return sb.toString(); } @@ -138,6 +178,7 @@ public boolean equals(Object o) { ReplaceHostDetails other = (ReplaceHostDetails) o; return java.util.Objects.equals(this.esxiSoftwareVersion, other.esxiSoftwareVersion) + && java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId) && super.equals(other); } @@ -150,6 +191,11 @@ public int hashCode() { + (this.esxiSoftwareVersion == null ? 43 : this.esxiSoftwareVersion.hashCode()); + result = + (result * PRIME) + + (this.vcfByolAllocationId == null + ? 43 + : this.vcfByolAllocationId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateByolDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateByolDetails.java index 0fef3982fca..a352a2df08a 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateByolDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateByolDetails.java @@ -29,6 +29,7 @@ public final class UpdateByolDetails extends com.oracle.bmc.http.internal.Explic "timeTermStart", "timeTermEnd", "entitlementKey", + "siteId", "freeformTags", "definedTags" }) @@ -40,6 +41,7 @@ public UpdateByolDetails( java.util.Date timeTermStart, java.util.Date timeTermEnd, String entitlementKey, + String siteId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -50,6 +52,7 @@ public UpdateByolDetails( this.timeTermStart = timeTermStart; this.timeTermEnd = timeTermEnd; this.entitlementKey = entitlementKey; + this.siteId = siteId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -204,6 +207,24 @@ public Builder entitlementKey(String entitlementKey) { this.__explicitlySet__.add("entitlementKey"); return this; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @param siteId the value to set + * @return this builder + **/ + public Builder siteId(String siteId) { + this.siteId = siteId; + this.__explicitlySet__.add("siteId"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -267,6 +288,7 @@ public UpdateByolDetails build() { this.timeTermStart, this.timeTermEnd, this.entitlementKey, + this.siteId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -298,6 +320,9 @@ public Builder copy(UpdateByolDetails model) { if (model.wasPropertyExplicitlySet("entitlementKey")) { this.entitlementKey(model.getEntitlementKey()); } + if (model.wasPropertyExplicitlySet("siteId")) { + this.siteId(model.getSiteId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -453,6 +478,22 @@ public String getEntitlementKey() { return entitlementKey; } + /** + * The hyperscaler identifier in Broadcom systems. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("siteId") + private final String siteId; + + /** + * The hyperscaler identifier in Broadcom systems. + * + * @return the value + **/ + public String getSiteId() { + return siteId; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -518,6 +559,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeTermStart=").append(String.valueOf(this.timeTermStart)); sb.append(", timeTermEnd=").append(String.valueOf(this.timeTermEnd)); sb.append(", entitlementKey=").append(String.valueOf(this.entitlementKey)); + sb.append(", siteId=").append(String.valueOf(this.siteId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -541,6 +583,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeTermStart, other.timeTermStart) && java.util.Objects.equals(this.timeTermEnd, other.timeTermEnd) && java.util.Objects.equals(this.entitlementKey, other.entitlementKey) + && java.util.Objects.equals(this.siteId, other.siteId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -561,6 +604,7 @@ public int hashCode() { result = (result * PRIME) + (this.entitlementKey == null ? 43 : this.entitlementKey.hashCode()); + result = (result * PRIME) + (this.siteId == null ? 43 : this.siteId.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-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/InplaceUpgradeRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/InplaceUpgradeRequest.java index 2fe560d7a74..14afc968d85 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/InplaceUpgradeRequest.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/InplaceUpgradeRequest.java @@ -9,7 +9,9 @@ * Example: Click here to see how to use InplaceUpgradeRequest. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") -public class InplaceUpgradeRequest extends com.oracle.bmc.requests.BmcRequest { +public class InplaceUpgradeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.ocvp.model.InplaceUpgradeDetails> { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ESXi host. @@ -24,6 +26,17 @@ public class InplaceUpgradeRequest extends com.oracle.bmc.requests.BmcRequest { + InplaceUpgradeRequest, com.oracle.bmc.ocvp.model.InplaceUpgradeDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -106,6 +129,22 @@ public Builder esxiHostId(String esxiHostId) { return this; } + /** + * The details for upgrading ESXi host. + */ + private com.oracle.bmc.ocvp.model.InplaceUpgradeDetails inplaceUpgradeDetails = null; + + /** + * The details for upgrading ESXi host. + * @param inplaceUpgradeDetails the value to set + * @return this builder instance + */ + public Builder inplaceUpgradeDetails( + com.oracle.bmc.ocvp.model.InplaceUpgradeDetails inplaceUpgradeDetails) { + this.inplaceUpgradeDetails = inplaceUpgradeDetails; + 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 @@ -204,6 +243,7 @@ public Builder retryConfiguration( */ public Builder copy(InplaceUpgradeRequest o) { esxiHostId(o.getEsxiHostId()); + inplaceUpgradeDetails(o.getInplaceUpgradeDetails()); opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); @@ -229,6 +269,17 @@ public InplaceUpgradeRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.ocvp.model.InplaceUpgradeDetails body) { + inplaceUpgradeDetails(body); + return this; + } + /** * Build the instance of InplaceUpgradeRequest as configured by this builder * @@ -240,11 +291,12 @@ public InplaceUpgradeRequest build() { public InplaceUpgradeRequest buildWithoutInvocationCallback() { InplaceUpgradeRequest request = new InplaceUpgradeRequest(); request.esxiHostId = esxiHostId; + request.inplaceUpgradeDetails = inplaceUpgradeDetails; request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new InplaceUpgradeRequest(esxiHostId, opcRetryToken, ifMatch, opcRequestId); + // new InplaceUpgradeRequest(esxiHostId, inplaceUpgradeDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -255,6 +307,7 @@ public InplaceUpgradeRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .esxiHostId(esxiHostId) + .inplaceUpgradeDetails(inplaceUpgradeDetails) .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); @@ -274,6 +327,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",esxiHostId=").append(String.valueOf(this.esxiHostId)); + sb.append(",inplaceUpgradeDetails=").append(String.valueOf(this.inplaceUpgradeDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -293,6 +347,7 @@ public boolean equals(Object o) { InplaceUpgradeRequest other = (InplaceUpgradeRequest) o; return super.equals(o) && java.util.Objects.equals(this.esxiHostId, other.esxiHostId) + && java.util.Objects.equals(this.inplaceUpgradeDetails, other.inplaceUpgradeDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -303,6 +358,11 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.esxiHostId == null ? 43 : this.esxiHostId.hashCode()); + result = + (result * PRIME) + + (this.inplaceUpgradeDetails == null + ? 43 + : this.inplaceUpgradeDetails.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 2c07943a1cb..a4412069eeb 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-oda @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java index 4a09cfbcd15..ef3eb5b5f52 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The maximum time until the token expires (in minutes). **/ @@ -300,6 +307,40 @@ public CreateAndroidChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; + this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAndroidChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + Long maxTokenExpirationTimeInMinutes, + Boolean isClientAuthenticationEnabled, + String botId) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; @@ -312,7 +353,20 @@ public CreateAndroidChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -320,7 +374,8 @@ public CreateAndroidChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java index ebd608e3b82..9b9e91b56e5 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The URL for sending errors and responses to. **/ @@ -304,6 +311,40 @@ public CreateAppEventChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.outboundUrl = outboundUrl; + this.eventSinkBotIds = eventSinkBotIds; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAppEventChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + String outboundUrl, + java.util.List eventSinkBotIds, + String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.outboundUrl = outboundUrl; this.eventSinkBotIds = eventSinkBotIds; @@ -316,7 +357,20 @@ public CreateAppEventChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -324,7 +378,8 @@ public CreateAppEventChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java index a49321752c6..4f6815dbc9d 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The URL to send response and error messages to. **/ @@ -304,6 +311,40 @@ public CreateApplicationChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.outboundUrl = outboundUrl; + this.isAuthenticatedUserId = isAuthenticatedUserId; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateApplicationChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + String outboundUrl, + Boolean isAuthenticatedUserId, + String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.outboundUrl = outboundUrl; this.isAuthenticatedUserId = isAuthenticatedUserId; @@ -316,7 +357,20 @@ public CreateApplicationChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -324,7 +378,8 @@ public CreateApplicationChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java index cdac535e30d..aa477e4f546 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java @@ -22,6 +22,44 @@ public final class CreateAuthenticationProviderDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateAuthenticationProviderDetails( + AuthenticationGrantType grantType, + AuthenticationIdentityProvider identityProvider, + String name, + String tokenEndpointUrl, + String authorizationEndpointUrl, + String shortAuthorizationCodeRequestUrl, + String revokeTokenEndpointUrl, + String clientId, + String clientSecret, + String scopes, + String subjectClaim, + Integer refreshTokenRetentionPeriodInDays, + String redirectUrl, + Boolean isVisible, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.grantType = grantType; + this.identityProvider = identityProvider; + this.name = name; + this.tokenEndpointUrl = tokenEndpointUrl; + this.authorizationEndpointUrl = authorizationEndpointUrl; + this.shortAuthorizationCodeRequestUrl = shortAuthorizationCodeRequestUrl; + this.revokeTokenEndpointUrl = revokeTokenEndpointUrl; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.scopes = scopes; + this.subjectClaim = subjectClaim; + this.refreshTokenRetentionPeriodInDays = refreshTokenRetentionPeriodInDays; + this.redirectUrl = redirectUrl; + this.isVisible = isVisible; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "grantType", "identityProvider", @@ -49,7 +87,7 @@ public CreateAuthenticationProviderDetails( String shortAuthorizationCodeRequestUrl, String revokeTokenEndpointUrl, String clientId, - String clientSecret, + char[] clientSecret, String scopes, String subjectClaim, Integer refreshTokenRetentionPeriodInDays, @@ -228,7 +266,7 @@ public Builder clientId(String clientId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The client secret for the IDP application (OAuth Client) that was registered as described in Identity Provider @@ -237,11 +275,18 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * A space-separated list of the scopes that must be included when Digital Assistant requests an access token from * the provider. Include all the scopes that are required to access the resources. If refresh tokens are enabled, @@ -599,7 +644,20 @@ public String getClientId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * The client secret for the IDP application (OAuth Client) that was registered as described in Identity Provider + * Registration. With Microsoft identity platform, use the application secret. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * The client secret for the IDP application (OAuth Client) that was registered as described in Identity Provider @@ -607,7 +665,8 @@ public String getClientId() { * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java index ddfe9707c8a..18f0691f226 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java @@ -93,18 +93,25 @@ public Builder msaAppId(String msaAppId) { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * @param msaAppPassword the value to set * @return this builder **/ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -196,6 +203,23 @@ public CreateCortanaChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateCortanaChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String msaAppId, + char[] msaAppPassword, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -218,13 +242,25 @@ public String getMsaAppId() { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; + + /** + * The client secret that you obtained from your bot registration. + * return the value + * @Deprecated - Use getMsaAppPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } /** * The client secret that you obtained from your bot registration. * @return the value **/ - public String getMsaAppPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java index 7e71cffaaad..d2fd2b2314d 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java @@ -77,34 +77,48 @@ public Builder definedTags( * The app secret for your Facebook app. **/ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private String appSecret; + private char[] appSecret; /** * The app secret for your Facebook app. * @param appSecret the value to set * @return this builder **/ - public Builder appSecret(String appSecret) { + public Builder appSecret(char[] appSecret) { this.appSecret = appSecret; this.__explicitlySet__.add("appSecret"); return this; } + + public Builder appSecret(String appSecret) { + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.__explicitlySet__.add("appSecret"); + return this; + } + /** * The page access token that you generated for your Facebook page. **/ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private String pageAccessToken; + private char[] pageAccessToken; /** * The page access token that you generated for your Facebook page. * @param pageAccessToken the value to set * @return this builder **/ - public Builder pageAccessToken(String pageAccessToken) { + public Builder pageAccessToken(char[] pageAccessToken) { this.pageAccessToken = pageAccessToken; this.__explicitlySet__.add("pageAccessToken"); return this; } + + public Builder pageAccessToken(String pageAccessToken) { + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.__explicitlySet__.add("pageAccessToken"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -195,6 +209,23 @@ public CreateFacebookChannelDetails( String pageAccessToken, String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateFacebookChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] appSecret, + char[] pageAccessToken, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.appSecret = appSecret; this.pageAccessToken = pageAccessToken; this.botId = botId; @@ -204,13 +235,25 @@ public CreateFacebookChannelDetails( * The app secret for your Facebook app. **/ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private final String appSecret; + private final char[] appSecret; + + /** + * The app secret for your Facebook app. + * return the value + * @Deprecated - Use getAppSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAppSecret() { + return appSecret != null ? new String(appSecret) : null; + } /** * The app secret for your Facebook app. * @return the value **/ - public String getAppSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("appSecret") + public char[] getAppSecret__AsCharArray() { return appSecret; } @@ -218,13 +261,25 @@ public String getAppSecret() { * The page access token that you generated for your Facebook page. **/ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private final String pageAccessToken; + private final char[] pageAccessToken; + + /** + * The page access token that you generated for your Facebook page. + * return the value + * @Deprecated - Use getPageAccessToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPageAccessToken() { + return pageAccessToken != null ? new String(pageAccessToken) : null; + } /** * The page access token that you generated for your Facebook page. * @return the value **/ - public String getPageAccessToken() { + @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") + public char[] getPageAccessToken__AsCharArray() { return pageAccessToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java index 31c10af7d28..ecc3ff6f84d 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The maximum time until the token expires (in minutes). **/ @@ -300,6 +307,40 @@ public CreateIosChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; + this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateIosChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + Long maxTokenExpirationTimeInMinutes, + Boolean isClientAuthenticationEnabled, + String botId) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; @@ -312,7 +353,20 @@ public CreateIosChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -320,7 +374,8 @@ public CreateIosChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java index 269bb9f8f87..1b0e5b4e72c 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java @@ -93,18 +93,25 @@ public Builder msaAppId(String msaAppId) { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * @param msaAppPassword the value to set * @return this builder **/ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -196,6 +203,23 @@ public CreateMSTeamsChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMSTeamsChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String msaAppId, + char[] msaAppPassword, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -218,13 +242,25 @@ public String getMsaAppId() { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; + + /** + * The client secret that you obtained from your bot registration. + * return the value + * @Deprecated - Use getMsaAppPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } /** * The client secret that you obtained from your bot registration. * @return the value **/ - public String getMsaAppPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java index f31ee0b9cb3..99afd75a397 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java @@ -221,19 +221,25 @@ public Builder streamPoolId(String streamPoolId) { * The authentication token to use when connecting to the Oracle Streaming Service. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when connecting to the Oracle Streaming Service. * @param authToken the value to set * @return this builder **/ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -351,6 +357,37 @@ public CreateOSSChannelDetails( this.tenancyName = tenancyName; this.userName = userName; this.streamPoolId = streamPoolId; + this.authToken = authToken != null ? authToken.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOSSChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List eventSinkBotIds, + String inboundMessageTopic, + String outboundMessageTopic, + String bootstrapServers, + String securityProtocol, + String saslMechanism, + String tenancyName, + String userName, + String streamPoolId, + char[] authToken) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.eventSinkBotIds = eventSinkBotIds; + this.inboundMessageTopic = inboundMessageTopic; + this.outboundMessageTopic = outboundMessageTopic; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.saslMechanism = saslMechanism; + this.tenancyName = tenancyName; + this.userName = userName; + this.streamPoolId = streamPoolId; this.authToken = authToken; } @@ -484,13 +521,25 @@ public String getStreamPoolId() { * The authentication token to use when connecting to the Oracle Streaming Service. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; + + /** + * The authentication token to use when connecting to the Oracle Streaming Service. + * return the value + * @Deprecated - Use getAuthToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } /** * The authentication token to use when connecting to the Oracle Streaming Service. * @return the value **/ - public String getAuthToken() { + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java index 99271afde24..ca11a6d3966 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java @@ -141,18 +141,25 @@ public Builder userName(String userName) { * The password for the digital-assistant agent. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the digital-assistant agent. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The total session count. **/ @@ -319,6 +326,33 @@ public CreateOsvcChannelDetails( this.host = host; this.port = port; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.totalSessionCount = totalSessionCount; + this.channelService = channelService; + this.authenticationProviderName = authenticationProviderName; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOsvcChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String host, + String port, + String userName, + char[] password, + Integer totalSessionCount, + OsvcServiceType channelService, + String authenticationProviderName, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.host = host; + this.port = port; + this.userName = userName; this.password = password; this.totalSessionCount = totalSessionCount; this.channelService = channelService; @@ -388,13 +422,25 @@ public String getUserName() { * The password for the digital-assistant agent. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the digital-assistant agent. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the digital-assistant agent. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java index 0383105e525..211f12986f2 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java @@ -157,18 +157,25 @@ public Builder userName(String userName) { * The password for the Oracle B2C Service staff member who has the necessary profile permissions. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the Oracle B2C Service staff member who has the necessary profile permissions. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The type of Service Cloud client. **/ @@ -272,6 +279,27 @@ public CreateServiceCloudChannelDetails( this.domainName = domainName; this.hostNamePrefix = hostNamePrefix; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.clientType = clientType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateServiceCloudChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String domainName, + String hostNamePrefix, + String userName, + char[] password, + ServiceCloudClientType clientType) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.domainName = domainName; + this.hostNamePrefix = hostNamePrefix; + this.userName = userName; this.password = password; this.clientType = clientType; } @@ -354,13 +382,25 @@ public String getUserName() { * The password for the Oracle B2C Service staff member who has the necessary profile permissions. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the Oracle B2C Service staff member who has the necessary profile permissions. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the Oracle B2C Service staff member who has the necessary profile permissions. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java index 70b60ad6b6e..c1a3123934e 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java @@ -125,34 +125,48 @@ public Builder authErrorUrl(String authErrorUrl) { * The Signing Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private String signingSecret; + private char[] signingSecret; /** * The Signing Secret for the Slack App. * @param signingSecret the value to set * @return this builder **/ - public Builder signingSecret(String signingSecret) { + public Builder signingSecret(char[] signingSecret) { this.signingSecret = signingSecret; this.__explicitlySet__.add("signingSecret"); return this; } + + public Builder signingSecret(String signingSecret) { + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.__explicitlySet__.add("signingSecret"); + return this; + } + /** * The Client Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The Client Secret for the Slack App. * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -261,6 +275,29 @@ public CreateSlackChannelDetails( this.clientId = clientId; this.authSuccessUrl = authSuccessUrl; this.authErrorUrl = authErrorUrl; + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateSlackChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String clientId, + String authSuccessUrl, + String authErrorUrl, + char[] signingSecret, + char[] clientSecret, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.clientId = clientId; + this.authSuccessUrl = authSuccessUrl; + this.authErrorUrl = authErrorUrl; this.signingSecret = signingSecret; this.clientSecret = clientSecret; this.botId = botId; @@ -312,13 +349,25 @@ public String getAuthErrorUrl() { * The Signing Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private final String signingSecret; + private final char[] signingSecret; + + /** + * The Signing Secret for the Slack App. + * return the value + * @Deprecated - Use getSigningSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSigningSecret() { + return signingSecret != null ? new String(signingSecret) : null; + } /** * The Signing Secret for the Slack App. * @return the value **/ - public String getSigningSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") + public char[] getSigningSecret__AsCharArray() { return signingSecret; } @@ -326,13 +375,25 @@ public String getSigningSecret() { * The Client Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * The Client Secret for the Slack App. + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * The Client Secret for the Slack App. * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java index 54589222c5b..40183b1d00b 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The URL to use to send messages to this channel. * This will be generally be used to configure a webhook in a 3rd party messaging system to send messages to this channel. @@ -262,6 +269,36 @@ public CreateTestChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateTestChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.webhookUrl = webhookUrl; } @@ -272,7 +309,20 @@ public CreateTestChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -280,7 +330,8 @@ public CreateTestChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java index c332f7e1b69..6ebe9121dfa 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java @@ -22,6 +22,24 @@ public final class CreateTranslatorDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateTranslatorDetails( + TranslationService type, + String baseUrl, + String authToken, + java.util.Map properties, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.type = type; + this.baseUrl = baseUrl; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.properties = properties; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "type", "baseUrl", @@ -33,7 +51,7 @@ public final class CreateTranslatorDetails public CreateTranslatorDetails( TranslationService type, String baseUrl, - String authToken, + char[] authToken, java.util.Map properties, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -84,18 +102,25 @@ public Builder baseUrl(String baseUrl) { * The authentication token to use when invoking the Translation Service **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when invoking the Translation Service * @param authToken the value to set * @return this builder **/ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + /** * Properties used when invoking the translation service. * Each property is a simple key-value pair. @@ -243,13 +268,25 @@ public String getBaseUrl() { * The authentication token to use when invoking the Translation Service **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; + + /** + * The authentication token to use when invoking the Translation Service + * return the value + * @Deprecated - Use getAuthToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } /** * The authentication token to use when invoking the Translation Service * @return the value **/ - public String getAuthToken() { + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java index 20e801e5855..1b4888e7fc2 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java @@ -109,18 +109,25 @@ public Builder phoneNumber(String phoneNumber) { * The Auth Token for the Twilio number. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The Auth Token for the Twilio number. * @param authToken the value to set * @return this builder **/ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + /** * Whether MMS is enabled for this channel or not. **/ @@ -260,6 +267,29 @@ public CreateTwilioChannelDetails( super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.accountSID = accountSID; this.phoneNumber = phoneNumber; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.isMmsEnabled = isMmsEnabled; + this.originalConnectorsUrl = originalConnectorsUrl; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateTwilioChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String accountSID, + String phoneNumber, + char[] authToken, + Boolean isMmsEnabled, + String originalConnectorsUrl, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.accountSID = accountSID; + this.phoneNumber = phoneNumber; this.authToken = authToken; this.isMmsEnabled = isMmsEnabled; this.originalConnectorsUrl = originalConnectorsUrl; @@ -298,13 +328,25 @@ public String getPhoneNumber() { * The Auth Token for the Twilio number. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; + + /** + * The Auth Token for the Twilio number. + * return the value + * @Deprecated - Use getAuthToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } /** * The Auth Token for the Twilio number. * @return the value **/ - public String getAuthToken() { + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java index dbc2b4475ce..787dcfc623b 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The maximum time until the token expires (in minutes). **/ @@ -335,6 +342,42 @@ public CreateWebChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; + this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; + this.allowedDomains = allowedDomains; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateWebChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + Long maxTokenExpirationTimeInMinutes, + Boolean isClientAuthenticationEnabled, + String allowedDomains, + String botId) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; @@ -348,7 +391,20 @@ public CreateWebChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -356,7 +412,8 @@ public CreateWebChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java index ebdfb6923d5..8359afe9652 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java @@ -124,7 +124,7 @@ public Builder definedTags( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. @@ -133,11 +133,18 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder **/ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } + /** * The URL to send responses to. **/ @@ -325,6 +332,42 @@ public CreateWebhookChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.outboundUrl = outboundUrl; + this.payloadVersion = payloadVersion; + this.botId = botId; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateWebhookChannelResult( + String id, + String name, + String description, + ChannelCategory category, + Long sessionExpiryDurationInMilliseconds, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] secretKey, + String outboundUrl, + WebhookPayloadVersion payloadVersion, + String botId, + String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.outboundUrl = outboundUrl; this.payloadVersion = payloadVersion; @@ -338,7 +381,20 @@ public CreateWebhookChannelResult( * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; + + /** + * The secret key used to verify the authenticity of received messages. + * This is only returned this once. If it is lost the keys will need to be rotated to generate a new key. + * + * return the value + * @Deprecated - Use getSecretKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } /** * The secret key used to verify the authenticity of received messages. @@ -346,7 +402,8 @@ public CreateWebhookChannelResult( * * @return the value **/ - public String getSecretKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java index 4edff22230a..45a28afbe9f 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java @@ -22,6 +22,36 @@ public final class UpdateAuthenticationProviderDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateAuthenticationProviderDetails( + String tokenEndpointUrl, + String authorizationEndpointUrl, + String shortAuthorizationCodeRequestUrl, + String revokeTokenEndpointUrl, + String clientId, + String clientSecret, + String scopes, + String subjectClaim, + Integer refreshTokenRetentionPeriodInDays, + String redirectUrl, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.tokenEndpointUrl = tokenEndpointUrl; + this.authorizationEndpointUrl = authorizationEndpointUrl; + this.shortAuthorizationCodeRequestUrl = shortAuthorizationCodeRequestUrl; + this.revokeTokenEndpointUrl = revokeTokenEndpointUrl; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.scopes = scopes; + this.subjectClaim = subjectClaim; + this.refreshTokenRetentionPeriodInDays = refreshTokenRetentionPeriodInDays; + this.redirectUrl = redirectUrl; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "tokenEndpointUrl", "authorizationEndpointUrl", @@ -42,7 +72,7 @@ public UpdateAuthenticationProviderDetails( String shortAuthorizationCodeRequestUrl, String revokeTokenEndpointUrl, String clientId, - String clientSecret, + char[] clientSecret, String scopes, String subjectClaim, Integer refreshTokenRetentionPeriodInDays, @@ -168,7 +198,7 @@ public Builder clientId(String clientId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The client secret for the IDP application (OAuth Client) that was registered as described in Identity Provider @@ -177,11 +207,18 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * A space-separated list of the scopes that must be included when Digital Assistant requests an access token from * the provider. Include all the scopes that are required to access the resources. If refresh tokens are enabled, @@ -465,7 +502,20 @@ public String getClientId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * The client secret for the IDP application (OAuth Client) that was registered as described in Identity Provider + * Registration. With Microsoft identity platform, use the application secret. + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * The client secret for the IDP application (OAuth Client) that was registered as described in Identity Provider @@ -473,7 +523,8 @@ public String getClientId() { * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java index 921e7daf416..0dc1fb0601d 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java @@ -93,18 +93,25 @@ public Builder msaAppId(String msaAppId) { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * @param msaAppPassword the value to set * @return this builder **/ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -196,6 +203,23 @@ public UpdateCortanaChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateCortanaChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String msaAppId, + char[] msaAppPassword, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -218,13 +242,25 @@ public String getMsaAppId() { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; + + /** + * The client secret that you obtained from your bot registration. + * return the value + * @Deprecated - Use getMsaAppPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } /** * The client secret that you obtained from your bot registration. * @return the value **/ - public String getMsaAppPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java index 1bd35d32710..a7e3f8bf615 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java @@ -77,34 +77,48 @@ public Builder definedTags( * The app secret for your Facebook app. **/ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private String appSecret; + private char[] appSecret; /** * The app secret for your Facebook app. * @param appSecret the value to set * @return this builder **/ - public Builder appSecret(String appSecret) { + public Builder appSecret(char[] appSecret) { this.appSecret = appSecret; this.__explicitlySet__.add("appSecret"); return this; } + + public Builder appSecret(String appSecret) { + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.__explicitlySet__.add("appSecret"); + return this; + } + /** * The page access token that you generated for your Facebook page. **/ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private String pageAccessToken; + private char[] pageAccessToken; /** * The page access token that you generated for your Facebook page. * @param pageAccessToken the value to set * @return this builder **/ - public Builder pageAccessToken(String pageAccessToken) { + public Builder pageAccessToken(char[] pageAccessToken) { this.pageAccessToken = pageAccessToken; this.__explicitlySet__.add("pageAccessToken"); return this; } + + public Builder pageAccessToken(String pageAccessToken) { + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.__explicitlySet__.add("pageAccessToken"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -195,6 +209,23 @@ public UpdateFacebookChannelDetails( String pageAccessToken, String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateFacebookChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + char[] appSecret, + char[] pageAccessToken, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.appSecret = appSecret; this.pageAccessToken = pageAccessToken; this.botId = botId; @@ -204,13 +235,25 @@ public UpdateFacebookChannelDetails( * The app secret for your Facebook app. **/ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private final String appSecret; + private final char[] appSecret; + + /** + * The app secret for your Facebook app. + * return the value + * @Deprecated - Use getAppSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAppSecret() { + return appSecret != null ? new String(appSecret) : null; + } /** * The app secret for your Facebook app. * @return the value **/ - public String getAppSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("appSecret") + public char[] getAppSecret__AsCharArray() { return appSecret; } @@ -218,13 +261,25 @@ public String getAppSecret() { * The page access token that you generated for your Facebook page. **/ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private final String pageAccessToken; + private final char[] pageAccessToken; + + /** + * The page access token that you generated for your Facebook page. + * return the value + * @Deprecated - Use getPageAccessToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPageAccessToken() { + return pageAccessToken != null ? new String(pageAccessToken) : null; + } /** * The page access token that you generated for your Facebook page. * @return the value **/ - public String getPageAccessToken() { + @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") + public char[] getPageAccessToken__AsCharArray() { return pageAccessToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java index c45defe0a9d..a2cdb3bc257 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java @@ -93,18 +93,25 @@ public Builder msaAppId(String msaAppId) { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * @param msaAppPassword the value to set * @return this builder **/ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -196,6 +203,23 @@ public UpdateMSTeamsChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMSTeamsChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String msaAppId, + char[] msaAppPassword, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -218,13 +242,25 @@ public String getMsaAppId() { * The client secret that you obtained from your bot registration. **/ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; + + /** + * The client secret that you obtained from your bot registration. + * return the value + * @Deprecated - Use getMsaAppPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } /** * The client secret that you obtained from your bot registration. * @return the value **/ - public String getMsaAppPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java index 1c35fa29a88..d51fc7cd62a 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java @@ -221,19 +221,25 @@ public Builder streamPoolId(String streamPoolId) { * The authentication token to use when connecting to the Oracle Streaming Service. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when connecting to the Oracle Streaming Service. * @param authToken the value to set * @return this builder **/ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -351,6 +357,37 @@ public UpdateOSSChannelDetails( this.tenancyName = tenancyName; this.userName = userName; this.streamPoolId = streamPoolId; + this.authToken = authToken != null ? authToken.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOSSChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List eventSinkBotIds, + String inboundMessageTopic, + String outboundMessageTopic, + String bootstrapServers, + String securityProtocol, + String saslMechanism, + String tenancyName, + String userName, + String streamPoolId, + char[] authToken) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.eventSinkBotIds = eventSinkBotIds; + this.inboundMessageTopic = inboundMessageTopic; + this.outboundMessageTopic = outboundMessageTopic; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.saslMechanism = saslMechanism; + this.tenancyName = tenancyName; + this.userName = userName; + this.streamPoolId = streamPoolId; this.authToken = authToken; } @@ -484,13 +521,25 @@ public String getStreamPoolId() { * The authentication token to use when connecting to the Oracle Streaming Service. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; + + /** + * The authentication token to use when connecting to the Oracle Streaming Service. + * return the value + * @Deprecated - Use getAuthToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } /** * The authentication token to use when connecting to the Oracle Streaming Service. * @return the value **/ - public String getAuthToken() { + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java index c3a2592812a..419fe67f933 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java @@ -141,18 +141,25 @@ public Builder userName(String userName) { * The password for the digital-assistant agent. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the digital-assistant agent. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The total session count. **/ @@ -319,6 +326,33 @@ public UpdateOsvcChannelDetails( this.host = host; this.port = port; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.totalSessionCount = totalSessionCount; + this.channelService = channelService; + this.authenticationProviderName = authenticationProviderName; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOsvcChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String host, + String port, + String userName, + char[] password, + Integer totalSessionCount, + OsvcServiceType channelService, + String authenticationProviderName, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.host = host; + this.port = port; + this.userName = userName; this.password = password; this.totalSessionCount = totalSessionCount; this.channelService = channelService; @@ -388,13 +422,25 @@ public String getUserName() { * The password for the digital-assistant agent. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the digital-assistant agent. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the digital-assistant agent. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java index 134dcc22535..8bd2c6694ed 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java @@ -157,18 +157,25 @@ public Builder userName(String userName) { * The password for the Oracle B2C Service staff member who has the necessary profile permissions. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the Oracle B2C Service staff member who has the necessary profile permissions. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + /** * The type of Service Cloud client. **/ @@ -272,6 +279,27 @@ public UpdateServiceCloudChannelDetails( this.domainName = domainName; this.hostNamePrefix = hostNamePrefix; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.clientType = clientType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateServiceCloudChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String domainName, + String hostNamePrefix, + String userName, + char[] password, + ServiceCloudClientType clientType) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.domainName = domainName; + this.hostNamePrefix = hostNamePrefix; + this.userName = userName; this.password = password; this.clientType = clientType; } @@ -354,13 +382,25 @@ public String getUserName() { * The password for the Oracle B2C Service staff member who has the necessary profile permissions. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password for the Oracle B2C Service staff member who has the necessary profile permissions. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password for the Oracle B2C Service staff member who has the necessary profile permissions. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java index 68e4c6065a0..b18d2602cba 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java @@ -125,34 +125,48 @@ public Builder authErrorUrl(String authErrorUrl) { * The Signing Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private String signingSecret; + private char[] signingSecret; /** * The Signing Secret for the Slack App. * @param signingSecret the value to set * @return this builder **/ - public Builder signingSecret(String signingSecret) { + public Builder signingSecret(char[] signingSecret) { this.signingSecret = signingSecret; this.__explicitlySet__.add("signingSecret"); return this; } + + public Builder signingSecret(String signingSecret) { + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.__explicitlySet__.add("signingSecret"); + return this; + } + /** * The Client Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The Client Secret for the Slack App. * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The ID of the Skill or Digital Assistant that the Channel is routed to. **/ @@ -261,6 +275,29 @@ public UpdateSlackChannelDetails( this.clientId = clientId; this.authSuccessUrl = authSuccessUrl; this.authErrorUrl = authErrorUrl; + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateSlackChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String clientId, + String authSuccessUrl, + String authErrorUrl, + char[] signingSecret, + char[] clientSecret, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.clientId = clientId; + this.authSuccessUrl = authSuccessUrl; + this.authErrorUrl = authErrorUrl; this.signingSecret = signingSecret; this.clientSecret = clientSecret; this.botId = botId; @@ -312,13 +349,25 @@ public String getAuthErrorUrl() { * The Signing Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private final String signingSecret; + private final char[] signingSecret; + + /** + * The Signing Secret for the Slack App. + * return the value + * @Deprecated - Use getSigningSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSigningSecret() { + return signingSecret != null ? new String(signingSecret) : null; + } /** * The Signing Secret for the Slack App. * @return the value **/ - public String getSigningSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") + public char[] getSigningSecret__AsCharArray() { return signingSecret; } @@ -326,13 +375,25 @@ public String getSigningSecret() { * The Client Secret for the Slack App. **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * The Client Secret for the Slack App. + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * The Client Secret for the Slack App. * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java index ce881b9d13c..17d36605a80 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java @@ -22,6 +22,22 @@ public final class UpdateTranslatorDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateTranslatorDetails( + String baseUrl, + String authToken, + java.util.Map properties, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.baseUrl = baseUrl; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.properties = properties; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "baseUrl", "authToken", @@ -31,7 +47,7 @@ public final class UpdateTranslatorDetails }) public UpdateTranslatorDetails( String baseUrl, - String authToken, + char[] authToken, java.util.Map properties, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -65,18 +81,25 @@ public Builder baseUrl(String baseUrl) { * The authentication token to use when invoking the Translation Service **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when invoking the Translation Service * @param authToken the value to set * @return this builder **/ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + /** * Properties used when invoking the translation service. * Each property is a simple key-value pair. @@ -206,13 +229,25 @@ public String getBaseUrl() { * The authentication token to use when invoking the Translation Service **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; + + /** + * The authentication token to use when invoking the Translation Service + * return the value + * @Deprecated - Use getAuthToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } /** * The authentication token to use when invoking the Translation Service * @return the value **/ - public String getAuthToken() { + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java index 5af5800ed0e..91b585d7d23 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java @@ -109,18 +109,25 @@ public Builder phoneNumber(String phoneNumber) { * The Auth Token for the Twilio number. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The Auth Token for the Twilio number. * @param authToken the value to set * @return this builder **/ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + /** * Whether MMS is enabled for this channel or not. **/ @@ -260,6 +267,29 @@ public UpdateTwilioChannelDetails( super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.accountSID = accountSID; this.phoneNumber = phoneNumber; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.isMmsEnabled = isMmsEnabled; + this.originalConnectorsUrl = originalConnectorsUrl; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateTwilioChannelDetails( + String name, + String description, + Long sessionExpiryDurationInMilliseconds, + java.util.Map freeformTags, + java.util.Map> definedTags, + String accountSID, + String phoneNumber, + char[] authToken, + Boolean isMmsEnabled, + String originalConnectorsUrl, + String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.accountSID = accountSID; + this.phoneNumber = phoneNumber; this.authToken = authToken; this.isMmsEnabled = isMmsEnabled; this.originalConnectorsUrl = originalConnectorsUrl; @@ -298,13 +328,25 @@ public String getPhoneNumber() { * The Auth Token for the Twilio number. **/ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; + + /** + * The Auth Token for the Twilio number. + * return the value + * @Deprecated - Use getAuthToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } /** * The Auth Token for the Twilio number. * @return the value **/ - public String getAuthToken() { + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 73c903e2ae6..db7e618b1b8 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-onesubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 724137cc58d..07eec95ab11 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-ons @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 176523ed716..231f4fac3b2 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-opa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index e20460981e8..b76699e69fb 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-opensearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 7d1c70f0e79..a245df70506 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 64289c9a426..06604ec8ccc 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-opsi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsPrivateEndpointDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsPrivateEndpointDetails.java index cc945247530..a1276b971a8 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsPrivateEndpointDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsPrivateEndpointDetails.java @@ -31,7 +31,8 @@ public final class CreateOperationsInsightsPrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateOperationsInsightsPrivateEndpointDetails( String displayName, @@ -42,7 +43,8 @@ public CreateOperationsInsightsPrivateEndpointDetails( String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -53,6 +55,7 @@ public CreateOperationsInsightsPrivateEndpointDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -216,6 +219,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -231,7 +259,8 @@ public CreateOperationsInsightsPrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -267,6 +296,9 @@ public Builder copy(CreateOperationsInsightsPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -422,6 +454,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -445,6 +499,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -469,6 +524,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -489,6 +545,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java index 7147b62b550..23a95fe8e91 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java @@ -22,6 +22,31 @@ public final class CreateOperationsInsightsWarehouseUserDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateOperationsInsightsWarehouseUserDetails( + String operationsInsightsWarehouseId, + String compartmentId, + String name, + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.operationsInsightsWarehouseId = operationsInsightsWarehouseId; + this.compartmentId = compartmentId; + this.name = name; + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "operationsInsightsWarehouseId", "compartmentId", @@ -37,7 +62,7 @@ public CreateOperationsInsightsWarehouseUserDetails( String operationsInsightsWarehouseId, String compartmentId, String name, - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -109,18 +134,26 @@ public Builder name(String name) { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @param connectionPassword the value to set * @return this builder **/ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } + /** * Indicate whether user has access to AWR data. **/ @@ -322,13 +355,25 @@ public String getName() { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. + * return the value + * @Deprecated - Use getConnectionPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @return the value **/ - public String getConnectionPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java index bc99aa0cdf3..8347cb426d6 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java @@ -22,10 +22,21 @@ public final class DownloadOperationsInsightsWarehouseWalletDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"operationsInsightsWarehouseWalletPassword"}) public DownloadOperationsInsightsWarehouseWalletDetails( String operationsInsightsWarehouseWalletPassword) { super(); + this.operationsInsightsWarehouseWalletPassword = + operationsInsightsWarehouseWalletPassword != null + ? operationsInsightsWarehouseWalletPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"operationsInsightsWarehouseWalletPassword"}) + public DownloadOperationsInsightsWarehouseWalletDetails( + char[] operationsInsightsWarehouseWalletPassword) { + super(); this.operationsInsightsWarehouseWalletPassword = operationsInsightsWarehouseWalletPassword; } @@ -35,7 +46,7 @@ public static class Builder { * User provided ADW wallet password for the Ops Insights Warehouse. **/ @com.fasterxml.jackson.annotation.JsonProperty("operationsInsightsWarehouseWalletPassword") - private String operationsInsightsWarehouseWalletPassword; + private char[] operationsInsightsWarehouseWalletPassword; /** * User provided ADW wallet password for the Ops Insights Warehouse. @@ -43,13 +54,23 @@ public static class Builder { * @return this builder **/ public Builder operationsInsightsWarehouseWalletPassword( - String operationsInsightsWarehouseWalletPassword) { + char[] operationsInsightsWarehouseWalletPassword) { this.operationsInsightsWarehouseWalletPassword = operationsInsightsWarehouseWalletPassword; this.__explicitlySet__.add("operationsInsightsWarehouseWalletPassword"); return this; } + public Builder operationsInsightsWarehouseWalletPassword( + String operationsInsightsWarehouseWalletPassword) { + this.operationsInsightsWarehouseWalletPassword = + operationsInsightsWarehouseWalletPassword != null + ? operationsInsightsWarehouseWalletPassword.toCharArray() + : null; + this.__explicitlySet__.add("operationsInsightsWarehouseWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -88,13 +109,27 @@ public Builder toBuilder() { * User provided ADW wallet password for the Ops Insights Warehouse. **/ @com.fasterxml.jackson.annotation.JsonProperty("operationsInsightsWarehouseWalletPassword") - private final String operationsInsightsWarehouseWalletPassword; + private final char[] operationsInsightsWarehouseWalletPassword; + + /** + * User provided ADW wallet password for the Ops Insights Warehouse. + * return the value + * @Deprecated - Use getOperationsInsightsWarehouseWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getOperationsInsightsWarehouseWalletPassword() { + return operationsInsightsWarehouseWalletPassword != null + ? new String(operationsInsightsWarehouseWalletPassword) + : null; + } /** * User provided ADW wallet password for the Ops Insights Warehouse. * @return the value **/ - public String getOperationsInsightsWarehouseWalletPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("operationsInsightsWarehouseWalletPassword") + public char[] getOperationsInsightsWarehouseWalletPassword__AsCharArray() { return operationsInsightsWarehouseWalletPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpoint.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpoint.java index ddd0d0ee17b..031c28221b2 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpoint.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpoint.java @@ -38,7 +38,8 @@ public final class OperationsInsightsPrivateEndpoint "nsgIds", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public OperationsInsightsPrivateEndpoint( String id, @@ -56,7 +57,8 @@ public OperationsInsightsPrivateEndpoint( java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -74,6 +76,7 @@ public OperationsInsightsPrivateEndpoint( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -352,6 +355,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -374,7 +402,8 @@ public OperationsInsightsPrivateEndpoint build() { this.nsgIds, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -431,6 +460,9 @@ public Builder copy(OperationsInsightsPrivateEndpoint model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -686,6 +718,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -717,6 +771,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -748,6 +803,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -783,6 +839,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpointSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpointSummary.java index da271dfa129..00e6545d8c0 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpointSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsPrivateEndpointSummary.java @@ -34,6 +34,7 @@ public final class OperationsInsightsPrivateEndpointSummary "freeformTags", "definedTags", "systemTags", + "securityAttributes", "lifecycleState", "lifecycleDetails", "privateEndpointStatusDetails" @@ -50,6 +51,7 @@ public OperationsInsightsPrivateEndpointSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + java.util.Map> securityAttributes, OperationsInsightsPrivateEndpointLifecycleState lifecycleState, String lifecycleDetails, String privateEndpointStatusDetails) { @@ -65,6 +67,7 @@ public OperationsInsightsPrivateEndpointSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.privateEndpointStatusDetails = privateEndpointStatusDetails; @@ -261,6 +264,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * Private endpoint lifecycle states **/ @@ -328,6 +356,7 @@ public OperationsInsightsPrivateEndpointSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.securityAttributes, this.lifecycleState, this.lifecycleDetails, this.privateEndpointStatusDetails); @@ -372,6 +401,9 @@ public Builder copy(OperationsInsightsPrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -562,6 +594,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Private endpoint lifecycle states **/ @@ -629,6 +683,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", privateEndpointStatusDetails=") @@ -659,6 +714,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.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals( @@ -685,6 +741,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java index 19ed7a6aad9..b0a99f8e265 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java @@ -22,6 +22,43 @@ public final class OperationsInsightsWarehouseUser extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public OperationsInsightsWarehouseUser( + String operationsInsightsWarehouseId, + String id, + String compartmentId, + String name, + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OperationsInsightsWarehouseUserLifecycleState lifecycleState, + String lifecycleDetails) { + super(); + this.operationsInsightsWarehouseId = operationsInsightsWarehouseId; + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "operationsInsightsWarehouseId", "id", @@ -44,7 +81,7 @@ public OperationsInsightsWarehouseUser( String id, String compartmentId, String name, - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -143,18 +180,26 @@ public Builder name(String name) { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @param connectionPassword the value to set * @return this builder **/ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } + /** * Indicate whether user has access to AWR data. **/ @@ -479,13 +524,25 @@ public String getName() { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. + * return the value + * @Deprecated - Use getConnectionPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @return the value **/ - public String getConnectionPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java index 6310f761dce..8edeb615716 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java @@ -22,6 +22,43 @@ public final class OperationsInsightsWarehouseUserSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public OperationsInsightsWarehouseUserSummary( + String operationsInsightsWarehouseId, + String id, + String compartmentId, + String name, + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OperationsInsightsWarehouseUserLifecycleState lifecycleState, + String lifecycleDetails) { + super(); + this.operationsInsightsWarehouseId = operationsInsightsWarehouseId; + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "operationsInsightsWarehouseId", "id", @@ -44,7 +81,7 @@ public OperationsInsightsWarehouseUserSummary( String id, String compartmentId, String name, - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -143,18 +180,26 @@ public Builder name(String name) { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @param connectionPassword the value to set * @return this builder **/ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } + /** * Indicate whether user has access to AWR data. **/ @@ -479,13 +524,25 @@ public String getName() { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. + * return the value + * @Deprecated - Use getConnectionPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @return the value **/ - public String getConnectionPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsPrivateEndpointDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsPrivateEndpointDetails.java index b5c7291ede4..47cc0421438 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsPrivateEndpointDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsPrivateEndpointDetails.java @@ -27,20 +27,23 @@ public final class UpdateOperationsInsightsPrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateOperationsInsightsPrivateEndpointDetails( String displayName, String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -134,6 +137,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -145,7 +173,8 @@ public UpdateOperationsInsightsPrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -169,6 +198,9 @@ public Builder copy(UpdateOperationsInsightsPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -262,6 +294,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -281,6 +335,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -301,6 +356,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -313,6 +369,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java index cff2dd019b3..dda6ac22605 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java @@ -22,6 +22,25 @@ public final class UpdateOperationsInsightsWarehouseUserDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateOperationsInsightsWarehouseUserDetails( + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "connectionPassword", "isAwrDataAccess", @@ -31,7 +50,7 @@ public final class UpdateOperationsInsightsWarehouseUserDetails "definedTags" }) public UpdateOperationsInsightsWarehouseUserDetails( - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -52,18 +71,26 @@ public static class Builder { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @param connectionPassword the value to set * @return this builder **/ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } + /** * Indicate whether user has access to AWR data. **/ @@ -211,13 +238,25 @@ public Builder toBuilder() { * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. + * return the value + * @Deprecated - Use getConnectionPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. * @return the value **/ - public String getConnectionPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index efda095bd1d..75733cf53cd 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-optimizer @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index ee8c35d2d22..2be35aa7bdb 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSet.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSet.java new file mode 100644 index 00000000000..0f3c65e86fe --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSet.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub; + +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; + +/** + * Use the OS Management Hub API to manage and monitor updates and patches for instances in OCI, your private data center, or 3rd-party clouds. + * For more information, see [Overview of OS Management Hub](https://docs.oracle.com/iaas/osmh/doc/overview.htm). + * + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public interface DynamicSet 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); + + /** + * Move the specified Dynamic Set to a different compartment + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeDynamicSetCompartment API. + */ + ChangeDynamicSetCompartmentResponse changeDynamicSetCompartment( + ChangeDynamicSetCompartmentRequest request); + + /** + * Creates a new dynamic set. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateDynamicSet API. + */ + CreateDynamicSetResponse createDynamicSet(CreateDynamicSetRequest request); + + /** + * Deletes the specific dynamic set + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteDynamicSet API. + */ + DeleteDynamicSetResponse deleteDynamicSet(DeleteDynamicSetRequest request); + + /** + * Gets information about the specified dynamic set. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDynamicSet API. + */ + GetDynamicSetResponse getDynamicSet(GetDynamicSetRequest request); + + /** + * Installs specified software packages on all managed instances in the dynamic set. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use InstallPackagesOnDynamicSet API. + */ + InstallPackagesOnDynamicSetResponse installPackagesOnDynamicSet( + InstallPackagesOnDynamicSetRequest request); + + /** + * Lists dynamic sets that match the specified compartment or dynamic set OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS version. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDynamicSets API. + */ + ListDynamicSetsResponse listDynamicSets(ListDynamicSetsRequest request); + + /** + * Retrieves a list of managed instances associated with a specified dynamic set. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListManagedInstancesInDynamicSet API. + */ + ListManagedInstancesInDynamicSetResponse listManagedInstancesInDynamicSet( + ListManagedInstancesInDynamicSetRequest request); + + /** + * Preview a dynamic set + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use PreviewManagedInstances API. + */ + PreviewManagedInstancesResponse previewManagedInstances(PreviewManagedInstancesRequest request); + + /** + * Initiates a reboot of all managed instances within the specified dynamic set. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RebootDynamicSet API. + */ + RebootDynamicSetResponse rebootDynamicSet(RebootDynamicSetRequest request); + + /** + * Removes specified software packages from all managed instances in the dynamic set. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemovePackagesFromDynamicSet API. + */ + RemovePackagesFromDynamicSetResponse removePackagesFromDynamicSet( + RemovePackagesFromDynamicSetRequest request); + + /** + * Updates the specified dynamic set. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateDynamicSet API. + */ + UpdateDynamicSetResponse updateDynamicSet(UpdateDynamicSetRequest request); + + /** + * Updates all installed software packages on managed instances in the dynamic set. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdatePackagesOnDynamicSet API. + */ + UpdatePackagesOnDynamicSetResponse updatePackagesOnDynamicSet( + UpdatePackagesOnDynamicSetRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DynamicSetWaiters 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. + */ + DynamicSetPaginators getPaginators(); +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetAsync.java new file mode 100644 index 00000000000..0e219b21691 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetAsync.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub; + +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; + +/** + * Use the OS Management Hub API to manage and monitor updates and patches for instances in OCI, your private data center, or 3rd-party clouds. + * For more information, see [Overview of OS Management Hub](https://docs.oracle.com/iaas/osmh/doc/overview.htm). + * + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public interface DynamicSetAsync 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); + + /** + * Move the specified Dynamic Set to a different compartment + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future changeDynamicSetCompartment( + ChangeDynamicSetCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDynamicSetCompartmentRequest, ChangeDynamicSetCompartmentResponse> + handler); + + /** + * Creates a new dynamic set. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createDynamicSet( + CreateDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes the specific dynamic set + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteDynamicSet( + DeleteDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets information about the specified dynamic set. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getDynamicSet( + GetDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Installs specified software packages on all managed instances in the dynamic set. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future installPackagesOnDynamicSet( + InstallPackagesOnDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler< + InstallPackagesOnDynamicSetRequest, InstallPackagesOnDynamicSetResponse> + handler); + + /** + * Lists dynamic sets that match the specified compartment or dynamic set OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS version. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listDynamicSets( + ListDynamicSetsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Retrieves a list of managed instances associated with a specified dynamic set. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listManagedInstancesInDynamicSet( + ListManagedInstancesInDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse> + handler); + + /** + * Preview a dynamic set + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future previewManagedInstances( + PreviewManagedInstancesRequest request, + com.oracle.bmc.responses.AsyncHandler< + PreviewManagedInstancesRequest, PreviewManagedInstancesResponse> + handler); + + /** + * Initiates a reboot of all managed instances within the specified dynamic set. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future rebootDynamicSet( + RebootDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Removes specified software packages from all managed instances in the dynamic set. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future removePackagesFromDynamicSet( + RemovePackagesFromDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemovePackagesFromDynamicSetRequest, + RemovePackagesFromDynamicSetResponse> + handler); + + /** + * Updates the specified dynamic set. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateDynamicSet( + UpdateDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates all installed software packages on managed instances in the dynamic set. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updatePackagesOnDynamicSet( + UpdatePackagesOnDynamicSetRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdatePackagesOnDynamicSetRequest, UpdatePackagesOnDynamicSetResponse> + handler); +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetAsyncClient.java new file mode 100644 index 00000000000..d62e6f37256 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetAsyncClient.java @@ -0,0 +1,1097 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub; + +import com.oracle.bmc.osmanagementhub.internal.http.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for DynamicSet 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: 20220901") +public class DynamicSetAsyncClient implements DynamicSetAsync { + /** + * Service instance for DynamicSet. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DynamicSetClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://osmh.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DynamicSetAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + 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 DynamicSetAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DynamicSetAsyncClient 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 DynamicSetAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future + changeDynamicSetCompartment( + ChangeDynamicSetCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDynamicSetCompartmentRequest, + ChangeDynamicSetCompartmentResponse> + handler) { + LOG.trace("Called async changeDynamicSetCompartment"); + final ChangeDynamicSetCompartmentRequest interceptedRequest = + ChangeDynamicSetCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDynamicSetCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "ChangeDynamicSetCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/ChangeDynamicSetCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeDynamicSetCompartmentResponse> + transformer = + ChangeDynamicSetCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDynamicSetCompartmentRequest, ChangeDynamicSetCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDynamicSetCompartmentRequest, + ChangeDynamicSetCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeDynamicSetCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDynamicSetCompartmentRequest, ChangeDynamicSetCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createDynamicSet( + CreateDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDynamicSetRequest, CreateDynamicSetResponse> + handler) { + LOG.trace("Called async createDynamicSet"); + final CreateDynamicSetRequest interceptedRequest = + CreateDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "CreateDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/CreateDynamicSet"); + final java.util.function.Function + transformer = + CreateDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDynamicSetRequest, CreateDynamicSetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDynamicSetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDynamicSetRequest, CreateDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteDynamicSet( + DeleteDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDynamicSetRequest, DeleteDynamicSetResponse> + handler) { + LOG.trace("Called async deleteDynamicSet"); + final DeleteDynamicSetRequest interceptedRequest = + DeleteDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "DeleteDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/DeleteDynamicSet"); + final java.util.function.Function + transformer = + DeleteDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDynamicSetRequest, DeleteDynamicSetResponse>, + 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< + DeleteDynamicSetRequest, DeleteDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getDynamicSet( + GetDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getDynamicSet"); + final GetDynamicSetRequest interceptedRequest = + GetDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "GetDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/GetDynamicSet"); + final java.util.function.Function + transformer = + GetDynamicSetConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDynamicSetRequest, GetDynamicSetResponse>, + 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< + GetDynamicSetRequest, GetDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + installPackagesOnDynamicSet( + InstallPackagesOnDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + InstallPackagesOnDynamicSetRequest, + InstallPackagesOnDynamicSetResponse> + handler) { + LOG.trace("Called async installPackagesOnDynamicSet"); + final InstallPackagesOnDynamicSetRequest interceptedRequest = + InstallPackagesOnDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InstallPackagesOnDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "InstallPackagesOnDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/InstallPackagesOnDynamicSet"); + final java.util.function.Function< + javax.ws.rs.core.Response, InstallPackagesOnDynamicSetResponse> + transformer = + InstallPackagesOnDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + InstallPackagesOnDynamicSetRequest, InstallPackagesOnDynamicSetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + InstallPackagesOnDynamicSetRequest, + InstallPackagesOnDynamicSetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getInstallPackagesOnDynamicSetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + InstallPackagesOnDynamicSetRequest, InstallPackagesOnDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listDynamicSets( + ListDynamicSetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDynamicSetsRequest, ListDynamicSetsResponse> + handler) { + LOG.trace("Called async listDynamicSets"); + final ListDynamicSetsRequest interceptedRequest = + ListDynamicSetsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDynamicSetsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "ListDynamicSets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/ListDynamicSets"); + final java.util.function.Function + transformer = + ListDynamicSetsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDynamicSetsRequest, ListDynamicSetsResponse>, + 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< + ListDynamicSetsRequest, ListDynamicSetsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listManagedInstancesInDynamicSet( + ListManagedInstancesInDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse> + handler) { + LOG.trace("Called async listManagedInstancesInDynamicSet"); + final ListManagedInstancesInDynamicSetRequest interceptedRequest = + ListManagedInstancesInDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListManagedInstancesInDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "ListManagedInstancesInDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/ListManagedInstancesInDynamicSet"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListManagedInstancesInDynamicSetResponse> + transformer = + ListManagedInstancesInDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse>, + 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< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future previewManagedInstances( + PreviewManagedInstancesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PreviewManagedInstancesRequest, PreviewManagedInstancesResponse> + handler) { + LOG.trace("Called async previewManagedInstances"); + final PreviewManagedInstancesRequest interceptedRequest = + PreviewManagedInstancesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PreviewManagedInstancesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "PreviewManagedInstances", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/PreviewManagedInstances"); + final java.util.function.Function< + javax.ws.rs.core.Response, PreviewManagedInstancesResponse> + transformer = + PreviewManagedInstancesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + PreviewManagedInstancesRequest, PreviewManagedInstancesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PreviewManagedInstancesRequest, PreviewManagedInstancesResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getPreviewManagedInstancesDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PreviewManagedInstancesRequest, PreviewManagedInstancesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future rebootDynamicSet( + RebootDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RebootDynamicSetRequest, RebootDynamicSetResponse> + handler) { + LOG.trace("Called async rebootDynamicSet"); + final RebootDynamicSetRequest interceptedRequest = + RebootDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RebootDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "RebootDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/RebootDynamicSet"); + final java.util.function.Function + transformer = + RebootDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RebootDynamicSetRequest, RebootDynamicSetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRebootDynamicSetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RebootDynamicSetRequest, RebootDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + removePackagesFromDynamicSet( + RemovePackagesFromDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemovePackagesFromDynamicSetRequest, + RemovePackagesFromDynamicSetResponse> + handler) { + LOG.trace("Called async removePackagesFromDynamicSet"); + final RemovePackagesFromDynamicSetRequest interceptedRequest = + RemovePackagesFromDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemovePackagesFromDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "RemovePackagesFromDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/RemovePackagesFromDynamicSet"); + final java.util.function.Function< + javax.ws.rs.core.Response, RemovePackagesFromDynamicSetResponse> + transformer = + RemovePackagesFromDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemovePackagesFromDynamicSetRequest, RemovePackagesFromDynamicSetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemovePackagesFromDynamicSetRequest, + RemovePackagesFromDynamicSetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRemovePackagesFromDynamicSetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RemovePackagesFromDynamicSetRequest, RemovePackagesFromDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateDynamicSet( + UpdateDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDynamicSetRequest, UpdateDynamicSetResponse> + handler) { + LOG.trace("Called async updateDynamicSet"); + final UpdateDynamicSetRequest interceptedRequest = + UpdateDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "UpdateDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/UpdateDynamicSet"); + final java.util.function.Function + transformer = + UpdateDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDynamicSetRequest, UpdateDynamicSetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateDynamicSetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDynamicSetRequest, UpdateDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updatePackagesOnDynamicSet( + UpdatePackagesOnDynamicSetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdatePackagesOnDynamicSetRequest, + UpdatePackagesOnDynamicSetResponse> + handler) { + LOG.trace("Called async updatePackagesOnDynamicSet"); + final UpdatePackagesOnDynamicSetRequest interceptedRequest = + UpdatePackagesOnDynamicSetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdatePackagesOnDynamicSetConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DynamicSet", + "UpdatePackagesOnDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/UpdatePackagesOnDynamicSet"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdatePackagesOnDynamicSetResponse> + transformer = + UpdatePackagesOnDynamicSetConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdatePackagesOnDynamicSetRequest, UpdatePackagesOnDynamicSetResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdatePackagesOnDynamicSetRequest, + UpdatePackagesOnDynamicSetResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdatePackagesOnDynamicSetDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdatePackagesOnDynamicSetRequest, UpdatePackagesOnDynamicSetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetClient.java new file mode 100644 index 00000000000..95da189b697 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetClient.java @@ -0,0 +1,1063 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub; + +import com.oracle.bmc.osmanagementhub.internal.http.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DynamicSetClient implements DynamicSet { + /** + * Service instance for DynamicSet. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DynamicSetClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://osmh.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DynamicSetClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final DynamicSetWaiters waiters; + + private final DynamicSetPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + 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 DynamicSetClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("DynamicSet-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DynamicSetWaiters(executorService, this); + + this.paginators = new DynamicSetPaginators(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 DynamicSetClient 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 DynamicSetClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ChangeDynamicSetCompartmentResponse changeDynamicSetCompartment( + ChangeDynamicSetCompartmentRequest request) { + LOG.trace("Called changeDynamicSetCompartment"); + final ChangeDynamicSetCompartmentRequest interceptedRequest = + ChangeDynamicSetCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDynamicSetCompartmentConverter.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( + "DynamicSet", + "ChangeDynamicSetCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/ChangeDynamicSetCompartment"); + java.util.function.Function + transformer = + ChangeDynamicSetCompartmentConverter.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 + .getChangeDynamicSetCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDynamicSetResponse createDynamicSet(CreateDynamicSetRequest request) { + LOG.trace("Called createDynamicSet"); + final CreateDynamicSetRequest interceptedRequest = + CreateDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDynamicSetConverter.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( + "DynamicSet", + "CreateDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/CreateDynamicSet"); + java.util.function.Function + transformer = + CreateDynamicSetConverter.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.getCreateDynamicSetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteDynamicSetResponse deleteDynamicSet(DeleteDynamicSetRequest request) { + LOG.trace("Called deleteDynamicSet"); + final DeleteDynamicSetRequest interceptedRequest = + DeleteDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDynamicSetConverter.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( + "DynamicSet", + "DeleteDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/DeleteDynamicSet"); + java.util.function.Function + transformer = + DeleteDynamicSetConverter.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 GetDynamicSetResponse getDynamicSet(GetDynamicSetRequest request) { + LOG.trace("Called getDynamicSet"); + final GetDynamicSetRequest interceptedRequest = + GetDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDynamicSetConverter.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( + "DynamicSet", + "GetDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/GetDynamicSet"); + java.util.function.Function transformer = + GetDynamicSetConverter.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 InstallPackagesOnDynamicSetResponse installPackagesOnDynamicSet( + InstallPackagesOnDynamicSetRequest request) { + LOG.trace("Called installPackagesOnDynamicSet"); + final InstallPackagesOnDynamicSetRequest interceptedRequest = + InstallPackagesOnDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InstallPackagesOnDynamicSetConverter.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( + "DynamicSet", + "InstallPackagesOnDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/InstallPackagesOnDynamicSet"); + java.util.function.Function + transformer = + InstallPackagesOnDynamicSetConverter.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 + .getInstallPackagesOnDynamicSetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDynamicSetsResponse listDynamicSets(ListDynamicSetsRequest request) { + LOG.trace("Called listDynamicSets"); + final ListDynamicSetsRequest interceptedRequest = + ListDynamicSetsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDynamicSetsConverter.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( + "DynamicSet", + "ListDynamicSets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/ListDynamicSets"); + java.util.function.Function + transformer = + ListDynamicSetsConverter.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 ListManagedInstancesInDynamicSetResponse listManagedInstancesInDynamicSet( + ListManagedInstancesInDynamicSetRequest request) { + LOG.trace("Called listManagedInstancesInDynamicSet"); + final ListManagedInstancesInDynamicSetRequest interceptedRequest = + ListManagedInstancesInDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListManagedInstancesInDynamicSetConverter.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( + "DynamicSet", + "ListManagedInstancesInDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/ListManagedInstancesInDynamicSet"); + java.util.function.Function< + javax.ws.rs.core.Response, ListManagedInstancesInDynamicSetResponse> + transformer = + ListManagedInstancesInDynamicSetConverter.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 PreviewManagedInstancesResponse previewManagedInstances( + PreviewManagedInstancesRequest request) { + LOG.trace("Called previewManagedInstances"); + final PreviewManagedInstancesRequest interceptedRequest = + PreviewManagedInstancesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PreviewManagedInstancesConverter.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( + "DynamicSet", + "PreviewManagedInstances", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/PreviewManagedInstances"); + java.util.function.Function + transformer = + PreviewManagedInstancesConverter.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.getPreviewManagedInstancesDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RebootDynamicSetResponse rebootDynamicSet(RebootDynamicSetRequest request) { + LOG.trace("Called rebootDynamicSet"); + final RebootDynamicSetRequest interceptedRequest = + RebootDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RebootDynamicSetConverter.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( + "DynamicSet", + "RebootDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/RebootDynamicSet"); + java.util.function.Function + transformer = + RebootDynamicSetConverter.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.getRebootDynamicSetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RemovePackagesFromDynamicSetResponse removePackagesFromDynamicSet( + RemovePackagesFromDynamicSetRequest request) { + LOG.trace("Called removePackagesFromDynamicSet"); + final RemovePackagesFromDynamicSetRequest interceptedRequest = + RemovePackagesFromDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemovePackagesFromDynamicSetConverter.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( + "DynamicSet", + "RemovePackagesFromDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/RemovePackagesFromDynamicSet"); + java.util.function.Function + transformer = + RemovePackagesFromDynamicSetConverter.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 + .getRemovePackagesFromDynamicSetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateDynamicSetResponse updateDynamicSet(UpdateDynamicSetRequest request) { + LOG.trace("Called updateDynamicSet"); + final UpdateDynamicSetRequest interceptedRequest = + UpdateDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDynamicSetConverter.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( + "DynamicSet", + "UpdateDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/UpdateDynamicSet"); + java.util.function.Function + transformer = + UpdateDynamicSetConverter.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.getUpdateDynamicSetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdatePackagesOnDynamicSetResponse updatePackagesOnDynamicSet( + UpdatePackagesOnDynamicSetRequest request) { + LOG.trace("Called updatePackagesOnDynamicSet"); + final UpdatePackagesOnDynamicSetRequest interceptedRequest = + UpdatePackagesOnDynamicSetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdatePackagesOnDynamicSetConverter.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( + "DynamicSet", + "UpdatePackagesOnDynamicSet", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/DynamicSet/UpdatePackagesOnDynamicSet"); + java.util.function.Function + transformer = + UpdatePackagesOnDynamicSetConverter.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 + .getUpdatePackagesOnDynamicSetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DynamicSetWaiters getWaiters() { + return waiters; + } + + @Override + public DynamicSetPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetPaginators.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetPaginators.java new file mode 100644 index 00000000000..947c405400a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetPaginators.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub; + +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DynamicSet 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: 20220901") +public class DynamicSetPaginators { + private final DynamicSet client; + + public DynamicSetPaginators(DynamicSet client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDynamicSets 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 listDynamicSetsResponseIterator( + final ListDynamicSetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDynamicSetsRequest.Builder, ListDynamicSetsRequest, ListDynamicSetsResponse>( + new java.util.function.Supplier() { + @Override + public ListDynamicSetsRequest.Builder get() { + return ListDynamicSetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDynamicSetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDynamicSetsRequest.Builder>, + ListDynamicSetsRequest>() { + @Override + public ListDynamicSetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDynamicSetsRequest.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 ListDynamicSetsResponse apply(ListDynamicSetsRequest request) { + return client.listDynamicSets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.osmanagementhub.model.DynamicSetSummary} objects + * contained in responses from the listDynamicSets 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.osmanagementhub.model.DynamicSetSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDynamicSetsRecordIterator(final ListDynamicSetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDynamicSetsRequest.Builder, ListDynamicSetsRequest, ListDynamicSetsResponse, + com.oracle.bmc.osmanagementhub.model.DynamicSetSummary>( + new java.util.function.Supplier() { + @Override + public ListDynamicSetsRequest.Builder get() { + return ListDynamicSetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDynamicSetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDynamicSetsRequest.Builder>, + ListDynamicSetsRequest>() { + @Override + public ListDynamicSetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDynamicSetsRequest.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 ListDynamicSetsResponse apply(ListDynamicSetsRequest request) { + return client.listDynamicSets(request); + } + }, + new java.util.function.Function< + ListDynamicSetsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListDynamicSetsResponse response) { + return response.getDynamicSetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listManagedInstancesInDynamicSet 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 + listManagedInstancesInDynamicSetResponseIterator( + final ListManagedInstancesInDynamicSetRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListManagedInstancesInDynamicSetRequest.Builder, + ListManagedInstancesInDynamicSetRequest, ListManagedInstancesInDynamicSetResponse>( + new java.util.function.Supplier() { + @Override + public ListManagedInstancesInDynamicSetRequest.Builder get() { + return ListManagedInstancesInDynamicSetRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListManagedInstancesInDynamicSetResponse, String>() { + @Override + public String apply(ListManagedInstancesInDynamicSetResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstancesInDynamicSetRequest.Builder>, + ListManagedInstancesInDynamicSetRequest>() { + @Override + public ListManagedInstancesInDynamicSetRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstancesInDynamicSetRequest.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< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse>() { + @Override + public ListManagedInstancesInDynamicSetResponse apply( + ListManagedInstancesInDynamicSetRequest request) { + return client.listManagedInstancesInDynamicSet(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary} objects + * contained in responses from the listManagedInstancesInDynamicSet 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.osmanagementhub.model.ManagedInstanceSummary} objects + * contained in responses received from the service. + */ + public Iterable + listManagedInstancesInDynamicSetRecordIterator( + final ListManagedInstancesInDynamicSetRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListManagedInstancesInDynamicSetRequest.Builder, + ListManagedInstancesInDynamicSetRequest, ListManagedInstancesInDynamicSetResponse, + com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary>( + new java.util.function.Supplier() { + @Override + public ListManagedInstancesInDynamicSetRequest.Builder get() { + return ListManagedInstancesInDynamicSetRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListManagedInstancesInDynamicSetResponse, String>() { + @Override + public String apply(ListManagedInstancesInDynamicSetResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstancesInDynamicSetRequest.Builder>, + ListManagedInstancesInDynamicSetRequest>() { + @Override + public ListManagedInstancesInDynamicSetRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstancesInDynamicSetRequest.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< + ListManagedInstancesInDynamicSetRequest, + ListManagedInstancesInDynamicSetResponse>() { + @Override + public ListManagedInstancesInDynamicSetResponse apply( + ListManagedInstancesInDynamicSetRequest request) { + return client.listManagedInstancesInDynamicSet(request); + } + }, + new java.util.function.Function< + ListManagedInstancesInDynamicSetResponse, + java.util.List< + com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary> + apply(ListManagedInstancesInDynamicSetResponse response) { + return response.getManagedInstanceCollection().getItems(); + } + }); + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetWaiters.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetWaiters.java new file mode 100644 index 00000000000..775bc35bfdd --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/DynamicSetWaiters.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub; + +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DynamicSet. + *

+ * 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: 20220901") +public class DynamicSetWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DynamicSet client; + + public DynamicSetWaiters( + java.util.concurrent.ExecutorService executorService, DynamicSet 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 forDynamicSet( + GetDynamicSetRequest request, + com.oracle.bmc.osmanagementhub.model.DynamicSet.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 forDynamicSet( + 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 forDynamicSet( + GetDynamicSetRequest request, + com.oracle.bmc.osmanagementhub.model.DynamicSet.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 forDynamicSet( + 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 forDynamicSet( + GetDynamicSetRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.osmanagementhub.model.DynamicSet.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 forDynamicSet( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DynamicSet. + private com.oracle.bmc.waiter.Waiter forDynamicSet( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDynamicSetRequest request, + final com.oracle.bmc.osmanagementhub.model.DynamicSet.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< + GetDynamicSetRequest, GetDynamicSetResponse>() { + @Override + public GetDynamicSetResponse apply(GetDynamicSetRequest request) { + return client.getDynamicSet(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDynamicSetResponse response) { + return targetStatesSet.contains( + response.getDynamicSet().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.osmanagementhub.model.DynamicSet.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java index b977da4c8d1..1659b0ba59d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java @@ -255,6 +255,19 @@ InstallModuleStreamProfileOnManagedInstanceResponse installModuleStreamProfileOn InstallPackagesOnManagedInstanceResponse installPackagesOnManagedInstance( InstallPackagesOnManagedInstanceRequest request); + /** + * Installs specified snaps on a managed instance. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use InstallSnapsOnManagedInstance API. + */ + InstallSnapsOnManagedInstanceResponse installSnapsOnManagedInstance( + InstallSnapsOnManagedInstanceRequest request); + /** * Installs Windows updates on the specified managed instance. * @@ -367,6 +380,20 @@ ListManagedInstanceInstalledWindowsUpdatesResponse listManagedInstanceInstalledW ListManagedInstanceModulesResponse listManagedInstanceModules( ListManagedInstanceModulesRequest request); + /** + * Retrieves a list of snaps for a managed instance. Filters may be applied to select a subset of snaps based on the filter criteria. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListManagedInstanceSnaps API. + */ + ListManagedInstanceSnapsResponse listManagedInstanceSnaps( + ListManagedInstanceSnapsRequest request); + /** * Returns a list of updatable packages for a managed instance. * @@ -482,6 +509,19 @@ RefreshSoftwareOnManagedInstanceResponse refreshSoftwareOnManagedInstance( RemovePackagesFromManagedInstanceResponse removePackagesFromManagedInstance( RemovePackagesFromManagedInstanceRequest request); + /** + * Removes specified snaps from a managed instance. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveSnapsFromManagedInstance API. + */ + RemoveSnapsFromManagedInstanceResponse removeSnapsFromManagedInstance( + RemoveSnapsFromManagedInstanceRequest request); + /** * Enables a new stream for a module that already has a stream enabled. * If any profiles or packages from the original module are installed, @@ -499,6 +539,19 @@ RemovePackagesFromManagedInstanceResponse removePackagesFromManagedInstance( SwitchModuleStreamOnManagedInstanceResponse switchModuleStreamOnManagedInstance( SwitchModuleStreamOnManagedInstanceRequest request); + /** + * Switches the snap channel on a managed instance. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use SwitchSnapChannelOnManagedInstance API. + */ + SwitchSnapChannelOnManagedInstanceResponse switchSnapChannelOnManagedInstance( + SwitchSnapChannelOnManagedInstanceRequest request); + /** * Install all of the available package updates for all of the managed instances in a compartment. This applies only to standalone non-Windows instances. This will not update instances that belong to a group or lifecycle environment. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java index 8bb6f55d242..6cc1e9a5f9b 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java @@ -313,6 +313,24 @@ java.util.concurrent.Future getWindowsUpdate( InstallPackagesOnManagedInstanceResponse> handler); + /** + * Installs specified snaps on a managed instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + installSnapsOnManagedInstance( + InstallSnapsOnManagedInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + InstallSnapsOnManagedInstanceRequest, + InstallSnapsOnManagedInstanceResponse> + handler); + /** * Installs Windows updates on the specified managed instance. * @@ -461,6 +479,23 @@ java.util.concurrent.Future listManagedInsta ListManagedInstanceModulesRequest, ListManagedInstanceModulesResponse> handler); + /** + * Retrieves a list of snaps for a managed instance. Filters may be applied to select a subset of snaps based on the filter criteria. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listManagedInstanceSnaps( + ListManagedInstanceSnapsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse> + handler); + /** * Returns a list of updatable packages for a managed instance. * @@ -612,6 +647,24 @@ java.util.concurrent.Future rebootManagedInstance RemovePackagesFromManagedInstanceResponse> handler); + /** + * Removes specified snaps from a managed instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + removeSnapsFromManagedInstance( + RemoveSnapsFromManagedInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveSnapsFromManagedInstanceRequest, + RemoveSnapsFromManagedInstanceResponse> + handler); + /** * Enables a new stream for a module that already has a stream enabled. * If any profiles or packages from the original module are installed, @@ -634,6 +687,24 @@ java.util.concurrent.Future rebootManagedInstance SwitchModuleStreamOnManagedInstanceResponse> handler); + /** + * Switches the snap channel on a managed instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + switchSnapChannelOnManagedInstance( + SwitchSnapChannelOnManagedInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + SwitchSnapChannelOnManagedInstanceRequest, + SwitchSnapChannelOnManagedInstanceResponse> + handler); + /** * Install all of the available package updates for all of the managed instances in a compartment. This applies only to standalone non-Windows instances. This will not update instances that belong to a group or lifecycle environment. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java index 70e2ff858b3..f1090477e87 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java @@ -1214,6 +1214,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + installSnapsOnManagedInstance( + InstallSnapsOnManagedInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + InstallSnapsOnManagedInstanceRequest, + InstallSnapsOnManagedInstanceResponse> + handler) { + LOG.trace("Called async installSnapsOnManagedInstance"); + final InstallSnapsOnManagedInstanceRequest interceptedRequest = + InstallSnapsOnManagedInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InstallSnapsOnManagedInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ManagedInstance", + "InstallSnapsOnManagedInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/InstallSnapsOnManagedInstance"); + final java.util.function.Function< + javax.ws.rs.core.Response, InstallSnapsOnManagedInstanceResponse> + transformer = + InstallSnapsOnManagedInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + InstallSnapsOnManagedInstanceRequest, InstallSnapsOnManagedInstanceResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + InstallSnapsOnManagedInstanceRequest, + InstallSnapsOnManagedInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getInstallSnapsOnManagedInstanceDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + InstallSnapsOnManagedInstanceRequest, InstallSnapsOnManagedInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future installWindowsUpdatesOnManagedInstance( @@ -1651,6 +1708,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listManagedInstanceSnaps( + ListManagedInstanceSnapsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse> + handler) { + LOG.trace("Called async listManagedInstanceSnaps"); + final ListManagedInstanceSnapsRequest interceptedRequest = + ListManagedInstanceSnapsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListManagedInstanceSnapsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ManagedInstance", + "ListManagedInstanceSnaps", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceSnaps"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListManagedInstanceSnapsResponse> + transformer = + ListManagedInstanceSnapsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse>, + 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< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listManagedInstanceUpdatablePackages( @@ -2087,6 +2192,64 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + removeSnapsFromManagedInstance( + RemoveSnapsFromManagedInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveSnapsFromManagedInstanceRequest, + RemoveSnapsFromManagedInstanceResponse> + handler) { + LOG.trace("Called async removeSnapsFromManagedInstance"); + final RemoveSnapsFromManagedInstanceRequest interceptedRequest = + RemoveSnapsFromManagedInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveSnapsFromManagedInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ManagedInstance", + "RemoveSnapsFromManagedInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/RemoveSnapsFromManagedInstance"); + final java.util.function.Function< + javax.ws.rs.core.Response, RemoveSnapsFromManagedInstanceResponse> + transformer = + RemoveSnapsFromManagedInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveSnapsFromManagedInstanceRequest, + RemoveSnapsFromManagedInstanceResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveSnapsFromManagedInstanceRequest, + RemoveSnapsFromManagedInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRemoveSnapsFromManagedInstanceDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RemoveSnapsFromManagedInstanceRequest, RemoveSnapsFromManagedInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future switchModuleStreamOnManagedInstance( @@ -2147,6 +2310,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + switchSnapChannelOnManagedInstance( + SwitchSnapChannelOnManagedInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SwitchSnapChannelOnManagedInstanceRequest, + SwitchSnapChannelOnManagedInstanceResponse> + handler) { + LOG.trace("Called async switchSnapChannelOnManagedInstance"); + final SwitchSnapChannelOnManagedInstanceRequest interceptedRequest = + SwitchSnapChannelOnManagedInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SwitchSnapChannelOnManagedInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ManagedInstance", + "SwitchSnapChannelOnManagedInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/SwitchSnapChannelOnManagedInstance"); + final java.util.function.Function< + javax.ws.rs.core.Response, SwitchSnapChannelOnManagedInstanceResponse> + transformer = + SwitchSnapChannelOnManagedInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + SwitchSnapChannelOnManagedInstanceRequest, + SwitchSnapChannelOnManagedInstanceResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + SwitchSnapChannelOnManagedInstanceRequest, + SwitchSnapChannelOnManagedInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getSwitchSnapChannelOnManagedInstanceDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + SwitchSnapChannelOnManagedInstanceRequest, + SwitchSnapChannelOnManagedInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateAllPackagesOnManagedInstancesInCompartment( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java index 339c5bf65f1..8edbb895b92 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java @@ -1058,6 +1058,51 @@ public InstallPackagesOnManagedInstanceResponse installPackagesOnManagedInstance }); } + @Override + public InstallSnapsOnManagedInstanceResponse installSnapsOnManagedInstance( + InstallSnapsOnManagedInstanceRequest request) { + LOG.trace("Called installSnapsOnManagedInstance"); + final InstallSnapsOnManagedInstanceRequest interceptedRequest = + InstallSnapsOnManagedInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InstallSnapsOnManagedInstanceConverter.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( + "ManagedInstance", + "InstallSnapsOnManagedInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/InstallSnapsOnManagedInstance"); + java.util.function.Function< + javax.ws.rs.core.Response, InstallSnapsOnManagedInstanceResponse> + transformer = + InstallSnapsOnManagedInstanceConverter.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 + .getInstallSnapsOnManagedInstanceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public InstallWindowsUpdatesOnManagedInstanceResponse installWindowsUpdatesOnManagedInstance( InstallWindowsUpdatesOnManagedInstanceRequest request) { @@ -1386,6 +1431,44 @@ public ListManagedInstanceModulesResponse listManagedInstanceModules( }); } + @Override + public ListManagedInstanceSnapsResponse listManagedInstanceSnaps( + ListManagedInstanceSnapsRequest request) { + LOG.trace("Called listManagedInstanceSnaps"); + final ListManagedInstanceSnapsRequest interceptedRequest = + ListManagedInstanceSnapsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListManagedInstanceSnapsConverter.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( + "ManagedInstance", + "ListManagedInstanceSnaps", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceSnaps"); + java.util.function.Function + transformer = + ListManagedInstanceSnapsConverter.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 ListManagedInstanceUpdatablePackagesResponse listManagedInstanceUpdatablePackages( ListManagedInstanceUpdatablePackagesRequest request) { @@ -1723,6 +1806,51 @@ public RemovePackagesFromManagedInstanceResponse removePackagesFromManagedInstan }); } + @Override + public RemoveSnapsFromManagedInstanceResponse removeSnapsFromManagedInstance( + RemoveSnapsFromManagedInstanceRequest request) { + LOG.trace("Called removeSnapsFromManagedInstance"); + final RemoveSnapsFromManagedInstanceRequest interceptedRequest = + RemoveSnapsFromManagedInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveSnapsFromManagedInstanceConverter.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( + "ManagedInstance", + "RemoveSnapsFromManagedInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/RemoveSnapsFromManagedInstance"); + java.util.function.Function< + javax.ws.rs.core.Response, RemoveSnapsFromManagedInstanceResponse> + transformer = + RemoveSnapsFromManagedInstanceConverter.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 + .getRemoveSnapsFromManagedInstanceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public SwitchModuleStreamOnManagedInstanceResponse switchModuleStreamOnManagedInstance( SwitchModuleStreamOnManagedInstanceRequest request) { @@ -1769,6 +1897,51 @@ public SwitchModuleStreamOnManagedInstanceResponse switchModuleStreamOnManagedIn }); } + @Override + public SwitchSnapChannelOnManagedInstanceResponse switchSnapChannelOnManagedInstance( + SwitchSnapChannelOnManagedInstanceRequest request) { + LOG.trace("Called switchSnapChannelOnManagedInstance"); + final SwitchSnapChannelOnManagedInstanceRequest interceptedRequest = + SwitchSnapChannelOnManagedInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SwitchSnapChannelOnManagedInstanceConverter.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( + "ManagedInstance", + "SwitchSnapChannelOnManagedInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/SwitchSnapChannelOnManagedInstance"); + java.util.function.Function< + javax.ws.rs.core.Response, SwitchSnapChannelOnManagedInstanceResponse> + transformer = + SwitchSnapChannelOnManagedInstanceConverter.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 + .getSwitchSnapChannelOnManagedInstanceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateAllPackagesOnManagedInstancesInCompartmentResponse updateAllPackagesOnManagedInstancesInCompartment( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java index abe52ee88eb..3c7b557cabe 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java @@ -303,6 +303,20 @@ ListManagedInstanceGroupAvailablePackagesResponse listManagedInstanceGroupAvaila ListManagedInstanceGroupInstalledPackagesResponse listManagedInstanceGroupInstalledPackages( ListManagedInstanceGroupInstalledPackagesRequest request); + /** + * Lists all managed instances for a specified managed instance group. Filter the list against a variety of criteria including but not limited to the managed instance name. The results list all managed instances that have already been added to the group. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListManagedInstanceGroupManagedInstances API. + */ + ListManagedInstanceGroupManagedInstancesResponse listManagedInstanceGroupManagedInstances( + ListManagedInstanceGroupManagedInstancesRequest request); + /** * Retrieve a list of module streams, along with a summary of their * status, from a managed instance group. Filters may be applied to select @@ -380,6 +394,20 @@ ManageModuleStreamsOnManagedInstanceGroupResponse manageModuleStreamsOnManagedIn RebootManagedInstanceGroupResponse rebootManagedInstanceGroup( RebootManagedInstanceGroupRequest request); + /** + * Refreshes the package, Windows update or Snap information on a managed instance with the latest data from the software source. This does not update packages on the instance. It provides the service with the latest package data. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RefreshSoftwareOnManagedInstanceGroup API. + */ + RefreshSoftwareOnManagedInstanceGroupResponse refreshSoftwareOnManagedInstanceGroup( + RefreshSoftwareOnManagedInstanceGroupRequest request); + /** * Removes a profile for a module stream that is installed on a managed instance group. Providing the module stream name (without specifying a profile name) removes all profiles that have been installed for the module stream. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java index d7b84517c6b..0addbc53043 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java @@ -377,6 +377,25 @@ java.util.concurrent.Future getManagedInstanceG ListManagedInstanceGroupInstalledPackagesResponse> handler); + /** + * Lists all managed instances for a specified managed instance group. Filter the list against a variety of criteria including but not limited to the managed instance name. The results list all managed instances that have already been added to the group. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listManagedInstanceGroupManagedInstances( + ListManagedInstanceGroupManagedInstancesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse> + handler); + /** * Retrieve a list of module streams, along with a summary of their * status, from a managed instance group. Filters may be applied to select @@ -470,6 +489,25 @@ java.util.concurrent.Future rebootManagedIns RebootManagedInstanceGroupRequest, RebootManagedInstanceGroupResponse> handler); + /** + * Refreshes the package, Windows update or Snap information on a managed instance with the latest data from the software source. This does not update packages on the instance. It provides the service with the latest package data. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + refreshSoftwareOnManagedInstanceGroup( + RefreshSoftwareOnManagedInstanceGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + RefreshSoftwareOnManagedInstanceGroupRequest, + RefreshSoftwareOnManagedInstanceGroupResponse> + handler); + /** * Removes a profile for a module stream that is installed on a managed instance group. Providing the module stream name (without specifying a profile name) removes all profiles that have been installed for the module stream. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java index 9cd5419df82..b4f77b10323 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java @@ -1474,6 +1474,61 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listManagedInstanceGroupManagedInstances( + ListManagedInstanceGroupManagedInstancesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse> + handler) { + LOG.trace("Called async listManagedInstanceGroupManagedInstances"); + final ListManagedInstanceGroupManagedInstancesRequest interceptedRequest = + ListManagedInstanceGroupManagedInstancesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListManagedInstanceGroupManagedInstancesConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ManagedInstanceGroup", + "ListManagedInstanceGroupManagedInstances", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstanceGroup/ListManagedInstanceGroupManagedInstances"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListManagedInstanceGroupManagedInstancesResponse> + transformer = + ListManagedInstanceGroupManagedInstancesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse>, + java.util.concurrent.Future< + ListManagedInstanceGroupManagedInstancesResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listManagedInstanceGroupModules( @@ -1696,6 +1751,61 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + refreshSoftwareOnManagedInstanceGroup( + RefreshSoftwareOnManagedInstanceGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RefreshSoftwareOnManagedInstanceGroupRequest, + RefreshSoftwareOnManagedInstanceGroupResponse> + handler) { + LOG.trace("Called async refreshSoftwareOnManagedInstanceGroup"); + final RefreshSoftwareOnManagedInstanceGroupRequest interceptedRequest = + RefreshSoftwareOnManagedInstanceGroupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RefreshSoftwareOnManagedInstanceGroupConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ManagedInstanceGroup", + "RefreshSoftwareOnManagedInstanceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstanceGroup/RefreshSoftwareOnManagedInstanceGroup"); + final java.util.function.Function< + javax.ws.rs.core.Response, RefreshSoftwareOnManagedInstanceGroupResponse> + transformer = + RefreshSoftwareOnManagedInstanceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RefreshSoftwareOnManagedInstanceGroupRequest, + RefreshSoftwareOnManagedInstanceGroupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RefreshSoftwareOnManagedInstanceGroupRequest, + RefreshSoftwareOnManagedInstanceGroupResponse>, + 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< + RefreshSoftwareOnManagedInstanceGroupRequest, + RefreshSoftwareOnManagedInstanceGroupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future removeModuleStreamProfileFromManagedInstanceGroup( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java index 99db8bc22d3..d22cec392be 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java @@ -1322,6 +1322,47 @@ public InstallPackagesOnManagedInstanceGroupResponse installPackagesOnManagedIns }); } + @Override + public ListManagedInstanceGroupManagedInstancesResponse + listManagedInstanceGroupManagedInstances( + ListManagedInstanceGroupManagedInstancesRequest request) { + LOG.trace("Called listManagedInstanceGroupManagedInstances"); + final ListManagedInstanceGroupManagedInstancesRequest interceptedRequest = + ListManagedInstanceGroupManagedInstancesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListManagedInstanceGroupManagedInstancesConverter.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( + "ManagedInstanceGroup", + "ListManagedInstanceGroupManagedInstances", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstanceGroup/ListManagedInstanceGroupManagedInstances"); + java.util.function.Function< + javax.ws.rs.core.Response, ListManagedInstanceGroupManagedInstancesResponse> + transformer = + ListManagedInstanceGroupManagedInstancesConverter.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 ListManagedInstanceGroupModulesResponse listManagedInstanceGroupModules( ListManagedInstanceGroupModulesRequest request) { @@ -1491,6 +1532,48 @@ public RebootManagedInstanceGroupResponse rebootManagedInstanceGroup( }); } + @Override + public RefreshSoftwareOnManagedInstanceGroupResponse refreshSoftwareOnManagedInstanceGroup( + RefreshSoftwareOnManagedInstanceGroupRequest request) { + LOG.trace("Called refreshSoftwareOnManagedInstanceGroup"); + final RefreshSoftwareOnManagedInstanceGroupRequest interceptedRequest = + RefreshSoftwareOnManagedInstanceGroupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RefreshSoftwareOnManagedInstanceGroupConverter.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( + "ManagedInstanceGroup", + "RefreshSoftwareOnManagedInstanceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstanceGroup/RefreshSoftwareOnManagedInstanceGroup"); + java.util.function.Function< + javax.ws.rs.core.Response, RefreshSoftwareOnManagedInstanceGroupResponse> + transformer = + RefreshSoftwareOnManagedInstanceGroupConverter.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 RemoveModuleStreamProfileFromManagedInstanceGroupResponse removeModuleStreamProfileFromManagedInstanceGroup( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupPaginators.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupPaginators.java index a90c212e928..4c087da7c63 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupPaginators.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupPaginators.java @@ -582,6 +582,136 @@ public ListManagedInstanceGroupInstalledPackagesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listManagedInstanceGroupManagedInstances 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 + listManagedInstanceGroupManagedInstancesResponseIterator( + final ListManagedInstanceGroupManagedInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListManagedInstanceGroupManagedInstancesRequest.Builder, + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse>( + new java.util.function.Supplier< + ListManagedInstanceGroupManagedInstancesRequest.Builder>() { + @Override + public ListManagedInstanceGroupManagedInstancesRequest.Builder get() { + return ListManagedInstanceGroupManagedInstancesRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListManagedInstanceGroupManagedInstancesResponse, String>() { + @Override + public String apply(ListManagedInstanceGroupManagedInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceGroupManagedInstancesRequest.Builder>, + ListManagedInstanceGroupManagedInstancesRequest>() { + @Override + public ListManagedInstanceGroupManagedInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceGroupManagedInstancesRequest.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< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse>() { + @Override + public ListManagedInstanceGroupManagedInstancesResponse apply( + ListManagedInstanceGroupManagedInstancesRequest request) { + return client.listManagedInstanceGroupManagedInstances(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary} objects + * contained in responses from the listManagedInstanceGroupManagedInstances 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.osmanagementhub.model.ManagedInstanceSummary} objects + * contained in responses received from the service. + */ + public Iterable + listManagedInstanceGroupManagedInstancesRecordIterator( + final ListManagedInstanceGroupManagedInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListManagedInstanceGroupManagedInstancesRequest.Builder, + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse, + com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary>( + new java.util.function.Supplier< + ListManagedInstanceGroupManagedInstancesRequest.Builder>() { + @Override + public ListManagedInstanceGroupManagedInstancesRequest.Builder get() { + return ListManagedInstanceGroupManagedInstancesRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListManagedInstanceGroupManagedInstancesResponse, String>() { + @Override + public String apply(ListManagedInstanceGroupManagedInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceGroupManagedInstancesRequest.Builder>, + ListManagedInstanceGroupManagedInstancesRequest>() { + @Override + public ListManagedInstanceGroupManagedInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceGroupManagedInstancesRequest.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< + ListManagedInstanceGroupManagedInstancesRequest, + ListManagedInstanceGroupManagedInstancesResponse>() { + @Override + public ListManagedInstanceGroupManagedInstancesResponse apply( + ListManagedInstanceGroupManagedInstancesRequest request) { + return client.listManagedInstanceGroupManagedInstances(request); + } + }, + new java.util.function.Function< + ListManagedInstanceGroupManagedInstancesResponse, + java.util.List< + com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.osmanagementhub.model.ManagedInstanceSummary> + apply(ListManagedInstanceGroupManagedInstancesResponse response) { + return response.getManagedInstanceCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listManagedInstanceGroupModules operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstancePaginators.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstancePaginators.java index 85fb11a2984..e83aa83a4f1 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstancePaginators.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstancePaginators.java @@ -939,6 +939,121 @@ public ListManagedInstanceModulesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listManagedInstanceSnaps 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 listManagedInstanceSnapsResponseIterator( + final ListManagedInstanceSnapsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListManagedInstanceSnapsRequest.Builder, ListManagedInstanceSnapsRequest, + ListManagedInstanceSnapsResponse>( + new java.util.function.Supplier() { + @Override + public ListManagedInstanceSnapsRequest.Builder get() { + return ListManagedInstanceSnapsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListManagedInstanceSnapsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceSnapsRequest.Builder>, + ListManagedInstanceSnapsRequest>() { + @Override + public ListManagedInstanceSnapsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceSnapsRequest.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< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse>() { + @Override + public ListManagedInstanceSnapsResponse apply( + ListManagedInstanceSnapsRequest request) { + return client.listManagedInstanceSnaps(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.osmanagementhub.model.SnapSummary} objects + * contained in responses from the listManagedInstanceSnaps 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.osmanagementhub.model.SnapSummary} objects + * contained in responses received from the service. + */ + public Iterable + listManagedInstanceSnapsRecordIterator(final ListManagedInstanceSnapsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListManagedInstanceSnapsRequest.Builder, ListManagedInstanceSnapsRequest, + ListManagedInstanceSnapsResponse, com.oracle.bmc.osmanagementhub.model.SnapSummary>( + new java.util.function.Supplier() { + @Override + public ListManagedInstanceSnapsRequest.Builder get() { + return ListManagedInstanceSnapsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListManagedInstanceSnapsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceSnapsRequest.Builder>, + ListManagedInstanceSnapsRequest>() { + @Override + public ListManagedInstanceSnapsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListManagedInstanceSnapsRequest.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< + ListManagedInstanceSnapsRequest, ListManagedInstanceSnapsResponse>() { + @Override + public ListManagedInstanceSnapsResponse apply( + ListManagedInstanceSnapsRequest request) { + return client.listManagedInstanceSnaps(request); + } + }, + new java.util.function.Function< + ListManagedInstanceSnapsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListManagedInstanceSnapsResponse response) { + return response.getSnapCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listManagedInstanceUpdatablePackages operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java index 2328ecc50f0..f5b669f4eed 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java @@ -155,6 +155,20 @@ ChangeProfileCompartmentResponse changeProfileCompartment( */ DeleteProfileResponse deleteProfile(DeleteProfileRequest request); + /** + * Detaches the specified management station from a profile. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DetachManagementStationFromProfile API. + */ + DetachManagementStationFromProfileResponse detachManagementStationFromProfile( + DetachManagementStationFromProfileRequest request); + /** * Detaches the specified software sources from a profile. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java index ef94f5c3220..bb5bc827d48 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java @@ -183,6 +183,25 @@ java.util.concurrent.Future deleteProfile( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Detaches the specified management station from a profile. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + detachManagementStationFromProfile( + DetachManagementStationFromProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + DetachManagementStationFromProfileRequest, + DetachManagementStationFromProfileResponse> + handler); + /** * Detaches the specified software sources from a profile. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java index aeff1c123f6..fe43674525b 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java @@ -851,6 +851,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + detachManagementStationFromProfile( + DetachManagementStationFromProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DetachManagementStationFromProfileRequest, + DetachManagementStationFromProfileResponse> + handler) { + LOG.trace("Called async detachManagementStationFromProfile"); + final DetachManagementStationFromProfileRequest interceptedRequest = + DetachManagementStationFromProfileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DetachManagementStationFromProfileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Onboarding", + "DetachManagementStationFromProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/DetachManagementStationFromProfile"); + final java.util.function.Function< + javax.ws.rs.core.Response, DetachManagementStationFromProfileResponse> + transformer = + DetachManagementStationFromProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DetachManagementStationFromProfileRequest, + DetachManagementStationFromProfileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DetachManagementStationFromProfileRequest, + DetachManagementStationFromProfileResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getDetachManagementStationFromProfileDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DetachManagementStationFromProfileRequest, + DetachManagementStationFromProfileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future detachSoftwareSourcesFromProfile( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java index 371103fcf6b..eaf8b0cdd1e 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java @@ -858,6 +858,51 @@ public DeleteProfileResponse deleteProfile(DeleteProfileRequest request) { }); } + @Override + public DetachManagementStationFromProfileResponse detachManagementStationFromProfile( + DetachManagementStationFromProfileRequest request) { + LOG.trace("Called detachManagementStationFromProfile"); + final DetachManagementStationFromProfileRequest interceptedRequest = + DetachManagementStationFromProfileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DetachManagementStationFromProfileConverter.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( + "Onboarding", + "DetachManagementStationFromProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/DetachManagementStationFromProfile"); + java.util.function.Function< + javax.ws.rs.core.Response, DetachManagementStationFromProfileResponse> + transformer = + DetachManagementStationFromProfileConverter.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 + .getDetachManagementStationFromProfileDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DetachSoftwareSourcesFromProfileResponse detachSoftwareSourcesFromProfile( DetachSoftwareSourcesFromProfileRequest request) { diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SdkClientsMetadata.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SdkClientsMetadata.java index a73aef343ea..46e804af56c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SdkClientsMetadata.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SdkClientsMetadata.java @@ -8,6 +8,8 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") @SdkClients({ + DynamicSetAsyncClient.class, + DynamicSetClient.class, EventAsyncClient.class, EventClient.class, LifecycleEnvironmentAsyncClient.class, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java index 2f6ab45d0a3..aa6c370ecd4 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java @@ -280,6 +280,20 @@ GetSoftwareSourceManifestResponse getSoftwareSourceManifest( ListAvailableSoftwarePackagesResponse listAvailableSoftwarePackages( ListAvailableSoftwarePackagesRequest request); + /** + * Retrieves a list of software source repos that are available to add to a specified compartment. This API returns repos that are not already selected in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAvailableSoftwareSourcesToAdd API. + */ + ListAvailableSoftwareSourcesToAddResponse listAvailableSoftwareSourcesToAdd( + ListAvailableSoftwareSourcesToAddRequest request); + /** * Lists entitlements in the specified tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Filter the list against a variety of criteria including but * not limited to its Customer Support Identifier (CSI), and vendor name. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java index cc3d0874603..d9f25fb8e1b 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java @@ -339,6 +339,25 @@ java.util.concurrent.Future listAllSoftwarePack ListAvailableSoftwarePackagesResponse> handler); + /** + * Retrieves a list of software source repos that are available to add to a specified compartment. This API returns repos that are not already selected in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listAvailableSoftwareSourcesToAdd( + ListAvailableSoftwareSourcesToAddRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse> + handler); + /** * Lists entitlements in the specified tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Filter the list against a variety of criteria including but * not limited to its Customer Support Identifier (CSI), and vendor name. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java index d4c419bcbf6..584e3937b58 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java @@ -1273,6 +1273,60 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listAvailableSoftwareSourcesToAdd( + ListAvailableSoftwareSourcesToAddRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse> + handler) { + LOG.trace("Called async listAvailableSoftwareSourcesToAdd"); + final ListAvailableSoftwareSourcesToAddRequest interceptedRequest = + ListAvailableSoftwareSourcesToAddConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAvailableSoftwareSourcesToAddConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "SoftwareSource", + "ListAvailableSoftwareSourcesToAdd", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/ListAvailableSoftwareSourcesToAdd"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListAvailableSoftwareSourcesToAddResponse> + transformer = + ListAvailableSoftwareSourcesToAddConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse>, + 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< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listEntitlements( ListEntitlementsRequest request, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java index 4d65e2e16e0..dfc8fe383a0 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java @@ -1193,6 +1193,47 @@ public ListAvailableSoftwarePackagesResponse listAvailableSoftwarePackages( }); } + @Override + public ListAvailableSoftwareSourcesToAddResponse listAvailableSoftwareSourcesToAdd( + ListAvailableSoftwareSourcesToAddRequest request) { + LOG.trace("Called listAvailableSoftwareSourcesToAdd"); + final ListAvailableSoftwareSourcesToAddRequest interceptedRequest = + ListAvailableSoftwareSourcesToAddConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAvailableSoftwareSourcesToAddConverter.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( + "SoftwareSource", + "ListAvailableSoftwareSourcesToAdd", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/ListAvailableSoftwareSourcesToAdd"); + java.util.function.Function< + javax.ws.rs.core.Response, ListAvailableSoftwareSourcesToAddResponse> + transformer = + ListAvailableSoftwareSourcesToAddConverter.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 ListEntitlementsResponse listEntitlements(ListEntitlementsRequest request) { LOG.trace("Called listEntitlements"); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java index b404cfba559..1d5db24bfd3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java @@ -273,6 +273,133 @@ public ListAvailableSoftwarePackagesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listAvailableSoftwareSourcesToAdd 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 + listAvailableSoftwareSourcesToAddResponseIterator( + final ListAvailableSoftwareSourcesToAddRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAvailableSoftwareSourcesToAddRequest.Builder, + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse>( + new java.util.function.Supplier< + ListAvailableSoftwareSourcesToAddRequest.Builder>() { + @Override + public ListAvailableSoftwareSourcesToAddRequest.Builder get() { + return ListAvailableSoftwareSourcesToAddRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListAvailableSoftwareSourcesToAddResponse, String>() { + @Override + public String apply(ListAvailableSoftwareSourcesToAddResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwareSourcesToAddRequest.Builder>, + ListAvailableSoftwareSourcesToAddRequest>() { + @Override + public ListAvailableSoftwareSourcesToAddRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwareSourcesToAddRequest.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< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse>() { + @Override + public ListAvailableSoftwareSourcesToAddResponse apply( + ListAvailableSoftwareSourcesToAddRequest request) { + return client.listAvailableSoftwareSourcesToAdd(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoSummary} objects + * contained in responses from the listAvailableSoftwareSourcesToAdd 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.osmanagementhub.model.SoftwareSourceRepoSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAvailableSoftwareSourcesToAddRecordIterator( + final ListAvailableSoftwareSourcesToAddRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAvailableSoftwareSourcesToAddRequest.Builder, + ListAvailableSoftwareSourcesToAddRequest, ListAvailableSoftwareSourcesToAddResponse, + com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoSummary>( + new java.util.function.Supplier< + ListAvailableSoftwareSourcesToAddRequest.Builder>() { + @Override + public ListAvailableSoftwareSourcesToAddRequest.Builder get() { + return ListAvailableSoftwareSourcesToAddRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListAvailableSoftwareSourcesToAddResponse, String>() { + @Override + public String apply(ListAvailableSoftwareSourcesToAddResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwareSourcesToAddRequest.Builder>, + ListAvailableSoftwareSourcesToAddRequest>() { + @Override + public ListAvailableSoftwareSourcesToAddRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwareSourcesToAddRequest.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< + ListAvailableSoftwareSourcesToAddRequest, + ListAvailableSoftwareSourcesToAddResponse>() { + @Override + public ListAvailableSoftwareSourcesToAddResponse apply( + ListAvailableSoftwareSourcesToAddRequest request) { + return client.listAvailableSoftwareSourcesToAdd(request); + } + }, + new java.util.function.Function< + ListAvailableSoftwareSourcesToAddResponse, + java.util.List< + com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoSummary> + apply(ListAvailableSoftwareSourcesToAddResponse response) { + return response.getSoftwareSourceRepoCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listEntitlements operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ChangeDynamicSetCompartmentConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ChangeDynamicSetCompartmentConverter.java new file mode 100644 index 00000000000..5e241cb508b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ChangeDynamicSetCompartmentConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ChangeDynamicSetCompartmentConverter { + 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(ChangeDynamicSetCompartmentConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.ChangeDynamicSetCompartmentRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.ChangeDynamicSetCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.ChangeDynamicSetCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeDynamicSetCompartmentDetails(), + "changeDynamicSetCompartmentDetails is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.ChangeDynamicSetCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.ChangeDynamicSetCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ChangeDynamicSetCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ChangeDynamicSetCompartmentResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .ChangeDynamicSetCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.ChangeDynamicSetCompartmentResponse"); + 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.osmanagementhub.responses + .ChangeDynamicSetCompartmentResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .ChangeDynamicSetCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.osmanagementhub.responses + .ChangeDynamicSetCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/CreateDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/CreateDynamicSetConverter.java new file mode 100644 index 00000000000..e88d7fdc26a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/CreateDynamicSetConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateDynamicSetConverter { + 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(CreateDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.CreateDynamicSetRequest interceptRequest( + com.oracle.bmc.osmanagementhub.requests.CreateDynamicSetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.CreateDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateDynamicSetDetails(), "createDynamicSetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20220901").path("dynamicSets"); + + 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.osmanagementhub.responses.CreateDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.CreateDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.CreateDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .CreateDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses.CreateDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.CreateDynamicSetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .DynamicSet>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model.DynamicSet + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model.DynamicSet + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model.DynamicSet> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses.CreateDynamicSetResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .CreateDynamicSetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dynamicSet(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.osmanagementhub.responses.CreateDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/DeleteDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/DeleteDynamicSetConverter.java new file mode 100644 index 00000000000..d60f4dfaf86 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/DeleteDynamicSetConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteDynamicSetConverter { + 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(DeleteDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.DeleteDynamicSetRequest interceptRequest( + com.oracle.bmc.osmanagementhub.requests.DeleteDynamicSetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.DeleteDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())); + + 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.osmanagementhub.responses.DeleteDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.DeleteDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.DeleteDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .DeleteDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses.DeleteDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.DeleteDynamicSetResponse"); + 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.osmanagementhub.responses.DeleteDynamicSetResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .DeleteDynamicSetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.osmanagementhub.responses.DeleteDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/DetachManagementStationFromProfileConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/DetachManagementStationFromProfileConverter.java new file mode 100644 index 00000000000..7908181a2fd --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/DetachManagementStationFromProfileConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DetachManagementStationFromProfileConverter { + 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(DetachManagementStationFromProfileConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.DetachManagementStationFromProfileRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests + .DetachManagementStationFromProfileRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.DetachManagementStationFromProfileRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Validate.notNull( + request.getDetachManagementStationFromProfileDetails(), + "detachManagementStationFromProfileDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("profiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getProfileId())) + .path("actions") + .path("detachManagementStation"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.DetachManagementStationFromProfileResponse"); + 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.osmanagementhub.responses + .DetachManagementStationFromProfileResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.osmanagementhub.responses + .DetachManagementStationFromProfileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetDynamicSetConverter.java new file mode 100644 index 00000000000..ad67cebee52 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetDynamicSetConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetDynamicSetConverter { + 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(GetDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.GetDynamicSetRequest interceptRequest( + com.oracle.bmc.osmanagementhub.requests.GetDynamicSetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.GetDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())); + + 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.osmanagementhub.responses.GetDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .DynamicSet>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model.DynamicSet + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model.DynamicSet + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model.DynamicSet> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .GetDynamicSetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dynamicSet(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.osmanagementhub.responses.GetDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetManagedInstanceAnalyticContentConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetManagedInstanceAnalyticContentConverter.java index 7d262e8d940..0a09c30fbde 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetManagedInstanceAnalyticContentConverter.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/GetManagedInstanceAnalyticContentConverter.java @@ -46,6 +46,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCompartmentId())); } + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + if (request.getManagedInstanceGroupId() != null) { target = target.queryParam( @@ -54,6 +62,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getManagedInstanceGroupId())); } + if (request.getDynamicSetId() != null) { + target = + target.queryParam( + "dynamicSetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDynamicSetId())); + } + if (request.getLifecycleEnvironmentId() != null) { target = target.queryParam( @@ -112,6 +128,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBugUpdatesAvailableEqualsTo())); } + if (request.getOtherUpdatesAvailableEqualsTo() != null) { + target = + target.queryParam( + "otherUpdatesAvailableEqualsTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOtherUpdatesAvailableEqualsTo())); + } + if (request.getSecurityUpdatesAvailableGreaterThan() != null) { target = target.queryParam( @@ -128,6 +152,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBugUpdatesAvailableGreaterThan())); } + if (request.getOtherUpdatesAvailableGreaterThan() != null) { + target = + target.queryParam( + "otherUpdatesAvailableGreaterThan", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOtherUpdatesAvailableGreaterThan())); + } + if (request.getLocation() != null) { target = com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/InstallPackagesOnDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/InstallPackagesOnDynamicSetConverter.java new file mode 100644 index 00000000000..0a4bc5012af --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/InstallPackagesOnDynamicSetConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class InstallPackagesOnDynamicSetConverter { + 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(InstallPackagesOnDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.InstallPackagesOnDynamicSetRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.InstallPackagesOnDynamicSetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.InstallPackagesOnDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + Validate.notNull( + request.getInstallPackagesOnDynamicSetDetails(), + "installPackagesOnDynamicSetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())) + .path("actions") + .path("installPackages"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.InstallPackagesOnDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.InstallPackagesOnDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .InstallPackagesOnDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .InstallPackagesOnDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .InstallPackagesOnDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.InstallPackagesOnDynamicSetResponse"); + 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.osmanagementhub.responses + .InstallPackagesOnDynamicSetResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .InstallPackagesOnDynamicSetResponse + .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.osmanagementhub.responses + .InstallPackagesOnDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/InstallSnapsOnManagedInstanceConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/InstallSnapsOnManagedInstanceConverter.java new file mode 100644 index 00000000000..c1eba39b3e9 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/InstallSnapsOnManagedInstanceConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class InstallSnapsOnManagedInstanceConverter { + 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(InstallSnapsOnManagedInstanceConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.InstallSnapsOnManagedInstanceRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.InstallSnapsOnManagedInstanceRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.InstallSnapsOnManagedInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getManagedInstanceId(), "managedInstanceId must not be blank"); + Validate.notNull( + request.getInstallSnapsOnManagedInstanceDetails(), + "installSnapsOnManagedInstanceDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("managedInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedInstanceId())) + .path("actions") + .path("installSnaps"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.InstallSnapsOnManagedInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.InstallSnapsOnManagedInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .InstallSnapsOnManagedInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .InstallSnapsOnManagedInstanceResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .InstallSnapsOnManagedInstanceResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.InstallSnapsOnManagedInstanceResponse"); + 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.osmanagementhub.responses + .InstallSnapsOnManagedInstanceResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .InstallSnapsOnManagedInstanceResponse + .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.osmanagementhub.responses + .InstallSnapsOnManagedInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListAvailableSoftwareSourcesToAddConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListAvailableSoftwareSourcesToAddConverter.java new file mode 100644 index 00000000000..fb8cc1a8bd8 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListAvailableSoftwareSourcesToAddConverter.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAvailableSoftwareSourcesToAddConverter { + 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(ListAvailableSoftwareSourcesToAddConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.ListAvailableSoftwareSourcesToAddRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.ListAvailableSoftwareSourcesToAddRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.ListAvailableSoftwareSourcesToAddRequest + 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("/20220901") + .path("softwareSources") + .path("actions") + .path("availableSoftwareSources"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getOsFamily() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "osFamily", + request.getOsFamily(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getArchType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "archType", + request.getArchType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getDisplayNameContains() != null) { + target = + target.queryParam( + "displayNameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameContains())); + } + + 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 (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.ListAvailableSoftwareSourcesToAddResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .SoftwareSourceRepoCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .SoftwareSourceRepoCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .SoftwareSourceRepoCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .SoftwareSourceRepoCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.softwareSourceRepoCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcTotalItemsHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-total-items"); + if (opcTotalItemsHeader.isPresent()) { + builder.opcTotalItems( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-total-items", + opcTotalItemsHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.osmanagementhub.responses + .ListAvailableSoftwareSourcesToAddResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListDynamicSetsConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListDynamicSetsConverter.java new file mode 100644 index 00000000000..1fef9602049 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListDynamicSetsConverter.java @@ -0,0 +1,218 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListDynamicSetsConverter { + 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(ListDynamicSetsConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.ListDynamicSetsRequest interceptRequest( + com.oracle.bmc.osmanagementhub.requests.ListDynamicSetsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.ListDynamicSetsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20220901").path("dynamicSets"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getDisplayNameContains() != null) { + target = + target.queryParam( + "displayNameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameContains())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getDynamicSetId() != null) { + target = + target.queryParam( + "dynamicSetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDynamicSetId())); + } + + 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.osmanagementhub.responses.ListDynamicSetsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.ListDynamicSetsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.ListDynamicSetsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListDynamicSetsResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses.ListDynamicSetsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.ListDynamicSetsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .DynamicSetCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .DynamicSetCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .DynamicSetCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .DynamicSetCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses.ListDynamicSetsResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .ListDynamicSetsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dynamicSetCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcTotalItemsHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-total-items"); + if (opcTotalItemsHeader.isPresent()) { + builder.opcTotalItems( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-total-items", + opcTotalItemsHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.osmanagementhub.responses.ListDynamicSetsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceGroupManagedInstancesConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceGroupManagedInstancesConverter.java new file mode 100644 index 00000000000..af855574408 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceGroupManagedInstancesConverter.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstanceGroupManagedInstancesConverter { + 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( + ListManagedInstanceGroupManagedInstancesConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests + .ListManagedInstanceGroupManagedInstancesRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests + .ListManagedInstanceGroupManagedInstancesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.ListManagedInstanceGroupManagedInstancesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getManagedInstanceGroupId(), "managedInstanceGroupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("managedInstanceGroups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedInstanceGroupId())) + .path("managedInstances"); + + if (request.getManagedInstanceId() != null) { + target = + target.queryParam( + "managedInstanceId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getManagedInstanceId())); + } + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getDisplayName() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "displayName", + request.getDisplayName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getDisplayNameContains() != null) { + target = + target.queryParam( + "displayNameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameContains())); + } + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.ListManagedInstanceGroupManagedInstancesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.managedInstanceCollection(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.osmanagementhub.responses + .ListManagedInstanceGroupManagedInstancesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceSnapsConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceSnapsConverter.java new file mode 100644 index 00000000000..79f89d9e9f4 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceSnapsConverter.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstanceSnapsConverter { + 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(ListManagedInstanceSnapsConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.ListManagedInstanceSnapsRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.ListManagedInstanceSnapsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.ListManagedInstanceSnapsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getManagedInstanceId(), "managedInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("managedInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedInstanceId())) + .path("snaps"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getNameContains() != null) { + target = + target.queryParam( + "nameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getNameContains())); + } + + 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.osmanagementhub.responses.ListManagedInstanceSnapsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.ListManagedInstanceSnapsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.ListManagedInstanceSnapsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceSnapsResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceSnapsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.ListManagedInstanceSnapsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .SnapCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .SnapCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .SnapCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model.SnapCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceSnapsResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstanceSnapsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.snapCollection(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> 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.osmanagementhub.responses + .ListManagedInstanceSnapsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceUpdatablePackagesConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceUpdatablePackagesConverter.java index 1e03e8cf944..9abfb49cae1 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceUpdatablePackagesConverter.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstanceUpdatablePackagesConverter.java @@ -80,6 +80,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.CollectionFormatType.Multi); } + if (request.getAdvisorySeverity() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "advisorySeverity", + request.getAdvisorySeverity(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + if (request.getCompartmentId() != null) { target = target.queryParam( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstancesInDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstancesInDynamicSetConverter.java new file mode 100644 index 00000000000..e38e8e52244 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagedInstancesInDynamicSetConverter.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstancesInDynamicSetConverter { + 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(ListManagedInstancesInDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.ListManagedInstancesInDynamicSetRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.ListManagedInstancesInDynamicSetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.ListManagedInstancesInDynamicSetRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())) + .path("managedInstances"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getDisplayNameContains() != null) { + target = + target.queryParam( + "displayNameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameContains())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.ListManagedInstancesInDynamicSetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.managedInstanceCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcTotalItemsHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-total-items"); + if (opcTotalItemsHeader.isPresent()) { + builder.opcTotalItems( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-total-items", + opcTotalItemsHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.osmanagementhub.responses + .ListManagedInstancesInDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagementStationsConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagementStationsConverter.java index 993d9ce9a69..40f8ab71414 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagementStationsConverter.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListManagementStationsConverter.java @@ -132,6 +132,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getId())); } + if (request.getHealthState() != null) { + target = + target.queryParam( + "healthState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getHealthState().getValue())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListScheduledJobsConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListScheduledJobsConverter.java index 45ee29623d5..7f9f349bb61 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListScheduledJobsConverter.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListScheduledJobsConverter.java @@ -211,6 +211,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getIsManagedByAutonomousLinux())); } + if (request.getDynamicSetId() != null) { + target = + target.queryParam( + "dynamicSetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDynamicSetId())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListWorkRequestsConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListWorkRequestsConverter.java index 8f94c9554f1..9e73f05d018 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListWorkRequestsConverter.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/ListWorkRequestsConverter.java @@ -180,6 +180,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getIsManagedByAutonomousLinux())); } + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/PreviewManagedInstancesConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/PreviewManagedInstancesConverter.java new file mode 100644 index 00000000000..ac6a98fd611 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/PreviewManagedInstancesConverter.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class PreviewManagedInstancesConverter { + 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(PreviewManagedInstancesConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.PreviewManagedInstancesRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.PreviewManagedInstancesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.PreviewManagedInstancesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getPreviewManagedInstancesDetails(), + "previewManagedInstancesDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path("actions") + .path("previewManagedInstances"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getDisplayNameContains() != null) { + target = + target.queryParam( + "displayNameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameContains())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.PreviewManagedInstancesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.PreviewManagedInstancesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.PreviewManagedInstancesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .PreviewManagedInstancesResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .PreviewManagedInstancesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.PreviewManagedInstancesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .ManagedInstanceCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses + .PreviewManagedInstancesResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .PreviewManagedInstancesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.managedInstanceCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcTotalItemsHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-total-items"); + if (opcTotalItemsHeader.isPresent()) { + builder.opcTotalItems( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-total-items", + opcTotalItemsHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.osmanagementhub.responses + .PreviewManagedInstancesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RebootDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RebootDynamicSetConverter.java new file mode 100644 index 00000000000..3832bdd02bb --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RebootDynamicSetConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootDynamicSetConverter { + 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(RebootDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.RebootDynamicSetRequest interceptRequest( + com.oracle.bmc.osmanagementhub.requests.RebootDynamicSetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.RebootDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + Validate.notNull( + request.getRebootDynamicSetDetails(), "rebootDynamicSetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())) + .path("actions") + .path("reboot"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RebootDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RebootDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RebootDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RebootDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses.RebootDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.RebootDynamicSetResponse"); + 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.osmanagementhub.responses.RebootDynamicSetResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .RebootDynamicSetResponse.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.osmanagementhub.responses.RebootDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RefreshSoftwareOnManagedInstanceGroupConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RefreshSoftwareOnManagedInstanceGroupConverter.java new file mode 100644 index 00000000000..4351968139e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RefreshSoftwareOnManagedInstanceGroupConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RefreshSoftwareOnManagedInstanceGroupConverter { + 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(RefreshSoftwareOnManagedInstanceGroupConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests + .RefreshSoftwareOnManagedInstanceGroupRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests + .RefreshSoftwareOnManagedInstanceGroupRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.RefreshSoftwareOnManagedInstanceGroupRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getManagedInstanceGroupId(), "managedInstanceGroupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("managedInstanceGroups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedInstanceGroupId())) + .path("actions") + .path("refreshSoftware"); + + 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.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.RefreshSoftwareOnManagedInstanceGroupResponse"); + 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.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse + .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.osmanagementhub.responses + .RefreshSoftwareOnManagedInstanceGroupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RemovePackagesFromDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RemovePackagesFromDynamicSetConverter.java new file mode 100644 index 00000000000..20f526284da --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RemovePackagesFromDynamicSetConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemovePackagesFromDynamicSetConverter { + 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(RemovePackagesFromDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.RemovePackagesFromDynamicSetRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.RemovePackagesFromDynamicSetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.RemovePackagesFromDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + Validate.notNull( + request.getRemovePackagesFromDynamicSetDetails(), + "removePackagesFromDynamicSetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())) + .path("actions") + .path("removePackages"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RemovePackagesFromDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RemovePackagesFromDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RemovePackagesFromDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RemovePackagesFromDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .RemovePackagesFromDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.RemovePackagesFromDynamicSetResponse"); + 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.osmanagementhub.responses + .RemovePackagesFromDynamicSetResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .RemovePackagesFromDynamicSetResponse + .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.osmanagementhub.responses + .RemovePackagesFromDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RemoveSnapsFromManagedInstanceConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RemoveSnapsFromManagedInstanceConverter.java new file mode 100644 index 00000000000..fc17ba50dfe --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/RemoveSnapsFromManagedInstanceConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemoveSnapsFromManagedInstanceConverter { + 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(RemoveSnapsFromManagedInstanceConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.RemoveSnapsFromManagedInstanceRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.RemoveSnapsFromManagedInstanceRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.RemoveSnapsFromManagedInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getManagedInstanceId(), "managedInstanceId must not be blank"); + Validate.notNull( + request.getRemoveSnapsFromManagedInstanceDetails(), + "removeSnapsFromManagedInstanceDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("managedInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedInstanceId())) + .path("actions") + .path("removeSnaps"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RemoveSnapsFromManagedInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.RemoveSnapsFromManagedInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RemoveSnapsFromManagedInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .RemoveSnapsFromManagedInstanceResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .RemoveSnapsFromManagedInstanceResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.RemoveSnapsFromManagedInstanceResponse"); + 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.osmanagementhub.responses + .RemoveSnapsFromManagedInstanceResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .RemoveSnapsFromManagedInstanceResponse + .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.osmanagementhub.responses + .RemoveSnapsFromManagedInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SummarizeManagedInstanceAnalyticsConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SummarizeManagedInstanceAnalyticsConverter.java index 9fea1f551a5..35ca3598c78 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SummarizeManagedInstanceAnalyticsConverter.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SummarizeManagedInstanceAnalyticsConverter.java @@ -52,6 +52,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCompartmentId())); } + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + if (request.getManagedInstanceGroupId() != null) { target = target.queryParam( @@ -60,6 +68,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getManagedInstanceGroupId())); } + if (request.getDynamicSetId() != null) { + target = + target.queryParam( + "dynamicSetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDynamicSetId())); + } + if (request.getLifecycleEnvironmentId() != null) { target = target.queryParam( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SwitchSnapChannelOnManagedInstanceConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SwitchSnapChannelOnManagedInstanceConverter.java new file mode 100644 index 00000000000..8421490d480 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/SwitchSnapChannelOnManagedInstanceConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SwitchSnapChannelOnManagedInstanceConverter { + 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(SwitchSnapChannelOnManagedInstanceConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.SwitchSnapChannelOnManagedInstanceRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests + .SwitchSnapChannelOnManagedInstanceRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.SwitchSnapChannelOnManagedInstanceRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getManagedInstanceId(), "managedInstanceId must not be blank"); + Validate.notNull( + request.getSwitchSnapChannelOnManagedInstanceDetails(), + "switchSnapChannelOnManagedInstanceDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("managedInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedInstanceId())) + .path("actions") + .path("switchSnapChannel"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.SwitchSnapChannelOnManagedInstanceResponse"); + 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.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse + .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.osmanagementhub.responses + .SwitchSnapChannelOnManagedInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/UpdateDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/UpdateDynamicSetConverter.java new file mode 100644 index 00000000000..c0a374b8c90 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/UpdateDynamicSetConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateDynamicSetConverter { + 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(UpdateDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.UpdateDynamicSetRequest interceptRequest( + com.oracle.bmc.osmanagementhub.requests.UpdateDynamicSetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.UpdateDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + Validate.notNull( + request.getUpdateDynamicSetDetails(), "updateDynamicSetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())); + + 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.osmanagementhub.responses.UpdateDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.UpdateDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.UpdateDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .UpdateDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses.UpdateDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.UpdateDynamicSetResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model + .DynamicSet>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model.DynamicSet + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.osmanagementhub.model.DynamicSet + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.osmanagementhub.model.DynamicSet> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.osmanagementhub.responses.UpdateDynamicSetResponse + .Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .UpdateDynamicSetResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dynamicSet(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.osmanagementhub.responses.UpdateDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/UpdatePackagesOnDynamicSetConverter.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/UpdatePackagesOnDynamicSetConverter.java new file mode 100644 index 00000000000..c00b14d44c3 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/internal/http/UpdatePackagesOnDynamicSetConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.osmanagementhub.model.*; +import com.oracle.bmc.osmanagementhub.requests.*; +import com.oracle.bmc.osmanagementhub.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdatePackagesOnDynamicSetConverter { + 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(UpdatePackagesOnDynamicSetConverter.class); + + public static com.oracle.bmc.osmanagementhub.requests.UpdatePackagesOnDynamicSetRequest + interceptRequest( + com.oracle.bmc.osmanagementhub.requests.UpdatePackagesOnDynamicSetRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.osmanagementhub.requests.UpdatePackagesOnDynamicSetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDynamicSetId(), "dynamicSetId must not be blank"); + Validate.notNull( + request.getUpdatePackagesOnDynamicSetDetails(), + "updatePackagesOnDynamicSetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220901") + .path("dynamicSets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDynamicSetId())) + .path("actions") + .path("updatePackages"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.UpdatePackagesOnDynamicSetResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.UpdatePackagesOnDynamicSetResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses.UpdatePackagesOnDynamicSetResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.osmanagementhub.responses + .UpdatePackagesOnDynamicSetResponse>() { + @Override + public com.oracle.bmc.osmanagementhub.responses + .UpdatePackagesOnDynamicSetResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.osmanagementhub.responses.UpdatePackagesOnDynamicSetResponse"); + 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.osmanagementhub.responses + .UpdatePackagesOnDynamicSetResponse.Builder + builder = + com.oracle.bmc.osmanagementhub.responses + .UpdatePackagesOnDynamicSetResponse + .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.osmanagementhub.responses + .UpdatePackagesOnDynamicSetResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java index 99184512edd..001ddee15d6 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java @@ -15,6 +15,9 @@ public enum ArchType { Noarch("NOARCH"), Src("SRC"), I386("I386"), + Amd64("AMD64"), + Arm64("ARM64"), + All("ALL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AvailableSoftwareSourceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AvailableSoftwareSourceSummary.java index d1e3db0d292..f0d845baec9 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AvailableSoftwareSourceSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AvailableSoftwareSourceSummary.java @@ -25,12 +25,25 @@ public final class AvailableSoftwareSourceSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "compartmentId", "displayName"}) - public AvailableSoftwareSourceSummary(String id, String compartmentId, String displayName) { + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "softwareSourceType", + "description" + }) + public AvailableSoftwareSourceSummary( + String id, + String compartmentId, + String displayName, + SoftwareSourceType softwareSourceType, + String description) { super(); this.id = id; this.compartmentId = compartmentId; this.displayName = displayName; + this.softwareSourceType = softwareSourceType; + this.description = description; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -83,6 +96,38 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** + * Type of the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceType") + private SoftwareSourceType softwareSourceType; + + /** + * Type of the software source. + * @param softwareSourceType the value to set + * @return this builder + **/ + public Builder softwareSourceType(SoftwareSourceType softwareSourceType) { + this.softwareSourceType = softwareSourceType; + this.__explicitlySet__.add("softwareSourceType"); + return this; + } + /** + * Software source description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Software source description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -90,7 +135,11 @@ public Builder displayName(String displayName) { public AvailableSoftwareSourceSummary build() { AvailableSoftwareSourceSummary model = new AvailableSoftwareSourceSummary( - this.id, this.compartmentId, this.displayName); + this.id, + this.compartmentId, + this.displayName, + this.softwareSourceType, + this.description); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -108,6 +157,12 @@ public Builder copy(AvailableSoftwareSourceSummary model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("softwareSourceType")) { + this.softwareSourceType(model.getSoftwareSourceType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } return this; } } @@ -165,6 +220,34 @@ public String getDisplayName() { return displayName; } + /** + * Type of the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceType") + private final SoftwareSourceType softwareSourceType; + + /** + * Type of the software source. + * @return the value + **/ + public SoftwareSourceType getSoftwareSourceType() { + return softwareSourceType; + } + + /** + * Software source description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Software source description. + * @return the value + **/ + public String getDescription() { + return description; + } + @Override public String toString() { return this.toString(true); @@ -182,6 +265,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", softwareSourceType=").append(String.valueOf(this.softwareSourceType)); + sb.append(", description=").append(String.valueOf(this.description)); sb.append(")"); return sb.toString(); } @@ -199,6 +284,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.softwareSourceType, other.softwareSourceType) + && java.util.Objects.equals(this.description, other.description) && super.equals(other); } @@ -211,6 +298,12 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceType == null + ? 43 + : this.softwareSourceType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ChangeDynamicSetCompartmentDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ChangeDynamicSetCompartmentDetails.java new file mode 100644 index 00000000000..6b282842305 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ChangeDynamicSetCompartmentDetails.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to move the dynamic set to another compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDynamicSetCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeDynamicSetCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDynamicSetCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDynamicSetCompartmentDetails build() { + ChangeDynamicSetCompartmentDetails model = + new ChangeDynamicSetCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDynamicSetCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDynamicSetCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDynamicSetCompartmentDetails)) { + return false; + } + + ChangeDynamicSetCompartmentDetails other = (ChangeDynamicSetCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CpuArchType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CpuArchType.java new file mode 100644 index 00000000000..e3daa507827 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CpuArchType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * CPU architecture types for dynamic sets. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public enum CpuArchType { + X8664("X86_64"), + Aarch64("AARCH64"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CpuArchType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CpuArchType v : CpuArchType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CpuArchType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CpuArchType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CpuArchType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateDynamicSetDetails.java new file mode 100644 index 00000000000..5d7379fc4f7 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateDynamicSetDetails.java @@ -0,0 +1,443 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Details for creating a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "compartmentId", + "targetCompartments", + "matchType", + "matchingRule", + "freeformTags", + "definedTags" + }) + public CreateDynamicSetDetails( + String displayName, + String description, + String compartmentId, + java.util.List targetCompartments, + MatchType matchType, + MatchingRule matchingRule, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.targetCompartments = targetCompartments; + this.matchType = matchType; + this.matchingRule = matchingRule; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * User-friendly name for the dynamic set. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * User-specified description for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * User-specified description for the dynamic set. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private java.util.List targetCompartments; + + /** + * The list of compartment details. + * @param targetCompartments the value to set + * @return this builder + **/ + public Builder targetCompartments( + java.util.List targetCompartments) { + this.targetCompartments = targetCompartments; + this.__explicitlySet__.add("targetCompartments"); + return this; + } + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private MatchType matchType; + + /** + * Include either any or all attributes. + * @param matchType the value to set + * @return this builder + **/ + public Builder matchType(MatchType matchType) { + this.matchType = matchType; + this.__explicitlySet__.add("matchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private MatchingRule matchingRule; + + public Builder matchingRule(MatchingRule matchingRule) { + this.matchingRule = matchingRule; + this.__explicitlySet__.add("matchingRule"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDynamicSetDetails build() { + CreateDynamicSetDetails model = + new CreateDynamicSetDetails( + this.displayName, + this.description, + this.compartmentId, + this.targetCompartments, + this.matchType, + this.matchingRule, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDynamicSetDetails 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("targetCompartments")) { + this.targetCompartments(model.getTargetCompartments()); + } + if (model.wasPropertyExplicitlySet("matchType")) { + this.matchType(model.getMatchType()); + } + if (model.wasPropertyExplicitlySet("matchingRule")) { + this.matchingRule(model.getMatchingRule()); + } + 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); + } + + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * User-friendly name for the dynamic set. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * User-specified description for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * User-specified description for the dynamic set. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private final java.util.List targetCompartments; + + /** + * The list of compartment details. + * @return the value + **/ + public java.util.List getTargetCompartments() { + return targetCompartments; + } + + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private final MatchType matchType; + + /** + * Include either any or all attributes. + * @return the value + **/ + public MatchType getMatchType() { + return matchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private final MatchingRule matchingRule; + + public MatchingRule getMatchingRule() { + return matchingRule; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", targetCompartments=").append(String.valueOf(this.targetCompartments)); + sb.append(", matchType=").append(String.valueOf(this.matchType)); + sb.append(", matchingRule=").append(String.valueOf(this.matchingRule)); + 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 CreateDynamicSetDetails)) { + return false; + } + + CreateDynamicSetDetails other = (CreateDynamicSetDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.targetCompartments, other.targetCompartments) + && java.util.Objects.equals(this.matchType, other.matchType) + && java.util.Objects.equals(this.matchingRule, other.matchingRule) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.targetCompartments == null + ? 43 + : this.targetCompartments.hashCode()); + result = (result * PRIME) + (this.matchType == null ? 43 : this.matchType.hashCode()); + result = (result * PRIME) + (this.matchingRule == null ? 43 : this.matchingRule.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java index b53cfb9e5e7..28359a8c620 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java @@ -28,6 +28,8 @@ public final class CreateManagementStationDetails "description", "hostname", "isAutoConfigEnabled", + "osFamily", + "archType", "proxy", "mirror", "freeformTags", @@ -39,6 +41,8 @@ public CreateManagementStationDetails( String description, String hostname, Boolean isAutoConfigEnabled, + OsFamily osFamily, + ArchType archType, CreateProxyConfigurationDetails proxy, CreateMirrorConfigurationDetails mirror, java.util.Map freeformTags, @@ -49,6 +53,8 @@ public CreateManagementStationDetails( this.description = description; this.hostname = hostname; this.isAutoConfigEnabled = isAutoConfigEnabled; + this.osFamily = osFamily; + this.archType = archType; this.proxy = proxy; this.mirror = mirror; this.freeformTags = freeformTags; @@ -137,6 +143,38 @@ public Builder isAutoConfigEnabled(Boolean isAutoConfigEnabled) { this.__explicitlySet__.add("isAutoConfigEnabled"); return this; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * @param osFamily the value to set + * @return this builder + **/ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * @param archType the value to set + * @return this builder + **/ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("proxy") private CreateProxyConfigurationDetails proxy; @@ -212,6 +250,8 @@ public CreateManagementStationDetails build() { this.description, this.hostname, this.isAutoConfigEnabled, + this.osFamily, + this.archType, this.proxy, this.mirror, this.freeformTags, @@ -239,6 +279,12 @@ public Builder copy(CreateManagementStationDetails model) { if (model.wasPropertyExplicitlySet("isAutoConfigEnabled")) { this.isAutoConfigEnabled(model.getIsAutoConfigEnabled()); } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } if (model.wasPropertyExplicitlySet("proxy")) { this.proxy(model.getProxy()); } @@ -336,6 +382,34 @@ public Boolean getIsAutoConfigEnabled() { return isAutoConfigEnabled; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * @return the value + **/ + public OsFamily getOsFamily() { + return osFamily; + } + + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * @return the value + **/ + public ArchType getArchType() { + return archType; + } + @com.fasterxml.jackson.annotation.JsonProperty("proxy") private final CreateProxyConfigurationDetails proxy; @@ -409,6 +483,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", isAutoConfigEnabled=").append(String.valueOf(this.isAutoConfigEnabled)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); sb.append(", proxy=").append(String.valueOf(this.proxy)); sb.append(", mirror=").append(String.valueOf(this.mirror)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -432,6 +508,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.isAutoConfigEnabled, other.isAutoConfigEnabled) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) && java.util.Objects.equals(this.proxy, other.proxy) && java.util.Objects.equals(this.mirror, other.mirror) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -454,6 +532,8 @@ public int hashCode() { + (this.isAutoConfigEnabled == null ? 43 : this.isAutoConfigEnabled.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); result = (result * PRIME) + (this.proxy == null ? 43 : this.proxy.hashCode()); result = (result * PRIME) + (this.mirror == null ? 43 : this.mirror.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java index 56a72fd604b..09535603e44 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java @@ -22,6 +22,10 @@ defaultImpl = CreateProfileDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateUbuntuStandAloneProfileDetails.class, + name = "UBUNTU_STANDALONE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateGroupProfileDetails.class, name = "GROUP" @@ -77,7 +81,7 @@ protected CreateProfileDetails( } /** - * A user-friendly name. Does not have to be unique and you can change the name later. Avoid entering + * A user-friendly name. Must be unique and you can change the name later. Avoid entering * confidential information. * **/ @@ -85,7 +89,7 @@ protected CreateProfileDetails( private final String displayName; /** - * A user-friendly name. Does not have to be unique and you can change the name later. Avoid entering + * A user-friendly name. Must be unique and you can change the name later. Avoid entering * confidential information. * * @return the value @@ -124,7 +128,7 @@ public String getDescription() { /** * description: The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the management station to associate - * with an instance once registered. This is required when creating a profile for non-OCI instances. + * with an instance once registered. This is used when creating a profile for non-OCI instances. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") @@ -132,7 +136,7 @@ public String getDescription() { /** * description: The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the management station to associate - * with an instance once registered. This is required when creating a profile for non-OCI instances. + * with an instance once registered. This is used when creating a profile for non-OCI instances. * * @return the value **/ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java index 74e2c676fe1..98c05e34b0e 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java @@ -34,6 +34,7 @@ public final class CreateScheduledJobDetails "managedInstanceGroupIds", "managedCompartmentIds", "lifecycleStageIds", + "dynamicSetIds", "isSubcompartmentIncluded", "operations", "freeformTags", @@ -54,6 +55,7 @@ public CreateScheduledJobDetails( java.util.List managedInstanceGroupIds, java.util.List managedCompartmentIds, java.util.List lifecycleStageIds, + java.util.List dynamicSetIds, Boolean isSubcompartmentIncluded, java.util.List operations, java.util.Map freeformTags, @@ -73,6 +75,7 @@ public CreateScheduledJobDetails( this.managedInstanceGroupIds = managedInstanceGroupIds; this.managedCompartmentIds = managedCompartmentIds; this.lifecycleStageIds = lifecycleStageIds; + this.dynamicSetIds = dynamicSetIds; this.isSubcompartmentIncluded = isSubcompartmentIncluded; this.operations = operations; this.freeformTags = freeformTags; @@ -181,13 +184,19 @@ public Builder timeNextExecution(java.util.Date timeNextExecution) { return this; } /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Note: Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("recurringRule") private String recurringRule; /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Note: Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * * @param recurringRule the value to set * @return this builder **/ @@ -199,7 +208,7 @@ public Builder recurringRule(String recurringRule) { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or - * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds. + * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceIds") @@ -208,7 +217,7 @@ public Builder recurringRule(String recurringRule) { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or - * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds. + * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * * @param managedInstanceIds the value to set * @return this builder @@ -221,7 +230,7 @@ public Builder managedInstanceIds(java.util.List managedInstanceIds) { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedCompartmentIds, or lifecycleStageIds. + * or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupIds") @@ -230,7 +239,7 @@ public Builder managedInstanceIds(java.util.List managedInstanceIds) { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedCompartmentIds, or lifecycleStageIds. + * or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * * @param managedInstanceGroupIds the value to set * @return this builder @@ -244,7 +253,7 @@ public Builder managedInstanceGroupIds(java.util.List managedInstanceGro * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set * isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must - * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds. + * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedCompartmentIds") @@ -254,7 +263,7 @@ public Builder managedInstanceGroupIds(java.util.List managedInstanceGro * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set * isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must - * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds. + * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds, or dynamicSetIds. * * @param managedCompartmentIds the value to set * @return this builder @@ -267,7 +276,7 @@ public Builder managedCompartmentIds(java.util.List managedCompartmentId /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedInstanceGroupIds, or managedCompartmentIds. + * or managedInstanceGroupIds, or managedCompartmentIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageIds") @@ -276,7 +285,7 @@ public Builder managedCompartmentIds(java.util.List managedCompartmentId /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedInstanceGroupIds, or managedCompartmentIds. + * or managedInstanceGroupIds, or managedCompartmentIds, or dynamicSetIds. * * @param lifecycleStageIds the value to set * @return this builder @@ -286,6 +295,28 @@ public Builder lifecycleStageIds(java.util.List lifecycleStageIds) { this.__explicitlySet__.add("lifecycleStageIds"); return this; } + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, managedCompartmentIds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicSetIds") + private java.util.List dynamicSetIds; + + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, managedCompartmentIds. + * + * @param dynamicSetIds the value to set + * @return this builder + **/ + public Builder dynamicSetIds(java.util.List dynamicSetIds) { + this.dynamicSetIds = dynamicSetIds; + this.__explicitlySet__.add("dynamicSetIds"); + return this; + } /** * Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies * the tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment). @@ -461,6 +492,7 @@ public CreateScheduledJobDetails build() { this.managedInstanceGroupIds, this.managedCompartmentIds, this.lifecycleStageIds, + this.dynamicSetIds, this.isSubcompartmentIncluded, this.operations, this.freeformTags, @@ -509,6 +541,9 @@ public Builder copy(CreateScheduledJobDetails model) { if (model.wasPropertyExplicitlySet("lifecycleStageIds")) { this.lifecycleStageIds(model.getLifecycleStageIds()); } + if (model.wasPropertyExplicitlySet("dynamicSetIds")) { + this.dynamicSetIds(model.getDynamicSetIds()); + } if (model.wasPropertyExplicitlySet("isSubcompartmentIncluded")) { this.isSubcompartmentIncluded(model.getIsSubcompartmentIncluded()); } @@ -630,13 +665,19 @@ public java.util.Date getTimeNextExecution() { } /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Note: Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("recurringRule") private final String recurringRule; /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Note: Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * * @return the value **/ public String getRecurringRule() { @@ -646,7 +687,7 @@ public String getRecurringRule() { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or - * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds. + * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceIds") @@ -655,7 +696,7 @@ public String getRecurringRule() { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or - * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds. + * managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * * @return the value **/ @@ -666,7 +707,7 @@ public java.util.List getManagedInstanceIds() { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedCompartmentIds, or lifecycleStageIds. + * or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupIds") @@ -675,7 +716,7 @@ public java.util.List getManagedInstanceIds() { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedCompartmentIds, or lifecycleStageIds. + * or managedCompartmentIds, or lifecycleStageIds, or dynamicSetIds. * * @return the value **/ @@ -687,7 +728,7 @@ public java.util.List getManagedInstanceGroupIds() { * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set * isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must - * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds. + * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedCompartmentIds") @@ -697,7 +738,7 @@ public java.util.List getManagedInstanceGroupIds() { * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set * isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must - * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds. + * supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds, or dynamicSetIds. * * @return the value **/ @@ -708,7 +749,7 @@ public java.util.List getManagedCompartmentIds() { /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedInstanceGroupIds, or managedCompartmentIds. + * or managedInstanceGroupIds, or managedCompartmentIds, or dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageIds") @@ -717,7 +758,7 @@ public java.util.List getManagedCompartmentIds() { /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, - * or managedInstanceGroupIds, or managedCompartmentIds. + * or managedInstanceGroupIds, or managedCompartmentIds, or dynamicSetIds. * * @return the value **/ @@ -725,6 +766,26 @@ public java.util.List getLifecycleStageIds() { return lifecycleStageIds; } + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, managedCompartmentIds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicSetIds") + private final java.util.List dynamicSetIds; + + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, managedCompartmentIds. + * + * @return the value + **/ + public java.util.List getDynamicSetIds() { + return dynamicSetIds; + } + /** * Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies * the tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment). @@ -893,6 +954,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.managedInstanceGroupIds)); sb.append(", managedCompartmentIds=").append(String.valueOf(this.managedCompartmentIds)); sb.append(", lifecycleStageIds=").append(String.valueOf(this.lifecycleStageIds)); + sb.append(", dynamicSetIds=").append(String.valueOf(this.dynamicSetIds)); sb.append(", isSubcompartmentIncluded=") .append(String.valueOf(this.isSubcompartmentIncluded)); sb.append(", operations=").append(String.valueOf(this.operations)); @@ -928,6 +990,7 @@ public boolean equals(Object o) { this.managedInstanceGroupIds, other.managedInstanceGroupIds) && java.util.Objects.equals(this.managedCompartmentIds, other.managedCompartmentIds) && java.util.Objects.equals(this.lifecycleStageIds, other.lifecycleStageIds) + && java.util.Objects.equals(this.dynamicSetIds, other.dynamicSetIds) && java.util.Objects.equals( this.isSubcompartmentIncluded, other.isSubcompartmentIncluded) && java.util.Objects.equals(this.operations, other.operations) @@ -975,6 +1038,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleStageIds == null ? 43 : this.lifecycleStageIds.hashCode()); + result = + (result * PRIME) + + (this.dynamicSetIds == null ? 43 : this.dynamicSetIds.hashCode()); result = (result * PRIME) + (this.isSubcompartmentIncluded == null diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateUbuntuStandAloneProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateUbuntuStandAloneProfileDetails.java new file mode 100644 index 00000000000..10d00452624 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateUbuntuStandAloneProfileDetails.java @@ -0,0 +1,339 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to create an Ubuntu standalone registration profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateUbuntuStandAloneProfileDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "profileType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateUbuntuStandAloneProfileDetails extends CreateProfileDetails { + @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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private String managementStationId; + + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + this.__explicitlySet__.add("managementStationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("registrationType") + private Profile.RegistrationType registrationType; + + public Builder registrationType(Profile.RegistrationType registrationType) { + this.registrationType = registrationType; + this.__explicitlySet__.add("registrationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultProfile") + private Boolean isDefaultProfile; + + public Builder isDefaultProfile(Boolean isDefaultProfile) { + this.isDefaultProfile = isDefaultProfile; + this.__explicitlySet__.add("isDefaultProfile"); + 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 vendor of the operating system for the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private VendorName vendorName; + + /** + * The vendor of the operating system for the instance. + * @param vendorName the value to set + * @return this builder + **/ + public Builder vendorName(VendorName vendorName) { + this.vendorName = vendorName; + this.__explicitlySet__.add("vendorName"); + return this; + } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * @param osFamily the value to set + * @return this builder + **/ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * @param archType the value to set + * @return this builder + **/ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateUbuntuStandAloneProfileDetails build() { + CreateUbuntuStandAloneProfileDetails model = + new CreateUbuntuStandAloneProfileDetails( + this.displayName, + this.compartmentId, + this.description, + this.managementStationId, + this.registrationType, + this.isDefaultProfile, + this.freeformTags, + this.definedTags, + this.vendorName, + this.osFamily, + this.archType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateUbuntuStandAloneProfileDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("managementStationId")) { + this.managementStationId(model.getManagementStationId()); + } + if (model.wasPropertyExplicitlySet("registrationType")) { + this.registrationType(model.getRegistrationType()); + } + if (model.wasPropertyExplicitlySet("isDefaultProfile")) { + this.isDefaultProfile(model.getIsDefaultProfile()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vendorName")) { + this.vendorName(model.getVendorName()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateUbuntuStandAloneProfileDetails( + String displayName, + String compartmentId, + String description, + String managementStationId, + Profile.RegistrationType registrationType, + Boolean isDefaultProfile, + java.util.Map freeformTags, + java.util.Map> definedTags, + VendorName vendorName, + OsFamily osFamily, + ArchType archType) { + super( + displayName, + compartmentId, + description, + managementStationId, + registrationType, + isDefaultProfile, + freeformTags, + definedTags); + this.vendorName = vendorName; + this.osFamily = osFamily; + this.archType = archType; + } + + /** + * The vendor of the operating system for the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private final VendorName vendorName; + + /** + * The vendor of the operating system for the instance. + * @return the value + **/ + public VendorName getVendorName() { + return vendorName; + } + + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * @return the value + **/ + public OsFamily getOsFamily() { + return osFamily; + } + + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * @return the value + **/ + public ArchType getArchType() { + return archType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateUbuntuStandAloneProfileDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", vendorName=").append(String.valueOf(this.vendorName)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateUbuntuStandAloneProfileDetails)) { + return false; + } + + CreateUbuntuStandAloneProfileDetails other = (CreateUbuntuStandAloneProfileDetails) o; + return java.util.Objects.equals(this.vendorName, other.vendorName) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vendorName == null ? 43 : this.vendorName.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVendorSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVendorSoftwareSourceDetails.java index 56dfa927390..b7703143d54 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVendorSoftwareSourceDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVendorSoftwareSourceDetails.java @@ -88,6 +88,22 @@ public Builder originSoftwareSourceId(String originSoftwareSourceId) { this.__explicitlySet__.add("originSoftwareSourceId"); return this; } + /** + * The display name of the software source to be replicated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originDisplayName") + private String originDisplayName; + + /** + * The display name of the software source to be replicated + * @param originDisplayName the value to set + * @return this builder + **/ + public Builder originDisplayName(String originDisplayName) { + this.originDisplayName = originDisplayName; + this.__explicitlySet__.add("originDisplayName"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -100,7 +116,8 @@ public CreateVendorSoftwareSourceDetails build() { this.description, this.freeformTags, this.definedTags, - this.originSoftwareSourceId); + this.originSoftwareSourceId, + this.originDisplayName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -127,6 +144,9 @@ public Builder copy(CreateVendorSoftwareSourceDetails model) { if (model.wasPropertyExplicitlySet("originSoftwareSourceId")) { this.originSoftwareSourceId(model.getOriginSoftwareSourceId()); } + if (model.wasPropertyExplicitlySet("originDisplayName")) { + this.originDisplayName(model.getOriginDisplayName()); + } return this; } } @@ -149,9 +169,11 @@ public CreateVendorSoftwareSourceDetails( String description, java.util.Map freeformTags, java.util.Map> definedTags, - String originSoftwareSourceId) { + String originSoftwareSourceId, + String originDisplayName) { super(compartmentId, displayName, description, freeformTags, definedTags); this.originSoftwareSourceId = originSoftwareSourceId; + this.originDisplayName = originDisplayName; } /** @@ -168,6 +190,20 @@ public String getOriginSoftwareSourceId() { return originSoftwareSourceId; } + /** + * The display name of the software source to be replicated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("originDisplayName") + private final String originDisplayName; + + /** + * The display name of the software source to be replicated + * @return the value + **/ + public String getOriginDisplayName() { + return originDisplayName; + } + @Override public String toString() { return this.toString(true); @@ -183,6 +219,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateVendorSoftwareSourceDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", originSoftwareSourceId=").append(String.valueOf(this.originSoftwareSourceId)); + sb.append(", originDisplayName=").append(String.valueOf(this.originDisplayName)); sb.append(")"); return sb.toString(); } @@ -198,6 +235,7 @@ public boolean equals(Object o) { CreateVendorSoftwareSourceDetails other = (CreateVendorSoftwareSourceDetails) o; return java.util.Objects.equals(this.originSoftwareSourceId, other.originSoftwareSourceId) + && java.util.Objects.equals(this.originDisplayName, other.originDisplayName) && super.equals(other); } @@ -210,6 +248,9 @@ public int hashCode() { + (this.originSoftwareSourceId == null ? 43 : this.originSoftwareSourceId.hashCode()); + result = + (result * PRIME) + + (this.originDisplayName == null ? 43 : this.originDisplayName.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DefinedTag.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DefinedTag.java new file mode 100644 index 00000000000..0e0dd13dabb --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DefinedTag.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Defined tag assigned to a 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: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DefinedTag.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 DefinedTag extends Tag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** + * The namespace of the tag. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The namespace of the tag. + * + * @param namespace the value to set + * @return this builder + **/ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DefinedTag build() { + DefinedTag model = new DefinedTag(this.key, this.value, this.namespace); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefinedTag model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefinedTag(String key, String value, String namespace) { + super(key, value); + this.namespace = namespace; + } + + /** + * The namespace of the tag. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The namespace of the tag. + * + * @return the value + **/ + public String getNamespace() { + return namespace; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DefinedTag("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DefinedTag)) { + return false; + } + + DefinedTag other = (DefinedTag) o; + return java.util.Objects.equals(this.namespace, other.namespace) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachManagementStationFromProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachManagementStationFromProfileDetails.java new file mode 100644 index 00000000000..9e59a9c5b0c --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachManagementStationFromProfileDetails.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to detach a management station from a profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DetachManagementStationFromProfileDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DetachManagementStationFromProfileDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managementStationId"}) + public DetachManagementStationFromProfileDetails(String managementStationId) { + super(); + this.managementStationId = managementStationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the management station to detach from the profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private String managementStationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the management station to detach from the profile. + * @param managementStationId the value to set + * @return this builder + **/ + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + this.__explicitlySet__.add("managementStationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DetachManagementStationFromProfileDetails build() { + DetachManagementStationFromProfileDetails model = + new DetachManagementStationFromProfileDetails(this.managementStationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DetachManagementStationFromProfileDetails model) { + if (model.wasPropertyExplicitlySet("managementStationId")) { + this.managementStationId(model.getManagementStationId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the management station to detach from the profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private final String managementStationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the management station to detach from the profile. + * @return the value + **/ + public String getManagementStationId() { + return managementStationId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DetachManagementStationFromProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("managementStationId=").append(String.valueOf(this.managementStationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DetachManagementStationFromProfileDetails)) { + return false; + } + + DetachManagementStationFromProfileDetails other = + (DetachManagementStationFromProfileDetails) o; + return java.util.Objects.equals(this.managementStationId, other.managementStationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managementStationId == null + ? 43 + : this.managementStationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSet.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSet.java new file mode 100644 index 00000000000..51de56db9ea --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSet.java @@ -0,0 +1,756 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * An object that defines the dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DynamicSet.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DynamicSet extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "lifecycleState", + "scheduledJobCount", + "targetCompartments", + "matchType", + "matchingRule", + "freeformTags", + "definedTags", + "systemTags" + }) + public DynamicSet( + String id, + String compartmentId, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String scheduledJobCount, + java.util.List targetCompartments, + MatchType matchType, + MatchingRule matchingRule, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.scheduledJobCount = scheduledJobCount; + this.targetCompartments = targetCompartments; + this.matchType = matchType; + this.matchingRule = matchingRule; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * User-friendly name for the dynamic set. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * User-specified description for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * User-specified description for the dynamic set. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the event. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Number of scheduled jobs currently targeting this dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledJobCount") + private String scheduledJobCount; + + /** + * Number of scheduled jobs currently targeting this dynamic set. + * @param scheduledJobCount the value to set + * @return this builder + **/ + public Builder scheduledJobCount(String scheduledJobCount) { + this.scheduledJobCount = scheduledJobCount; + this.__explicitlySet__.add("scheduledJobCount"); + return this; + } + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private java.util.List targetCompartments; + + /** + * The list of compartment details. + * @param targetCompartments the value to set + * @return this builder + **/ + public Builder targetCompartments( + java.util.List targetCompartments) { + this.targetCompartments = targetCompartments; + this.__explicitlySet__.add("targetCompartments"); + return this; + } + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private MatchType matchType; + + /** + * Include either any or all attributes. + * @param matchType the value to set + * @return this builder + **/ + public Builder matchType(MatchType matchType) { + this.matchType = matchType; + this.__explicitlySet__.add("matchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private MatchingRule matchingRule; + + public Builder matchingRule(MatchingRule matchingRule) { + this.matchingRule = matchingRule; + this.__explicitlySet__.add("matchingRule"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DynamicSet build() { + DynamicSet model = + new DynamicSet( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.scheduledJobCount, + this.targetCompartments, + this.matchType, + this.matchingRule, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DynamicSet 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("description")) { + this.description(model.getDescription()); + } + 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("scheduledJobCount")) { + this.scheduledJobCount(model.getScheduledJobCount()); + } + if (model.wasPropertyExplicitlySet("targetCompartments")) { + this.targetCompartments(model.getTargetCompartments()); + } + if (model.wasPropertyExplicitlySet("matchType")) { + this.matchType(model.getMatchType()); + } + if (model.wasPropertyExplicitlySet("matchingRule")) { + this.matchingRule(model.getMatchingRule()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * User-friendly name for the dynamic set. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * User-specified description for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * User-specified description for the dynamic set. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the event. + **/ + 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 event. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the event. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Number of scheduled jobs currently targeting this dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledJobCount") + private final String scheduledJobCount; + + /** + * Number of scheduled jobs currently targeting this dynamic set. + * @return the value + **/ + public String getScheduledJobCount() { + return scheduledJobCount; + } + + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private final java.util.List targetCompartments; + + /** + * The list of compartment details. + * @return the value + **/ + public java.util.List getTargetCompartments() { + return targetCompartments; + } + + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private final MatchType matchType; + + /** + * Include either any or all attributes. + * @return the value + **/ + public MatchType getMatchType() { + return matchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private final MatchingRule matchingRule; + + public MatchingRule getMatchingRule() { + return matchingRule; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DynamicSet("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + 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(", scheduledJobCount=").append(String.valueOf(this.scheduledJobCount)); + sb.append(", targetCompartments=").append(String.valueOf(this.targetCompartments)); + sb.append(", matchType=").append(String.valueOf(this.matchType)); + sb.append(", matchingRule=").append(String.valueOf(this.matchingRule)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DynamicSet)) { + return false; + } + + DynamicSet other = (DynamicSet) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && 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.scheduledJobCount, other.scheduledJobCount) + && java.util.Objects.equals(this.targetCompartments, other.targetCompartments) + && java.util.Objects.equals(this.matchType, other.matchType) + && java.util.Objects.equals(this.matchingRule, other.matchingRule) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.scheduledJobCount == null ? 43 : this.scheduledJobCount.hashCode()); + result = + (result * PRIME) + + (this.targetCompartments == null + ? 43 + : this.targetCompartments.hashCode()); + result = (result * PRIME) + (this.matchType == null ? 43 : this.matchType.hashCode()); + result = (result * PRIME) + (this.matchingRule == null ? 43 : this.matchingRule.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSetCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSetCollection.java new file mode 100644 index 00000000000..136233bd596 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSetCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * The set of dynamic sets returned for the {@link #listDynamicSets(ListDynamicSetsRequest) listDynamicSets} operation. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DynamicSetCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DynamicSetCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DynamicSetCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of dynamic sets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of dynamic sets. + * @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 DynamicSetCollection build() { + DynamicSetCollection model = new DynamicSetCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DynamicSetCollection 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 dynamic sets. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of dynamic sets. + * @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("DynamicSetCollection("); + 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 DynamicSetCollection)) { + return false; + } + + DynamicSetCollection other = (DynamicSetCollection) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSetSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSetSummary.java new file mode 100644 index 00000000000..6034452a300 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DynamicSetSummary.java @@ -0,0 +1,553 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides summary information for a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DynamicSetSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DynamicSetSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public DynamicSetSummary( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DynamicSet.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * User-friendly name for the dynamic set. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * User-specified description of the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * User-specified description of the dynamic set. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DynamicSet.LifecycleState lifecycleState; + + /** + * The current state of the dynamic set. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(DynamicSet.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DynamicSetSummary build() { + DynamicSetSummary model = + new DynamicSetSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DynamicSetSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * User-friendly name for the dynamic set. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * User-specified description of the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * User-specified description of the dynamic set. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DynamicSet.LifecycleState lifecycleState; + + /** + * The current state of the dynamic set. + * @return the value + **/ + public DynamicSet.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DynamicSetSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DynamicSetSummary)) { + return false; + } + + DynamicSetSummary other = (DynamicSetSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java index 985e4aeb3e6..7e9cc1b6928 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java @@ -49,6 +49,10 @@ value = SysadminEvent.class, name = "SYSADMIN" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SnapUpdateEvent.class, + name = "SNAP_UPDATE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = RebootEvent.class, name = "REBOOT"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ExploitAttemptEvent.class, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java index 8fd99c32a82..0ac7584898e 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java @@ -19,6 +19,7 @@ public enum EventType { ManagementStation("MANAGEMENT_STATION"), Sysadmin("SYSADMIN"), Reboot("REBOOT"), + SnapUpdate("SNAP_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/FreeFormTag.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/FreeFormTag.java new file mode 100644 index 00000000000..bf0d2a7993f --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/FreeFormTag.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * FreeForm tag assigned to a 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: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FreeFormTag.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 FreeFormTag extends Tag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + 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 FreeFormTag build() { + FreeFormTag model = new FreeFormTag(this.key, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FreeFormTag model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + 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 FreeFormTag(String key, String value) { + super(key, 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("FreeFormTag("); + 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 FreeFormTag)) { + return false; + } + + FreeFormTag other = (FreeFormTag) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnDynamicSetDetails.java new file mode 100644 index 00000000000..ba81262008b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnDynamicSetDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to install software packages on a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstallPackagesOnDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstallPackagesOnDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedInstances", "packageNames", "workRequestDetails"}) + public InstallPackagesOnDynamicSetDetails( + java.util.List managedInstances, + java.util.List packageNames, + WorkRequestDetails workRequestDetails) { + super(); + this.managedInstances = managedInstances; + this.packageNames = packageNames; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @param managedInstances the value to set + * @return this builder + **/ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + /** + * The list of package names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("packageNames") + private java.util.List packageNames; + + /** + * The list of package names. + * @param packageNames the value to set + * @return this builder + **/ + public Builder packageNames(java.util.List packageNames) { + this.packageNames = packageNames; + this.__explicitlySet__.add("packageNames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstallPackagesOnDynamicSetDetails build() { + InstallPackagesOnDynamicSetDetails model = + new InstallPackagesOnDynamicSetDetails( + this.managedInstances, this.packageNames, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstallPackagesOnDynamicSetDetails model) { + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("packageNames")) { + this.packageNames(model.getPackageNames()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @return the value + **/ + public java.util.List getManagedInstances() { + return managedInstances; + } + + /** + * The list of package names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("packageNames") + private final java.util.List packageNames; + + /** + * The list of package names. + * @return the value + **/ + public java.util.List getPackageNames() { + return packageNames; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstallPackagesOnDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", packageNames=").append(String.valueOf(this.packageNames)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallPackagesOnDynamicSetDetails)) { + return false; + } + + InstallPackagesOnDynamicSetDetails other = (InstallPackagesOnDynamicSetDetails) o; + return java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.packageNames, other.packageNames) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = (result * PRIME) + (this.packageNames == null ? 43 : this.packageNames.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallSnapDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallSnapDetails.java new file mode 100644 index 00000000000..b744afd312e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallSnapDetails.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to install a snap. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstallSnapDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstallSnapDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"channel", "isSigned", "mode", "name", "revision"}) + public InstallSnapDetails( + String channel, Boolean isSigned, SnapModes mode, String name, String revision) { + super(); + this.channel = channel; + this.isSigned = isSigned; + this.mode = mode; + this.name = name; + this.revision = revision; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private String channel; + + /** + * The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel). + * + * @param channel the value to set + * @return this builder + **/ + public Builder channel(String channel) { + this.channel = channel; + this.__explicitlySet__.add("channel"); + return this; + } + /** + * If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSigned") + private Boolean isSigned; + + /** + * If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + * @param isSigned the value to set + * @return this builder + **/ + public Builder isSigned(Boolean isSigned) { + this.isSigned = isSigned; + this.__explicitlySet__.add("isSigned"); + return this; + } + /** + * The confinement mode for the snap. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private SnapModes mode; + + /** + * The confinement mode for the snap. + * + * @param mode the value to set + * @return this builder + **/ + public Builder mode(SnapModes mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** + * The name of the snap to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the snap to install. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The snap revision to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private String revision; + + /** + * The snap revision to install. + * + * @param revision the value to set + * @return this builder + **/ + public Builder revision(String revision) { + this.revision = revision; + this.__explicitlySet__.add("revision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstallSnapDetails build() { + InstallSnapDetails model = + new InstallSnapDetails( + this.channel, this.isSigned, this.mode, this.name, this.revision); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstallSnapDetails model) { + if (model.wasPropertyExplicitlySet("channel")) { + this.channel(model.getChannel()); + } + if (model.wasPropertyExplicitlySet("isSigned")) { + this.isSigned(model.getIsSigned()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("revision")) { + this.revision(model.getRevision()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private final String channel; + + /** + * The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel). + * + * @return the value + **/ + public String getChannel() { + return channel; + } + + /** + * If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSigned") + private final Boolean isSigned; + + /** + * If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + * @return the value + **/ + public Boolean getIsSigned() { + return isSigned; + } + + /** + * The confinement mode for the snap. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final SnapModes mode; + + /** + * The confinement mode for the snap. + * + * @return the value + **/ + public SnapModes getMode() { + return mode; + } + + /** + * The name of the snap to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the snap to install. + * + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The snap revision to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private final String revision; + + /** + * The snap revision to install. + * + * @return the value + **/ + public String getRevision() { + return revision; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstallSnapDetails("); + sb.append("super=").append(super.toString()); + sb.append("channel=").append(String.valueOf(this.channel)); + sb.append(", isSigned=").append(String.valueOf(this.isSigned)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", revision=").append(String.valueOf(this.revision)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallSnapDetails)) { + return false; + } + + InstallSnapDetails other = (InstallSnapDetails) o; + return java.util.Objects.equals(this.channel, other.channel) + && java.util.Objects.equals(this.isSigned, other.isSigned) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.revision, other.revision) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.channel == null ? 43 : this.channel.hashCode()); + result = (result * PRIME) + (this.isSigned == null ? 43 : this.isSigned.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.revision == null ? 43 : this.revision.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallSnapsOnManagedInstanceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallSnapsOnManagedInstanceDetails.java new file mode 100644 index 00000000000..dd8db093c4b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallSnapsOnManagedInstanceDetails.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to install snaps to a managed instance. - snapDetails + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstallSnapsOnManagedInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstallSnapsOnManagedInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"snapDetails", "workRequestDetails"}) + public InstallSnapsOnManagedInstanceDetails( + java.util.List snapDetails, WorkRequestDetails workRequestDetails) { + super(); + this.snapDetails = snapDetails; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The array of snaps to install. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("snapDetails") + private java.util.List snapDetails; + + /** + * The array of snaps to install. + * @param snapDetails the value to set + * @return this builder + **/ + public Builder snapDetails(java.util.List snapDetails) { + this.snapDetails = snapDetails; + this.__explicitlySet__.add("snapDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstallSnapsOnManagedInstanceDetails build() { + InstallSnapsOnManagedInstanceDetails model = + new InstallSnapsOnManagedInstanceDetails( + this.snapDetails, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstallSnapsOnManagedInstanceDetails model) { + if (model.wasPropertyExplicitlySet("snapDetails")) { + this.snapDetails(model.getSnapDetails()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The array of snaps to install. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("snapDetails") + private final java.util.List snapDetails; + + /** + * The array of snaps to install. + * @return the value + **/ + public java.util.List getSnapDetails() { + return snapDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstallSnapsOnManagedInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("snapDetails=").append(String.valueOf(this.snapDetails)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallSnapsOnManagedInstanceDetails)) { + return false; + } + + InstallSnapsOnManagedInstanceDetails other = (InstallSnapsOnManagedInstanceDetails) o; + return java.util.Objects.equals(this.snapDetails, other.snapDetails) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.snapDetails == null ? 43 : this.snapDetails.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java index 729590cebf0..8893a79d681 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java @@ -59,7 +59,9 @@ public final class ManagedInstance extends com.oracle.bmc.http.internal.Explicit "notificationTopicId", "autonomousSettings", "isManagedByAutonomousLinux", - "agentVersion" + "agentVersion", + "areSourcesManaged", + "timeLastSoftwareRefresh" }) public ManagedInstance( String id, @@ -101,7 +103,9 @@ public ManagedInstance( String notificationTopicId, AutonomousSettings autonomousSettings, Boolean isManagedByAutonomousLinux, - String agentVersion) { + String agentVersion, + Boolean areSourcesManaged, + java.util.Date timeLastSoftwareRefresh) { super(); this.id = id; this.displayName = displayName; @@ -143,6 +147,8 @@ public ManagedInstance( this.autonomousSettings = autonomousSettings; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; this.agentVersion = agentVersion; + this.areSourcesManaged = areSourcesManaged; + this.timeLastSoftwareRefresh = timeLastSoftwareRefresh; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -779,6 +785,42 @@ public Builder agentVersion(String agentVersion) { this.__explicitlySet__.add("agentVersion"); return this; } + /** + * Controls whether OSMH manages software sources for this instance. This defaults to false for Ubuntu and Windows instances. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areSourcesManaged") + private Boolean areSourcesManaged; + + /** + * Controls whether OSMH manages software sources for this instance. This defaults to false for Ubuntu and Windows instances. + * + * @param areSourcesManaged the value to set + * @return this builder + **/ + public Builder areSourcesManaged(Boolean areSourcesManaged) { + this.areSourcesManaged = areSourcesManaged; + this.__explicitlySet__.add("areSourcesManaged"); + return this; + } + /** + * The date and time the instance's software information was last refreshed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSoftwareRefresh") + private java.util.Date timeLastSoftwareRefresh; + + /** + * The date and time the instance's software information was last refreshed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeLastSoftwareRefresh the value to set + * @return this builder + **/ + public Builder timeLastSoftwareRefresh(java.util.Date timeLastSoftwareRefresh) { + this.timeLastSoftwareRefresh = timeLastSoftwareRefresh; + this.__explicitlySet__.add("timeLastSoftwareRefresh"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -825,7 +867,9 @@ public ManagedInstance build() { this.notificationTopicId, this.autonomousSettings, this.isManagedByAutonomousLinux, - this.agentVersion); + this.agentVersion, + this.areSourcesManaged, + this.timeLastSoftwareRefresh); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -954,6 +998,12 @@ public Builder copy(ManagedInstance model) { if (model.wasPropertyExplicitlySet("agentVersion")) { this.agentVersion(model.getAgentVersion()); } + if (model.wasPropertyExplicitlySet("areSourcesManaged")) { + this.areSourcesManaged(model.getAreSourcesManaged()); + } + if (model.wasPropertyExplicitlySet("timeLastSoftwareRefresh")) { + this.timeLastSoftwareRefresh(model.getTimeLastSoftwareRefresh()); + } return this; } } @@ -1521,6 +1571,38 @@ public String getAgentVersion() { return agentVersion; } + /** + * Controls whether OSMH manages software sources for this instance. This defaults to false for Ubuntu and Windows instances. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("areSourcesManaged") + private final Boolean areSourcesManaged; + + /** + * Controls whether OSMH manages software sources for this instance. This defaults to false for Ubuntu and Windows instances. + * + * @return the value + **/ + public Boolean getAreSourcesManaged() { + return areSourcesManaged; + } + + /** + * The date and time the instance's software information was last refreshed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSoftwareRefresh") + private final java.util.Date timeLastSoftwareRefresh; + + /** + * The date and time the instance's software information was last refreshed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeLastSoftwareRefresh() { + return timeLastSoftwareRefresh; + } + @Override public String toString() { return this.toString(true); @@ -1582,6 +1664,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); sb.append(", agentVersion=").append(String.valueOf(this.agentVersion)); + sb.append(", areSourcesManaged=").append(String.valueOf(this.areSourcesManaged)); + sb.append(", timeLastSoftwareRefresh=") + .append(String.valueOf(this.timeLastSoftwareRefresh)); sb.append(")"); return sb.toString(); } @@ -1643,6 +1728,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) && java.util.Objects.equals(this.agentVersion, other.agentVersion) + && java.util.Objects.equals(this.areSourcesManaged, other.areSourcesManaged) + && java.util.Objects.equals( + this.timeLastSoftwareRefresh, other.timeLastSoftwareRefresh) && super.equals(other); } @@ -1768,6 +1856,14 @@ public int hashCode() { ? 43 : this.isManagedByAutonomousLinux.hashCode()); result = (result * PRIME) + (this.agentVersion == null ? 43 : this.agentVersion.hashCode()); + result = + (result * PRIME) + + (this.areSourcesManaged == null ? 43 : this.areSourcesManaged.hashCode()); + result = + (result * PRIME) + + (this.timeLastSoftwareRefresh == null + ? 43 + : this.timeLastSoftwareRefresh.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java index 7fc21fb4033..ba8ca4224fa 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java @@ -41,7 +41,8 @@ public final class ManagedInstanceSummary "notificationTopicId", "autonomousSettings", "isManagedByAutonomousLinux", - "agentVersion" + "agentVersion", + "timeLastBoot" }) public ManagedInstanceSummary( String id, @@ -62,7 +63,8 @@ public ManagedInstanceSummary( String notificationTopicId, AutonomousSettings autonomousSettings, Boolean isManagedByAutonomousLinux, - String agentVersion) { + String agentVersion, + java.util.Date timeLastBoot) { super(); this.id = id; this.displayName = displayName; @@ -83,6 +85,7 @@ public ManagedInstanceSummary( this.autonomousSettings = autonomousSettings; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; this.agentVersion = agentVersion; + this.timeLastBoot = timeLastBoot; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -371,6 +374,24 @@ public Builder agentVersion(String agentVersion) { this.__explicitlySet__.add("agentVersion"); return this; } + /** + * Time that the instance last booted (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastBoot") + private java.util.Date timeLastBoot; + + /** + * Time that the instance last booted (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeLastBoot the value to set + * @return this builder + **/ + public Builder timeLastBoot(java.util.Date timeLastBoot) { + this.timeLastBoot = timeLastBoot; + this.__explicitlySet__.add("timeLastBoot"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -396,7 +417,8 @@ public ManagedInstanceSummary build() { this.notificationTopicId, this.autonomousSettings, this.isManagedByAutonomousLinux, - this.agentVersion); + this.agentVersion, + this.timeLastBoot); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -462,6 +484,9 @@ public Builder copy(ManagedInstanceSummary model) { if (model.wasPropertyExplicitlySet("agentVersion")) { this.agentVersion(model.getAgentVersion()); } + if (model.wasPropertyExplicitlySet("timeLastBoot")) { + this.timeLastBoot(model.getTimeLastBoot()); + } return this; } } @@ -723,6 +748,22 @@ public String getAgentVersion() { return agentVersion; } + /** + * Time that the instance last booted (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastBoot") + private final java.util.Date timeLastBoot; + + /** + * Time that the instance last booted (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeLastBoot() { + return timeLastBoot; + } + @Override public String toString() { return this.toString(true); @@ -757,6 +798,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); sb.append(", agentVersion=").append(String.valueOf(this.agentVersion)); + sb.append(", timeLastBoot=").append(String.valueOf(this.timeLastBoot)); sb.append(")"); return sb.toString(); } @@ -791,6 +833,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) && java.util.Objects.equals(this.agentVersion, other.agentVersion) + && java.util.Objects.equals(this.timeLastBoot, other.timeLastBoot) && super.equals(other); } @@ -849,6 +892,7 @@ public int hashCode() { ? 43 : this.isManagedByAutonomousLinux.hashCode()); result = (result * PRIME) + (this.agentVersion == null ? 43 : this.agentVersion.hashCode()); + result = (result * PRIME) + (this.timeLastBoot == null ? 43 : this.timeLastBoot.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java index 4dfdfcc6640..97961be4d8d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java @@ -47,6 +47,8 @@ public final class ManagementStation extends com.oracle.bmc.http.internal.Explic "mirrorSize", "mirrorUniquePackageCount", "mirrorPackageCount", + "osFamily", + "archType", "freeformTags", "definedTags", "systemTags" @@ -77,6 +79,8 @@ public ManagementStation( Long mirrorSize, Integer mirrorUniquePackageCount, Integer mirrorPackageCount, + OsFamily osFamily, + ArchType archType, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -106,6 +110,8 @@ public ManagementStation( this.mirrorSize = mirrorSize; this.mirrorUniquePackageCount = mirrorUniquePackageCount; this.mirrorPackageCount = mirrorPackageCount; + this.osFamily = osFamily; + this.archType = archType; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -486,6 +492,38 @@ public Builder mirrorPackageCount(Integer mirrorPackageCount) { this.__explicitlySet__.add("mirrorPackageCount"); return this; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * @param osFamily the value to set + * @return this builder + **/ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * @param archType the value to set + * @return this builder + **/ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -583,6 +621,8 @@ public ManagementStation build() { this.mirrorSize, this.mirrorUniquePackageCount, this.mirrorPackageCount, + this.osFamily, + this.archType, this.freeformTags, this.definedTags, this.systemTags); @@ -669,6 +709,12 @@ public Builder copy(ManagementStation model) { if (model.wasPropertyExplicitlySet("mirrorPackageCount")) { this.mirrorPackageCount(model.getMirrorPackageCount()); } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1067,6 +1113,34 @@ public Integer getMirrorPackageCount() { return mirrorPackageCount; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * @return the value + **/ + public OsFamily getOsFamily() { + return osFamily; + } + + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * @return the value + **/ + public ArchType getArchType() { + return archType; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -1166,6 +1240,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", mirrorUniquePackageCount=") .append(String.valueOf(this.mirrorUniquePackageCount)); sb.append(", mirrorPackageCount=").append(String.valueOf(this.mirrorPackageCount)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1211,6 +1287,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.mirrorUniquePackageCount, other.mirrorUniquePackageCount) && java.util.Objects.equals(this.mirrorPackageCount, other.mirrorPackageCount) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1282,6 +1360,8 @@ public int hashCode() { + (this.mirrorPackageCount == null ? 43 : this.mirrorPackageCount.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java index a350e63901b..e89c7df23c8 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java @@ -38,6 +38,8 @@ public final class ManagementStationSummary "mirrorCapacity", "lifecycleState", "location", + "osFamily", + "archType", "freeformTags", "definedTags", "systemTags" @@ -58,6 +60,8 @@ public ManagementStationSummary( Integer mirrorCapacity, ManagementStation.LifecycleState lifecycleState, ManagedInstanceLocation location, + OsFamily osFamily, + ArchType archType, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -77,6 +81,8 @@ public ManagementStationSummary( this.mirrorCapacity = mirrorCapacity; this.lifecycleState = lifecycleState; this.location = location; + this.osFamily = osFamily; + this.archType = archType; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -324,6 +330,38 @@ public Builder location(ManagedInstanceLocation location) { this.__explicitlySet__.add("location"); return this; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * @param osFamily the value to set + * @return this builder + **/ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * @param archType the value to set + * @return this builder + **/ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -411,6 +449,8 @@ public ManagementStationSummary build() { this.mirrorCapacity, this.lifecycleState, this.location, + this.osFamily, + this.archType, this.freeformTags, this.definedTags, this.systemTags); @@ -467,6 +507,12 @@ public Builder copy(ManagementStationSummary model) { if (model.wasPropertyExplicitlySet("location")) { this.location(model.getLocation()); } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -701,6 +747,34 @@ public ManagedInstanceLocation getLocation() { return location; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * @return the value + **/ + public OsFamily getOsFamily() { + return osFamily; + } + + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * @return the value + **/ + public ArchType getArchType() { + return archType; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -788,6 +862,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", mirrorCapacity=").append(String.valueOf(this.mirrorCapacity)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", location=").append(String.valueOf(this.location)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -820,6 +896,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.mirrorCapacity, other.mirrorCapacity) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -859,6 +937,8 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MatchType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MatchType.java new file mode 100644 index 00000000000..8d4d64b4020 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MatchType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Include either all or any matching rules. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public enum MatchType { + Any("ANY"), + All("ALL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(MatchType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MatchType v : MatchType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MatchType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MatchType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MatchType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MatchingRule.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MatchingRule.java new file mode 100644 index 00000000000..4786aa6fbe6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MatchingRule.java @@ -0,0 +1,512 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * An object that defines the set of rules that identifies the target instances in a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MatchingRule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MatchingRule extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "tags", + "managedInstanceIds", + "managedInstanceGroupIds", + "displayNames", + "osNames", + "architectures", + "osFamilies", + "statuses", + "locations", + "isRebootRequired" + }) + public MatchingRule( + java.util.List tags, + java.util.List managedInstanceIds, + java.util.List managedInstanceGroupIds, + java.util.List displayNames, + java.util.List osNames, + java.util.List architectures, + java.util.List osFamilies, + java.util.List statuses, + java.util.List locations, + Boolean isRebootRequired) { + super(); + this.tags = tags; + this.managedInstanceIds = managedInstanceIds; + this.managedInstanceGroupIds = managedInstanceGroupIds; + this.displayNames = displayNames; + this.osNames = osNames; + this.architectures = architectures; + this.osFamilies = osFamilies; + this.statuses = statuses; + this.locations = locations; + this.isRebootRequired = isRebootRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of the managed instance tags. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tags") + private java.util.List tags; + + /** + * The list of the managed instance tags. + * @param tags the value to set + * @return this builder + **/ + public Builder tags(java.util.List tags) { + this.tags = tags; + this.__explicitlySet__.add("tags"); + return this; + } + /** + * The list of managed instance ids. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceIds") + private java.util.List managedInstanceIds; + + /** + * The list of managed instance ids. + * @param managedInstanceIds the value to set + * @return this builder + **/ + public Builder managedInstanceIds(java.util.List managedInstanceIds) { + this.managedInstanceIds = managedInstanceIds; + this.__explicitlySet__.add("managedInstanceIds"); + return this; + } + /** + * The list of managed instance group IDs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupIds") + private java.util.List managedInstanceGroupIds; + + /** + * The list of managed instance group IDs. + * @param managedInstanceGroupIds the value to set + * @return this builder + **/ + public Builder managedInstanceGroupIds(java.util.List managedInstanceGroupIds) { + this.managedInstanceGroupIds = managedInstanceGroupIds; + this.__explicitlySet__.add("managedInstanceGroupIds"); + return this; + } + /** + * The list of managed instance display names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayNames") + private java.util.List displayNames; + + /** + * The list of managed instance display names. + * @param displayNames the value to set + * @return this builder + **/ + public Builder displayNames(java.util.List displayNames) { + this.displayNames = displayNames; + this.__explicitlySet__.add("displayNames"); + return this; + } + /** + * The list of managed instance OS names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osNames") + private java.util.List osNames; + + /** + * The list of managed instance OS names. + * @param osNames the value to set + * @return this builder + **/ + public Builder osNames(java.util.List osNames) { + this.osNames = osNames; + this.__explicitlySet__.add("osNames"); + return this; + } + /** + * The list of managed instance architectures. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architectures") + private java.util.List architectures; + + /** + * The list of managed instance architectures. + * @param architectures the value to set + * @return this builder + **/ + public Builder architectures(java.util.List architectures) { + this.architectures = architectures; + this.__explicitlySet__.add("architectures"); + return this; + } + /** + * The list of managed instance OS families. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamilies") + private java.util.List osFamilies; + + /** + * The list of managed instance OS families. + * @param osFamilies the value to set + * @return this builder + **/ + public Builder osFamilies(java.util.List osFamilies) { + this.osFamilies = osFamilies; + this.__explicitlySet__.add("osFamilies"); + return this; + } + /** + * The list of managed instance statuses. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statuses") + private java.util.List statuses; + + /** + * The list of managed instance statuses. + * @param statuses the value to set + * @return this builder + **/ + public Builder statuses(java.util.List statuses) { + this.statuses = statuses; + this.__explicitlySet__.add("statuses"); + return this; + } + /** + * The list of managed instance locations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locations") + private java.util.List locations; + + /** + * The list of managed instance locations. + * @param locations the value to set + * @return this builder + **/ + public Builder locations(java.util.List locations) { + this.locations = locations; + this.__explicitlySet__.add("locations"); + return this; + } + /** + * Indicates if the managed instance needs to be rebooted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRebootRequired") + private Boolean isRebootRequired; + + /** + * Indicates if the managed instance needs to be rebooted. + * @param isRebootRequired the value to set + * @return this builder + **/ + public Builder isRebootRequired(Boolean isRebootRequired) { + this.isRebootRequired = isRebootRequired; + this.__explicitlySet__.add("isRebootRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MatchingRule build() { + MatchingRule model = + new MatchingRule( + this.tags, + this.managedInstanceIds, + this.managedInstanceGroupIds, + this.displayNames, + this.osNames, + this.architectures, + this.osFamilies, + this.statuses, + this.locations, + this.isRebootRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MatchingRule model) { + if (model.wasPropertyExplicitlySet("tags")) { + this.tags(model.getTags()); + } + if (model.wasPropertyExplicitlySet("managedInstanceIds")) { + this.managedInstanceIds(model.getManagedInstanceIds()); + } + if (model.wasPropertyExplicitlySet("managedInstanceGroupIds")) { + this.managedInstanceGroupIds(model.getManagedInstanceGroupIds()); + } + if (model.wasPropertyExplicitlySet("displayNames")) { + this.displayNames(model.getDisplayNames()); + } + if (model.wasPropertyExplicitlySet("osNames")) { + this.osNames(model.getOsNames()); + } + if (model.wasPropertyExplicitlySet("architectures")) { + this.architectures(model.getArchitectures()); + } + if (model.wasPropertyExplicitlySet("osFamilies")) { + this.osFamilies(model.getOsFamilies()); + } + if (model.wasPropertyExplicitlySet("statuses")) { + this.statuses(model.getStatuses()); + } + if (model.wasPropertyExplicitlySet("locations")) { + this.locations(model.getLocations()); + } + if (model.wasPropertyExplicitlySet("isRebootRequired")) { + this.isRebootRequired(model.getIsRebootRequired()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of the managed instance tags. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tags") + private final java.util.List tags; + + /** + * The list of the managed instance tags. + * @return the value + **/ + public java.util.List getTags() { + return tags; + } + + /** + * The list of managed instance ids. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceIds") + private final java.util.List managedInstanceIds; + + /** + * The list of managed instance ids. + * @return the value + **/ + public java.util.List getManagedInstanceIds() { + return managedInstanceIds; + } + + /** + * The list of managed instance group IDs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupIds") + private final java.util.List managedInstanceGroupIds; + + /** + * The list of managed instance group IDs. + * @return the value + **/ + public java.util.List getManagedInstanceGroupIds() { + return managedInstanceGroupIds; + } + + /** + * The list of managed instance display names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayNames") + private final java.util.List displayNames; + + /** + * The list of managed instance display names. + * @return the value + **/ + public java.util.List getDisplayNames() { + return displayNames; + } + + /** + * The list of managed instance OS names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osNames") + private final java.util.List osNames; + + /** + * The list of managed instance OS names. + * @return the value + **/ + public java.util.List getOsNames() { + return osNames; + } + + /** + * The list of managed instance architectures. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("architectures") + private final java.util.List architectures; + + /** + * The list of managed instance architectures. + * @return the value + **/ + public java.util.List getArchitectures() { + return architectures; + } + + /** + * The list of managed instance OS families. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamilies") + private final java.util.List osFamilies; + + /** + * The list of managed instance OS families. + * @return the value + **/ + public java.util.List getOsFamilies() { + return osFamilies; + } + + /** + * The list of managed instance statuses. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("statuses") + private final java.util.List statuses; + + /** + * The list of managed instance statuses. + * @return the value + **/ + public java.util.List getStatuses() { + return statuses; + } + + /** + * The list of managed instance locations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locations") + private final java.util.List locations; + + /** + * The list of managed instance locations. + * @return the value + **/ + public java.util.List getLocations() { + return locations; + } + + /** + * Indicates if the managed instance needs to be rebooted. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRebootRequired") + private final Boolean isRebootRequired; + + /** + * Indicates if the managed instance needs to be rebooted. + * @return the value + **/ + public Boolean getIsRebootRequired() { + return isRebootRequired; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MatchingRule("); + sb.append("super=").append(super.toString()); + sb.append("tags=").append(String.valueOf(this.tags)); + sb.append(", managedInstanceIds=").append(String.valueOf(this.managedInstanceIds)); + sb.append(", managedInstanceGroupIds=") + .append(String.valueOf(this.managedInstanceGroupIds)); + sb.append(", displayNames=").append(String.valueOf(this.displayNames)); + sb.append(", osNames=").append(String.valueOf(this.osNames)); + sb.append(", architectures=").append(String.valueOf(this.architectures)); + sb.append(", osFamilies=").append(String.valueOf(this.osFamilies)); + sb.append(", statuses=").append(String.valueOf(this.statuses)); + sb.append(", locations=").append(String.valueOf(this.locations)); + sb.append(", isRebootRequired=").append(String.valueOf(this.isRebootRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MatchingRule)) { + return false; + } + + MatchingRule other = (MatchingRule) o; + return java.util.Objects.equals(this.tags, other.tags) + && java.util.Objects.equals(this.managedInstanceIds, other.managedInstanceIds) + && java.util.Objects.equals( + this.managedInstanceGroupIds, other.managedInstanceGroupIds) + && java.util.Objects.equals(this.displayNames, other.displayNames) + && java.util.Objects.equals(this.osNames, other.osNames) + && java.util.Objects.equals(this.architectures, other.architectures) + && java.util.Objects.equals(this.osFamilies, other.osFamilies) + && java.util.Objects.equals(this.statuses, other.statuses) + && java.util.Objects.equals(this.locations, other.locations) + && java.util.Objects.equals(this.isRebootRequired, other.isRebootRequired) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.tags == null ? 43 : this.tags.hashCode()); + result = + (result * PRIME) + + (this.managedInstanceIds == null + ? 43 + : this.managedInstanceIds.hashCode()); + result = + (result * PRIME) + + (this.managedInstanceGroupIds == null + ? 43 + : this.managedInstanceGroupIds.hashCode()); + result = (result * PRIME) + (this.displayNames == null ? 43 : this.displayNames.hashCode()); + result = (result * PRIME) + (this.osNames == null ? 43 : this.osNames.hashCode()); + result = + (result * PRIME) + + (this.architectures == null ? 43 : this.architectures.hashCode()); + result = (result * PRIME) + (this.osFamilies == null ? 43 : this.osFamilies.hashCode()); + result = (result * PRIME) + (this.statuses == null ? 43 : this.statuses.hashCode()); + result = (result * PRIME) + (this.locations == null ? 43 : this.locations.hashCode()); + result = + (result * PRIME) + + (this.isRebootRequired == null ? 43 : this.isRebootRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java index efdc0982c82..24cf157de2f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java @@ -17,12 +17,14 @@ public enum MetricName { WarningInstanceCount("WARNING_INSTANCE_COUNT"), UnreachableInstanceCount("UNREACHABLE_INSTANCE_COUNT"), RegistrationFailedInstanceCount("REGISTRATION_FAILED_INSTANCE_COUNT"), + InstanceWithAvailableOtherUpdatesCount("INSTANCE_WITH_AVAILABLE_OTHER_UPDATES_COUNT"), DeletingInstanceCount("DELETING_INSTANCE_COUNT"), OnboardingInstanceCount("ONBOARDING_INSTANCE_COUNT"), InstanceSecurityUpdatesCount("INSTANCE_SECURITY_UPDATES_COUNT"), InstanceBugfixUpdatesCount("INSTANCE_BUGFIX_UPDATES_COUNT"), InstanceSecurityAdvisoryCount("INSTANCE_SECURITY_ADVISORY_COUNT"), InstanceBugfixAdvisoryCount("INSTANCE_BUGFIX_ADVISORY_COUNT"), + InstanceOtherUpdatesCount("INSTANCE_OTHER_UPDATES_COUNT"), RebootingInstanceCount("REBOOTING_INSTANCE_COUNT"), NeedsRebootingInstanceCount("NEEDS_REBOOTING_INSTANCE_COUNT"), diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java index 8c78e288ea7..b8f118b66c9 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java @@ -16,6 +16,7 @@ public enum OperationStatus { Succeeded("SUCCEEDED"), Canceling("CANCELING"), Canceled("CANCELED"), + Skipped("SKIPPED"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java index 090566e6e16..1f7631514e8 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java @@ -33,6 +33,9 @@ public enum OperationTypes { InstallOtherWindowsUpdates("INSTALL_OTHER_WINDOWS_UPDATES"), Reboot("REBOOT"), RerunWorkRequest("RERUN_WORK_REQUEST"), + InstallSnaps("INSTALL_SNAPS"), + RemoveSnaps("REMOVE_SNAPS"), + SwitchSnapChannel("SWITCH_SNAP_CHANNEL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsFamily.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsFamily.java index 87866a204b7..a20724a212d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsFamily.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsFamily.java @@ -9,6 +9,7 @@ **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") public enum OsFamily { + OracleLinux10("ORACLE_LINUX_10"), OracleLinux9("ORACLE_LINUX_9"), OracleLinux8("ORACLE_LINUX_8"), OracleLinux7("ORACLE_LINUX_7"), @@ -16,7 +17,12 @@ public enum OsFamily { WindowsServer2016("WINDOWS_SERVER_2016"), WindowsServer2019("WINDOWS_SERVER_2019"), WindowsServer2022("WINDOWS_SERVER_2022"), + WindowsServer2025("WINDOWS_SERVER_2025"), + Windows11("WINDOWS_11"), All("ALL"), + Ubuntu2004("UBUNTU_20_04"), + Ubuntu2204("UBUNTU_22_04"), + Ubuntu2404("UBUNTU_24_04"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsName.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsName.java new file mode 100644 index 00000000000..6fb5815d2fb --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OsName.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Operating System names + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public enum OsName { + OracleLinux("ORACLE_LINUX"), + Ubuntu("UBUNTU"), + WindowsServer("WINDOWS_SERVER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(OsName.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OsName v : OsName.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OsName(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OsName create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn("Received unknown value '{}' for enum 'OsName', returning UnknownEnumValue", key); + return UnknownEnumValue; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PreviewManagedInstancesDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PreviewManagedInstancesDetails.java new file mode 100644 index 00000000000..fef7c1654f4 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PreviewManagedInstancesDetails.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * PreviewManagedInstancesDetails. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PreviewManagedInstancesDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PreviewManagedInstancesDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetCompartments", + "matchType", + "matchingRule", + "freeformTags", + "definedTags" + }) + public PreviewManagedInstancesDetails( + java.util.List targetCompartments, + MatchType matchType, + MatchingRule matchingRule, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.targetCompartments = targetCompartments; + this.matchType = matchType; + this.matchingRule = matchingRule; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private java.util.List targetCompartments; + + /** + * The list of compartment details. + * @param targetCompartments the value to set + * @return this builder + **/ + public Builder targetCompartments( + java.util.List targetCompartments) { + this.targetCompartments = targetCompartments; + this.__explicitlySet__.add("targetCompartments"); + return this; + } + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private MatchType matchType; + + /** + * Include either any or all attributes. + * @param matchType the value to set + * @return this builder + **/ + public Builder matchType(MatchType matchType) { + this.matchType = matchType; + this.__explicitlySet__.add("matchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private MatchingRule matchingRule; + + public Builder matchingRule(MatchingRule matchingRule) { + this.matchingRule = matchingRule; + this.__explicitlySet__.add("matchingRule"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PreviewManagedInstancesDetails build() { + PreviewManagedInstancesDetails model = + new PreviewManagedInstancesDetails( + this.targetCompartments, + this.matchType, + this.matchingRule, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PreviewManagedInstancesDetails model) { + if (model.wasPropertyExplicitlySet("targetCompartments")) { + this.targetCompartments(model.getTargetCompartments()); + } + if (model.wasPropertyExplicitlySet("matchType")) { + this.matchType(model.getMatchType()); + } + if (model.wasPropertyExplicitlySet("matchingRule")) { + this.matchingRule(model.getMatchingRule()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private final java.util.List targetCompartments; + + /** + * The list of compartment details. + * @return the value + **/ + public java.util.List getTargetCompartments() { + return targetCompartments; + } + + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private final MatchType matchType; + + /** + * Include either any or all attributes. + * @return the value + **/ + public MatchType getMatchType() { + return matchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private final MatchingRule matchingRule; + + public MatchingRule getMatchingRule() { + return matchingRule; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PreviewManagedInstancesDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetCompartments=").append(String.valueOf(this.targetCompartments)); + sb.append(", matchType=").append(String.valueOf(this.matchType)); + sb.append(", matchingRule=").append(String.valueOf(this.matchingRule)); + 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 PreviewManagedInstancesDetails)) { + return false; + } + + PreviewManagedInstancesDetails other = (PreviewManagedInstancesDetails) o; + return java.util.Objects.equals(this.targetCompartments, other.targetCompartments) + && java.util.Objects.equals(this.matchType, other.matchType) + && java.util.Objects.equals(this.matchingRule, other.matchingRule) + && 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.targetCompartments == null + ? 43 + : this.targetCompartments.hashCode()); + result = (result * PRIME) + (this.matchType == null ? 43 : this.matchType.hashCode()); + result = (result * PRIME) + (this.matchingRule == null ? 43 : this.matchingRule.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java index 95505664952..2c42332462c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java @@ -26,6 +26,10 @@ value = WindowsStandaloneProfile.class, name = "WINDOWS_STANDALONE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UbuntuStandaloneProfile.class, + name = "UBUNTU_STANDALONE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = LifecycleProfile.class, name = "LIFECYCLE" diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileType.java index 9ec66bb96d6..85fdaddbc29 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileType.java @@ -14,6 +14,7 @@ public enum ProfileType { Lifecycle("LIFECYCLE"), Station("STATION"), WindowsStandalone("WINDOWS_STANDALONE"), + UbuntuStandalone("UBUNTU_STANDALONE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootDynamicSetDetails.java new file mode 100644 index 00000000000..d5e4f313ee9 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootDynamicSetDetails.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used for the reboot job. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RebootDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RebootDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "rebootTimeoutInMins", + "managedInstances", + "workRequestDetails" + }) + public RebootDynamicSetDetails( + Integer rebootTimeoutInMins, + java.util.List managedInstances, + WorkRequestDetails workRequestDetails) { + super(); + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.managedInstances = managedInstances; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot + * within this time, the reboot job status is set to failed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot + * within this time, the reboot job status is set to failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + **/ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @param managedInstances the value to set + * @return this builder + **/ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RebootDynamicSetDetails build() { + RebootDynamicSetDetails model = + new RebootDynamicSetDetails( + this.rebootTimeoutInMins, + this.managedInstances, + this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RebootDynamicSetDetails model) { + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot + * within this time, the reboot job status is set to failed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot + * within this time, the reboot job status is set to failed. + * + * @return the value + **/ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @return the value + **/ + public java.util.List getManagedInstances() { + return managedInstances; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RebootDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootDynamicSetDetails)) { + return false; + } + + RebootDynamicSetDetails other = (RebootDynamicSetDetails) o; + return java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java index a2bf74e4116..07f45a40f0f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * PProvides the information used for the reboot job. + * Provides the information used for the reboot job. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromDynamicSetDetails.java new file mode 100644 index 00000000000..bd6a9d8d7ea --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromDynamicSetDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to remove software packages from a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemovePackagesFromDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RemovePackagesFromDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedInstances", "packageNames", "workRequestDetails"}) + public RemovePackagesFromDynamicSetDetails( + java.util.List managedInstances, + java.util.List packageNames, + WorkRequestDetails workRequestDetails) { + super(); + this.managedInstances = managedInstances; + this.packageNames = packageNames; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @param managedInstances the value to set + * @return this builder + **/ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + /** + * The list of package names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("packageNames") + private java.util.List packageNames; + + /** + * The list of package names. + * @param packageNames the value to set + * @return this builder + **/ + public Builder packageNames(java.util.List packageNames) { + this.packageNames = packageNames; + this.__explicitlySet__.add("packageNames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemovePackagesFromDynamicSetDetails build() { + RemovePackagesFromDynamicSetDetails model = + new RemovePackagesFromDynamicSetDetails( + this.managedInstances, this.packageNames, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemovePackagesFromDynamicSetDetails model) { + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("packageNames")) { + this.packageNames(model.getPackageNames()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @return the value + **/ + public java.util.List getManagedInstances() { + return managedInstances; + } + + /** + * The list of package names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("packageNames") + private final java.util.List packageNames; + + /** + * The list of package names. + * @return the value + **/ + public java.util.List getPackageNames() { + return packageNames; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemovePackagesFromDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", packageNames=").append(String.valueOf(this.packageNames)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemovePackagesFromDynamicSetDetails)) { + return false; + } + + RemovePackagesFromDynamicSetDetails other = (RemovePackagesFromDynamicSetDetails) o; + return java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.packageNames, other.packageNames) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = (result * PRIME) + (this.packageNames == null ? 43 : this.packageNames.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemoveSnapDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemoveSnapDetails.java new file mode 100644 index 00000000000..61321e52cc6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemoveSnapDetails.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to remove a snap. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveSnapDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RemoveSnapDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "revision"}) + public RemoveSnapDetails(String name, String revision) { + super(); + this.name = name; + this.revision = revision; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the snap to remove. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the snap to remove. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The revision to remove. Note: This option cannot be used when removing multiple snaps. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private String revision; + + /** + * The revision to remove. Note: This option cannot be used when removing multiple snaps. + * + * @param revision the value to set + * @return this builder + **/ + public Builder revision(String revision) { + this.revision = revision; + this.__explicitlySet__.add("revision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveSnapDetails build() { + RemoveSnapDetails model = new RemoveSnapDetails(this.name, this.revision); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveSnapDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("revision")) { + this.revision(model.getRevision()); + } + 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 snap to remove. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the snap to remove. + * + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The revision to remove. Note: This option cannot be used when removing multiple snaps. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private final String revision; + + /** + * The revision to remove. Note: This option cannot be used when removing multiple snaps. + * + * @return the value + **/ + public String getRevision() { + return revision; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveSnapDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", revision=").append(String.valueOf(this.revision)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveSnapDetails)) { + return false; + } + + RemoveSnapDetails other = (RemoveSnapDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.revision, other.revision) + && 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.revision == null ? 43 : this.revision.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemoveSnapsFromManagedInstanceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemoveSnapsFromManagedInstanceDetails.java new file mode 100644 index 00000000000..4c3b76cde4b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemoveSnapsFromManagedInstanceDetails.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to install snaps from a managed instance. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveSnapsFromManagedInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RemoveSnapsFromManagedInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"snapDetails", "workRequestDetails"}) + public RemoveSnapsFromManagedInstanceDetails( + java.util.List snapDetails, WorkRequestDetails workRequestDetails) { + super(); + this.snapDetails = snapDetails; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The array of snaps to remove. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("snapDetails") + private java.util.List snapDetails; + + /** + * The array of snaps to remove. + * @param snapDetails the value to set + * @return this builder + **/ + public Builder snapDetails(java.util.List snapDetails) { + this.snapDetails = snapDetails; + this.__explicitlySet__.add("snapDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveSnapsFromManagedInstanceDetails build() { + RemoveSnapsFromManagedInstanceDetails model = + new RemoveSnapsFromManagedInstanceDetails( + this.snapDetails, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveSnapsFromManagedInstanceDetails model) { + if (model.wasPropertyExplicitlySet("snapDetails")) { + this.snapDetails(model.getSnapDetails()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The array of snaps to remove. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("snapDetails") + private final java.util.List snapDetails; + + /** + * The array of snaps to remove. + * @return the value + **/ + public java.util.List getSnapDetails() { + return snapDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveSnapsFromManagedInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("snapDetails=").append(String.valueOf(this.snapDetails)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveSnapsFromManagedInstanceDetails)) { + return false; + } + + RemoveSnapsFromManagedInstanceDetails other = (RemoveSnapsFromManagedInstanceDetails) o; + return java.util.Objects.equals(this.snapDetails, other.snapDetails) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.snapDetails == null ? 43 : this.snapDetails.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java index 26d64a82dda..004aacda2ed 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java @@ -33,6 +33,7 @@ public final class ScheduledJob extends com.oracle.bmc.http.internal.ExplicitlyS "managedInstanceGroupIds", "managedCompartmentIds", "lifecycleStageIds", + "dynamicSetIds", "isSubcompartmentIncluded", "operations", "workRequestIds", @@ -61,6 +62,7 @@ public ScheduledJob( java.util.List managedInstanceGroupIds, java.util.List managedCompartmentIds, java.util.List lifecycleStageIds, + java.util.List dynamicSetIds, Boolean isSubcompartmentIncluded, java.util.List operations, java.util.List workRequestIds, @@ -88,6 +90,7 @@ public ScheduledJob( this.managedInstanceGroupIds = managedInstanceGroupIds; this.managedCompartmentIds = managedCompartmentIds; this.lifecycleStageIds = lifecycleStageIds; + this.dynamicSetIds = dynamicSetIds; this.isSubcompartmentIncluded = isSubcompartmentIncluded; this.operations = operations; this.workRequestIds = workRequestIds; @@ -234,13 +237,19 @@ public Builder timeLastExecution(java.util.Date timeLastExecution) { return this; } /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("recurringRule") private String recurringRule; /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * * @param recurringRule the value to set * @return this builder **/ @@ -306,7 +315,7 @@ public Builder managedCompartmentIds(java.util.List managedCompartmentId /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageIds") @@ -315,7 +324,7 @@ public Builder managedCompartmentIds(java.util.List managedCompartmentId /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * * @param lifecycleStageIds the value to set * @return this builder @@ -325,6 +334,28 @@ public Builder lifecycleStageIds(java.util.List lifecycleStageIds) { this.__explicitlySet__.add("lifecycleStageIds"); return this; } + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicSetIds") + private java.util.List dynamicSetIds; + + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * + * @param dynamicSetIds the value to set + * @return this builder + **/ + public Builder dynamicSetIds(java.util.List dynamicSetIds) { + this.dynamicSetIds = dynamicSetIds; + this.__explicitlySet__.add("dynamicSetIds"); + return this; + } /** * Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment). * @@ -604,6 +635,7 @@ public ScheduledJob build() { this.managedInstanceGroupIds, this.managedCompartmentIds, this.lifecycleStageIds, + this.dynamicSetIds, this.isSubcompartmentIncluded, this.operations, this.workRequestIds, @@ -664,6 +696,9 @@ public Builder copy(ScheduledJob model) { if (model.wasPropertyExplicitlySet("lifecycleStageIds")) { this.lifecycleStageIds(model.getLifecycleStageIds()); } + if (model.wasPropertyExplicitlySet("dynamicSetIds")) { + this.dynamicSetIds(model.getDynamicSetIds()); + } if (model.wasPropertyExplicitlySet("isSubcompartmentIncluded")) { this.isSubcompartmentIncluded(model.getIsSubcompartmentIncluded()); } @@ -831,13 +866,19 @@ public java.util.Date getTimeLastExecution() { } /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("recurringRule") private final String recurringRule; /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * * @return the value **/ public String getRecurringRule() { @@ -895,7 +936,7 @@ public java.util.List getManagedCompartmentIds() { /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageIds") @@ -904,7 +945,7 @@ public java.util.List getManagedCompartmentIds() { /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * * @return the value **/ @@ -912,6 +953,26 @@ public java.util.List getLifecycleStageIds() { return lifecycleStageIds; } + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicSetIds") + private final java.util.List dynamicSetIds; + + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * + * @return the value + **/ + public java.util.List getDynamicSetIds() { + return dynamicSetIds; + } + /** * Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment). * @@ -1225,6 +1286,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.managedInstanceGroupIds)); sb.append(", managedCompartmentIds=").append(String.valueOf(this.managedCompartmentIds)); sb.append(", lifecycleStageIds=").append(String.valueOf(this.lifecycleStageIds)); + sb.append(", dynamicSetIds=").append(String.valueOf(this.dynamicSetIds)); sb.append(", isSubcompartmentIncluded=") .append(String.valueOf(this.isSubcompartmentIncluded)); sb.append(", operations=").append(String.valueOf(this.operations)); @@ -1268,6 +1330,7 @@ public boolean equals(Object o) { this.managedInstanceGroupIds, other.managedInstanceGroupIds) && java.util.Objects.equals(this.managedCompartmentIds, other.managedCompartmentIds) && java.util.Objects.equals(this.lifecycleStageIds, other.lifecycleStageIds) + && java.util.Objects.equals(this.dynamicSetIds, other.dynamicSetIds) && java.util.Objects.equals( this.isSubcompartmentIncluded, other.isSubcompartmentIncluded) && java.util.Objects.equals(this.operations, other.operations) @@ -1325,6 +1388,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleStageIds == null ? 43 : this.lifecycleStageIds.hashCode()); + result = + (result * PRIME) + + (this.dynamicSetIds == null ? 43 : this.dynamicSetIds.hashCode()); result = (result * PRIME) + (this.isSubcompartmentIncluded == null diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java index a01aaa8fb53..2bfd9d028db 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java @@ -29,7 +29,10 @@ public final class ScheduledJobOperation "manageModuleStreamsDetails", "switchModuleStreamsDetails", "softwareSourceIds", - "rebootTimeoutInMins" + "rebootTimeoutInMins", + "installSnapDetails", + "removeSnapDetails", + "switchSnapChannelDetails" }) public ScheduledJobOperation( OperationTypes operationType, @@ -38,7 +41,10 @@ public ScheduledJobOperation( ManageModuleStreamsInScheduledJobDetails manageModuleStreamsDetails, ModuleStreamDetails switchModuleStreamsDetails, java.util.List softwareSourceIds, - Integer rebootTimeoutInMins) { + Integer rebootTimeoutInMins, + InstallSnapDetails installSnapDetails, + RemoveSnapDetails removeSnapDetails, + SwitchSnapChannelDetails switchSnapChannelDetails) { super(); this.operationType = operationType; this.packageNames = packageNames; @@ -47,6 +53,9 @@ public ScheduledJobOperation( this.switchModuleStreamsDetails = switchModuleStreamsDetails; this.softwareSourceIds = softwareSourceIds; this.rebootTimeoutInMins = rebootTimeoutInMins; + this.installSnapDetails = installSnapDetails; + this.removeSnapDetails = removeSnapDetails; + this.switchSnapChannelDetails = switchSnapChannelDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -165,6 +174,33 @@ public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("installSnapDetails") + private InstallSnapDetails installSnapDetails; + + public Builder installSnapDetails(InstallSnapDetails installSnapDetails) { + this.installSnapDetails = installSnapDetails; + this.__explicitlySet__.add("installSnapDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("removeSnapDetails") + private RemoveSnapDetails removeSnapDetails; + + public Builder removeSnapDetails(RemoveSnapDetails removeSnapDetails) { + this.removeSnapDetails = removeSnapDetails; + this.__explicitlySet__.add("removeSnapDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("switchSnapChannelDetails") + private SwitchSnapChannelDetails switchSnapChannelDetails; + + public Builder switchSnapChannelDetails(SwitchSnapChannelDetails switchSnapChannelDetails) { + this.switchSnapChannelDetails = switchSnapChannelDetails; + this.__explicitlySet__.add("switchSnapChannelDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -177,7 +213,10 @@ public ScheduledJobOperation build() { this.manageModuleStreamsDetails, this.switchModuleStreamsDetails, this.softwareSourceIds, - this.rebootTimeoutInMins); + this.rebootTimeoutInMins, + this.installSnapDetails, + this.removeSnapDetails, + this.switchSnapChannelDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -207,6 +246,15 @@ public Builder copy(ScheduledJobOperation model) { if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); } + if (model.wasPropertyExplicitlySet("installSnapDetails")) { + this.installSnapDetails(model.getInstallSnapDetails()); + } + if (model.wasPropertyExplicitlySet("removeSnapDetails")) { + this.removeSnapDetails(model.getRemoveSnapDetails()); + } + if (model.wasPropertyExplicitlySet("switchSnapChannelDetails")) { + this.switchSnapChannelDetails(model.getSwitchSnapChannelDetails()); + } return this; } } @@ -320,6 +368,27 @@ public Integer getRebootTimeoutInMins() { return rebootTimeoutInMins; } + @com.fasterxml.jackson.annotation.JsonProperty("installSnapDetails") + private final InstallSnapDetails installSnapDetails; + + public InstallSnapDetails getInstallSnapDetails() { + return installSnapDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("removeSnapDetails") + private final RemoveSnapDetails removeSnapDetails; + + public RemoveSnapDetails getRemoveSnapDetails() { + return removeSnapDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("switchSnapChannelDetails") + private final SwitchSnapChannelDetails switchSnapChannelDetails; + + public SwitchSnapChannelDetails getSwitchSnapChannelDetails() { + return switchSnapChannelDetails; + } + @Override public String toString() { return this.toString(true); @@ -343,6 +412,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.switchModuleStreamsDetails)); sb.append(", softwareSourceIds=").append(String.valueOf(this.softwareSourceIds)); sb.append(", rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", installSnapDetails=").append(String.valueOf(this.installSnapDetails)); + sb.append(", removeSnapDetails=").append(String.valueOf(this.removeSnapDetails)); + sb.append(", switchSnapChannelDetails=") + .append(String.valueOf(this.switchSnapChannelDetails)); sb.append(")"); return sb.toString(); } @@ -366,6 +439,10 @@ public boolean equals(Object o) { this.switchModuleStreamsDetails, other.switchModuleStreamsDetails) && java.util.Objects.equals(this.softwareSourceIds, other.softwareSourceIds) && java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.installSnapDetails, other.installSnapDetails) + && java.util.Objects.equals(this.removeSnapDetails, other.removeSnapDetails) + && java.util.Objects.equals( + this.switchSnapChannelDetails, other.switchSnapChannelDetails) && super.equals(other); } @@ -400,6 +477,19 @@ public int hashCode() { + (this.rebootTimeoutInMins == null ? 43 : this.rebootTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.installSnapDetails == null + ? 43 + : this.installSnapDetails.hashCode()); + result = + (result * PRIME) + + (this.removeSnapDetails == null ? 43 : this.removeSnapDetails.hashCode()); + result = + (result * PRIME) + + (this.switchSnapChannelDetails == null + ? 43 + : this.switchSnapChannelDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java index 74a6ab57fd8..7c12bfa6bfc 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java @@ -35,6 +35,7 @@ public final class ScheduledJobSummary extends com.oracle.bmc.http.internal.Expl "managedInstanceGroupIds", "managedCompartmentIds", "lifecycleStageIds", + "dynamicSetIds", "operations", "lifecycleState", "isManagedByAutonomousLinux", @@ -59,6 +60,7 @@ public ScheduledJobSummary( java.util.List managedInstanceGroupIds, java.util.List managedCompartmentIds, java.util.List lifecycleStageIds, + java.util.List dynamicSetIds, java.util.List operations, ScheduledJob.LifecycleState lifecycleState, Boolean isManagedByAutonomousLinux, @@ -82,6 +84,7 @@ public ScheduledJobSummary( this.managedInstanceGroupIds = managedInstanceGroupIds; this.managedCompartmentIds = managedCompartmentIds; this.lifecycleStageIds = lifecycleStageIds; + this.dynamicSetIds = dynamicSetIds; this.operations = operations; this.lifecycleState = lifecycleState; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; @@ -242,7 +245,7 @@ public Builder timeLastExecution(java.util.Date timeLastExecution) { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceGroupIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceIds") @@ -251,7 +254,7 @@ public Builder timeLastExecution(java.util.Date timeLastExecution) { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceGroupIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * * @param managedInstanceIds the value to set * @return this builder @@ -264,7 +267,7 @@ public Builder managedInstanceIds(java.util.List managedInstanceIds) { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupIds") @@ -273,7 +276,7 @@ public Builder managedInstanceIds(java.util.List managedInstanceIds) { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * * @param managedInstanceGroupIds the value to set * @return this builder @@ -286,7 +289,7 @@ public Builder managedInstanceGroupIds(java.util.List managedInstanceGro /** * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds. + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedCompartmentIds") @@ -295,7 +298,7 @@ public Builder managedInstanceGroupIds(java.util.List managedInstanceGro /** * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds. + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, and dynamicSetIds. * * @param managedCompartmentIds the value to set * @return this builder @@ -308,7 +311,7 @@ public Builder managedCompartmentIds(java.util.List managedCompartmentId /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageIds") @@ -317,7 +320,7 @@ public Builder managedCompartmentIds(java.util.List managedCompartmentId /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * * @param lifecycleStageIds the value to set * @return this builder @@ -327,6 +330,28 @@ public Builder lifecycleStageIds(java.util.List lifecycleStageIds) { this.__explicitlySet__.add("lifecycleStageIds"); return this; } + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicSetIds") + private java.util.List dynamicSetIds; + + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds. + * + * @param dynamicSetIds the value to set + * @return this builder + **/ + public Builder dynamicSetIds(java.util.List dynamicSetIds) { + this.dynamicSetIds = dynamicSetIds; + this.__explicitlySet__.add("dynamicSetIds"); + return this; + } /** * The list of operations this scheduled job needs to perform. * A scheduled job supports only one operation type, unless it is one of the following: @@ -540,6 +565,7 @@ public ScheduledJobSummary build() { this.managedInstanceGroupIds, this.managedCompartmentIds, this.lifecycleStageIds, + this.dynamicSetIds, this.operations, this.lifecycleState, this.isManagedByAutonomousLinux, @@ -596,6 +622,9 @@ public Builder copy(ScheduledJobSummary model) { if (model.wasPropertyExplicitlySet("lifecycleStageIds")) { this.lifecycleStageIds(model.getLifecycleStageIds()); } + if (model.wasPropertyExplicitlySet("dynamicSetIds")) { + this.dynamicSetIds(model.getDynamicSetIds()); + } if (model.wasPropertyExplicitlySet("operations")) { this.operations(model.getOperations()); } @@ -767,7 +796,7 @@ public java.util.Date getTimeLastExecution() { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceGroupIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceIds") @@ -776,7 +805,7 @@ public java.util.Date getTimeLastExecution() { /** * The managed instance [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceGroupIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * * @return the value **/ @@ -787,7 +816,7 @@ public java.util.List getManagedInstanceIds() { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupIds") @@ -796,7 +825,7 @@ public java.util.List getManagedInstanceIds() { /** * The managed instance group [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedCompartmentIds, and lifecycleStageIds. + * managedInstanceIds, managedCompartmentIds, lifecycleStageIds, and dynamicSetIds. * * @return the value **/ @@ -807,7 +836,7 @@ public java.util.List getManagedInstanceGroupIds() { /** * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds. + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("managedCompartmentIds") @@ -816,7 +845,7 @@ public java.util.List getManagedInstanceGroupIds() { /** * The compartment [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds. + * managedInstanceIds, managedInstanceGroupIds, lifecycleStageIds, and dynamicSetIds. * * @return the value **/ @@ -827,7 +856,7 @@ public java.util.List getManagedCompartmentIds() { /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageIds") @@ -836,7 +865,7 @@ public java.util.List getManagedCompartmentIds() { /** * The lifecycle stage [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. * A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with - * managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. * * @return the value **/ @@ -844,6 +873,26 @@ public java.util.List getLifecycleStageIds() { return lifecycleStageIds; } + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dynamicSetIds") + private final java.util.List dynamicSetIds; + + /** + * The dynamic set [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. + * A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with + * managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds. + * + * @return the value + **/ + public java.util.List getDynamicSetIds() { + return dynamicSetIds; + } + /** * The list of operations this scheduled job needs to perform. * A scheduled job supports only one operation type, unless it is one of the following: @@ -1046,6 +1095,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.managedInstanceGroupIds)); sb.append(", managedCompartmentIds=").append(String.valueOf(this.managedCompartmentIds)); sb.append(", lifecycleStageIds=").append(String.valueOf(this.lifecycleStageIds)); + sb.append(", dynamicSetIds=").append(String.valueOf(this.dynamicSetIds)); sb.append(", operations=").append(String.valueOf(this.operations)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isManagedByAutonomousLinux=") @@ -1084,6 +1134,7 @@ public boolean equals(Object o) { this.managedInstanceGroupIds, other.managedInstanceGroupIds) && java.util.Objects.equals(this.managedCompartmentIds, other.managedCompartmentIds) && java.util.Objects.equals(this.lifecycleStageIds, other.lifecycleStageIds) + && java.util.Objects.equals(this.dynamicSetIds, other.dynamicSetIds) && java.util.Objects.equals(this.operations, other.operations) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals( @@ -1134,6 +1185,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleStageIds == null ? 43 : this.lifecycleStageIds.hashCode()); + result = + (result * PRIME) + + (this.dynamicSetIds == null ? 43 : this.dynamicSetIds.hashCode()); result = (result * PRIME) + (this.operations == null ? 43 : this.operations.hashCode()); result = (result * PRIME) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapCollection.java new file mode 100644 index 00000000000..16bad80f50f --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * The set of snaps returned for the + * {@link #listManagedInstanceSnaps(ListManagedInstanceSnapsRequest) listManagedInstanceSnaps} operation. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SnapCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SnapCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SnapCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of snaps. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of snaps. + * @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 SnapCollection build() { + SnapCollection model = new SnapCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SnapCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of snaps. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of snaps. + * @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("SnapCollection("); + 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 SnapCollection)) { + return false; + } + + SnapCollection other = (SnapCollection) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapModes.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapModes.java new file mode 100644 index 00000000000..de3999b98a8 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapModes.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * The mode to install the snap in (e.g. classic, jail). Note: This option cannot be used when installing multiple snaps. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public enum SnapModes { + Default("DEFAULT"), + Classic("CLASSIC"), + JailMode("JAIL_MODE"), + DevMode("DEV_MODE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(SnapModes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SnapModes v : SnapModes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SnapModes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SnapModes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SnapModes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapSpecDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapSpecDetails.java new file mode 100644 index 00000000000..93232dd6133 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapSpecDetails.java @@ -0,0 +1,358 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Details about a specific snap. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SnapSpecDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SnapSpecDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "channel", + "isSigned", + "mode", + "name", + "version", + "revision" + }) + public SnapSpecDetails( + String channel, + Boolean isSigned, + SnapModes mode, + String name, + String version, + String revision) { + super(); + this.channel = channel; + this.isSigned = isSigned; + this.mode = mode; + this.name = name; + this.version = version; + this.revision = revision; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The channel to install from (e.g. stable, edge, beta, candidate, or a custom channel). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private String channel; + + /** + * The channel to install from (e.g. stable, edge, beta, candidate, or a custom channel). + * + * @param channel the value to set + * @return this builder + **/ + public Builder channel(String channel) { + this.channel = channel; + this.__explicitlySet__.add("channel"); + return this; + } + /** + * If true, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSigned") + private Boolean isSigned; + + /** + * If true, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + * @param isSigned the value to set + * @return this builder + **/ + public Builder isSigned(Boolean isSigned) { + this.isSigned = isSigned; + this.__explicitlySet__.add("isSigned"); + return this; + } + /** + * The modes for the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private SnapModes mode; + + /** + * The modes for the snap. + * @param mode the value to set + * @return this builder + **/ + public Builder mode(SnapModes mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** + * The name of the snap to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the snap to install. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The version of the snap. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the snap. + * + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The revision to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private String revision; + + /** + * The revision to install. + * + * @param revision the value to set + * @return this builder + **/ + public Builder revision(String revision) { + this.revision = revision; + this.__explicitlySet__.add("revision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SnapSpecDetails build() { + SnapSpecDetails model = + new SnapSpecDetails( + this.channel, + this.isSigned, + this.mode, + this.name, + this.version, + this.revision); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SnapSpecDetails model) { + if (model.wasPropertyExplicitlySet("channel")) { + this.channel(model.getChannel()); + } + if (model.wasPropertyExplicitlySet("isSigned")) { + this.isSigned(model.getIsSigned()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("revision")) { + this.revision(model.getRevision()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The channel to install from (e.g. stable, edge, beta, candidate, or a custom channel). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private final String channel; + + /** + * The channel to install from (e.g. stable, edge, beta, candidate, or a custom channel). + * + * @return the value + **/ + public String getChannel() { + return channel; + } + + /** + * If true, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSigned") + private final Boolean isSigned; + + /** + * If true, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution. + * + * @return the value + **/ + public Boolean getIsSigned() { + return isSigned; + } + + /** + * The modes for the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final SnapModes mode; + + /** + * The modes for the snap. + * @return the value + **/ + public SnapModes getMode() { + return mode; + } + + /** + * The name of the snap to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the snap to install. + * + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The version of the snap. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the snap. + * + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * The revision to install. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private final String revision; + + /** + * The revision to install. + * + * @return the value + **/ + public String getRevision() { + return revision; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SnapSpecDetails("); + sb.append("super=").append(super.toString()); + sb.append("channel=").append(String.valueOf(this.channel)); + sb.append(", isSigned=").append(String.valueOf(this.isSigned)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", revision=").append(String.valueOf(this.revision)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SnapSpecDetails)) { + return false; + } + + SnapSpecDetails other = (SnapSpecDetails) o; + return java.util.Objects.equals(this.channel, other.channel) + && java.util.Objects.equals(this.isSigned, other.isSigned) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.revision, other.revision) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.channel == null ? 43 : this.channel.hashCode()); + result = (result * PRIME) + (this.isSigned == null ? 43 : this.isSigned.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.revision == null ? 43 : this.revision.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapSummary.java new file mode 100644 index 00000000000..d12be08f2bd --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapSummary.java @@ -0,0 +1,420 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides summary information for a snap. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SnapSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SnapSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "name", + "publisher", + "revision", + "storeUrl", + "timeRefreshed", + "version", + "tracking" + }) + public SnapSummary( + String description, + String name, + String publisher, + String revision, + String storeUrl, + java.util.Date timeRefreshed, + String version, + String tracking) { + super(); + this.description = description; + this.name = name; + this.publisher = publisher; + this.revision = revision; + this.storeUrl = storeUrl; + this.timeRefreshed = timeRefreshed; + this.version = version; + this.tracking = tracking; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The description of of snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of of snap. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The name of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the snap. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The publisher of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publisher") + private String publisher; + + /** + * The publisher of the snap. + * @param publisher the value to set + * @return this builder + **/ + public Builder publisher(String publisher) { + this.publisher = publisher; + this.__explicitlySet__.add("publisher"); + return this; + } + /** + * The revision number of the snap channel. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private String revision; + + /** + * The revision number of the snap channel. + * @param revision the value to set + * @return this builder + **/ + public Builder revision(String revision) { + this.revision = revision; + this.__explicitlySet__.add("revision"); + return this; + } + /** + * The snap's store url. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storeUrl") + private String storeUrl; + + /** + * The snap's store url. + * @param storeUrl the value to set + * @return this builder + **/ + public Builder storeUrl(String storeUrl) { + this.storeUrl = storeUrl; + this.__explicitlySet__.add("storeUrl"); + return this; + } + /** + * The date and time of the snap's last refresh in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRefreshed") + private java.util.Date timeRefreshed; + + /** + * The date and time of the snap's last refresh in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format. + * @param timeRefreshed the value to set + * @return this builder + **/ + public Builder timeRefreshed(java.util.Date timeRefreshed) { + this.timeRefreshed = timeRefreshed; + this.__explicitlySet__.add("timeRefreshed"); + return this; + } + /** + * The version of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the snap. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The track this snap is following. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tracking") + private String tracking; + + /** + * The track this snap is following. + * @param tracking the value to set + * @return this builder + **/ + public Builder tracking(String tracking) { + this.tracking = tracking; + this.__explicitlySet__.add("tracking"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SnapSummary build() { + SnapSummary model = + new SnapSummary( + this.description, + this.name, + this.publisher, + this.revision, + this.storeUrl, + this.timeRefreshed, + this.version, + this.tracking); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SnapSummary model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("publisher")) { + this.publisher(model.getPublisher()); + } + if (model.wasPropertyExplicitlySet("revision")) { + this.revision(model.getRevision()); + } + if (model.wasPropertyExplicitlySet("storeUrl")) { + this.storeUrl(model.getStoreUrl()); + } + if (model.wasPropertyExplicitlySet("timeRefreshed")) { + this.timeRefreshed(model.getTimeRefreshed()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("tracking")) { + this.tracking(model.getTracking()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The description of of snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of of snap. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The name of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the snap. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The publisher of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publisher") + private final String publisher; + + /** + * The publisher of the snap. + * @return the value + **/ + public String getPublisher() { + return publisher; + } + + /** + * The revision number of the snap channel. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("revision") + private final String revision; + + /** + * The revision number of the snap channel. + * @return the value + **/ + public String getRevision() { + return revision; + } + + /** + * The snap's store url. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storeUrl") + private final String storeUrl; + + /** + * The snap's store url. + * @return the value + **/ + public String getStoreUrl() { + return storeUrl; + } + + /** + * The date and time of the snap's last refresh in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRefreshed") + private final java.util.Date timeRefreshed; + + /** + * The date and time of the snap's last refresh in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format. + * @return the value + **/ + public java.util.Date getTimeRefreshed() { + return timeRefreshed; + } + + /** + * The version of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the snap. + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * The track this snap is following. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tracking") + private final String tracking; + + /** + * The track this snap is following. + * @return the value + **/ + public String getTracking() { + return tracking; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SnapSummary("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", publisher=").append(String.valueOf(this.publisher)); + sb.append(", revision=").append(String.valueOf(this.revision)); + sb.append(", storeUrl=").append(String.valueOf(this.storeUrl)); + sb.append(", timeRefreshed=").append(String.valueOf(this.timeRefreshed)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", tracking=").append(String.valueOf(this.tracking)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SnapSummary)) { + return false; + } + + SnapSummary other = (SnapSummary) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.publisher, other.publisher) + && java.util.Objects.equals(this.revision, other.revision) + && java.util.Objects.equals(this.storeUrl, other.storeUrl) + && java.util.Objects.equals(this.timeRefreshed, other.timeRefreshed) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.tracking, other.tracking) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.publisher == null ? 43 : this.publisher.hashCode()); + result = (result * PRIME) + (this.revision == null ? 43 : this.revision.hashCode()); + result = (result * PRIME) + (this.storeUrl == null ? 43 : this.storeUrl.hashCode()); + result = + (result * PRIME) + + (this.timeRefreshed == null ? 43 : this.timeRefreshed.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.tracking == null ? 43 : this.tracking.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapUpdateEvent.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapUpdateEvent.java new file mode 100644 index 00000000000..f7d5a1096d4 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapUpdateEvent.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides information for a snap update event. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SnapUpdateEvent.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 SnapUpdateEvent extends Event { + @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("eventSummary") + private String eventSummary; + + public Builder eventSummary(String eventSummary) { + this.eventSummary = eventSummary; + this.__explicitlySet__.add("eventSummary"); + 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("eventDetails") + private String eventDetails; + + public Builder eventDetails(String eventDetails) { + this.eventDetails = eventDetails; + this.__explicitlySet__.add("eventDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDetails") + private SystemDetails systemDetails; + + public Builder systemDetails(SystemDetails systemDetails) { + this.systemDetails = systemDetails; + this.__explicitlySet__.add("systemDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOccurred") + private java.util.Date timeOccurred; + + public Builder timeOccurred(java.util.Date timeOccurred) { + this.timeOccurred = timeOccurred; + this.__explicitlySet__.add("timeOccurred"); + 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("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("isManagedByAutonomousLinux") + private Boolean isManagedByAutonomousLinux; + + public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { + this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.__explicitlySet__.add("isManagedByAutonomousLinux"); + 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("data") + private SnapUpdateEventData data; + + public Builder data(SnapUpdateEventData data) { + this.data = data; + this.__explicitlySet__.add("data"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SnapUpdateEvent build() { + SnapUpdateEvent model = + new SnapUpdateEvent( + this.id, + this.eventSummary, + this.compartmentId, + this.eventDetails, + this.resourceId, + this.systemDetails, + this.timeOccurred, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.isManagedByAutonomousLinux, + this.freeformTags, + this.definedTags, + this.systemTags, + this.data); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SnapUpdateEvent model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("eventSummary")) { + this.eventSummary(model.getEventSummary()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("eventDetails")) { + this.eventDetails(model.getEventDetails()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("systemDetails")) { + this.systemDetails(model.getSystemDetails()); + } + if (model.wasPropertyExplicitlySet("timeOccurred")) { + this.timeOccurred(model.getTimeOccurred()); + } + 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("isManagedByAutonomousLinux")) { + this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); + } + 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("data")) { + this.data(model.getData()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SnapUpdateEvent( + String id, + String eventSummary, + String compartmentId, + String eventDetails, + String resourceId, + SystemDetails systemDetails, + java.util.Date timeOccurred, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + Boolean isManagedByAutonomousLinux, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + SnapUpdateEventData data) { + super( + id, + eventSummary, + compartmentId, + eventDetails, + resourceId, + systemDetails, + timeOccurred, + timeCreated, + timeUpdated, + lifecycleState, + lifecycleDetails, + isManagedByAutonomousLinux, + freeformTags, + definedTags, + systemTags); + this.data = data; + } + + @com.fasterxml.jackson.annotation.JsonProperty("data") + private final SnapUpdateEventData data; + + public SnapUpdateEventData getData() { + return data; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SnapUpdateEvent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", data=").append(String.valueOf(this.data)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SnapUpdateEvent)) { + return false; + } + + SnapUpdateEvent other = (SnapUpdateEvent) o; + return java.util.Objects.equals(this.data, other.data) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.data == null ? 43 : this.data.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapUpdateEventData.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapUpdateEventData.java new file mode 100644 index 00000000000..e7cec64ae93 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SnapUpdateEventData.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides additional information for a snap update event. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SnapUpdateEventData.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SnapUpdateEventData extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"operationType", "status", "additionalDetails"}) + public SnapUpdateEventData( + OperationType operationType, + EventStatus status, + WorkRequestEventDataAdditionalDetails additionalDetails) { + super(); + this.operationType = operationType; + this.status = status; + this.additionalDetails = additionalDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of snap update operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of snap update operation. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * Status of the snap update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private EventStatus status; + + /** + * Status of the snap update. + * @param status the value to set + * @return this builder + **/ + public Builder status(EventStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private WorkRequestEventDataAdditionalDetails additionalDetails; + + public Builder additionalDetails(WorkRequestEventDataAdditionalDetails additionalDetails) { + this.additionalDetails = additionalDetails; + this.__explicitlySet__.add("additionalDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SnapUpdateEventData build() { + SnapUpdateEventData model = + new SnapUpdateEventData( + this.operationType, this.status, this.additionalDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SnapUpdateEventData model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("additionalDetails")) { + this.additionalDetails(model.getAdditionalDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of snap update operation. + **/ + public enum OperationType { + ListSnaps("LIST_SNAPS"), + InstallSnaps("INSTALL_SNAPS"), + RemoveSnaps("REMOVE_SNAPS"), + SwitchSnapChannel("SWITCH_SNAP_CHANNEL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of snap update operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of snap update operation. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * Status of the snap update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final EventStatus status; + + /** + * Status of the snap update. + * @return the value + **/ + public EventStatus getStatus() { + return status; + } + + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private final WorkRequestEventDataAdditionalDetails additionalDetails; + + public WorkRequestEventDataAdditionalDetails getAdditionalDetails() { + return additionalDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SnapUpdateEventData("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SnapUpdateEventData)) { + return false; + } + + SnapUpdateEventData other = (SnapUpdateEventData) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.additionalDetails == null ? 43 : this.additionalDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwarePackageSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwarePackageSummary.java index 6b2c70f2a62..0f29f38258c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwarePackageSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwarePackageSummary.java @@ -28,6 +28,7 @@ public final class SoftwarePackageSummary "type", "version", "architecture", + "lastModifiedDate", "checksum", "checksumType", "isLatest", @@ -40,6 +41,7 @@ public SoftwarePackageSummary( String type, String version, SoftwarePackageArchitecture architecture, + String lastModifiedDate, String checksum, String checksumType, Boolean isLatest, @@ -51,6 +53,7 @@ public SoftwarePackageSummary( this.type = type; this.version = version; this.architecture = architecture; + this.lastModifiedDate = lastModifiedDate; this.checksum = checksum; this.checksumType = checksumType; this.isLatest = isLatest; @@ -140,6 +143,22 @@ public Builder architecture(SoftwarePackageArchitecture architecture) { this.__explicitlySet__.add("architecture"); return this; } + /** + * The date and time the package was last modified (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastModifiedDate") + private String lastModifiedDate; + + /** + * The date and time the package was last modified (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * @param lastModifiedDate the value to set + * @return this builder + **/ + public Builder lastModifiedDate(String lastModifiedDate) { + this.lastModifiedDate = lastModifiedDate; + this.__explicitlySet__.add("lastModifiedDate"); + return this; + } /** * Checksum of the package. **/ @@ -232,6 +251,7 @@ public SoftwarePackageSummary build() { this.type, this.version, this.architecture, + this.lastModifiedDate, this.checksum, this.checksumType, this.isLatest, @@ -260,6 +280,9 @@ public Builder copy(SoftwarePackageSummary model) { if (model.wasPropertyExplicitlySet("architecture")) { this.architecture(model.getArchitecture()); } + if (model.wasPropertyExplicitlySet("lastModifiedDate")) { + this.lastModifiedDate(model.getLastModifiedDate()); + } if (model.wasPropertyExplicitlySet("checksum")) { this.checksum(model.getChecksum()); } @@ -360,6 +383,20 @@ public SoftwarePackageArchitecture getArchitecture() { return architecture; } + /** + * The date and time the package was last modified (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastModifiedDate") + private final String lastModifiedDate; + + /** + * The date and time the package was last modified (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * @return the value + **/ + public String getLastModifiedDate() { + return lastModifiedDate; + } + /** * Checksum of the package. **/ @@ -449,6 +486,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", version=").append(String.valueOf(this.version)); sb.append(", architecture=").append(String.valueOf(this.architecture)); + sb.append(", lastModifiedDate=").append(String.valueOf(this.lastModifiedDate)); sb.append(", checksum=").append(String.valueOf(this.checksum)); sb.append(", checksumType=").append(String.valueOf(this.checksumType)); sb.append(", isLatest=").append(String.valueOf(this.isLatest)); @@ -473,6 +511,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.version, other.version) && java.util.Objects.equals(this.architecture, other.architecture) + && java.util.Objects.equals(this.lastModifiedDate, other.lastModifiedDate) && java.util.Objects.equals(this.checksum, other.checksum) && java.util.Objects.equals(this.checksumType, other.checksumType) && java.util.Objects.equals(this.isLatest, other.isLatest) @@ -490,6 +529,9 @@ public int hashCode() { result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); result = (result * PRIME) + (this.architecture == null ? 43 : this.architecture.hashCode()); + result = + (result * PRIME) + + (this.lastModifiedDate == null ? 43 : this.lastModifiedDate.hashCode()); result = (result * PRIME) + (this.checksum == null ? 43 : this.checksum.hashCode()); result = (result * PRIME) + (this.checksumType == null ? 43 : this.checksumType.hashCode()); result = (result * PRIME) + (this.isLatest == null ? 43 : this.isLatest.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceRepoCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceRepoCollection.java new file mode 100644 index 00000000000..616810dc832 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceRepoCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * A set of software sources returned for the ListAvailableSoftwareSourcesToAddInCompartment operation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SoftwareSourceRepoCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SoftwareSourceRepoCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SoftwareSourceRepoCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of software sources that are available for specified compartment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of software sources that are available for specified compartment + * @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 SoftwareSourceRepoCollection build() { + SoftwareSourceRepoCollection model = new SoftwareSourceRepoCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SoftwareSourceRepoCollection 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 software sources that are available for specified compartment + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of software sources that are available for specified compartment + * @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("SoftwareSourceRepoCollection("); + 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 SoftwareSourceRepoCollection)) { + return false; + } + + SoftwareSourceRepoCollection other = (SoftwareSourceRepoCollection) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceRepoSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceRepoSummary.java new file mode 100644 index 00000000000..8c8b5cf5e39 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceRepoSummary.java @@ -0,0 +1,345 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides summary information for available repos to add directly to compartments. A software source contains a collection of packages. For more information, see [Managing Software Sources](https://docs.oracle.com/iaas/osmh/doc/software-sources.htm). + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SoftwareSourceRepoSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SoftwareSourceRepoSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "repoId", + "softwareSourceType", + "osFamily", + "archType", + "description" + }) + public SoftwareSourceRepoSummary( + String displayName, + String repoId, + SoftwareSourceType softwareSourceType, + OsFamily osFamily, + ArchType archType, + String description) { + super(); + this.displayName = displayName; + this.repoId = repoId; + this.softwareSourceType = softwareSourceType; + this.osFamily = osFamily; + this.archType = archType; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * User-friendly name for the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * User-friendly name for the software source. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The repository ID for the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("repoId") + private String repoId; + + /** + * The repository ID for the software source. + * @param repoId the value to set + * @return this builder + **/ + public Builder repoId(String repoId) { + this.repoId = repoId; + this.__explicitlySet__.add("repoId"); + return this; + } + /** + * Type of software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceType") + private SoftwareSourceType softwareSourceType; + + /** + * Type of software source. + * @param softwareSourceType the value to set + * @return this builder + **/ + public Builder softwareSourceType(SoftwareSourceType softwareSourceType) { + this.softwareSourceType = softwareSourceType; + this.__explicitlySet__.add("softwareSourceType"); + return this; + } + /** + * The OS family of the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The OS family of the software source. + * @param osFamily the value to set + * @return this builder + **/ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** + * The architecture type supported by the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type supported by the software source. + * @param archType the value to set + * @return this builder + **/ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + /** + * Description of the software source. For custom software sources, this is user-specified. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the software source. For custom software sources, this is user-specified. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SoftwareSourceRepoSummary build() { + SoftwareSourceRepoSummary model = + new SoftwareSourceRepoSummary( + this.displayName, + this.repoId, + this.softwareSourceType, + this.osFamily, + this.archType, + this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SoftwareSourceRepoSummary model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("repoId")) { + this.repoId(model.getRepoId()); + } + if (model.wasPropertyExplicitlySet("softwareSourceType")) { + this.softwareSourceType(model.getSoftwareSourceType()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * User-friendly name for the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * User-friendly name for the software source. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The repository ID for the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("repoId") + private final String repoId; + + /** + * The repository ID for the software source. + * @return the value + **/ + public String getRepoId() { + return repoId; + } + + /** + * Type of software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceType") + private final SoftwareSourceType softwareSourceType; + + /** + * Type of software source. + * @return the value + **/ + public SoftwareSourceType getSoftwareSourceType() { + return softwareSourceType; + } + + /** + * The OS family of the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The OS family of the software source. + * @return the value + **/ + public OsFamily getOsFamily() { + return osFamily; + } + + /** + * The architecture type supported by the software source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type supported by the software source. + * @return the value + **/ + public ArchType getArchType() { + return archType; + } + + /** + * Description of the software source. For custom software sources, this is user-specified. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the software source. For custom software sources, this is user-specified. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SoftwareSourceRepoSummary("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", repoId=").append(String.valueOf(this.repoId)); + sb.append(", softwareSourceType=").append(String.valueOf(this.softwareSourceType)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SoftwareSourceRepoSummary)) { + return false; + } + + SoftwareSourceRepoSummary other = (SoftwareSourceRepoSummary) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.repoId, other.repoId) + && java.util.Objects.equals(this.softwareSourceType, other.softwareSourceType) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.repoId == null ? 43 : this.repoId.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceType == null + ? 43 + : this.softwareSourceType.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnAllManagedInstancesInCompartmentDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnAllManagedInstancesInCompartmentDetails.java new file mode 100644 index 00000000000..d45933856c6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnAllManagedInstancesInCompartmentDetails.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to update all packages of a specified type on managed instances within the specified compartment. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StageUpdateOnAllManagedInstancesInCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StageUpdateOnAllManagedInstancesInCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "updateTypes", "workRequestDetails"}) + public StageUpdateOnAllManagedInstancesInCompartmentDetails( + String compartmentId, + java.util.List updateTypes, + WorkRequestDetails workRequestDetails) { + super(); + this.compartmentId = compartmentId; + this.updateTypes = updateTypes; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @param updateTypes the value to set + * @return this builder + **/ + public Builder updateTypes(java.util.List updateTypes) { + this.updateTypes = updateTypes; + this.__explicitlySet__.add("updateTypes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StageUpdateOnAllManagedInstancesInCompartmentDetails build() { + StageUpdateOnAllManagedInstancesInCompartmentDetails model = + new StageUpdateOnAllManagedInstancesInCompartmentDetails( + this.compartmentId, this.updateTypes, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StageUpdateOnAllManagedInstancesInCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("updateTypes")) { + this.updateTypes(model.getUpdateTypes()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private final java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @return the value + **/ + public java.util.List getUpdateTypes() { + return updateTypes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StageUpdateOnAllManagedInstancesInCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", updateTypes=").append(String.valueOf(this.updateTypes)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StageUpdateOnAllManagedInstancesInCompartmentDetails)) { + return false; + } + + StageUpdateOnAllManagedInstancesInCompartmentDetails other = + (StageUpdateOnAllManagedInstancesInCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.updateTypes, other.updateTypes) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && 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.updateTypes == null ? 43 : this.updateTypes.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnDynamicSetDetails.java new file mode 100644 index 00000000000..a0808591a6c --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnDynamicSetDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to stage updates on a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StageUpdateOnDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StageUpdateOnDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"updateTypes", "managedInstances", "workRequestDetails"}) + public StageUpdateOnDynamicSetDetails( + java.util.List updateTypes, + java.util.List managedInstances, + WorkRequestDetails workRequestDetails) { + super(); + this.updateTypes = updateTypes; + this.managedInstances = managedInstances; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @param updateTypes the value to set + * @return this builder + **/ + public Builder updateTypes(java.util.List updateTypes) { + this.updateTypes = updateTypes; + this.__explicitlySet__.add("updateTypes"); + return this; + } + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @param managedInstances the value to set + * @return this builder + **/ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StageUpdateOnDynamicSetDetails build() { + StageUpdateOnDynamicSetDetails model = + new StageUpdateOnDynamicSetDetails( + this.updateTypes, this.managedInstances, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StageUpdateOnDynamicSetDetails model) { + if (model.wasPropertyExplicitlySet("updateTypes")) { + this.updateTypes(model.getUpdateTypes()); + } + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private final java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @return the value + **/ + public java.util.List getUpdateTypes() { + return updateTypes; + } + + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @return the value + **/ + public java.util.List getManagedInstances() { + return managedInstances; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StageUpdateOnDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("updateTypes=").append(String.valueOf(this.updateTypes)); + sb.append(", managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StageUpdateOnDynamicSetDetails)) { + return false; + } + + StageUpdateOnDynamicSetDetails other = (StageUpdateOnDynamicSetDetails) o; + return java.util.Objects.equals(this.updateTypes, other.updateTypes) + && java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.updateTypes == null ? 43 : this.updateTypes.hashCode()); + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnManagedInstanceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnManagedInstanceDetails.java new file mode 100644 index 00000000000..2ef322deb85 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageUpdateOnManagedInstanceDetails.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to stage updates on an instance. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StageUpdateOnManagedInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StageUpdateOnManagedInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"packageNames", "updateTypes", "workRequestDetails"}) + public StageUpdateOnManagedInstanceDetails( + java.util.List packageNames, + java.util.List updateTypes, + WorkRequestDetails workRequestDetails) { + super(); + this.packageNames = packageNames; + this.updateTypes = updateTypes; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of package names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("packageNames") + private java.util.List packageNames; + + /** + * The list of package names. + * @param packageNames the value to set + * @return this builder + **/ + public Builder packageNames(java.util.List packageNames) { + this.packageNames = packageNames; + this.__explicitlySet__.add("packageNames"); + return this; + } + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @param updateTypes the value to set + * @return this builder + **/ + public Builder updateTypes(java.util.List updateTypes) { + this.updateTypes = updateTypes; + this.__explicitlySet__.add("updateTypes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StageUpdateOnManagedInstanceDetails build() { + StageUpdateOnManagedInstanceDetails model = + new StageUpdateOnManagedInstanceDetails( + this.packageNames, this.updateTypes, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StageUpdateOnManagedInstanceDetails model) { + if (model.wasPropertyExplicitlySet("packageNames")) { + this.packageNames(model.getPackageNames()); + } + if (model.wasPropertyExplicitlySet("updateTypes")) { + this.updateTypes(model.getUpdateTypes()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of package names. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("packageNames") + private final java.util.List packageNames; + + /** + * The list of package names. + * @return the value + **/ + public java.util.List getPackageNames() { + return packageNames; + } + + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private final java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @return the value + **/ + public java.util.List getUpdateTypes() { + return updateTypes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StageUpdateOnManagedInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("packageNames=").append(String.valueOf(this.packageNames)); + sb.append(", updateTypes=").append(String.valueOf(this.updateTypes)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StageUpdateOnManagedInstanceDetails)) { + return false; + } + + StageUpdateOnManagedInstanceDetails other = (StageUpdateOnManagedInstanceDetails) o; + return java.util.Objects.equals(this.packageNames, other.packageNames) + && java.util.Objects.equals(this.updateTypes, other.updateTypes) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.packageNames == null ? 43 : this.packageNames.hashCode()); + result = (result * PRIME) + (this.updateTypes == null ? 43 : this.updateTypes.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageWindowsUpdatesOnManagedInstanceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageWindowsUpdatesOnManagedInstanceDetails.java new file mode 100644 index 00000000000..b1e252898c0 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageWindowsUpdatesOnManagedInstanceDetails.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to download Windows updates on a managed instance. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StageWindowsUpdatesOnManagedInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StageWindowsUpdatesOnManagedInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "windowsUpdateName", + "windowsUpdateTypes", + "workRequestDetails" + }) + public StageWindowsUpdatesOnManagedInstanceDetails( + java.util.List windowsUpdateName, + java.util.List windowsUpdateTypes, + WorkRequestDetails workRequestDetails) { + super(); + this.windowsUpdateName = windowsUpdateName; + this.windowsUpdateTypes = windowsUpdateTypes; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of Windows update unique identifiers. + * Note that this is not an OCID, but is a unique identifier assigned by Microsoft. + * Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsUpdateName") + private java.util.List windowsUpdateName; + + /** + * The list of Windows update unique identifiers. + * Note that this is not an OCID, but is a unique identifier assigned by Microsoft. + * Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed' + * + * @param windowsUpdateName the value to set + * @return this builder + **/ + public Builder windowsUpdateName(java.util.List windowsUpdateName) { + this.windowsUpdateName = windowsUpdateName; + this.__explicitlySet__.add("windowsUpdateName"); + return this; + } + /** + * The types of Windows updates to be installed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsUpdateTypes") + private java.util.List windowsUpdateTypes; + + /** + * The types of Windows updates to be installed. + * @param windowsUpdateTypes the value to set + * @return this builder + **/ + public Builder windowsUpdateTypes(java.util.List windowsUpdateTypes) { + this.windowsUpdateTypes = windowsUpdateTypes; + this.__explicitlySet__.add("windowsUpdateTypes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StageWindowsUpdatesOnManagedInstanceDetails build() { + StageWindowsUpdatesOnManagedInstanceDetails model = + new StageWindowsUpdatesOnManagedInstanceDetails( + this.windowsUpdateName, + this.windowsUpdateTypes, + this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StageWindowsUpdatesOnManagedInstanceDetails model) { + if (model.wasPropertyExplicitlySet("windowsUpdateName")) { + this.windowsUpdateName(model.getWindowsUpdateName()); + } + if (model.wasPropertyExplicitlySet("windowsUpdateTypes")) { + this.windowsUpdateTypes(model.getWindowsUpdateTypes()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of Windows update unique identifiers. + * Note that this is not an OCID, but is a unique identifier assigned by Microsoft. + * Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsUpdateName") + private final java.util.List windowsUpdateName; + + /** + * The list of Windows update unique identifiers. + * Note that this is not an OCID, but is a unique identifier assigned by Microsoft. + * Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed' + * + * @return the value + **/ + public java.util.List getWindowsUpdateName() { + return windowsUpdateName; + } + + /** + * The types of Windows updates to be installed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsUpdateTypes") + private final java.util.List windowsUpdateTypes; + + /** + * The types of Windows updates to be installed. + * @return the value + **/ + public java.util.List getWindowsUpdateTypes() { + return windowsUpdateTypes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StageWindowsUpdatesOnManagedInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("windowsUpdateName=").append(String.valueOf(this.windowsUpdateName)); + sb.append(", windowsUpdateTypes=").append(String.valueOf(this.windowsUpdateTypes)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StageWindowsUpdatesOnManagedInstanceDetails)) { + return false; + } + + StageWindowsUpdatesOnManagedInstanceDetails other = + (StageWindowsUpdatesOnManagedInstanceDetails) o; + return java.util.Objects.equals(this.windowsUpdateName, other.windowsUpdateName) + && java.util.Objects.equals(this.windowsUpdateTypes, other.windowsUpdateTypes) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.windowsUpdateName == null ? 43 : this.windowsUpdateName.hashCode()); + result = + (result * PRIME) + + (this.windowsUpdateTypes == null + ? 43 + : this.windowsUpdateTypes.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageWindowsUpdatesOnManagedInstancesInCompartmentDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageWindowsUpdatesOnManagedInstancesInCompartmentDetails.java new file mode 100644 index 00000000000..e2e02fe38c8 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StageWindowsUpdatesOnManagedInstancesInCompartmentDetails.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to download Windows updates of a specified type on managed instances within the specified compartment. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StageWindowsUpdatesOnManagedInstancesInCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StageWindowsUpdatesOnManagedInstancesInCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "windowsUpdateTypes", "workRequestDetails"}) + public StageWindowsUpdatesOnManagedInstancesInCompartmentDetails( + String compartmentId, + java.util.List windowsUpdateTypes, + WorkRequestDetails workRequestDetails) { + super(); + this.compartmentId = compartmentId; + this.windowsUpdateTypes = windowsUpdateTypes; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The types of Windows updates to be installed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsUpdateTypes") + private java.util.List windowsUpdateTypes; + + /** + * The types of Windows updates to be installed. + * @param windowsUpdateTypes the value to set + * @return this builder + **/ + public Builder windowsUpdateTypes(java.util.List windowsUpdateTypes) { + this.windowsUpdateTypes = windowsUpdateTypes; + this.__explicitlySet__.add("windowsUpdateTypes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StageWindowsUpdatesOnManagedInstancesInCompartmentDetails build() { + StageWindowsUpdatesOnManagedInstancesInCompartmentDetails model = + new StageWindowsUpdatesOnManagedInstancesInCompartmentDetails( + this.compartmentId, this.windowsUpdateTypes, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StageWindowsUpdatesOnManagedInstancesInCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("windowsUpdateTypes")) { + this.windowsUpdateTypes(model.getWindowsUpdateTypes()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The types of Windows updates to be installed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("windowsUpdateTypes") + private final java.util.List windowsUpdateTypes; + + /** + * The types of Windows updates to be installed. + * @return the value + **/ + public java.util.List getWindowsUpdateTypes() { + return windowsUpdateTypes; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StageWindowsUpdatesOnManagedInstancesInCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", windowsUpdateTypes=").append(String.valueOf(this.windowsUpdateTypes)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StageWindowsUpdatesOnManagedInstancesInCompartmentDetails)) { + return false; + } + + StageWindowsUpdatesOnManagedInstancesInCompartmentDetails other = + (StageWindowsUpdatesOnManagedInstancesInCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.windowsUpdateTypes, other.windowsUpdateTypes) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && 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.windowsUpdateTypes == null + ? 43 + : this.windowsUpdateTypes.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SwitchSnapChannelDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SwitchSnapChannelDetails.java new file mode 100644 index 00000000000..37be7bb89c8 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SwitchSnapChannelDetails.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to switch a snap channel. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SwitchSnapChannelDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SwitchSnapChannelDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "channel"}) + public SwitchSnapChannelDetails(String name, String channel) { + super(); + this.name = name; + this.channel = channel; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the snap. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The channel to switch to (e.g. stable, edge, beta, candidate, or a custom channel). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private String channel; + + /** + * The channel to switch to (e.g. stable, edge, beta, candidate, or a custom channel). + * @param channel the value to set + * @return this builder + **/ + public Builder channel(String channel) { + this.channel = channel; + this.__explicitlySet__.add("channel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SwitchSnapChannelDetails build() { + SwitchSnapChannelDetails model = new SwitchSnapChannelDetails(this.name, this.channel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SwitchSnapChannelDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("channel")) { + this.channel(model.getChannel()); + } + 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 snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the snap. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The channel to switch to (e.g. stable, edge, beta, candidate, or a custom channel). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("channel") + private final String channel; + + /** + * The channel to switch to (e.g. stable, edge, beta, candidate, or a custom channel). + * @return the value + **/ + public String getChannel() { + return channel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SwitchSnapChannelDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", channel=").append(String.valueOf(this.channel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchSnapChannelDetails)) { + return false; + } + + SwitchSnapChannelDetails other = (SwitchSnapChannelDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.channel, other.channel) + && 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.channel == null ? 43 : this.channel.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SwitchSnapChannelOnManagedInstanceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SwitchSnapChannelOnManagedInstanceDetails.java new file mode 100644 index 00000000000..2355ed32019 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SwitchSnapChannelOnManagedInstanceDetails.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to switch snap channel a managed instance. - snapDetails + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SwitchSnapChannelOnManagedInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SwitchSnapChannelOnManagedInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"snapDetails", "workRequestDetails"}) + public SwitchSnapChannelOnManagedInstanceDetails( + SwitchSnapChannelDetails snapDetails, WorkRequestDetails workRequestDetails) { + super(); + this.snapDetails = snapDetails; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("snapDetails") + private SwitchSnapChannelDetails snapDetails; + + public Builder snapDetails(SwitchSnapChannelDetails snapDetails) { + this.snapDetails = snapDetails; + this.__explicitlySet__.add("snapDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SwitchSnapChannelOnManagedInstanceDetails build() { + SwitchSnapChannelOnManagedInstanceDetails model = + new SwitchSnapChannelOnManagedInstanceDetails( + this.snapDetails, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SwitchSnapChannelOnManagedInstanceDetails model) { + if (model.wasPropertyExplicitlySet("snapDetails")) { + this.snapDetails(model.getSnapDetails()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + 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("snapDetails") + private final SwitchSnapChannelDetails snapDetails; + + public SwitchSnapChannelDetails getSnapDetails() { + return snapDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SwitchSnapChannelOnManagedInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("snapDetails=").append(String.valueOf(this.snapDetails)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchSnapChannelOnManagedInstanceDetails)) { + return false; + } + + SwitchSnapChannelOnManagedInstanceDetails other = + (SwitchSnapChannelOnManagedInstanceDetails) o; + return java.util.Objects.equals(this.snapDetails, other.snapDetails) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.snapDetails == null ? 43 : this.snapDetails.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java index 3687155dd7f..fb8c72df924 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java @@ -22,6 +22,7 @@ public final class SysadminEventData extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "errorSummary", "errorCause", "errorLog", "attemptedResolutions", @@ -30,6 +31,7 @@ public final class SysadminEventData extends com.oracle.bmc.http.internal.Explic "additionalDetails" }) public SysadminEventData( + String errorSummary, String errorCause, String errorLog, java.util.List attemptedResolutions, @@ -37,6 +39,7 @@ public SysadminEventData( String resolutionLog, WorkRequestEventDataAdditionalDetails additionalDetails) { super(); + this.errorSummary = errorSummary; this.errorCause = errorCause; this.errorLog = errorLog; this.attemptedResolutions = attemptedResolutions; @@ -47,6 +50,22 @@ public SysadminEventData( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Brief description on how this error is categorized. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorSummary") + private String errorSummary; + + /** + * Brief description on how this error is categorized. + * @param errorSummary the value to set + * @return this builder + **/ + public Builder errorSummary(String errorSummary) { + this.errorSummary = errorSummary; + this.__explicitlySet__.add("errorSummary"); + return this; + } /** * The commands executed by the agent that caused the error. **/ @@ -143,6 +162,7 @@ public Builder additionalDetails(WorkRequestEventDataAdditionalDetails additiona public SysadminEventData build() { SysadminEventData model = new SysadminEventData( + this.errorSummary, this.errorCause, this.errorLog, this.attemptedResolutions, @@ -157,6 +177,9 @@ public SysadminEventData build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(SysadminEventData model) { + if (model.wasPropertyExplicitlySet("errorSummary")) { + this.errorSummary(model.getErrorSummary()); + } if (model.wasPropertyExplicitlySet("errorCause")) { this.errorCause(model.getErrorCause()); } @@ -190,6 +213,20 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Brief description on how this error is categorized. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorSummary") + private final String errorSummary; + + /** + * Brief description on how this error is categorized. + * @return the value + **/ + public String getErrorSummary() { + return errorSummary; + } + /** * The commands executed by the agent that caused the error. **/ @@ -281,7 +318,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("SysadminEventData("); sb.append("super=").append(super.toString()); - sb.append("errorCause=").append(String.valueOf(this.errorCause)); + sb.append("errorSummary=").append(String.valueOf(this.errorSummary)); + sb.append(", errorCause=").append(String.valueOf(this.errorCause)); sb.append(", errorLog=").append(String.valueOf(this.errorLog)); sb.append(", attemptedResolutions=").append(String.valueOf(this.attemptedResolutions)); sb.append(", resolutionStatus=").append(String.valueOf(this.resolutionStatus)); @@ -301,7 +339,8 @@ public boolean equals(Object o) { } SysadminEventData other = (SysadminEventData) o; - return java.util.Objects.equals(this.errorCause, other.errorCause) + return java.util.Objects.equals(this.errorSummary, other.errorSummary) + && java.util.Objects.equals(this.errorCause, other.errorCause) && java.util.Objects.equals(this.errorLog, other.errorLog) && java.util.Objects.equals(this.attemptedResolutions, other.attemptedResolutions) && java.util.Objects.equals(this.resolutionStatus, other.resolutionStatus) @@ -314,6 +353,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.errorSummary == null ? 43 : this.errorSummary.hashCode()); result = (result * PRIME) + (this.errorCause == null ? 43 : this.errorCause.hashCode()); result = (result * PRIME) + (this.errorLog == null ? 43 : this.errorLog.hashCode()); result = diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Tag.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Tag.java new file mode 100644 index 00000000000..d466e1502f1 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Tag.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Metadata tag assigned to a 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: 20220901") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = Tag.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = FreeFormTag.class, + name = "FREEFORM" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = DefinedTag.class, name = "DEFINED") +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Tag extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "value"}) + protected Tag(String key, String value) { + super(); + this.key = key; + this.value = value; + } + + /** + * The key of the tag. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The key of the tag. + * + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * The value associated with the tag key. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value associated with the tag key. + * + * @return the value + **/ + public String 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("Tag("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + 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 Tag)) { + return false; + } + + Tag other = (Tag) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of the tag. Common values include {@code defined} or {@code freeform}. + * + **/ + public enum Type { + Defined("DEFINED"), + Freeform("FREEFORM"), + + /** + * This value is used if a service returns a value for this 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetCompartmentDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetCompartmentDetails.java new file mode 100644 index 00000000000..9527c378a37 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetCompartmentDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Details of the compartment. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "doesIncludeChildren"}) + public TargetCompartmentDetails(String compartmentId, Boolean doesIncludeChildren) { + super(); + this.compartmentId = compartmentId; + this.doesIncludeChildren = doesIncludeChildren; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Indicates if the child compartments are included in the matching rule. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("doesIncludeChildren") + private Boolean doesIncludeChildren; + + /** + * Indicates if the child compartments are included in the matching rule. + * + * @param doesIncludeChildren the value to set + * @return this builder + **/ + public Builder doesIncludeChildren(Boolean doesIncludeChildren) { + this.doesIncludeChildren = doesIncludeChildren; + this.__explicitlySet__.add("doesIncludeChildren"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetCompartmentDetails build() { + TargetCompartmentDetails model = + new TargetCompartmentDetails(this.compartmentId, this.doesIncludeChildren); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("doesIncludeChildren")) { + this.doesIncludeChildren(model.getDoesIncludeChildren()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Indicates if the child compartments are included in the matching rule. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("doesIncludeChildren") + private final Boolean doesIncludeChildren; + + /** + * Indicates if the child compartments are included in the matching rule. + * + * @return the value + **/ + public Boolean getDoesIncludeChildren() { + return doesIncludeChildren; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", doesIncludeChildren=").append(String.valueOf(this.doesIncludeChildren)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetCompartmentDetails)) { + return false; + } + + TargetCompartmentDetails other = (TargetCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.doesIncludeChildren, other.doesIncludeChildren) + && 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.doesIncludeChildren == null + ? 43 + : this.doesIncludeChildren.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetResourceEntityType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetResourceEntityType.java index 8e637445e69..c1bfe4a2b0f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetResourceEntityType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/TargetResourceEntityType.java @@ -14,6 +14,7 @@ public enum TargetResourceEntityType { Compartment("COMPARTMENT"), LifecycleEnvironment("LIFECYCLE_ENVIRONMENT"), SoftwareSource("SOFTWARE_SOURCE"), + DynamicSet("DYNAMIC_SET"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UbuntuStandaloneProfile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UbuntuStandaloneProfile.java new file mode 100644 index 00000000000..0378e0ec1bd --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UbuntuStandaloneProfile.java @@ -0,0 +1,372 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information for a standalone registration profile. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UbuntuStandaloneProfile.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "profileType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UbuntuStandaloneProfile extends Profile { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("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("managementStationId") + private String managementStationId; + + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + this.__explicitlySet__.add("managementStationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private VendorName vendorName; + + public Builder vendorName(VendorName vendorName) { + this.vendorName = vendorName; + this.__explicitlySet__.add("vendorName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + 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("timeModified") + private java.util.Date timeModified; + + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + 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("registrationType") + private RegistrationType registrationType; + + public Builder registrationType(RegistrationType registrationType) { + this.registrationType = registrationType; + this.__explicitlySet__.add("registrationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultProfile") + private Boolean isDefaultProfile; + + public Builder isDefaultProfile(Boolean isDefaultProfile) { + this.isDefaultProfile = isDefaultProfile; + this.__explicitlySet__.add("isDefaultProfile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isServiceProvidedProfile") + private Boolean isServiceProvidedProfile; + + public Builder isServiceProvidedProfile(Boolean isServiceProvidedProfile) { + this.isServiceProvidedProfile = isServiceProvidedProfile; + this.__explicitlySet__.add("isServiceProvidedProfile"); + 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 UbuntuStandaloneProfile build() { + UbuntuStandaloneProfile model = + new UbuntuStandaloneProfile( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.managementStationId, + this.vendorName, + this.osFamily, + this.archType, + this.timeCreated, + this.timeModified, + this.profileVersion, + this.lifecycleState, + this.registrationType, + this.isDefaultProfile, + this.isServiceProvidedProfile, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UbuntuStandaloneProfile 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("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("managementStationId")) { + this.managementStationId(model.getManagementStationId()); + } + if (model.wasPropertyExplicitlySet("vendorName")) { + this.vendorName(model.getVendorName()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("registrationType")) { + this.registrationType(model.getRegistrationType()); + } + if (model.wasPropertyExplicitlySet("isDefaultProfile")) { + this.isDefaultProfile(model.getIsDefaultProfile()); + } + if (model.wasPropertyExplicitlySet("isServiceProvidedProfile")) { + this.isServiceProvidedProfile(model.getIsServiceProvidedProfile()); + } + 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 UbuntuStandaloneProfile( + String id, + String compartmentId, + String displayName, + String description, + String managementStationId, + VendorName vendorName, + OsFamily osFamily, + ArchType archType, + java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, + LifecycleState lifecycleState, + RegistrationType registrationType, + Boolean isDefaultProfile, + Boolean isServiceProvidedProfile, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super( + id, + compartmentId, + displayName, + description, + managementStationId, + vendorName, + osFamily, + archType, + timeCreated, + timeModified, + profileVersion, + lifecycleState, + registrationType, + isDefaultProfile, + isServiceProvidedProfile, + 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("UbuntuStandaloneProfile("); + 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 UbuntuStandaloneProfile)) { + return false; + } + + UbuntuStandaloneProfile other = (UbuntuStandaloneProfile) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatableAutonomousSettings.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatableAutonomousSettings.java index c49dda6f514..a979b53fa37 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatableAutonomousSettings.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatableAutonomousSettings.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Updatable settings for the Autonomous Linux service. + * Updatable settings for the Autonomous Linux service. This is required when creating an Autonomous Linux Managed Instance Group. Do not include it when creating a standard (non-Autonomous) Managed Instance Group. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatablePackageSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatablePackageSummary.java index f7158e9debc..2b0176b4da9 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatablePackageSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatablePackageSummary.java @@ -144,6 +144,22 @@ public Builder relatedCves(java.util.List relatedCves) { this.__explicitlySet__.add("relatedCves"); return this; } + /** + * The severity level of the security update. Only applicable when updateType is SECURITY. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advisorySeverity") + private AdvisorySeverity advisorySeverity; + + /** + * The severity level of the security update. Only applicable when updateType is SECURITY. + * @param advisorySeverity the value to set + * @return this builder + **/ + public Builder advisorySeverity(AdvisorySeverity advisorySeverity) { + this.advisorySeverity = advisorySeverity; + this.__explicitlySet__.add("advisorySeverity"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -160,7 +176,8 @@ public UpdatablePackageSummary build() { this.installedVersion, this.updateType, this.errata, - this.relatedCves); + this.relatedCves, + this.advisorySeverity); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -199,6 +216,9 @@ public Builder copy(UpdatablePackageSummary model) { if (model.wasPropertyExplicitlySet("relatedCves")) { this.relatedCves(model.getRelatedCves()); } + if (model.wasPropertyExplicitlySet("advisorySeverity")) { + this.advisorySeverity(model.getAdvisorySeverity()); + } return this; } } @@ -225,12 +245,14 @@ public UpdatablePackageSummary( String installedVersion, ClassificationTypes updateType, java.util.List errata, - java.util.List relatedCves) { + java.util.List relatedCves, + AdvisorySeverity advisorySeverity) { super(displayName, name, type, version, architecture, softwareSources); this.installedVersion = installedVersion; this.updateType = updateType; this.errata = errata; this.relatedCves = relatedCves; + this.advisorySeverity = advisorySeverity; } /** @@ -289,6 +311,20 @@ public java.util.List getRelatedCves() { return relatedCves; } + /** + * The severity level of the security update. Only applicable when updateType is SECURITY. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advisorySeverity") + private final AdvisorySeverity advisorySeverity; + + /** + * The severity level of the security update. Only applicable when updateType is SECURITY. + * @return the value + **/ + public AdvisorySeverity getAdvisorySeverity() { + return advisorySeverity; + } + @Override public String toString() { return this.toString(true); @@ -307,6 +343,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", errata=").append(String.valueOf(this.errata)); sb.append(", relatedCves=").append(String.valueOf(this.relatedCves)); + sb.append(", advisorySeverity=").append(String.valueOf(this.advisorySeverity)); sb.append(")"); return sb.toString(); } @@ -325,6 +362,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.errata, other.errata) && java.util.Objects.equals(this.relatedCves, other.relatedCves) + && java.util.Objects.equals(this.advisorySeverity, other.advisorySeverity) && super.equals(other); } @@ -338,6 +376,9 @@ public int hashCode() { result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) + (this.errata == null ? 43 : this.errata.hashCode()); result = (result * PRIME) + (this.relatedCves == null ? 43 : this.relatedCves.hashCode()); + result = + (result * PRIME) + + (this.advisorySeverity == null ? 43 : this.advisorySeverity.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateDynamicSetDetails.java new file mode 100644 index 00000000000..1f88c611ebf --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateDynamicSetDetails.java @@ -0,0 +1,397 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to update a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "targetCompartments", + "matchType", + "matchingRule", + "freeformTags", + "definedTags" + }) + public UpdateDynamicSetDetails( + String displayName, + String description, + java.util.List targetCompartments, + MatchType matchType, + MatchingRule matchingRule, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.targetCompartments = targetCompartments; + this.matchType = matchType; + this.matchingRule = matchingRule; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * User-friendly name for the dynamic set. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * User-specified description of the dynamic set. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * User-specified description of the dynamic set. Avoid entering confidential information. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private java.util.List targetCompartments; + + /** + * The list of compartment details. + * @param targetCompartments the value to set + * @return this builder + **/ + public Builder targetCompartments( + java.util.List targetCompartments) { + this.targetCompartments = targetCompartments; + this.__explicitlySet__.add("targetCompartments"); + return this; + } + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private MatchType matchType; + + /** + * Include either any or all attributes. + * @param matchType the value to set + * @return this builder + **/ + public Builder matchType(MatchType matchType) { + this.matchType = matchType; + this.__explicitlySet__.add("matchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private MatchingRule matchingRule; + + public Builder matchingRule(MatchingRule matchingRule) { + this.matchingRule = matchingRule; + this.__explicitlySet__.add("matchingRule"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDynamicSetDetails build() { + UpdateDynamicSetDetails model = + new UpdateDynamicSetDetails( + this.displayName, + this.description, + this.targetCompartments, + this.matchType, + this.matchingRule, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDynamicSetDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("targetCompartments")) { + this.targetCompartments(model.getTargetCompartments()); + } + if (model.wasPropertyExplicitlySet("matchType")) { + this.matchType(model.getMatchType()); + } + if (model.wasPropertyExplicitlySet("matchingRule")) { + this.matchingRule(model.getMatchingRule()); + } + 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); + } + + /** + * User-friendly name for the dynamic set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * User-friendly name for the dynamic set. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * User-specified description of the dynamic set. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * User-specified description of the dynamic set. Avoid entering confidential information. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The list of compartment details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetCompartments") + private final java.util.List targetCompartments; + + /** + * The list of compartment details. + * @return the value + **/ + public java.util.List getTargetCompartments() { + return targetCompartments; + } + + /** + * Include either any or all attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchType") + private final MatchType matchType; + + /** + * Include either any or all attributes. + * @return the value + **/ + public MatchType getMatchType() { + return matchType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchingRule") + private final MatchingRule matchingRule; + + public MatchingRule getMatchingRule() { + return matchingRule; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", targetCompartments=").append(String.valueOf(this.targetCompartments)); + sb.append(", matchType=").append(String.valueOf(this.matchType)); + sb.append(", matchingRule=").append(String.valueOf(this.matchingRule)); + 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 UpdateDynamicSetDetails)) { + return false; + } + + UpdateDynamicSetDetails other = (UpdateDynamicSetDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.targetCompartments, other.targetCompartments) + && java.util.Objects.equals(this.matchType, other.matchType) + && java.util.Objects.equals(this.matchingRule, other.matchingRule) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.targetCompartments == null + ? 43 + : this.targetCompartments.hashCode()); + result = (result * PRIME) + (this.matchType == null ? 43 : this.matchType.hashCode()); + result = (result * PRIME) + (this.matchingRule == null ? 43 : this.matchingRule.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java index aca8d550b53..1b76701a838 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java @@ -27,6 +27,8 @@ public final class UpdateManagementStationDetails "description", "hostname", "isAutoConfigEnabled", + "osFamily", + "archType", "proxy", "mirror", "freeformTags", @@ -37,6 +39,8 @@ public UpdateManagementStationDetails( String description, String hostname, Boolean isAutoConfigEnabled, + OsFamily osFamily, + ArchType archType, UpdateProxyConfigurationDetails proxy, UpdateMirrorConfigurationDetails mirror, java.util.Map freeformTags, @@ -46,6 +50,8 @@ public UpdateManagementStationDetails( this.description = description; this.hostname = hostname; this.isAutoConfigEnabled = isAutoConfigEnabled; + this.osFamily = osFamily; + this.archType = archType; this.proxy = proxy; this.mirror = mirror; this.freeformTags = freeformTags; @@ -118,6 +124,38 @@ public Builder isAutoConfigEnabled(Boolean isAutoConfigEnabled) { this.__explicitlySet__.add("isAutoConfigEnabled"); return this; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * @param osFamily the value to set + * @return this builder + **/ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * @param archType the value to set + * @return this builder + **/ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("proxy") private UpdateProxyConfigurationDetails proxy; @@ -192,6 +230,8 @@ public UpdateManagementStationDetails build() { this.description, this.hostname, this.isAutoConfigEnabled, + this.osFamily, + this.archType, this.proxy, this.mirror, this.freeformTags, @@ -216,6 +256,12 @@ public Builder copy(UpdateManagementStationDetails model) { if (model.wasPropertyExplicitlySet("isAutoConfigEnabled")) { this.isAutoConfigEnabled(model.getIsAutoConfigEnabled()); } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } if (model.wasPropertyExplicitlySet("proxy")) { this.proxy(model.getProxy()); } @@ -299,6 +345,34 @@ public Boolean getIsAutoConfigEnabled() { return isAutoConfigEnabled; } + /** + * The operating system family. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * @return the value + **/ + public OsFamily getOsFamily() { + return osFamily; + } + + /** + * The architecture type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * @return the value + **/ + public ArchType getArchType() { + return archType; + } + @com.fasterxml.jackson.annotation.JsonProperty("proxy") private final UpdateProxyConfigurationDetails proxy; @@ -371,6 +445,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", isAutoConfigEnabled=").append(String.valueOf(this.isAutoConfigEnabled)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); sb.append(", proxy=").append(String.valueOf(this.proxy)); sb.append(", mirror=").append(String.valueOf(this.mirror)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -393,6 +469,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.isAutoConfigEnabled, other.isAutoConfigEnabled) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) && java.util.Objects.equals(this.proxy, other.proxy) && java.util.Objects.equals(this.mirror, other.mirror) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -412,6 +490,8 @@ public int hashCode() { + (this.isAutoConfigEnabled == null ? 43 : this.isAutoConfigEnabled.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); result = (result * PRIME) + (this.proxy == null ? 43 : this.proxy.hashCode()); result = (result * PRIME) + (this.mirror == null ? 43 : this.mirror.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePackagesOnDynamicSetDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePackagesOnDynamicSetDetails.java new file mode 100644 index 00000000000..b7ae42b81ab --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePackagesOnDynamicSetDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to update software packages on a dynamic set. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePackagesOnDynamicSetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdatePackagesOnDynamicSetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"updateTypes", "managedInstances", "workRequestDetails"}) + public UpdatePackagesOnDynamicSetDetails( + java.util.List updateTypes, + java.util.List managedInstances, + WorkRequestDetails workRequestDetails) { + super(); + this.updateTypes = updateTypes; + this.managedInstances = managedInstances; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @param updateTypes the value to set + * @return this builder + **/ + public Builder updateTypes(java.util.List updateTypes) { + this.updateTypes = updateTypes; + this.__explicitlySet__.add("updateTypes"); + return this; + } + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @param managedInstances the value to set + * @return this builder + **/ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePackagesOnDynamicSetDetails build() { + UpdatePackagesOnDynamicSetDetails model = + new UpdatePackagesOnDynamicSetDetails( + this.updateTypes, this.managedInstances, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePackagesOnDynamicSetDetails model) { + if (model.wasPropertyExplicitlySet("updateTypes")) { + this.updateTypes(model.getUpdateTypes()); + } + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The types of updates to be applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateTypes") + private final java.util.List updateTypes; + + /** + * The types of updates to be applied. + * @return the value + **/ + public java.util.List getUpdateTypes() { + return updateTypes; + } + + /** + * The list of managed instance OCIDs to be attached/detached. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * The list of managed instance OCIDs to be attached/detached. + * @return the value + **/ + public java.util.List getManagedInstances() { + return managedInstances; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePackagesOnDynamicSetDetails("); + sb.append("super=").append(super.toString()); + sb.append("updateTypes=").append(String.valueOf(this.updateTypes)); + sb.append(", managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePackagesOnDynamicSetDetails)) { + return false; + } + + UpdatePackagesOnDynamicSetDetails other = (UpdatePackagesOnDynamicSetDetails) o; + return java.util.Objects.equals(this.updateTypes, other.updateTypes) + && java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.updateTypes == null ? 43 : this.updateTypes.hashCode()); + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java index c7cf5d4899b..02afadba5b9 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java @@ -122,13 +122,19 @@ public Builder timeNextExecution(java.util.Date timeNextExecution) { return this; } /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("recurringRule") private String recurringRule; /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * * @param recurringRule the value to set * @return this builder **/ @@ -365,13 +371,19 @@ public java.util.Date getTimeNextExecution() { } /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("recurringRule") private final String recurringRule; /** - * The frequency schedule for a recurring scheduled job. + * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. + * Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. + * In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. + * * @return the value **/ public String getRecurringRule() { diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorName.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorName.java index 860d38c9243..0028d44a41f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorName.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorName.java @@ -11,6 +11,7 @@ public enum VendorName { Oracle("ORACLE"), Microsoft("MICROSOFT"), + Canonical("CANONICAL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java index 289de95a5d3..c632b56bf10 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java @@ -48,7 +48,8 @@ public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySe "rerunOfId", "retryIntervals", "isManagedByAutonomousLinux", - "rebootTimeoutInMins" + "rebootTimeoutInMins", + "snapSpecs" }) public WorkRequest( WorkRequestOperationType operationType, @@ -79,7 +80,8 @@ public WorkRequest( String rerunOfId, java.util.List retryIntervals, Boolean isManagedByAutonomousLinux, - Integer rebootTimeoutInMins) { + Integer rebootTimeoutInMins, + java.util.List snapSpecs) { super(); this.operationType = operationType; this.status = status; @@ -110,6 +112,7 @@ public WorkRequest( this.retryIntervals = retryIntervals; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; this.rebootTimeoutInMins = rebootTimeoutInMins; + this.snapSpecs = snapSpecs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -603,6 +606,22 @@ public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { this.__explicitlySet__.add("rebootTimeoutInMins"); return this; } + /** + * The details about the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("snapSpecs") + private java.util.List snapSpecs; + + /** + * The details about the snap. + * @param snapSpecs the value to set + * @return this builder + **/ + public Builder snapSpecs(java.util.List snapSpecs) { + this.snapSpecs = snapSpecs; + this.__explicitlySet__.add("snapSpecs"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -638,7 +657,8 @@ public WorkRequest build() { this.rerunOfId, this.retryIntervals, this.isManagedByAutonomousLinux, - this.rebootTimeoutInMins); + this.rebootTimeoutInMins, + this.snapSpecs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -734,6 +754,9 @@ public Builder copy(WorkRequest model) { if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); } + if (model.wasPropertyExplicitlySet("snapSpecs")) { + this.snapSpecs(model.getSnapSpecs()); + } return this; } } @@ -1180,6 +1203,20 @@ public Integer getRebootTimeoutInMins() { return rebootTimeoutInMins; } + /** + * The details about the snap. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("snapSpecs") + private final java.util.List snapSpecs; + + /** + * The details about the snap. + * @return the value + **/ + public java.util.List getSnapSpecs() { + return snapSpecs; + } + @Override public String toString() { return this.toString(true); @@ -1224,6 +1261,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); sb.append(", rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", snapSpecs=").append(String.valueOf(this.snapSpecs)); sb.append(")"); return sb.toString(); } @@ -1268,6 +1306,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) && java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.snapSpecs, other.snapSpecs) && super.equals(other); } @@ -1332,6 +1371,7 @@ public int hashCode() { + (this.rebootTimeoutInMins == null ? 43 : this.rebootTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.snapSpecs == null ? 43 : this.snapSpecs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java index b20c6c9e1b7..9d244386df0 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java @@ -47,6 +47,11 @@ public enum WorkRequestOperationType { RemoveContent("REMOVE_CONTENT"), UnregisterManagedInstance("UNREGISTER_MANAGED_INSTANCE"), Reboot("REBOOT"), + RegisterManagedInstance("REGISTER_MANAGED_INSTANCE"), + ListSnaps("LIST_SNAPS"), + InstallSnaps("INSTALL_SNAPS"), + RemoveSnaps("REMOVE_SNAPS"), + SwitchSnapChannel("SWITCH_SNAP_CHANNEL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java index b352312427e..70d51b3ff43 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java @@ -35,7 +35,8 @@ public final class WorkRequestSummary extends com.oracle.bmc.http.internal.Expli "timeCreated", "timeScheduled", "isManagedByAutonomousLinux", - "rebootTimeoutInMins" + "rebootTimeoutInMins", + "timeFinished" }) public WorkRequestSummary( WorkRequestOperationType operationType, @@ -51,7 +52,8 @@ public WorkRequestSummary( java.util.Date timeCreated, java.util.Date timeScheduled, Boolean isManagedByAutonomousLinux, - Integer rebootTimeoutInMins) { + Integer rebootTimeoutInMins, + java.util.Date timeFinished) { super(); this.operationType = operationType; this.status = status; @@ -67,6 +69,7 @@ public WorkRequestSummary( this.timeScheduled = timeScheduled; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; this.rebootTimeoutInMins = rebootTimeoutInMins; + this.timeFinished = timeFinished; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -305,6 +308,24 @@ public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { this.__explicitlySet__.add("rebootTimeoutInMins"); return this; } + /** + * The date and time the work request completed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request completed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -325,7 +346,8 @@ public WorkRequestSummary build() { this.timeCreated, this.timeScheduled, this.isManagedByAutonomousLinux, - this.rebootTimeoutInMins); + this.rebootTimeoutInMins, + this.timeFinished); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -376,6 +398,9 @@ public Builder copy(WorkRequestSummary model) { if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } return this; } } @@ -597,6 +622,22 @@ public Integer getRebootTimeoutInMins() { return rebootTimeoutInMins; } + /** + * The date and time the work request completed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request completed (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + @Override public String toString() { return this.toString(true); @@ -626,6 +667,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); sb.append(", rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); sb.append(")"); return sb.toString(); } @@ -655,6 +697,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) && java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) && super.equals(other); } @@ -692,6 +735,7 @@ public int hashCode() { + (this.rebootTimeoutInMins == null ? 43 : this.rebootTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ChangeDynamicSetCompartmentRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ChangeDynamicSetCompartmentRequest.java new file mode 100644 index 00000000000..7365f807b01 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ChangeDynamicSetCompartmentRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use ChangeDynamicSetCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ChangeDynamicSetCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + */ + private com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails + changeDynamicSetCompartmentDetails; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + */ + public com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails + getChangeDynamicSetCompartmentDetails() { + return changeDynamicSetCompartmentDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails getBody$() { + return changeDynamicSetCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDynamicSetCompartmentRequest, + com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + */ + private com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails + changeDynamicSetCompartmentDetails = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the group to. + * @param changeDynamicSetCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDynamicSetCompartmentDetails( + com.oracle.bmc.osmanagementhub.model.ChangeDynamicSetCompartmentDetails + changeDynamicSetCompartmentDetails) { + this.changeDynamicSetCompartmentDetails = changeDynamicSetCompartmentDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeDynamicSetCompartmentRequest o) { + changeDynamicSetCompartmentDetails(o.getChangeDynamicSetCompartmentDetails()); + dynamicSetId(o.getDynamicSetId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDynamicSetCompartmentRequest 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 ChangeDynamicSetCompartmentRequest + */ + public ChangeDynamicSetCompartmentRequest build() { + ChangeDynamicSetCompartmentRequest 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.osmanagementhub.model.ChangeDynamicSetCompartmentDetails body) { + changeDynamicSetCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDynamicSetCompartmentRequest 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 ChangeDynamicSetCompartmentRequest + */ + public ChangeDynamicSetCompartmentRequest buildWithoutInvocationCallback() { + ChangeDynamicSetCompartmentRequest request = new ChangeDynamicSetCompartmentRequest(); + request.changeDynamicSetCompartmentDetails = changeDynamicSetCompartmentDetails; + request.dynamicSetId = dynamicSetId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeDynamicSetCompartmentRequest(changeDynamicSetCompartmentDetails, dynamicSetId, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeDynamicSetCompartmentDetails(changeDynamicSetCompartmentDetails) + .dynamicSetId(dynamicSetId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeDynamicSetCompartmentDetails=") + .append(String.valueOf(this.changeDynamicSetCompartmentDetails)); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDynamicSetCompartmentRequest)) { + return false; + } + + ChangeDynamicSetCompartmentRequest other = (ChangeDynamicSetCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeDynamicSetCompartmentDetails, + other.changeDynamicSetCompartmentDetails) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && 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.changeDynamicSetCompartmentDetails == null + ? 43 + : this.changeDynamicSetCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/CreateDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/CreateDynamicSetRequest.java new file mode 100644 index 00000000000..ca2df72b512 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/CreateDynamicSetRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use CreateDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails> { + + /** + * Provides the information used to create the dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails createDynamicSetDetails; + + /** + * Provides the information used to create the dynamic set. + */ + public com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails + getCreateDynamicSetDetails() { + return createDynamicSetDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails getBody$() { + return createDynamicSetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDynamicSetRequest, + com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Provides the information used to create the dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails + createDynamicSetDetails = null; + + /** + * Provides the information used to create the dynamic set. + * @param createDynamicSetDetails the value to set + * @return this builder instance + */ + public Builder createDynamicSetDetails( + com.oracle.bmc.osmanagementhub.model.CreateDynamicSetDetails + createDynamicSetDetails) { + this.createDynamicSetDetails = createDynamicSetDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request 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(CreateDynamicSetRequest o) { + createDynamicSetDetails(o.getCreateDynamicSetDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDynamicSetRequest 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 CreateDynamicSetRequest + */ + public CreateDynamicSetRequest build() { + CreateDynamicSetRequest 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.osmanagementhub.model.CreateDynamicSetDetails body) { + createDynamicSetDetails(body); + return this; + } + + /** + * Build the instance of CreateDynamicSetRequest 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 CreateDynamicSetRequest + */ + public CreateDynamicSetRequest buildWithoutInvocationCallback() { + CreateDynamicSetRequest request = new CreateDynamicSetRequest(); + request.createDynamicSetDetails = createDynamicSetDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDynamicSetRequest(createDynamicSetDetails, 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() + .createDynamicSetDetails(createDynamicSetDetails) + .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(",createDynamicSetDetails=").append(String.valueOf(this.createDynamicSetDetails)); + 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 CreateDynamicSetRequest)) { + return false; + } + + CreateDynamicSetRequest other = (CreateDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDynamicSetDetails, other.createDynamicSetDetails) + && 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.createDynamicSetDetails == null + ? 43 + : this.createDynamicSetDetails.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteDynamicSetRequest.java new file mode 100644 index 00000000000..86626bc187b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteDynamicSetRequest.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use DeleteDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteDynamicSetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that 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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDynamicSetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + 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. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDynamicSetRequest 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 DeleteDynamicSetRequest + */ + public DeleteDynamicSetRequest build() { + DeleteDynamicSetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDynamicSetRequest 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 DeleteDynamicSetRequest + */ + public DeleteDynamicSetRequest buildWithoutInvocationCallback() { + DeleteDynamicSetRequest request = new DeleteDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDynamicSetRequest(dynamicSetId, 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().dynamicSetId(dynamicSetId).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(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + 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 DeleteDynamicSetRequest)) { + return false; + } + + DeleteDynamicSetRequest other = (DeleteDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && 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.dynamicSetId == null ? 43 : this.dynamicSetId.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachManagementStationFromProfileRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachManagementStationFromProfileRequest.java new file mode 100644 index 00000000000..7b9b7400796 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachManagementStationFromProfileRequest.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use DetachManagementStationFromProfileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DetachManagementStationFromProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.DetachManagementStationFromProfileDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** + * The management station [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to detach from the profile + */ + private com.oracle.bmc.osmanagementhub.model.DetachManagementStationFromProfileDetails + detachManagementStationFromProfileDetails; + + /** + * The management station [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to detach from the profile + */ + public com.oracle.bmc.osmanagementhub.model.DetachManagementStationFromProfileDetails + getDetachManagementStationFromProfileDetails() { + return detachManagementStationFromProfileDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.DetachManagementStationFromProfileDetails + getBody$() { + return detachManagementStationFromProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DetachManagementStationFromProfileRequest, + com.oracle.bmc.osmanagementhub.model + .DetachManagementStationFromProfileDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the registration profile. + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The management station [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to detach from the profile + */ + private com.oracle.bmc.osmanagementhub.model.DetachManagementStationFromProfileDetails + detachManagementStationFromProfileDetails = null; + + /** + * The management station [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to detach from the profile + * @param detachManagementStationFromProfileDetails the value to set + * @return this builder instance + */ + public Builder detachManagementStationFromProfileDetails( + com.oracle.bmc.osmanagementhub.model.DetachManagementStationFromProfileDetails + detachManagementStationFromProfileDetails) { + this.detachManagementStationFromProfileDetails = + detachManagementStationFromProfileDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DetachManagementStationFromProfileRequest o) { + profileId(o.getProfileId()); + detachManagementStationFromProfileDetails( + o.getDetachManagementStationFromProfileDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DetachManagementStationFromProfileRequest 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 DetachManagementStationFromProfileRequest + */ + public DetachManagementStationFromProfileRequest build() { + DetachManagementStationFromProfileRequest 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.osmanagementhub.model.DetachManagementStationFromProfileDetails + body) { + detachManagementStationFromProfileDetails(body); + return this; + } + + /** + * Build the instance of DetachManagementStationFromProfileRequest 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 DetachManagementStationFromProfileRequest + */ + public DetachManagementStationFromProfileRequest buildWithoutInvocationCallback() { + DetachManagementStationFromProfileRequest request = + new DetachManagementStationFromProfileRequest(); + request.profileId = profileId; + request.detachManagementStationFromProfileDetails = + detachManagementStationFromProfileDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DetachManagementStationFromProfileRequest(profileId, detachManagementStationFromProfileDetails, opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .profileId(profileId) + .detachManagementStationFromProfileDetails( + detachManagementStationFromProfileDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",detachManagementStationFromProfileDetails=") + .append(String.valueOf(this.detachManagementStationFromProfileDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DetachManagementStationFromProfileRequest)) { + return false; + } + + DetachManagementStationFromProfileRequest other = + (DetachManagementStationFromProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals( + this.detachManagementStationFromProfileDetails, + other.detachManagementStationFromProfileDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.detachManagementStationFromProfileDetails == null + ? 43 + : this.detachManagementStationFromProfileDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetDynamicSetRequest.java new file mode 100644 index 00000000000..5a9d75d32f8 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetDynamicSetRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use GetDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetDynamicSetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDynamicSetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDynamicSetRequest 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 GetDynamicSetRequest + */ + public GetDynamicSetRequest build() { + GetDynamicSetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDynamicSetRequest 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 GetDynamicSetRequest + */ + public GetDynamicSetRequest buildWithoutInvocationCallback() { + GetDynamicSetRequest request = new GetDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.opcRequestId = opcRequestId; + return request; + // new GetDynamicSetRequest(dynamicSetId, 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().dynamicSetId(dynamicSetId).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(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + 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 GetDynamicSetRequest)) { + return false; + } + + GetDynamicSetRequest other = (GetDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.java index 5a17267d786..47def88f17f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.java @@ -27,6 +27,17 @@ public class GetManagedInstanceAnalyticContentRequest public String getCompartmentId() { return compartmentId; } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. This filter returns resources associated with this group. */ @@ -38,6 +49,17 @@ public String getCompartmentId() { public String getManagedInstanceGroupId() { return managedInstanceGroupId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the lifecycle environment. This filter returns only resource contained with the specified lifecycle environment. */ @@ -115,6 +137,17 @@ public Integer getSecurityUpdatesAvailableEqualsTo() { public Integer getBugUpdatesAvailableEqualsTo() { return bugUpdatesAvailableEqualsTo; } + /** + * A filter to return instances that have the specified number of available other updates. + */ + private Integer otherUpdatesAvailableEqualsTo; + + /** + * A filter to return instances that have the specified number of available other updates. + */ + public Integer getOtherUpdatesAvailableEqualsTo() { + return otherUpdatesAvailableEqualsTo; + } /** * A filter to return instances that have more available security updates than the number specified. */ @@ -137,6 +170,17 @@ public Integer getSecurityUpdatesAvailableGreaterThan() { public Integer getBugUpdatesAvailableGreaterThan() { return bugUpdatesAvailableGreaterThan; } + /** + * A filter to return instances that have more available other updates than the number specified. + */ + private Integer otherUpdatesAvailableGreaterThan; + + /** + * A filter to return instances that have more available other updates than the number specified. + */ + public Integer getOtherUpdatesAvailableGreaterThan() { + return otherUpdatesAvailableGreaterThan; + } /** * A filter to return only resources whose location matches the given value. */ @@ -246,6 +290,7 @@ public enum ReportType { Security("SECURITY"), Bugfix("BUGFIX"), Activity("ACTIVITY"), + Other("OTHER"), All("ALL"), ; @@ -321,6 +366,21 @@ public Builder compartmentId(String compartmentId) { return this; } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. This filter returns resources associated with this group. */ @@ -336,6 +396,21 @@ public Builder managedInstanceGroupId(String managedInstanceGroupId) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the lifecycle environment. This filter returns only resource contained with the specified lifecycle environment. */ @@ -461,6 +536,21 @@ public Builder bugUpdatesAvailableEqualsTo(Integer bugUpdatesAvailableEqualsTo) return this; } + /** + * A filter to return instances that have the specified number of available other updates. + */ + private Integer otherUpdatesAvailableEqualsTo = null; + + /** + * A filter to return instances that have the specified number of available other updates. + * @param otherUpdatesAvailableEqualsTo the value to set + * @return this builder instance + */ + public Builder otherUpdatesAvailableEqualsTo(Integer otherUpdatesAvailableEqualsTo) { + this.otherUpdatesAvailableEqualsTo = otherUpdatesAvailableEqualsTo; + return this; + } + /** * A filter to return instances that have more available security updates than the number specified. */ @@ -492,6 +582,21 @@ public Builder bugUpdatesAvailableGreaterThan(Integer bugUpdatesAvailableGreater return this; } + /** + * A filter to return instances that have more available other updates than the number specified. + */ + private Integer otherUpdatesAvailableGreaterThan = null; + + /** + * A filter to return instances that have more available other updates than the number specified. + * @param otherUpdatesAvailableGreaterThan the value to set + * @return this builder instance + */ + public Builder otherUpdatesAvailableGreaterThan(Integer otherUpdatesAvailableGreaterThan) { + this.otherUpdatesAvailableGreaterThan = otherUpdatesAvailableGreaterThan; + return this; + } + /** * A filter to return only resources whose location matches the given value. */ @@ -662,7 +767,9 @@ public Builder retryConfiguration( */ public Builder copy(GetManagedInstanceAnalyticContentRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); managedInstanceGroupId(o.getManagedInstanceGroupId()); + dynamicSetId(o.getDynamicSetId()); lifecycleEnvironmentId(o.getLifecycleEnvironmentId()); lifecycleStageId(o.getLifecycleStageId()); status(o.getStatus()); @@ -670,8 +777,10 @@ public Builder copy(GetManagedInstanceAnalyticContentRequest o) { displayNameContains(o.getDisplayNameContains()); securityUpdatesAvailableEqualsTo(o.getSecurityUpdatesAvailableEqualsTo()); bugUpdatesAvailableEqualsTo(o.getBugUpdatesAvailableEqualsTo()); + otherUpdatesAvailableEqualsTo(o.getOtherUpdatesAvailableEqualsTo()); securityUpdatesAvailableGreaterThan(o.getSecurityUpdatesAvailableGreaterThan()); bugUpdatesAvailableGreaterThan(o.getBugUpdatesAvailableGreaterThan()); + otherUpdatesAvailableGreaterThan(o.getOtherUpdatesAvailableGreaterThan()); location(o.getLocation()); locationNotEqualTo(o.getLocationNotEqualTo()); osFamily(o.getOsFamily()); @@ -713,7 +822,9 @@ public GetManagedInstanceAnalyticContentRequest buildWithoutInvocationCallback() GetManagedInstanceAnalyticContentRequest request = new GetManagedInstanceAnalyticContentRequest(); request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.managedInstanceGroupId = managedInstanceGroupId; + request.dynamicSetId = dynamicSetId; request.lifecycleEnvironmentId = lifecycleEnvironmentId; request.lifecycleStageId = lifecycleStageId; request.status = status; @@ -721,8 +832,10 @@ public GetManagedInstanceAnalyticContentRequest buildWithoutInvocationCallback() request.displayNameContains = displayNameContains; request.securityUpdatesAvailableEqualsTo = securityUpdatesAvailableEqualsTo; request.bugUpdatesAvailableEqualsTo = bugUpdatesAvailableEqualsTo; + request.otherUpdatesAvailableEqualsTo = otherUpdatesAvailableEqualsTo; request.securityUpdatesAvailableGreaterThan = securityUpdatesAvailableGreaterThan; request.bugUpdatesAvailableGreaterThan = bugUpdatesAvailableGreaterThan; + request.otherUpdatesAvailableGreaterThan = otherUpdatesAvailableGreaterThan; request.location = location; request.locationNotEqualTo = locationNotEqualTo; request.osFamily = osFamily; @@ -731,7 +844,7 @@ public GetManagedInstanceAnalyticContentRequest buildWithoutInvocationCallback() request.reportType = reportType; request.opcRequestId = opcRequestId; return request; - // new GetManagedInstanceAnalyticContentRequest(compartmentId, managedInstanceGroupId, lifecycleEnvironmentId, lifecycleStageId, status, displayName, displayNameContains, securityUpdatesAvailableEqualsTo, bugUpdatesAvailableEqualsTo, securityUpdatesAvailableGreaterThan, bugUpdatesAvailableGreaterThan, location, locationNotEqualTo, osFamily, isManagedByAutonomousLinux, reportFormat, reportType, opcRequestId); + // new GetManagedInstanceAnalyticContentRequest(compartmentId, compartmentIdInSubtree, managedInstanceGroupId, dynamicSetId, lifecycleEnvironmentId, lifecycleStageId, status, displayName, displayNameContains, securityUpdatesAvailableEqualsTo, bugUpdatesAvailableEqualsTo, otherUpdatesAvailableEqualsTo, securityUpdatesAvailableGreaterThan, bugUpdatesAvailableGreaterThan, otherUpdatesAvailableGreaterThan, location, locationNotEqualTo, osFamily, isManagedByAutonomousLinux, reportFormat, reportType, opcRequestId); } } @@ -742,7 +855,9 @@ public GetManagedInstanceAnalyticContentRequest buildWithoutInvocationCallback() public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .managedInstanceGroupId(managedInstanceGroupId) + .dynamicSetId(dynamicSetId) .lifecycleEnvironmentId(lifecycleEnvironmentId) .lifecycleStageId(lifecycleStageId) .status(status) @@ -750,8 +865,10 @@ public Builder toBuilder() { .displayNameContains(displayNameContains) .securityUpdatesAvailableEqualsTo(securityUpdatesAvailableEqualsTo) .bugUpdatesAvailableEqualsTo(bugUpdatesAvailableEqualsTo) + .otherUpdatesAvailableEqualsTo(otherUpdatesAvailableEqualsTo) .securityUpdatesAvailableGreaterThan(securityUpdatesAvailableGreaterThan) .bugUpdatesAvailableGreaterThan(bugUpdatesAvailableGreaterThan) + .otherUpdatesAvailableGreaterThan(otherUpdatesAvailableGreaterThan) .location(location) .locationNotEqualTo(locationNotEqualTo) .osFamily(osFamily) @@ -775,7 +892,9 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); sb.append(",managedInstanceGroupId=").append(String.valueOf(this.managedInstanceGroupId)); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); sb.append(",lifecycleEnvironmentId=").append(String.valueOf(this.lifecycleEnvironmentId)); sb.append(",lifecycleStageId=").append(String.valueOf(this.lifecycleStageId)); sb.append(",status=").append(String.valueOf(this.status)); @@ -785,10 +904,14 @@ public String toString() { .append(String.valueOf(this.securityUpdatesAvailableEqualsTo)); sb.append(",bugUpdatesAvailableEqualsTo=") .append(String.valueOf(this.bugUpdatesAvailableEqualsTo)); + sb.append(",otherUpdatesAvailableEqualsTo=") + .append(String.valueOf(this.otherUpdatesAvailableEqualsTo)); sb.append(",securityUpdatesAvailableGreaterThan=") .append(String.valueOf(this.securityUpdatesAvailableGreaterThan)); sb.append(",bugUpdatesAvailableGreaterThan=") .append(String.valueOf(this.bugUpdatesAvailableGreaterThan)); + sb.append(",otherUpdatesAvailableGreaterThan=") + .append(String.valueOf(this.otherUpdatesAvailableGreaterThan)); sb.append(",location=").append(String.valueOf(this.location)); sb.append(",locationNotEqualTo=").append(String.valueOf(this.locationNotEqualTo)); sb.append(",osFamily=").append(String.valueOf(this.osFamily)); @@ -814,8 +937,11 @@ public boolean equals(Object o) { (GetManagedInstanceAnalyticContentRequest) o; return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) && java.util.Objects.equals( this.managedInstanceGroupId, other.managedInstanceGroupId) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) && java.util.Objects.equals( this.lifecycleEnvironmentId, other.lifecycleEnvironmentId) && java.util.Objects.equals(this.lifecycleStageId, other.lifecycleStageId) @@ -827,11 +953,16 @@ public boolean equals(Object o) { other.securityUpdatesAvailableEqualsTo) && java.util.Objects.equals( this.bugUpdatesAvailableEqualsTo, other.bugUpdatesAvailableEqualsTo) + && java.util.Objects.equals( + this.otherUpdatesAvailableEqualsTo, other.otherUpdatesAvailableEqualsTo) && java.util.Objects.equals( this.securityUpdatesAvailableGreaterThan, other.securityUpdatesAvailableGreaterThan) && java.util.Objects.equals( this.bugUpdatesAvailableGreaterThan, other.bugUpdatesAvailableGreaterThan) + && java.util.Objects.equals( + this.otherUpdatesAvailableGreaterThan, + other.otherUpdatesAvailableGreaterThan) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.locationNotEqualTo, other.locationNotEqualTo) && java.util.Objects.equals(this.osFamily, other.osFamily) @@ -849,11 +980,17 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); result = (result * PRIME) + (this.managedInstanceGroupId == null ? 43 : this.managedInstanceGroupId.hashCode()); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); result = (result * PRIME) + (this.lifecycleEnvironmentId == null @@ -879,6 +1016,11 @@ public int hashCode() { + (this.bugUpdatesAvailableEqualsTo == null ? 43 : this.bugUpdatesAvailableEqualsTo.hashCode()); + result = + (result * PRIME) + + (this.otherUpdatesAvailableEqualsTo == null + ? 43 + : this.otherUpdatesAvailableEqualsTo.hashCode()); result = (result * PRIME) + (this.securityUpdatesAvailableGreaterThan == null @@ -889,6 +1031,11 @@ public int hashCode() { + (this.bugUpdatesAvailableGreaterThan == null ? 43 : this.bugUpdatesAvailableGreaterThan.hashCode()); + result = + (result * PRIME) + + (this.otherUpdatesAvailableGreaterThan == null + ? 43 + : this.otherUpdatesAvailableGreaterThan.hashCode()); result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); result = (result * PRIME) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/InstallPackagesOnDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/InstallPackagesOnDynamicSetRequest.java new file mode 100644 index 00000000000..1412154ee46 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/InstallPackagesOnDynamicSetRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use InstallPackagesOnDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class InstallPackagesOnDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * Details about packages to be installed on a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails + installPackagesOnDynamicSetDetails; + + /** + * Details about packages to be installed on a dynamic set. + */ + public com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails + getInstallPackagesOnDynamicSetDetails() { + return installPackagesOnDynamicSetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails getBody$() { + return installPackagesOnDynamicSetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + InstallPackagesOnDynamicSetRequest, + com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * Details about packages to be installed on a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails + installPackagesOnDynamicSetDetails = null; + + /** + * Details about packages to be installed on a dynamic set. + * @param installPackagesOnDynamicSetDetails the value to set + * @return this builder instance + */ + public Builder installPackagesOnDynamicSetDetails( + com.oracle.bmc.osmanagementhub.model.InstallPackagesOnDynamicSetDetails + installPackagesOnDynamicSetDetails) { + this.installPackagesOnDynamicSetDetails = installPackagesOnDynamicSetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(InstallPackagesOnDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + installPackagesOnDynamicSetDetails(o.getInstallPackagesOnDynamicSetDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of InstallPackagesOnDynamicSetRequest 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 InstallPackagesOnDynamicSetRequest + */ + public InstallPackagesOnDynamicSetRequest build() { + InstallPackagesOnDynamicSetRequest 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.osmanagementhub.model.InstallPackagesOnDynamicSetDetails body) { + installPackagesOnDynamicSetDetails(body); + return this; + } + + /** + * Build the instance of InstallPackagesOnDynamicSetRequest 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 InstallPackagesOnDynamicSetRequest + */ + public InstallPackagesOnDynamicSetRequest buildWithoutInvocationCallback() { + InstallPackagesOnDynamicSetRequest request = new InstallPackagesOnDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.installPackagesOnDynamicSetDetails = installPackagesOnDynamicSetDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new InstallPackagesOnDynamicSetRequest(dynamicSetId, installPackagesOnDynamicSetDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dynamicSetId(dynamicSetId) + .installPackagesOnDynamicSetDetails(installPackagesOnDynamicSetDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",installPackagesOnDynamicSetDetails=") + .append(String.valueOf(this.installPackagesOnDynamicSetDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallPackagesOnDynamicSetRequest)) { + return false; + } + + InstallPackagesOnDynamicSetRequest other = (InstallPackagesOnDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals( + this.installPackagesOnDynamicSetDetails, + other.installPackagesOnDynamicSetDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = + (result * PRIME) + + (this.installPackagesOnDynamicSetDetails == null + ? 43 + : this.installPackagesOnDynamicSetDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/InstallSnapsOnManagedInstanceRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/InstallSnapsOnManagedInstanceRequest.java new file mode 100644 index 00000000000..f2f9eda4661 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/InstallSnapsOnManagedInstanceRequest.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use InstallSnapsOnManagedInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class InstallSnapsOnManagedInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + public String getManagedInstanceId() { + return managedInstanceId; + } + /** + * Details about snaps to install. + */ + private com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails + installSnapsOnManagedInstanceDetails; + + /** + * Details about snaps to install. + */ + public com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails + getInstallSnapsOnManagedInstanceDetails() { + return installSnapsOnManagedInstanceDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails getBody$() { + return installSnapsOnManagedInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + InstallSnapsOnManagedInstanceRequest, + com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + * @param managedInstanceId the value to set + * @return this builder instance + */ + public Builder managedInstanceId(String managedInstanceId) { + this.managedInstanceId = managedInstanceId; + return this; + } + + /** + * Details about snaps to install. + */ + private com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails + installSnapsOnManagedInstanceDetails = null; + + /** + * Details about snaps to install. + * @param installSnapsOnManagedInstanceDetails the value to set + * @return this builder instance + */ + public Builder installSnapsOnManagedInstanceDetails( + com.oracle.bmc.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails + installSnapsOnManagedInstanceDetails) { + this.installSnapsOnManagedInstanceDetails = installSnapsOnManagedInstanceDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(InstallSnapsOnManagedInstanceRequest o) { + managedInstanceId(o.getManagedInstanceId()); + installSnapsOnManagedInstanceDetails(o.getInstallSnapsOnManagedInstanceDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of InstallSnapsOnManagedInstanceRequest 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 InstallSnapsOnManagedInstanceRequest + */ + public InstallSnapsOnManagedInstanceRequest build() { + InstallSnapsOnManagedInstanceRequest 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.osmanagementhub.model.InstallSnapsOnManagedInstanceDetails body) { + installSnapsOnManagedInstanceDetails(body); + return this; + } + + /** + * Build the instance of InstallSnapsOnManagedInstanceRequest 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 InstallSnapsOnManagedInstanceRequest + */ + public InstallSnapsOnManagedInstanceRequest buildWithoutInvocationCallback() { + InstallSnapsOnManagedInstanceRequest request = + new InstallSnapsOnManagedInstanceRequest(); + request.managedInstanceId = managedInstanceId; + request.installSnapsOnManagedInstanceDetails = installSnapsOnManagedInstanceDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new InstallSnapsOnManagedInstanceRequest(managedInstanceId, installSnapsOnManagedInstanceDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedInstanceId(managedInstanceId) + .installSnapsOnManagedInstanceDetails(installSnapsOnManagedInstanceDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); + sb.append(",installSnapsOnManagedInstanceDetails=") + .append(String.valueOf(this.installSnapsOnManagedInstanceDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallSnapsOnManagedInstanceRequest)) { + return false; + } + + InstallSnapsOnManagedInstanceRequest other = (InstallSnapsOnManagedInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) + && java.util.Objects.equals( + this.installSnapsOnManagedInstanceDetails, + other.installSnapsOnManagedInstanceDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedInstanceId == null ? 43 : this.managedInstanceId.hashCode()); + result = + (result * PRIME) + + (this.installSnapsOnManagedInstanceDetails == null + ? 43 + : this.installSnapsOnManagedInstanceDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwareSourcesToAddRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwareSourcesToAddRequest.java new file mode 100644 index 00000000000..35bea9e8be0 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwareSourcesToAddRequest.java @@ -0,0 +1,659 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use ListAvailableSoftwareSourcesToAddRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAvailableSoftwareSourcesToAddRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This parameter is required and returns only resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This parameter is required and returns only resources contained within the specified compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only resources that match the given operating system family. + */ + private java.util.List osFamily; + + /** + * A filter to return only resources that match the given operating system family. + */ + public java.util.List getOsFamily() { + return osFamily; + } + /** + * A filter to return only instances whose architecture type matches the given architecture. + */ + private java.util.List archType; + + /** + * A filter to return only instances whose architecture type matches the given architecture. + */ + public java.util.List getArchType() { + return archType; + } + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName; + + /** + * A filter to return resources that match the given user-friendly name. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains; + + /** + * A filter to return resources that may partially match the given display name. + */ + public String getDisplayNameContains() { + return displayNameContains; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAvailableSoftwareSourcesToAddRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This parameter is required and returns only resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This parameter is required and returns only resources contained within the specified compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources that match the given operating system family. + */ + private java.util.List osFamily = null; + + /** + * A filter to return only resources that match the given operating system family. + * @param osFamily the value to set + * @return this builder instance + */ + public Builder osFamily( + java.util.List osFamily) { + this.osFamily = osFamily; + return this; + } + + /** + * Singular setter. A filter to return only resources that match the given operating system family. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder osFamily(OsFamily singularValue) { + return this.osFamily(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only instances whose architecture type matches the given architecture. + */ + private java.util.List archType = null; + + /** + * A filter to return only instances whose architecture type matches the given architecture. + * @param archType the value to set + * @return this builder instance + */ + public Builder archType( + java.util.List archType) { + this.archType = archType; + return this; + } + + /** + * Singular setter. A filter to return only instances whose architecture type matches the given architecture. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder archType(ArchType singularValue) { + return this.archType(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName = null; + + /** + * A filter to return resources that match the given user-friendly name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAvailableSoftwareSourcesToAddRequest o) { + compartmentId(o.getCompartmentId()); + osFamily(o.getOsFamily()); + archType(o.getArchType()); + displayName(o.getDisplayName()); + displayNameContains(o.getDisplayNameContains()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAvailableSoftwareSourcesToAddRequest 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 ListAvailableSoftwareSourcesToAddRequest + */ + public ListAvailableSoftwareSourcesToAddRequest build() { + ListAvailableSoftwareSourcesToAddRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAvailableSoftwareSourcesToAddRequest 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 ListAvailableSoftwareSourcesToAddRequest + */ + public ListAvailableSoftwareSourcesToAddRequest buildWithoutInvocationCallback() { + ListAvailableSoftwareSourcesToAddRequest request = + new ListAvailableSoftwareSourcesToAddRequest(); + request.compartmentId = compartmentId; + request.osFamily = osFamily; + request.archType = archType; + request.displayName = displayName; + request.displayNameContains = displayNameContains; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new ListAvailableSoftwareSourcesToAddRequest(compartmentId, osFamily, archType, displayName, displayNameContains, limit, page, sortOrder, sortBy, opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .osFamily(osFamily) + .archType(archType) + .displayName(displayName) + .displayNameContains(displayNameContains) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",osFamily=").append(String.valueOf(this.osFamily)); + sb.append(",archType=").append(String.valueOf(this.archType)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAvailableSoftwareSourcesToAddRequest)) { + return false; + } + + ListAvailableSoftwareSourcesToAddRequest other = + (ListAvailableSoftwareSourcesToAddRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListDynamicSetsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListDynamicSetsRequest.java new file mode 100644 index 00000000000..f92a0e9c3ed --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListDynamicSetsRequest.java @@ -0,0 +1,498 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use ListDynamicSetsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListDynamicSetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains; + + /** + * A filter to return resources that may partially match the given display name. + */ + public String getDisplayNameContains() { + return displayNameContains; + } + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName; + + /** + * A filter to return resources that match the given user-friendly name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDynamicSetsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName = null; + + /** + * A filter to return resources that match the given user-friendly name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDynamicSetsRequest o) { + compartmentId(o.getCompartmentId()); + displayNameContains(o.getDisplayNameContains()); + displayName(o.getDisplayName()); + dynamicSetId(o.getDynamicSetId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDynamicSetsRequest 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 ListDynamicSetsRequest + */ + public ListDynamicSetsRequest build() { + ListDynamicSetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDynamicSetsRequest 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 ListDynamicSetsRequest + */ + public ListDynamicSetsRequest buildWithoutInvocationCallback() { + ListDynamicSetsRequest request = new ListDynamicSetsRequest(); + request.compartmentId = compartmentId; + request.displayNameContains = displayNameContains; + request.displayName = displayName; + request.dynamicSetId = dynamicSetId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDynamicSetsRequest(compartmentId, displayNameContains, displayName, dynamicSetId, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayNameContains(displayNameContains) + .displayName(displayName) + .dynamicSetId(dynamicSetId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDynamicSetsRequest)) { + return false; + } + + ListDynamicSetsRequest other = (ListDynamicSetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.java index 56aec5d4682..99b1d4ad05d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.java @@ -59,8 +59,7 @@ public String getCompartmentId() { /** * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - *

- * Example: {@code 50} + * Example: {@code 700} * */ private Integer limit; @@ -68,8 +67,7 @@ public String getCompartmentId() { /** * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - *

- * Example: {@code 50} + * Example: {@code 700} * */ public Integer getLimit() { @@ -246,8 +244,7 @@ public Builder compartmentId(String compartmentId) { /** * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - *

- * Example: {@code 50} + * Example: {@code 700} * */ private Integer limit = null; @@ -255,8 +252,7 @@ public Builder compartmentId(String compartmentId) { /** * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - *

- * Example: {@code 50} + * Example: {@code 700} * * @param limit the value to set * @return this builder instance diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceGroupManagedInstancesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceGroupManagedInstancesRequest.java new file mode 100644 index 00000000000..5eb2e192c63 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceGroupManagedInstancesRequest.java @@ -0,0 +1,587 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use ListManagedInstanceGroupManagedInstancesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstanceGroupManagedInstancesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + */ + private String managedInstanceGroupId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + */ + public String getManagedInstanceGroupId() { + return managedInstanceGroupId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. This filter returns resources associated with this managed instance. + */ + private String managedInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. This filter returns resources associated with this managed instance. + */ + public String getManagedInstanceId() { + return managedInstanceId; + } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * A filter to return resources that match the given display names. + */ + private java.util.List displayName; + + /** + * A filter to return resources that match the given display names. + */ + public java.util.List getDisplayName() { + return displayName; + } + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains; + + /** + * A filter to return resources that may partially match the given display name. + */ + public String getDisplayNameContains() { + return displayNameContains; + } + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListManagedInstanceGroupManagedInstancesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + */ + private String managedInstanceGroupId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + * @param managedInstanceGroupId the value to set + * @return this builder instance + */ + public Builder managedInstanceGroupId(String managedInstanceGroupId) { + this.managedInstanceGroupId = managedInstanceGroupId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. This filter returns resources associated with this managed instance. + */ + private String managedInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. This filter returns resources associated with this managed instance. + * @param managedInstanceId the value to set + * @return this builder instance + */ + public Builder managedInstanceId(String managedInstanceId) { + this.managedInstanceId = managedInstanceId; + return this; + } + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * A filter to return resources that match the given display names. + */ + private java.util.List displayName = null; + + /** + * A filter to return resources that match the given display names. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(java.util.List displayName) { + this.displayName = displayName; + return this; + } + + /** + * Singular setter. A filter to return resources that match the given display names. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder displayName(String singularValue) { + return this.displayName(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListManagedInstanceGroupManagedInstancesRequest o) { + managedInstanceGroupId(o.getManagedInstanceGroupId()); + managedInstanceId(o.getManagedInstanceId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + displayName(o.getDisplayName()); + displayNameContains(o.getDisplayNameContains()); + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListManagedInstanceGroupManagedInstancesRequest 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 ListManagedInstanceGroupManagedInstancesRequest + */ + public ListManagedInstanceGroupManagedInstancesRequest build() { + ListManagedInstanceGroupManagedInstancesRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListManagedInstanceGroupManagedInstancesRequest 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 ListManagedInstanceGroupManagedInstancesRequest + */ + public ListManagedInstanceGroupManagedInstancesRequest buildWithoutInvocationCallback() { + ListManagedInstanceGroupManagedInstancesRequest request = + new ListManagedInstanceGroupManagedInstancesRequest(); + request.managedInstanceGroupId = managedInstanceGroupId; + request.managedInstanceId = managedInstanceId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.displayName = displayName; + request.displayNameContains = displayNameContains; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListManagedInstanceGroupManagedInstancesRequest(managedInstanceGroupId, managedInstanceId, compartmentIdInSubtree, displayName, displayNameContains, compartmentId, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedInstanceGroupId(managedInstanceGroupId) + .managedInstanceId(managedInstanceId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .displayName(displayName) + .displayNameContains(displayNameContains) + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedInstanceGroupId=").append(String.valueOf(this.managedInstanceGroupId)); + sb.append(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListManagedInstanceGroupManagedInstancesRequest)) { + return false; + } + + ListManagedInstanceGroupManagedInstancesRequest other = + (ListManagedInstanceGroupManagedInstancesRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.managedInstanceGroupId, other.managedInstanceGroupId) + && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedInstanceGroupId == null + ? 43 + : this.managedInstanceGroupId.hashCode()); + result = + (result * PRIME) + + (this.managedInstanceId == null ? 43 : this.managedInstanceId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceSnapsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceSnapsRequest.java new file mode 100644 index 00000000000..774cff3a95a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceSnapsRequest.java @@ -0,0 +1,500 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use ListManagedInstanceSnapsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstanceSnapsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + public String getManagedInstanceId() { + return managedInstanceId; + } + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The resource name. + * + */ + private String name; + + /** + * The resource name. + * + */ + public String getName() { + return name; + } + /** + * A filter to return resources that may partially match the name given. + */ + private String nameContains; + + /** + * A filter to return resources that may partially match the name given. + */ + public String getNameContains() { + return nameContains; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for name is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for name is ascending. + * + **/ + public enum SortBy { + Name("name"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for name is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListManagedInstanceSnapsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + * @param managedInstanceId the value to set + * @return this builder instance + */ + public Builder managedInstanceId(String managedInstanceId) { + this.managedInstanceId = managedInstanceId; + return this; + } + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The resource name. + * + */ + private String name = null; + + /** + * The resource name. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter to return resources that may partially match the name given. + */ + private String nameContains = null; + + /** + * A filter to return resources that may partially match the name given. + * @param nameContains the value to set + * @return this builder instance + */ + public Builder nameContains(String nameContains) { + this.nameContains = nameContains; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for name is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for name is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListManagedInstanceSnapsRequest o) { + managedInstanceId(o.getManagedInstanceId()); + compartmentId(o.getCompartmentId()); + name(o.getName()); + nameContains(o.getNameContains()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListManagedInstanceSnapsRequest 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 ListManagedInstanceSnapsRequest + */ + public ListManagedInstanceSnapsRequest build() { + ListManagedInstanceSnapsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListManagedInstanceSnapsRequest 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 ListManagedInstanceSnapsRequest + */ + public ListManagedInstanceSnapsRequest buildWithoutInvocationCallback() { + ListManagedInstanceSnapsRequest request = new ListManagedInstanceSnapsRequest(); + request.managedInstanceId = managedInstanceId; + request.compartmentId = compartmentId; + request.name = name; + request.nameContains = nameContains; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListManagedInstanceSnapsRequest(managedInstanceId, compartmentId, name, nameContains, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedInstanceId(managedInstanceId) + .compartmentId(compartmentId) + .name(name) + .nameContains(nameContains) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",nameContains=").append(String.valueOf(this.nameContains)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListManagedInstanceSnapsRequest)) { + return false; + } + + ListManagedInstanceSnapsRequest other = (ListManagedInstanceSnapsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.nameContains, other.nameContains) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedInstanceId == null ? 43 : this.managedInstanceId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.nameContains == null ? 43 : this.nameContains.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.java index 9b48259eedd..270e83cf2b6 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.java @@ -75,6 +75,20 @@ public String getDisplayNameContains() { public java.util.List getAdvisoryName() { return advisoryName; } + /** + * The advisory severity. + * + */ + private java.util.List advisorySeverity; + + /** + * The advisory severity. + * + */ + public java.util.List + getAdvisorySeverity() { + return advisorySeverity; + } /** * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. */ @@ -318,6 +332,36 @@ public Builder advisoryName(String singularValue) { return this.advisoryName(java.util.Arrays.asList(singularValue)); } + /** + * The advisory severity. + * + */ + private java.util.List + advisorySeverity = null; + + /** + * The advisory severity. + * + * @param advisorySeverity the value to set + * @return this builder instance + */ + public Builder advisorySeverity( + java.util.List + advisorySeverity) { + this.advisorySeverity = advisorySeverity; + return this; + } + + /** + * Singular setter. The advisory severity. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder advisorySeverity(AdvisorySeverity singularValue) { + return this.advisorySeverity(java.util.Arrays.asList(singularValue)); + } + /** * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. */ @@ -459,6 +503,7 @@ public Builder copy(ListManagedInstanceUpdatablePackagesRequest o) { displayName(o.getDisplayName()); displayNameContains(o.getDisplayNameContains()); advisoryName(o.getAdvisoryName()); + advisorySeverity(o.getAdvisorySeverity()); compartmentId(o.getCompartmentId()); limit(o.getLimit()); page(o.getPage()); @@ -503,6 +548,7 @@ public ListManagedInstanceUpdatablePackagesRequest buildWithoutInvocationCallbac request.displayName = displayName; request.displayNameContains = displayNameContains; request.advisoryName = advisoryName; + request.advisorySeverity = advisorySeverity; request.compartmentId = compartmentId; request.limit = limit; request.page = page; @@ -510,7 +556,7 @@ public ListManagedInstanceUpdatablePackagesRequest buildWithoutInvocationCallbac request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListManagedInstanceUpdatablePackagesRequest(managedInstanceId, classificationType, displayName, displayNameContains, advisoryName, compartmentId, limit, page, sortOrder, sortBy, opcRequestId); + // new ListManagedInstanceUpdatablePackagesRequest(managedInstanceId, classificationType, displayName, displayNameContains, advisoryName, advisorySeverity, compartmentId, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -525,6 +571,7 @@ public Builder toBuilder() { .displayName(displayName) .displayNameContains(displayNameContains) .advisoryName(advisoryName) + .advisorySeverity(advisorySeverity) .compartmentId(compartmentId) .limit(limit) .page(page) @@ -551,6 +598,7 @@ public String toString() { sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); sb.append(",advisoryName=").append(String.valueOf(this.advisoryName)); + sb.append(",advisorySeverity=").append(String.valueOf(this.advisorySeverity)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); @@ -578,6 +626,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) && java.util.Objects.equals(this.advisoryName, other.advisoryName) + && java.util.Objects.equals(this.advisorySeverity, other.advisorySeverity) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) @@ -605,6 +654,9 @@ public int hashCode() { ? 43 : this.displayNameContains.hashCode()); result = (result * PRIME) + (this.advisoryName == null ? 43 : this.advisoryName.hashCode()); + result = + (result * PRIME) + + (this.advisorySeverity == null ? 43 : this.advisorySeverity.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesInDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesInDynamicSetRequest.java new file mode 100644 index 00000000000..fa2a3addaa9 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesInDynamicSetRequest.java @@ -0,0 +1,537 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use ListManagedInstancesInDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstancesInDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains; + + /** + * A filter to return resources that may partially match the given display name. + */ + public String getDisplayNameContains() { + return displayNameContains; + } + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName; + + /** + * A filter to return resources that match the given user-friendly name. + */ + public String getDisplayName() { + return displayName; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListManagedInstancesInDynamicSetRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName = null; + + /** + * A filter to return resources that match the given user-friendly name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListManagedInstancesInDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + displayNameContains(o.getDisplayNameContains()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListManagedInstancesInDynamicSetRequest 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 ListManagedInstancesInDynamicSetRequest + */ + public ListManagedInstancesInDynamicSetRequest build() { + ListManagedInstancesInDynamicSetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListManagedInstancesInDynamicSetRequest 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 ListManagedInstancesInDynamicSetRequest + */ + public ListManagedInstancesInDynamicSetRequest buildWithoutInvocationCallback() { + ListManagedInstancesInDynamicSetRequest request = + new ListManagedInstancesInDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.displayNameContains = displayNameContains; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListManagedInstancesInDynamicSetRequest(dynamicSetId, compartmentId, compartmentIdInSubtree, displayNameContains, displayName, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dynamicSetId(dynamicSetId) + .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .displayNameContains(displayNameContains) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListManagedInstancesInDynamicSetRequest)) { + return false; + } + + ListManagedInstancesInDynamicSetRequest other = (ListManagedInstancesInDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.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()); + 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java index c0ea076a6f9..142fedb43ad 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java @@ -214,6 +214,17 @@ public String getOpcRequestId() { public String getId() { return id; } + /** + * A filter that returns information for management stations in the specified health state. + */ + private com.oracle.bmc.osmanagementhub.model.HealthState healthState; + + /** + * A filter that returns information for management stations in the specified health state. + */ + public com.oracle.bmc.osmanagementhub.model.HealthState getHealthState() { + return healthState; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -462,6 +473,21 @@ public Builder id(String id) { return this; } + /** + * A filter that returns information for management stations in the specified health state. + */ + private com.oracle.bmc.osmanagementhub.model.HealthState healthState = null; + + /** + * A filter that returns information for management stations in the specified health state. + * @param healthState the value to set + * @return this builder instance + */ + public Builder healthState(com.oracle.bmc.osmanagementhub.model.HealthState healthState) { + this.healthState = healthState; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -503,6 +529,7 @@ public Builder copy(ListManagementStationsRequest o) { sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); id(o.getId()); + healthState(o.getHealthState()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -548,8 +575,9 @@ public ListManagementStationsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; request.id = id; + request.healthState = healthState; return request; - // new ListManagementStationsRequest(compartmentId, displayName, displayNameContains, lifecycleState, managedInstanceId, limit, page, location, locationNotEqualTo, sortOrder, sortBy, opcRequestId, id); + // new ListManagementStationsRequest(compartmentId, displayName, displayNameContains, lifecycleState, managedInstanceId, limit, page, location, locationNotEqualTo, sortOrder, sortBy, opcRequestId, id, healthState); } } @@ -571,7 +599,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) - .id(id); + .id(id) + .healthState(healthState); } /** @@ -600,6 +629,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",healthState=").append(String.valueOf(this.healthState)); sb.append(")"); return sb.toString(); } @@ -627,7 +657,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.id, other.id); + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.healthState, other.healthState); } @Override @@ -661,6 +692,7 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.healthState == null ? 43 : this.healthState.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListScheduledJobsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListScheduledJobsRequest.java index 352e1304762..e50098d0baf 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListScheduledJobsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListScheduledJobsRequest.java @@ -336,6 +336,17 @@ public Boolean getCompartmentIdInSubtree() { public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -749,6 +760,21 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -800,6 +826,7 @@ public Builder copy(ListScheduledJobsRequest o) { location(o.getLocation()); locationNotEqualTo(o.getLocationNotEqualTo()); isManagedByAutonomousLinux(o.getIsManagedByAutonomousLinux()); + dynamicSetId(o.getDynamicSetId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -855,8 +882,9 @@ public ListScheduledJobsRequest buildWithoutInvocationCallback() { request.location = location; request.locationNotEqualTo = locationNotEqualTo; request.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + request.dynamicSetId = dynamicSetId; return request; - // new ListScheduledJobsRequest(compartmentId, displayName, displayNameContains, lifecycleState, managedInstanceId, managedInstanceGroupId, managedCompartmentId, lifecycleStageId, operationType, scheduleType, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId, isRestricted, id, compartmentIdInSubtree, location, locationNotEqualTo, isManagedByAutonomousLinux); + // new ListScheduledJobsRequest(compartmentId, displayName, displayNameContains, lifecycleState, managedInstanceId, managedInstanceGroupId, managedCompartmentId, lifecycleStageId, operationType, scheduleType, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId, isRestricted, id, compartmentIdInSubtree, location, locationNotEqualTo, isManagedByAutonomousLinux, dynamicSetId); } } @@ -888,7 +916,8 @@ public Builder toBuilder() { .compartmentIdInSubtree(compartmentIdInSubtree) .location(location) .locationNotEqualTo(locationNotEqualTo) - .isManagedByAutonomousLinux(isManagedByAutonomousLinux); + .isManagedByAutonomousLinux(isManagedByAutonomousLinux) + .dynamicSetId(dynamicSetId); } /** @@ -928,6 +957,7 @@ public String toString() { sb.append(",locationNotEqualTo=").append(String.valueOf(this.locationNotEqualTo)); sb.append(",isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); sb.append(")"); return sb.toString(); } @@ -968,7 +998,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.locationNotEqualTo, other.locationNotEqualTo) && java.util.Objects.equals( - this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId); } @Override @@ -1032,6 +1063,7 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java index 81092c6df59..361e23ad8c2 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java @@ -292,6 +292,17 @@ public java.util.Date getTimeCreatedGreaterThanOrEqualTo() { public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -650,6 +661,21 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { return this; } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -697,6 +723,7 @@ public Builder copy(ListWorkRequestsRequest o) { timeCreatedLessThan(o.getTimeCreatedLessThan()); timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); isManagedByAutonomousLinux(o.getIsManagedByAutonomousLinux()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -748,8 +775,9 @@ public ListWorkRequestsRequest buildWithoutInvocationCallback() { request.timeCreatedLessThan = timeCreatedLessThan; request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; request.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + request.compartmentIdInSubtree = compartmentIdInSubtree; return request; - // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, opcRequestId, page, limit, sortOrder, sortBy, initiatorId, parentId, parentResourcesNotEqualTo, operationType, displayNameContains, retryOfId, rerunOfId, timeCreatedLessThan, timeCreatedGreaterThanOrEqualTo, isManagedByAutonomousLinux); + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, opcRequestId, page, limit, sortOrder, sortBy, initiatorId, parentId, parentResourcesNotEqualTo, operationType, displayNameContains, retryOfId, rerunOfId, timeCreatedLessThan, timeCreatedGreaterThanOrEqualTo, isManagedByAutonomousLinux, compartmentIdInSubtree); } } @@ -777,7 +805,8 @@ public Builder toBuilder() { .rerunOfId(rerunOfId) .timeCreatedLessThan(timeCreatedLessThan) .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) - .isManagedByAutonomousLinux(isManagedByAutonomousLinux); + .isManagedByAutonomousLinux(isManagedByAutonomousLinux) + .compartmentIdInSubtree(compartmentIdInSubtree); } /** @@ -815,6 +844,7 @@ public String toString() { .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); sb.append(",isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); sb.append(")"); return sb.toString(); } @@ -851,7 +881,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) && java.util.Objects.equals( - this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree); } @Override @@ -903,6 +935,11 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/PreviewManagedInstancesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/PreviewManagedInstancesRequest.java new file mode 100644 index 00000000000..a27518cd1f7 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/PreviewManagedInstancesRequest.java @@ -0,0 +1,677 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use PreviewManagedInstancesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class PreviewManagedInstancesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails> { + + /** + * Provides the information used to Preview the dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails + previewManagedInstancesDetails; + + /** + * Provides the information used to Preview the dynamic set. + */ + public com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails + getPreviewManagedInstancesDetails() { + return previewManagedInstancesDetails; + } + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName; + + /** + * A filter to return resources that match the given user-friendly name. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains; + + /** + * A filter to return resources that may partially match the given display name. + */ + public String getDisplayNameContains() { + return displayNameContains; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails getBody$() { + return previewManagedInstancesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PreviewManagedInstancesRequest, + com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Provides the information used to Preview the dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails + previewManagedInstancesDetails = null; + + /** + * Provides the information used to Preview the dynamic set. + * @param previewManagedInstancesDetails the value to set + * @return this builder instance + */ + public Builder previewManagedInstancesDetails( + com.oracle.bmc.osmanagementhub.model.PreviewManagedInstancesDetails + previewManagedInstancesDetails) { + this.previewManagedInstancesDetails = previewManagedInstancesDetails; + return this; + } + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" call. + * For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 3} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * A filter to return resources that match the given user-friendly name. + */ + private String displayName = null; + + /** + * A filter to return resources that match the given user-friendly name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return resources that may partially match the given display name. + */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * Set the invocation callback for the request 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(PreviewManagedInstancesRequest o) { + previewManagedInstancesDetails(o.getPreviewManagedInstancesDetails()); + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + displayName(o.getDisplayName()); + displayNameContains(o.getDisplayNameContains()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PreviewManagedInstancesRequest 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 PreviewManagedInstancesRequest + */ + public PreviewManagedInstancesRequest build() { + PreviewManagedInstancesRequest 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.osmanagementhub.model.PreviewManagedInstancesDetails body) { + previewManagedInstancesDetails(body); + return this; + } + + /** + * Build the instance of PreviewManagedInstancesRequest 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 PreviewManagedInstancesRequest + */ + public PreviewManagedInstancesRequest buildWithoutInvocationCallback() { + PreviewManagedInstancesRequest request = new PreviewManagedInstancesRequest(); + request.previewManagedInstancesDetails = previewManagedInstancesDetails; + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.displayName = displayName; + request.displayNameContains = displayNameContains; + return request; + // new PreviewManagedInstancesRequest(previewManagedInstancesDetails, compartmentId, compartmentIdInSubtree, opcRetryToken, ifMatch, opcRequestId, limit, page, sortOrder, sortBy, displayName, displayNameContains); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .previewManagedInstancesDetails(previewManagedInstancesDetails) + .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .displayName(displayName) + .displayNameContains(displayNameContains); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",previewManagedInstancesDetails=") + .append(String.valueOf(this.previewManagedInstancesDetails)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PreviewManagedInstancesRequest)) { + return false; + } + + PreviewManagedInstancesRequest other = (PreviewManagedInstancesRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.previewManagedInstancesDetails, other.previewManagedInstancesDetails) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.previewManagedInstancesDetails == null + ? 43 + : this.previewManagedInstancesDetails.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + 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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootDynamicSetRequest.java new file mode 100644 index 00000000000..8657159ef49 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootDynamicSetRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use RebootDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes that the service waits for + * the reboot to complete before marking the job as failed. + * + */ + private com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails rebootDynamicSetDetails; + + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes that the service waits for + * the reboot to complete before marking the job as failed. + * + */ + public com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails + getRebootDynamicSetDetails() { + return rebootDynamicSetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails getBody$() { + return rebootDynamicSetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RebootDynamicSetRequest, + com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes that the service waits for + * the reboot to complete before marking the job as failed. + * + */ + private com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails + rebootDynamicSetDetails = null; + + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes that the service waits for + * the reboot to complete before marking the job as failed. + * + * @param rebootDynamicSetDetails the value to set + * @return this builder instance + */ + public Builder rebootDynamicSetDetails( + com.oracle.bmc.osmanagementhub.model.RebootDynamicSetDetails + rebootDynamicSetDetails) { + this.rebootDynamicSetDetails = rebootDynamicSetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RebootDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + rebootDynamicSetDetails(o.getRebootDynamicSetDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RebootDynamicSetRequest 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 RebootDynamicSetRequest + */ + public RebootDynamicSetRequest build() { + RebootDynamicSetRequest 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.osmanagementhub.model.RebootDynamicSetDetails body) { + rebootDynamicSetDetails(body); + return this; + } + + /** + * Build the instance of RebootDynamicSetRequest 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 RebootDynamicSetRequest + */ + public RebootDynamicSetRequest buildWithoutInvocationCallback() { + RebootDynamicSetRequest request = new RebootDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.rebootDynamicSetDetails = rebootDynamicSetDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RebootDynamicSetRequest(dynamicSetId, rebootDynamicSetDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dynamicSetId(dynamicSetId) + .rebootDynamicSetDetails(rebootDynamicSetDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",rebootDynamicSetDetails=").append(String.valueOf(this.rebootDynamicSetDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootDynamicSetRequest)) { + return false; + } + + RebootDynamicSetRequest other = (RebootDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals( + this.rebootDynamicSetDetails, other.rebootDynamicSetDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = + (result * PRIME) + + (this.rebootDynamicSetDetails == null + ? 43 + : this.rebootDynamicSetDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RefreshSoftwareOnManagedInstanceGroupRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RefreshSoftwareOnManagedInstanceGroupRequest.java new file mode 100644 index 00000000000..dcac3b2d913 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RefreshSoftwareOnManagedInstanceGroupRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use RefreshSoftwareOnManagedInstanceGroupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RefreshSoftwareOnManagedInstanceGroupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + */ + private String managedInstanceGroupId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + */ + public String getManagedInstanceGroupId() { + return managedInstanceGroupId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that 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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RefreshSoftwareOnManagedInstanceGroupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + */ + private String managedInstanceGroupId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. + * @param managedInstanceGroupId the value to set + * @return this builder instance + */ + public Builder managedInstanceGroupId(String managedInstanceGroupId) { + this.managedInstanceGroupId = managedInstanceGroupId; + 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. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RefreshSoftwareOnManagedInstanceGroupRequest o) { + managedInstanceGroupId(o.getManagedInstanceGroupId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RefreshSoftwareOnManagedInstanceGroupRequest 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 RefreshSoftwareOnManagedInstanceGroupRequest + */ + public RefreshSoftwareOnManagedInstanceGroupRequest build() { + RefreshSoftwareOnManagedInstanceGroupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RefreshSoftwareOnManagedInstanceGroupRequest 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 RefreshSoftwareOnManagedInstanceGroupRequest + */ + public RefreshSoftwareOnManagedInstanceGroupRequest buildWithoutInvocationCallback() { + RefreshSoftwareOnManagedInstanceGroupRequest request = + new RefreshSoftwareOnManagedInstanceGroupRequest(); + request.managedInstanceGroupId = managedInstanceGroupId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RefreshSoftwareOnManagedInstanceGroupRequest(managedInstanceGroupId, 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() + .managedInstanceGroupId(managedInstanceGroupId) + .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(",managedInstanceGroupId=").append(String.valueOf(this.managedInstanceGroupId)); + 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 RefreshSoftwareOnManagedInstanceGroupRequest)) { + return false; + } + + RefreshSoftwareOnManagedInstanceGroupRequest other = + (RefreshSoftwareOnManagedInstanceGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.managedInstanceGroupId, other.managedInstanceGroupId) + && 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.managedInstanceGroupId == null + ? 43 + : this.managedInstanceGroupId.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromDynamicSetRequest.java new file mode 100644 index 00000000000..bdb0780c19e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromDynamicSetRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use RemovePackagesFromDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemovePackagesFromDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * Details about packages to be removed on a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails + removePackagesFromDynamicSetDetails; + + /** + * Details about packages to be removed on a dynamic set. + */ + public com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails + getRemovePackagesFromDynamicSetDetails() { + return removePackagesFromDynamicSetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails getBody$() { + return removePackagesFromDynamicSetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemovePackagesFromDynamicSetRequest, + com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * Details about packages to be removed on a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails + removePackagesFromDynamicSetDetails = null; + + /** + * Details about packages to be removed on a dynamic set. + * @param removePackagesFromDynamicSetDetails the value to set + * @return this builder instance + */ + public Builder removePackagesFromDynamicSetDetails( + com.oracle.bmc.osmanagementhub.model.RemovePackagesFromDynamicSetDetails + removePackagesFromDynamicSetDetails) { + this.removePackagesFromDynamicSetDetails = removePackagesFromDynamicSetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemovePackagesFromDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + removePackagesFromDynamicSetDetails(o.getRemovePackagesFromDynamicSetDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemovePackagesFromDynamicSetRequest 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 RemovePackagesFromDynamicSetRequest + */ + public RemovePackagesFromDynamicSetRequest build() { + RemovePackagesFromDynamicSetRequest 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.osmanagementhub.model.RemovePackagesFromDynamicSetDetails body) { + removePackagesFromDynamicSetDetails(body); + return this; + } + + /** + * Build the instance of RemovePackagesFromDynamicSetRequest 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 RemovePackagesFromDynamicSetRequest + */ + public RemovePackagesFromDynamicSetRequest buildWithoutInvocationCallback() { + RemovePackagesFromDynamicSetRequest request = new RemovePackagesFromDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.removePackagesFromDynamicSetDetails = removePackagesFromDynamicSetDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RemovePackagesFromDynamicSetRequest(dynamicSetId, removePackagesFromDynamicSetDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dynamicSetId(dynamicSetId) + .removePackagesFromDynamicSetDetails(removePackagesFromDynamicSetDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",removePackagesFromDynamicSetDetails=") + .append(String.valueOf(this.removePackagesFromDynamicSetDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemovePackagesFromDynamicSetRequest)) { + return false; + } + + RemovePackagesFromDynamicSetRequest other = (RemovePackagesFromDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals( + this.removePackagesFromDynamicSetDetails, + other.removePackagesFromDynamicSetDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = + (result * PRIME) + + (this.removePackagesFromDynamicSetDetails == null + ? 43 + : this.removePackagesFromDynamicSetDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemoveSnapsFromManagedInstanceRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemoveSnapsFromManagedInstanceRequest.java new file mode 100644 index 00000000000..c46cc4b104e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemoveSnapsFromManagedInstanceRequest.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use RemoveSnapsFromManagedInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemoveSnapsFromManagedInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + public String getManagedInstanceId() { + return managedInstanceId; + } + /** + * Details about snaps to install. + */ + private com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails + removeSnapsFromManagedInstanceDetails; + + /** + * Details about snaps to install. + */ + public com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails + getRemoveSnapsFromManagedInstanceDetails() { + return removeSnapsFromManagedInstanceDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails getBody$() { + return removeSnapsFromManagedInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveSnapsFromManagedInstanceRequest, + com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + * @param managedInstanceId the value to set + * @return this builder instance + */ + public Builder managedInstanceId(String managedInstanceId) { + this.managedInstanceId = managedInstanceId; + return this; + } + + /** + * Details about snaps to install. + */ + private com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails + removeSnapsFromManagedInstanceDetails = null; + + /** + * Details about snaps to install. + * @param removeSnapsFromManagedInstanceDetails the value to set + * @return this builder instance + */ + public Builder removeSnapsFromManagedInstanceDetails( + com.oracle.bmc.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails + removeSnapsFromManagedInstanceDetails) { + this.removeSnapsFromManagedInstanceDetails = removeSnapsFromManagedInstanceDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveSnapsFromManagedInstanceRequest o) { + managedInstanceId(o.getManagedInstanceId()); + removeSnapsFromManagedInstanceDetails(o.getRemoveSnapsFromManagedInstanceDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveSnapsFromManagedInstanceRequest 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 RemoveSnapsFromManagedInstanceRequest + */ + public RemoveSnapsFromManagedInstanceRequest build() { + RemoveSnapsFromManagedInstanceRequest 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.osmanagementhub.model.RemoveSnapsFromManagedInstanceDetails body) { + removeSnapsFromManagedInstanceDetails(body); + return this; + } + + /** + * Build the instance of RemoveSnapsFromManagedInstanceRequest 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 RemoveSnapsFromManagedInstanceRequest + */ + public RemoveSnapsFromManagedInstanceRequest buildWithoutInvocationCallback() { + RemoveSnapsFromManagedInstanceRequest request = + new RemoveSnapsFromManagedInstanceRequest(); + request.managedInstanceId = managedInstanceId; + request.removeSnapsFromManagedInstanceDetails = removeSnapsFromManagedInstanceDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RemoveSnapsFromManagedInstanceRequest(managedInstanceId, removeSnapsFromManagedInstanceDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedInstanceId(managedInstanceId) + .removeSnapsFromManagedInstanceDetails(removeSnapsFromManagedInstanceDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); + sb.append(",removeSnapsFromManagedInstanceDetails=") + .append(String.valueOf(this.removeSnapsFromManagedInstanceDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveSnapsFromManagedInstanceRequest)) { + return false; + } + + RemoveSnapsFromManagedInstanceRequest other = (RemoveSnapsFromManagedInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) + && java.util.Objects.equals( + this.removeSnapsFromManagedInstanceDetails, + other.removeSnapsFromManagedInstanceDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedInstanceId == null ? 43 : this.managedInstanceId.hashCode()); + result = + (result * PRIME) + + (this.removeSnapsFromManagedInstanceDetails == null + ? 43 + : this.removeSnapsFromManagedInstanceDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.java index 0e69f0ad4f9..4bf2faf713f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.java @@ -38,6 +38,17 @@ public java.util.List getMetric public String getCompartmentId() { return compartmentId; } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. This filter returns resources associated with this group. */ @@ -49,6 +60,17 @@ public String getCompartmentId() { public String getManagedInstanceGroupId() { return managedInstanceGroupId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the lifecycle environment. This filter returns only resource contained with the specified lifecycle environment. */ @@ -319,6 +341,21 @@ public Builder compartmentId(String compartmentId) { return this; } + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Indicates whether to include subcompartments in the returned results. Default is false. + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. This filter returns resources associated with this group. */ @@ -334,6 +371,21 @@ public Builder managedInstanceGroupId(String managedInstanceGroupId) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the lifecycle environment. This filter returns only resource contained with the specified lifecycle environment. */ @@ -650,7 +702,9 @@ public Builder retryConfiguration( public Builder copy(SummarizeManagedInstanceAnalyticsRequest o) { metricNames(o.getMetricNames()); compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); managedInstanceGroupId(o.getManagedInstanceGroupId()); + dynamicSetId(o.getDynamicSetId()); lifecycleEnvironmentId(o.getLifecycleEnvironmentId()); lifecycleStageId(o.getLifecycleStageId()); status(o.getStatus()); @@ -700,7 +754,9 @@ public SummarizeManagedInstanceAnalyticsRequest buildWithoutInvocationCallback() new SummarizeManagedInstanceAnalyticsRequest(); request.metricNames = metricNames; request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.managedInstanceGroupId = managedInstanceGroupId; + request.dynamicSetId = dynamicSetId; request.lifecycleEnvironmentId = lifecycleEnvironmentId; request.lifecycleStageId = lifecycleStageId; request.status = status; @@ -716,7 +772,7 @@ public SummarizeManagedInstanceAnalyticsRequest buildWithoutInvocationCallback() request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; return request; - // new SummarizeManagedInstanceAnalyticsRequest(metricNames, compartmentId, managedInstanceGroupId, lifecycleEnvironmentId, lifecycleStageId, status, location, locationNotEqualTo, osFamily, isManagedByAutonomousLinux, displayName, displayNameContains, limit, page, sortBy, sortOrder, opcRequestId); + // new SummarizeManagedInstanceAnalyticsRequest(metricNames, compartmentId, compartmentIdInSubtree, managedInstanceGroupId, dynamicSetId, lifecycleEnvironmentId, lifecycleStageId, status, location, locationNotEqualTo, osFamily, isManagedByAutonomousLinux, displayName, displayNameContains, limit, page, sortBy, sortOrder, opcRequestId); } } @@ -728,7 +784,9 @@ public Builder toBuilder() { return new Builder() .metricNames(metricNames) .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .managedInstanceGroupId(managedInstanceGroupId) + .dynamicSetId(dynamicSetId) .lifecycleEnvironmentId(lifecycleEnvironmentId) .lifecycleStageId(lifecycleStageId) .status(status) @@ -760,7 +818,9 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",metricNames=").append(String.valueOf(this.metricNames)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); sb.append(",managedInstanceGroupId=").append(String.valueOf(this.managedInstanceGroupId)); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); sb.append(",lifecycleEnvironmentId=").append(String.valueOf(this.lifecycleEnvironmentId)); sb.append(",lifecycleStageId=").append(String.valueOf(this.lifecycleStageId)); sb.append(",status=").append(String.valueOf(this.status)); @@ -794,8 +854,11 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.metricNames, other.metricNames) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) && java.util.Objects.equals( this.managedInstanceGroupId, other.managedInstanceGroupId) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) && java.util.Objects.equals( this.lifecycleEnvironmentId, other.lifecycleEnvironmentId) && java.util.Objects.equals(this.lifecycleStageId, other.lifecycleStageId) @@ -822,11 +885,17 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); result = (result * PRIME) + (this.managedInstanceGroupId == null ? 43 : this.managedInstanceGroupId.hashCode()); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); result = (result * PRIME) + (this.lifecycleEnvironmentId == null diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SwitchSnapChannelOnManagedInstanceRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SwitchSnapChannelOnManagedInstanceRequest.java new file mode 100644 index 00000000000..d3f7d6ae975 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SwitchSnapChannelOnManagedInstanceRequest.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use SwitchSnapChannelOnManagedInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SwitchSnapChannelOnManagedInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + public String getManagedInstanceId() { + return managedInstanceId; + } + /** + * Details about snaps to install. + */ + private com.oracle.bmc.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails + switchSnapChannelOnManagedInstanceDetails; + + /** + * Details about snaps to install. + */ + public com.oracle.bmc.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails + getSwitchSnapChannelOnManagedInstanceDetails() { + return switchSnapChannelOnManagedInstanceDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails + getBody$() { + return switchSnapChannelOnManagedInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SwitchSnapChannelOnManagedInstanceRequest, + com.oracle.bmc.osmanagementhub.model + .SwitchSnapChannelOnManagedInstanceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + */ + private String managedInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. + * @param managedInstanceId the value to set + * @return this builder instance + */ + public Builder managedInstanceId(String managedInstanceId) { + this.managedInstanceId = managedInstanceId; + return this; + } + + /** + * Details about snaps to install. + */ + private com.oracle.bmc.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails + switchSnapChannelOnManagedInstanceDetails = null; + + /** + * Details about snaps to install. + * @param switchSnapChannelOnManagedInstanceDetails the value to set + * @return this builder instance + */ + public Builder switchSnapChannelOnManagedInstanceDetails( + com.oracle.bmc.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails + switchSnapChannelOnManagedInstanceDetails) { + this.switchSnapChannelOnManagedInstanceDetails = + switchSnapChannelOnManagedInstanceDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SwitchSnapChannelOnManagedInstanceRequest o) { + managedInstanceId(o.getManagedInstanceId()); + switchSnapChannelOnManagedInstanceDetails( + o.getSwitchSnapChannelOnManagedInstanceDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SwitchSnapChannelOnManagedInstanceRequest 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 SwitchSnapChannelOnManagedInstanceRequest + */ + public SwitchSnapChannelOnManagedInstanceRequest build() { + SwitchSnapChannelOnManagedInstanceRequest 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.osmanagementhub.model.SwitchSnapChannelOnManagedInstanceDetails + body) { + switchSnapChannelOnManagedInstanceDetails(body); + return this; + } + + /** + * Build the instance of SwitchSnapChannelOnManagedInstanceRequest 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 SwitchSnapChannelOnManagedInstanceRequest + */ + public SwitchSnapChannelOnManagedInstanceRequest buildWithoutInvocationCallback() { + SwitchSnapChannelOnManagedInstanceRequest request = + new SwitchSnapChannelOnManagedInstanceRequest(); + request.managedInstanceId = managedInstanceId; + request.switchSnapChannelOnManagedInstanceDetails = + switchSnapChannelOnManagedInstanceDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new SwitchSnapChannelOnManagedInstanceRequest(managedInstanceId, switchSnapChannelOnManagedInstanceDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedInstanceId(managedInstanceId) + .switchSnapChannelOnManagedInstanceDetails( + switchSnapChannelOnManagedInstanceDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); + sb.append(",switchSnapChannelOnManagedInstanceDetails=") + .append(String.valueOf(this.switchSnapChannelOnManagedInstanceDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchSnapChannelOnManagedInstanceRequest)) { + return false; + } + + SwitchSnapChannelOnManagedInstanceRequest other = + (SwitchSnapChannelOnManagedInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) + && java.util.Objects.equals( + this.switchSnapChannelOnManagedInstanceDetails, + other.switchSnapChannelOnManagedInstanceDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedInstanceId == null ? 43 : this.managedInstanceId.hashCode()); + result = + (result * PRIME) + + (this.switchSnapChannelOnManagedInstanceDetails == null + ? 43 + : this.switchSnapChannelOnManagedInstanceDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateDynamicSetRequest.java new file mode 100644 index 00000000000..9cb047647fa --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateDynamicSetRequest.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use UpdateDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * Details to update a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails updateDynamicSetDetails; + + /** + * Details to update a dynamic set. + */ + public com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails + getUpdateDynamicSetDetails() { + return updateDynamicSetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that 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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails getBody$() { + return updateDynamicSetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDynamicSetRequest, + com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * Details to update a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails + updateDynamicSetDetails = null; + + /** + * Details to update a dynamic set. + * @param updateDynamicSetDetails the value to set + * @return this builder instance + */ + public Builder updateDynamicSetDetails( + com.oracle.bmc.osmanagementhub.model.UpdateDynamicSetDetails + updateDynamicSetDetails) { + this.updateDynamicSetDetails = updateDynamicSetDetails; + 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. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + updateDynamicSetDetails(o.getUpdateDynamicSetDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDynamicSetRequest 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 UpdateDynamicSetRequest + */ + public UpdateDynamicSetRequest build() { + UpdateDynamicSetRequest 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.osmanagementhub.model.UpdateDynamicSetDetails body) { + updateDynamicSetDetails(body); + return this; + } + + /** + * Build the instance of UpdateDynamicSetRequest 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 UpdateDynamicSetRequest + */ + public UpdateDynamicSetRequest buildWithoutInvocationCallback() { + UpdateDynamicSetRequest request = new UpdateDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.updateDynamicSetDetails = updateDynamicSetDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateDynamicSetRequest(dynamicSetId, updateDynamicSetDetails, 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() + .dynamicSetId(dynamicSetId) + .updateDynamicSetDetails(updateDynamicSetDetails) + .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(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",updateDynamicSetDetails=").append(String.valueOf(this.updateDynamicSetDetails)); + 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 UpdateDynamicSetRequest)) { + return false; + } + + UpdateDynamicSetRequest other = (UpdateDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals( + this.updateDynamicSetDetails, other.updateDynamicSetDetails) + && 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.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = + (result * PRIME) + + (this.updateDynamicSetDetails == null + ? 43 + : this.updateDynamicSetDetails.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdatePackagesOnDynamicSetRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdatePackagesOnDynamicSetRequest.java new file mode 100644 index 00000000000..6b47315d350 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdatePackagesOnDynamicSetRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use UpdatePackagesOnDynamicSetRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdatePackagesOnDynamicSetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + public String getDynamicSetId() { + return dynamicSetId; + } + /** + * Details about packages to be updated on a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails + updatePackagesOnDynamicSetDetails; + + /** + * Details about packages to be updated on a dynamic set. + */ + public com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails + getUpdatePackagesOnDynamicSetDetails() { + return updatePackagesOnDynamicSetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails getBody$() { + return updatePackagesOnDynamicSetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdatePackagesOnDynamicSetRequest, + com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + */ + private String dynamicSetId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. + * @param dynamicSetId the value to set + * @return this builder instance + */ + public Builder dynamicSetId(String dynamicSetId) { + this.dynamicSetId = dynamicSetId; + return this; + } + + /** + * Details about packages to be updated on a dynamic set. + */ + private com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails + updatePackagesOnDynamicSetDetails = null; + + /** + * Details about packages to be updated on a dynamic set. + * @param updatePackagesOnDynamicSetDetails the value to set + * @return this builder instance + */ + public Builder updatePackagesOnDynamicSetDetails( + com.oracle.bmc.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails + updatePackagesOnDynamicSetDetails) { + this.updatePackagesOnDynamicSetDetails = updatePackagesOnDynamicSetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdatePackagesOnDynamicSetRequest o) { + dynamicSetId(o.getDynamicSetId()); + updatePackagesOnDynamicSetDetails(o.getUpdatePackagesOnDynamicSetDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdatePackagesOnDynamicSetRequest 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 UpdatePackagesOnDynamicSetRequest + */ + public UpdatePackagesOnDynamicSetRequest build() { + UpdatePackagesOnDynamicSetRequest 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.osmanagementhub.model.UpdatePackagesOnDynamicSetDetails body) { + updatePackagesOnDynamicSetDetails(body); + return this; + } + + /** + * Build the instance of UpdatePackagesOnDynamicSetRequest 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 UpdatePackagesOnDynamicSetRequest + */ + public UpdatePackagesOnDynamicSetRequest buildWithoutInvocationCallback() { + UpdatePackagesOnDynamicSetRequest request = new UpdatePackagesOnDynamicSetRequest(); + request.dynamicSetId = dynamicSetId; + request.updatePackagesOnDynamicSetDetails = updatePackagesOnDynamicSetDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new UpdatePackagesOnDynamicSetRequest(dynamicSetId, updatePackagesOnDynamicSetDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dynamicSetId(dynamicSetId) + .updatePackagesOnDynamicSetDetails(updatePackagesOnDynamicSetDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dynamicSetId=").append(String.valueOf(this.dynamicSetId)); + sb.append(",updatePackagesOnDynamicSetDetails=") + .append(String.valueOf(this.updatePackagesOnDynamicSetDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePackagesOnDynamicSetRequest)) { + return false; + } + + UpdatePackagesOnDynamicSetRequest other = (UpdatePackagesOnDynamicSetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dynamicSetId, other.dynamicSetId) + && java.util.Objects.equals( + this.updatePackagesOnDynamicSetDetails, + other.updatePackagesOnDynamicSetDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dynamicSetId == null ? 43 : this.dynamicSetId.hashCode()); + result = + (result * PRIME) + + (this.updatePackagesOnDynamicSetDetails == null + ? 43 + : this.updatePackagesOnDynamicSetDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ChangeDynamicSetCompartmentResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ChangeDynamicSetCompartmentResponse.java new file mode 100644 index 00000000000..cdd2ca08525 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ChangeDynamicSetCompartmentResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ChangeDynamicSetCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeDynamicSetCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeDynamicSetCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeDynamicSetCompartmentResponse build() { + return new ChangeDynamicSetCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDynamicSetCompartmentResponse)) { + return false; + } + + ChangeDynamicSetCompartmentResponse other = (ChangeDynamicSetCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/CreateDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/CreateDynamicSetResponse.java new file mode 100644 index 00000000000..9e5a4b33040 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/CreateDynamicSetResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DynamicSet instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet; + + /** + * The returned DynamicSet instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.DynamicSet getDynamicSet() { + return dynamicSet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "dynamicSet" + }) + private CreateDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.dynamicSet = dynamicSet; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DynamicSet instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet; + + /** + * The returned DynamicSet instance. + * @param dynamicSet the value to set + * @return this builder + */ + public Builder dynamicSet(com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet) { + this.dynamicSet = dynamicSet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDynamicSetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dynamicSet(o.getDynamicSet()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDynamicSetResponse build() { + return new CreateDynamicSetResponse( + __httpStatusCode__, headers, etag, opcRequestId, dynamicSet); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",dynamicSet=").append(String.valueOf(dynamicSet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDynamicSetResponse)) { + return false; + } + + CreateDynamicSetResponse other = (CreateDynamicSetResponse) 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.dynamicSet, other.dynamicSet); + } + + @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.dynamicSet == null ? 43 : this.dynamicSet.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DeleteDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DeleteDynamicSetResponse.java new file mode 100644 index 00000000000..479b9c978ef --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DeleteDynamicSetResponse.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDynamicSetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDynamicSetResponse build() { + return new DeleteDynamicSetResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDynamicSetResponse)) { + return false; + } + + DeleteDynamicSetResponse other = (DeleteDynamicSetResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachManagementStationFromProfileResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachManagementStationFromProfileResponse.java new file mode 100644 index 00000000000..9522d46eb39 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachManagementStationFromProfileResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DetachManagementStationFromProfileResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DetachManagementStationFromProfileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DetachManagementStationFromProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DetachManagementStationFromProfileResponse build() { + return new DetachManagementStationFromProfileResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DetachManagementStationFromProfileResponse)) { + return false; + } + + DetachManagementStationFromProfileResponse other = + (DetachManagementStationFromProfileResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetDynamicSetResponse.java new file mode 100644 index 00000000000..58f2b919196 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetDynamicSetResponse.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** + * The returned DynamicSet instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet; + + /** + * The returned DynamicSet instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.DynamicSet getDynamicSet() { + return dynamicSet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "dynamicSet" + }) + private GetDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.dynamicSet = dynamicSet; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * The returned DynamicSet instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet; + + /** + * The returned DynamicSet instance. + * @param dynamicSet the value to set + * @return this builder + */ + public Builder dynamicSet(com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet) { + this.dynamicSet = dynamicSet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDynamicSetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + dynamicSet(o.getDynamicSet()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDynamicSetResponse build() { + return new GetDynamicSetResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, dynamicSet); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",dynamicSet=").append(String.valueOf(dynamicSet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDynamicSetResponse)) { + return false; + } + + GetDynamicSetResponse other = (GetDynamicSetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.dynamicSet, other.dynamicSet); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.dynamicSet == null ? 43 : this.dynamicSet.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/InstallPackagesOnDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/InstallPackagesOnDynamicSetResponse.java new file mode 100644 index 00000000000..ad8e57338fe --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/InstallPackagesOnDynamicSetResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class InstallPackagesOnDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private InstallPackagesOnDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(InstallPackagesOnDynamicSetResponse 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 InstallPackagesOnDynamicSetResponse build() { + return new InstallPackagesOnDynamicSetResponse( + __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 InstallPackagesOnDynamicSetResponse)) { + return false; + } + + InstallPackagesOnDynamicSetResponse other = (InstallPackagesOnDynamicSetResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/InstallSnapsOnManagedInstanceResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/InstallSnapsOnManagedInstanceResponse.java new file mode 100644 index 00000000000..851312ea6c0 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/InstallSnapsOnManagedInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class InstallSnapsOnManagedInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private InstallSnapsOnManagedInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(InstallSnapsOnManagedInstanceResponse 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 InstallSnapsOnManagedInstanceResponse build() { + return new InstallSnapsOnManagedInstanceResponse( + __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 InstallSnapsOnManagedInstanceResponse)) { + return false; + } + + InstallSnapsOnManagedInstanceResponse other = (InstallSnapsOnManagedInstanceResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwareSourcesToAddResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwareSourcesToAddResponse.java new file mode 100644 index 00000000000..11687289ca6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwareSourcesToAddResponse.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAvailableSoftwareSourcesToAddResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** + * The returned SoftwareSourceRepoCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoCollection + softwareSourceRepoCollection; + + /** + * The returned SoftwareSourceRepoCollection instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoCollection + getSoftwareSourceRepoCollection() { + return softwareSourceRepoCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "softwareSourceRepoCollection" + }) + private ListAvailableSoftwareSourcesToAddResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoCollection + softwareSourceRepoCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.softwareSourceRepoCollection = softwareSourceRepoCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** + * The returned SoftwareSourceRepoCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoCollection + softwareSourceRepoCollection; + + /** + * The returned SoftwareSourceRepoCollection instance. + * @param softwareSourceRepoCollection the value to set + * @return this builder + */ + public Builder softwareSourceRepoCollection( + com.oracle.bmc.osmanagementhub.model.SoftwareSourceRepoCollection + softwareSourceRepoCollection) { + this.softwareSourceRepoCollection = softwareSourceRepoCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAvailableSoftwareSourcesToAddResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + softwareSourceRepoCollection(o.getSoftwareSourceRepoCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAvailableSoftwareSourcesToAddResponse build() { + return new ListAvailableSoftwareSourcesToAddResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + softwareSourceRepoCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",softwareSourceRepoCollection=") + .append(String.valueOf(softwareSourceRepoCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAvailableSoftwareSourcesToAddResponse)) { + return false; + } + + ListAvailableSoftwareSourcesToAddResponse other = + (ListAvailableSoftwareSourcesToAddResponse) 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.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals( + this.softwareSourceRepoCollection, other.softwareSourceRepoCollection); + } + + @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.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceRepoCollection == null + ? 43 + : this.softwareSourceRepoCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListDynamicSetsResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListDynamicSetsResponse.java new file mode 100644 index 00000000000..9318c2e9484 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListDynamicSetsResponse.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListDynamicSetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** + * The returned DynamicSetCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSetCollection dynamicSetCollection; + + /** + * The returned DynamicSetCollection instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.DynamicSetCollection getDynamicSetCollection() { + return dynamicSetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "dynamicSetCollection" + }) + private ListDynamicSetsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.osmanagementhub.model.DynamicSetCollection dynamicSetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.dynamicSetCollection = dynamicSetCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** + * The returned DynamicSetCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSetCollection dynamicSetCollection; + + /** + * The returned DynamicSetCollection instance. + * @param dynamicSetCollection the value to set + * @return this builder + */ + public Builder dynamicSetCollection( + com.oracle.bmc.osmanagementhub.model.DynamicSetCollection dynamicSetCollection) { + this.dynamicSetCollection = dynamicSetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDynamicSetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + dynamicSetCollection(o.getDynamicSetCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDynamicSetsResponse build() { + return new ListDynamicSetsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + dynamicSetCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",dynamicSetCollection=").append(String.valueOf(dynamicSetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDynamicSetsResponse)) { + return false; + } + + ListDynamicSetsResponse other = (ListDynamicSetsResponse) 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.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals(this.dynamicSetCollection, other.dynamicSetCollection); + } + + @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.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.dynamicSetCollection == null + ? 43 + : this.dynamicSetCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstanceGroupManagedInstancesResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstanceGroupManagedInstancesResponse.java new file mode 100644 index 00000000000..c3aef49ec9d --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstanceGroupManagedInstancesResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstanceGroupManagedInstancesResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned ManagedInstanceCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection; + + /** + * The returned ManagedInstanceCollection instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + getManagedInstanceCollection() { + return managedInstanceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "managedInstanceCollection" + }) + private ListManagedInstanceGroupManagedInstancesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.managedInstanceCollection = managedInstanceCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned ManagedInstanceCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection; + + /** + * The returned ManagedInstanceCollection instance. + * @param managedInstanceCollection the value to set + * @return this builder + */ + public Builder managedInstanceCollection( + com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection) { + this.managedInstanceCollection = managedInstanceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListManagedInstanceGroupManagedInstancesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + managedInstanceCollection(o.getManagedInstanceCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListManagedInstanceGroupManagedInstancesResponse build() { + return new ListManagedInstanceGroupManagedInstancesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + managedInstanceCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",managedInstanceCollection=").append(String.valueOf(managedInstanceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListManagedInstanceGroupManagedInstancesResponse)) { + return false; + } + + ListManagedInstanceGroupManagedInstancesResponse other = + (ListManagedInstanceGroupManagedInstancesResponse) 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.managedInstanceCollection, other.managedInstanceCollection); + } + + @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.managedInstanceCollection == null + ? 43 + : this.managedInstanceCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstanceSnapsResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstanceSnapsResponse.java new file mode 100644 index 00000000000..9d1ea0a70a2 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstanceSnapsResponse.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstanceSnapsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned SnapCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.SnapCollection snapCollection; + + /** + * The returned SnapCollection instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.SnapCollection getSnapCollection() { + return snapCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "opcNextPage", + "snapCollection" + }) + private ListManagedInstanceSnapsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.osmanagementhub.model.SnapCollection snapCollection) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.snapCollection = snapCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned SnapCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.SnapCollection snapCollection; + + /** + * The returned SnapCollection instance. + * @param snapCollection the value to set + * @return this builder + */ + public Builder snapCollection( + com.oracle.bmc.osmanagementhub.model.SnapCollection snapCollection) { + this.snapCollection = snapCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListManagedInstanceSnapsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + snapCollection(o.getSnapCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListManagedInstanceSnapsResponse build() { + return new ListManagedInstanceSnapsResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + opcNextPage, + snapCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",snapCollection=").append(String.valueOf(snapCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListManagedInstanceSnapsResponse)) { + return false; + } + + ListManagedInstanceSnapsResponse other = (ListManagedInstanceSnapsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.snapCollection, other.snapCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.snapCollection == null ? 43 : this.snapCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesInDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesInDynamicSetResponse.java new file mode 100644 index 00000000000..dbda9ffa55b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesInDynamicSetResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListManagedInstancesInDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** + * The returned ManagedInstanceCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection; + + /** + * The returned ManagedInstanceCollection instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + getManagedInstanceCollection() { + return managedInstanceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "managedInstanceCollection" + }) + private ListManagedInstancesInDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.managedInstanceCollection = managedInstanceCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** + * The returned ManagedInstanceCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection; + + /** + * The returned ManagedInstanceCollection instance. + * @param managedInstanceCollection the value to set + * @return this builder + */ + public Builder managedInstanceCollection( + com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection) { + this.managedInstanceCollection = managedInstanceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListManagedInstancesInDynamicSetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + managedInstanceCollection(o.getManagedInstanceCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListManagedInstancesInDynamicSetResponse build() { + return new ListManagedInstancesInDynamicSetResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + managedInstanceCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",managedInstanceCollection=").append(String.valueOf(managedInstanceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListManagedInstancesInDynamicSetResponse)) { + return false; + } + + ListManagedInstancesInDynamicSetResponse other = + (ListManagedInstancesInDynamicSetResponse) 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.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals( + this.managedInstanceCollection, other.managedInstanceCollection); + } + + @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.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.managedInstanceCollection == null + ? 43 + : this.managedInstanceCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/PreviewManagedInstancesResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/PreviewManagedInstancesResponse.java new file mode 100644 index 00000000000..b4f6a3f7766 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/PreviewManagedInstancesResponse.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class PreviewManagedInstancesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** + * The returned ManagedInstanceCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection; + + /** + * The returned ManagedInstanceCollection instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + getManagedInstanceCollection() { + return managedInstanceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "managedInstanceCollection" + }) + private PreviewManagedInstancesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.managedInstanceCollection = managedInstanceCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** + * The returned ManagedInstanceCollection instance. + */ + private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection; + + /** + * The returned ManagedInstanceCollection instance. + * @param managedInstanceCollection the value to set + * @return this builder + */ + public Builder managedInstanceCollection( + com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection + managedInstanceCollection) { + this.managedInstanceCollection = managedInstanceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PreviewManagedInstancesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + managedInstanceCollection(o.getManagedInstanceCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public PreviewManagedInstancesResponse build() { + return new PreviewManagedInstancesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + managedInstanceCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",managedInstanceCollection=").append(String.valueOf(managedInstanceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PreviewManagedInstancesResponse)) { + return false; + } + + PreviewManagedInstancesResponse other = (PreviewManagedInstancesResponse) 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.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals( + this.managedInstanceCollection, other.managedInstanceCollection); + } + + @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.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.managedInstanceCollection == null + ? 43 + : this.managedInstanceCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootDynamicSetResponse.java new file mode 100644 index 00000000000..b0cc0b4d267 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootDynamicSetResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RebootDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RebootDynamicSetResponse 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 RebootDynamicSetResponse build() { + return new RebootDynamicSetResponse( + __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 RebootDynamicSetResponse)) { + return false; + } + + RebootDynamicSetResponse other = (RebootDynamicSetResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RefreshSoftwareOnManagedInstanceGroupResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RefreshSoftwareOnManagedInstanceGroupResponse.java new file mode 100644 index 00000000000..ba68c09b29a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RefreshSoftwareOnManagedInstanceGroupResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RefreshSoftwareOnManagedInstanceGroupResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RefreshSoftwareOnManagedInstanceGroupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RefreshSoftwareOnManagedInstanceGroupResponse 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 RefreshSoftwareOnManagedInstanceGroupResponse build() { + return new RefreshSoftwareOnManagedInstanceGroupResponse( + __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 RefreshSoftwareOnManagedInstanceGroupResponse)) { + return false; + } + + RefreshSoftwareOnManagedInstanceGroupResponse other = + (RefreshSoftwareOnManagedInstanceGroupResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromDynamicSetResponse.java new file mode 100644 index 00000000000..dd8b5a83a1b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromDynamicSetResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemovePackagesFromDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RemovePackagesFromDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemovePackagesFromDynamicSetResponse 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 RemovePackagesFromDynamicSetResponse build() { + return new RemovePackagesFromDynamicSetResponse( + __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 RemovePackagesFromDynamicSetResponse)) { + return false; + } + + RemovePackagesFromDynamicSetResponse other = (RemovePackagesFromDynamicSetResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemoveSnapsFromManagedInstanceResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemoveSnapsFromManagedInstanceResponse.java new file mode 100644 index 00000000000..b2512f27b08 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemoveSnapsFromManagedInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemoveSnapsFromManagedInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RemoveSnapsFromManagedInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveSnapsFromManagedInstanceResponse 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 RemoveSnapsFromManagedInstanceResponse build() { + return new RemoveSnapsFromManagedInstanceResponse( + __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 RemoveSnapsFromManagedInstanceResponse)) { + return false; + } + + RemoveSnapsFromManagedInstanceResponse other = (RemoveSnapsFromManagedInstanceResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SwitchSnapChannelOnManagedInstanceResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SwitchSnapChannelOnManagedInstanceResponse.java new file mode 100644 index 00000000000..f82e34905eb --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SwitchSnapChannelOnManagedInstanceResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SwitchSnapChannelOnManagedInstanceResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private SwitchSnapChannelOnManagedInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SwitchSnapChannelOnManagedInstanceResponse 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 SwitchSnapChannelOnManagedInstanceResponse build() { + return new SwitchSnapChannelOnManagedInstanceResponse( + __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 SwitchSnapChannelOnManagedInstanceResponse)) { + return false; + } + + SwitchSnapChannelOnManagedInstanceResponse other = + (SwitchSnapChannelOnManagedInstanceResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateDynamicSetResponse.java new file mode 100644 index 00000000000..c406cca873b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateDynamicSetResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DynamicSet instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet; + + /** + * The returned DynamicSet instance. + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.DynamicSet getDynamicSet() { + return dynamicSet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "dynamicSet" + }) + private UpdateDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.dynamicSet = dynamicSet; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DynamicSet instance. + */ + private com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet; + + /** + * The returned DynamicSet instance. + * @param dynamicSet the value to set + * @return this builder + */ + public Builder dynamicSet(com.oracle.bmc.osmanagementhub.model.DynamicSet dynamicSet) { + this.dynamicSet = dynamicSet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDynamicSetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dynamicSet(o.getDynamicSet()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDynamicSetResponse build() { + return new UpdateDynamicSetResponse( + __httpStatusCode__, headers, etag, opcRequestId, dynamicSet); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",dynamicSet=").append(String.valueOf(dynamicSet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDynamicSetResponse)) { + return false; + } + + UpdateDynamicSetResponse other = (UpdateDynamicSetResponse) 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.dynamicSet, other.dynamicSet); + } + + @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.dynamicSet == null ? 43 : this.dynamicSet.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdatePackagesOnDynamicSetResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdatePackagesOnDynamicSetResponse.java new file mode 100644 index 00000000000..3ae4f693079 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdatePackagesOnDynamicSetResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdatePackagesOnDynamicSetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdatePackagesOnDynamicSetResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdatePackagesOnDynamicSetResponse 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 UpdatePackagesOnDynamicSetResponse build() { + return new UpdatePackagesOnDynamicSetResponse( + __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 UpdatePackagesOnDynamicSetResponse)) { + return false; + } + + UpdatePackagesOnDynamicSetResponse other = (UpdatePackagesOnDynamicSetResponse) 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-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index ead05571aa0..cd7924c6d77 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-ospgateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index ba92be2d118..40b93c25d0d 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 9acbd45bdef..d642a454406 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 51f5e7bfbea..2f2b989a1e7 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-osubsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 4f6cfa81ed6..a6d1519c361 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-osubusage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 64b3e1ae023..54550419ceb 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 145700e853a..1ab3e12d3bb 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 5508db5975e..074af77fef1 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-queue @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 29b7a184b34..c7624bff69a 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-recovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 7d0b35ba790..6249beb4d87 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackup.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackup.java new file mode 100644 index 00000000000..143ece2775f --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackup.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis; + +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; + +/** + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public interface OciCacheBackup 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 an OCI Cache Backup resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the 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 ChangeOciCacheBackupCompartment API. + */ + ChangeOciCacheBackupCompartmentResponse changeOciCacheBackupCompartment( + ChangeOciCacheBackupCompartmentRequest request); + + /** + * Creates a new OCI Cache Backup. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateOciCacheBackup API. + */ + CreateOciCacheBackupResponse createOciCacheBackup(CreateOciCacheBackupRequest request); + + /** + * Deletes an OCI Cache Backup resource by identifier + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteOciCacheBackup API. + */ + DeleteOciCacheBackupResponse deleteOciCacheBackup(DeleteOciCacheBackupRequest request); + + /** + * Initiates an asynchronous export of the backup\u2019s RDB file(s) to the specified Object Storage bucket. The service generates the object names. For sharded backups, one object is written per shard under the optional prefix. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ExportOciCacheBackupToObjectStorage API. + */ + ExportOciCacheBackupToObjectStorageResponse exportOciCacheBackupToObjectStorage( + ExportOciCacheBackupToObjectStorageRequest request); + + /** + * Gets an OCI Cache Backup by identifier + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetOciCacheBackup API. + */ + GetOciCacheBackupResponse getOciCacheBackup(GetOciCacheBackupRequest request); + + /** + * Returns a list of OCI Cache Backups. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListOciCacheBackups API. + */ + ListOciCacheBackupsResponse listOciCacheBackups(ListOciCacheBackupsRequest request); + + /** + * Updates the OCI Cache Backup + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateOciCacheBackup API. + */ + UpdateOciCacheBackupResponse updateOciCacheBackup(UpdateOciCacheBackupRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + OciCacheBackupWaiters 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. + */ + OciCacheBackupPaginators getPaginators(); +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupAsync.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupAsync.java new file mode 100644 index 00000000000..0175c2f7cfe --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupAsync.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis; + +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; + +/** + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public interface OciCacheBackupAsync 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 an OCI Cache Backup resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the 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 + changeOciCacheBackupCompartment( + ChangeOciCacheBackupCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeOciCacheBackupCompartmentRequest, + ChangeOciCacheBackupCompartmentResponse> + handler); + + /** + * Creates a new OCI Cache Backup. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createOciCacheBackup( + CreateOciCacheBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateOciCacheBackupRequest, CreateOciCacheBackupResponse> + handler); + + /** + * Deletes an OCI Cache Backup resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteOciCacheBackup( + DeleteOciCacheBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteOciCacheBackupRequest, DeleteOciCacheBackupResponse> + handler); + + /** + * Initiates an asynchronous export of the backup\u2019s RDB file(s) to the specified Object Storage bucket. The service generates the object names. For sharded backups, one object is written per shard under the optional prefix. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + exportOciCacheBackupToObjectStorage( + ExportOciCacheBackupToObjectStorageRequest request, + com.oracle.bmc.responses.AsyncHandler< + ExportOciCacheBackupToObjectStorageRequest, + ExportOciCacheBackupToObjectStorageResponse> + handler); + + /** + * Gets an OCI Cache Backup by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getOciCacheBackup( + GetOciCacheBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOciCacheBackupRequest, GetOciCacheBackupResponse> + handler); + + /** + * Returns a list of OCI Cache Backups. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listOciCacheBackups( + ListOciCacheBackupsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse> + handler); + + /** + * Updates the OCI Cache Backup + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateOciCacheBackup( + UpdateOciCacheBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateOciCacheBackupRequest, UpdateOciCacheBackupResponse> + handler); +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupAsyncClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupAsyncClient.java new file mode 100644 index 00000000000..907ebb99a55 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupAsyncClient.java @@ -0,0 +1,836 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis; + +import com.oracle.bmc.redis.internal.http.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for OciCacheBackup 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: 20220315") +public class OciCacheBackupAsyncClient implements OciCacheBackupAsync { + /** + * Service instance for OciCacheBackup. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(OciCacheBackupClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://redis.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OciCacheBackupAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + 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 OciCacheBackupAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, OciCacheBackupAsyncClient> { + 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 OciCacheBackupAsyncClient 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 OciCacheBackupAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future + changeOciCacheBackupCompartment( + ChangeOciCacheBackupCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeOciCacheBackupCompartmentRequest, + ChangeOciCacheBackupCompartmentResponse> + handler) { + LOG.trace("Called async changeOciCacheBackupCompartment"); + final ChangeOciCacheBackupCompartmentRequest interceptedRequest = + ChangeOciCacheBackupCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeOciCacheBackupCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "ChangeOciCacheBackupCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/ChangeOciCacheBackupCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeOciCacheBackupCompartmentResponse> + transformer = + ChangeOciCacheBackupCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeOciCacheBackupCompartmentRequest, + ChangeOciCacheBackupCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeOciCacheBackupCompartmentRequest, + ChangeOciCacheBackupCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeOciCacheBackupCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeOciCacheBackupCompartmentRequest, + ChangeOciCacheBackupCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createOciCacheBackup( + CreateOciCacheBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOciCacheBackupRequest, CreateOciCacheBackupResponse> + handler) { + LOG.trace("Called async createOciCacheBackup"); + final CreateOciCacheBackupRequest interceptedRequest = + CreateOciCacheBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateOciCacheBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "CreateOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/CreateOciCacheBackup"); + final java.util.function.Function + transformer = + CreateOciCacheBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateOciCacheBackupRequest, CreateOciCacheBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateOciCacheBackupRequest, CreateOciCacheBackupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateOciCacheBackupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateOciCacheBackupRequest, CreateOciCacheBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteOciCacheBackup( + DeleteOciCacheBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteOciCacheBackupRequest, DeleteOciCacheBackupResponse> + handler) { + LOG.trace("Called async deleteOciCacheBackup"); + final DeleteOciCacheBackupRequest interceptedRequest = + DeleteOciCacheBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteOciCacheBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "DeleteOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/DeleteOciCacheBackup"); + final java.util.function.Function + transformer = + DeleteOciCacheBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteOciCacheBackupRequest, DeleteOciCacheBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteOciCacheBackupRequest, DeleteOciCacheBackupResponse>, + 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< + DeleteOciCacheBackupRequest, DeleteOciCacheBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + exportOciCacheBackupToObjectStorage( + ExportOciCacheBackupToObjectStorageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ExportOciCacheBackupToObjectStorageRequest, + ExportOciCacheBackupToObjectStorageResponse> + handler) { + LOG.trace("Called async exportOciCacheBackupToObjectStorage"); + final ExportOciCacheBackupToObjectStorageRequest interceptedRequest = + ExportOciCacheBackupToObjectStorageConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExportOciCacheBackupToObjectStorageConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "ExportOciCacheBackupToObjectStorage", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/ExportOciCacheBackupToObjectStorage"); + final java.util.function.Function< + javax.ws.rs.core.Response, ExportOciCacheBackupToObjectStorageResponse> + transformer = + ExportOciCacheBackupToObjectStorageConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ExportOciCacheBackupToObjectStorageRequest, + ExportOciCacheBackupToObjectStorageResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ExportOciCacheBackupToObjectStorageRequest, + ExportOciCacheBackupToObjectStorageResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getExportOciCacheBackupToObjectStorageDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ExportOciCacheBackupToObjectStorageRequest, + ExportOciCacheBackupToObjectStorageResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getOciCacheBackup( + GetOciCacheBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOciCacheBackupRequest, GetOciCacheBackupResponse> + handler) { + LOG.trace("Called async getOciCacheBackup"); + final GetOciCacheBackupRequest interceptedRequest = + GetOciCacheBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetOciCacheBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "GetOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/GetOciCacheBackup"); + final java.util.function.Function + transformer = + GetOciCacheBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetOciCacheBackupRequest, GetOciCacheBackupResponse>, + 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< + GetOciCacheBackupRequest, GetOciCacheBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listOciCacheBackups( + ListOciCacheBackupsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse> + handler) { + LOG.trace("Called async listOciCacheBackups"); + final ListOciCacheBackupsRequest interceptedRequest = + ListOciCacheBackupsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOciCacheBackupsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "ListOciCacheBackups", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackupSummary/ListOciCacheBackups"); + final java.util.function.Function + transformer = + ListOciCacheBackupsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse>, + 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< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateOciCacheBackup( + UpdateOciCacheBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateOciCacheBackupRequest, UpdateOciCacheBackupResponse> + handler) { + LOG.trace("Called async updateOciCacheBackup"); + final UpdateOciCacheBackupRequest interceptedRequest = + UpdateOciCacheBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateOciCacheBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OciCacheBackup", + "UpdateOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/UpdateOciCacheBackup"); + final java.util.function.Function + transformer = + UpdateOciCacheBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateOciCacheBackupRequest, UpdateOciCacheBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateOciCacheBackupRequest, UpdateOciCacheBackupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateOciCacheBackupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateOciCacheBackupRequest, UpdateOciCacheBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupClient.java new file mode 100644 index 00000000000..f58243db6f7 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupClient.java @@ -0,0 +1,856 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis; + +import com.oracle.bmc.redis.internal.http.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class OciCacheBackupClient implements OciCacheBackup { + /** + * Service instance for OciCacheBackup. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(OciCacheBackupClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://redis.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OciCacheBackupClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final OciCacheBackupWaiters waiters; + + private final OciCacheBackupPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + 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 OciCacheBackupClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("OciCacheBackup-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new OciCacheBackupWaiters(executorService, this); + + this.paginators = new OciCacheBackupPaginators(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 OciCacheBackupClient 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 OciCacheBackupClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ChangeOciCacheBackupCompartmentResponse changeOciCacheBackupCompartment( + ChangeOciCacheBackupCompartmentRequest request) { + LOG.trace("Called changeOciCacheBackupCompartment"); + final ChangeOciCacheBackupCompartmentRequest interceptedRequest = + ChangeOciCacheBackupCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeOciCacheBackupCompartmentConverter.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( + "OciCacheBackup", + "ChangeOciCacheBackupCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/ChangeOciCacheBackupCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeOciCacheBackupCompartmentResponse> + transformer = + ChangeOciCacheBackupCompartmentConverter.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 + .getChangeOciCacheBackupCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateOciCacheBackupResponse createOciCacheBackup(CreateOciCacheBackupRequest request) { + LOG.trace("Called createOciCacheBackup"); + final CreateOciCacheBackupRequest interceptedRequest = + CreateOciCacheBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateOciCacheBackupConverter.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( + "OciCacheBackup", + "CreateOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/CreateOciCacheBackup"); + java.util.function.Function + transformer = + CreateOciCacheBackupConverter.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.getCreateOciCacheBackupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteOciCacheBackupResponse deleteOciCacheBackup(DeleteOciCacheBackupRequest request) { + LOG.trace("Called deleteOciCacheBackup"); + final DeleteOciCacheBackupRequest interceptedRequest = + DeleteOciCacheBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteOciCacheBackupConverter.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( + "OciCacheBackup", + "DeleteOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/DeleteOciCacheBackup"); + java.util.function.Function + transformer = + DeleteOciCacheBackupConverter.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 ExportOciCacheBackupToObjectStorageResponse exportOciCacheBackupToObjectStorage( + ExportOciCacheBackupToObjectStorageRequest request) { + LOG.trace("Called exportOciCacheBackupToObjectStorage"); + final ExportOciCacheBackupToObjectStorageRequest interceptedRequest = + ExportOciCacheBackupToObjectStorageConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExportOciCacheBackupToObjectStorageConverter.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( + "OciCacheBackup", + "ExportOciCacheBackupToObjectStorage", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/ExportOciCacheBackupToObjectStorage"); + java.util.function.Function< + javax.ws.rs.core.Response, ExportOciCacheBackupToObjectStorageResponse> + transformer = + ExportOciCacheBackupToObjectStorageConverter.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 + .getExportOciCacheBackupToObjectStorageDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetOciCacheBackupResponse getOciCacheBackup(GetOciCacheBackupRequest request) { + LOG.trace("Called getOciCacheBackup"); + final GetOciCacheBackupRequest interceptedRequest = + GetOciCacheBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetOciCacheBackupConverter.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( + "OciCacheBackup", + "GetOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/GetOciCacheBackup"); + java.util.function.Function + transformer = + GetOciCacheBackupConverter.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 ListOciCacheBackupsResponse listOciCacheBackups(ListOciCacheBackupsRequest request) { + LOG.trace("Called listOciCacheBackups"); + final ListOciCacheBackupsRequest interceptedRequest = + ListOciCacheBackupsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOciCacheBackupsConverter.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( + "OciCacheBackup", + "ListOciCacheBackups", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackupSummary/ListOciCacheBackups"); + java.util.function.Function + transformer = + ListOciCacheBackupsConverter.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 UpdateOciCacheBackupResponse updateOciCacheBackup(UpdateOciCacheBackupRequest request) { + LOG.trace("Called updateOciCacheBackup"); + final UpdateOciCacheBackupRequest interceptedRequest = + UpdateOciCacheBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateOciCacheBackupConverter.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( + "OciCacheBackup", + "UpdateOciCacheBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/OciCacheBackup/UpdateOciCacheBackup"); + java.util.function.Function + transformer = + UpdateOciCacheBackupConverter.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.getUpdateOciCacheBackupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public OciCacheBackupWaiters getWaiters() { + return waiters; + } + + @Override + public OciCacheBackupPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupPaginators.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupPaginators.java new file mode 100644 index 00000000000..5c282416c68 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupPaginators.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis; + +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of OciCacheBackup 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: 20220315") +public class OciCacheBackupPaginators { + private final OciCacheBackup client; + + public OciCacheBackupPaginators(OciCacheBackup client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listOciCacheBackups 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 listOciCacheBackupsResponseIterator( + final ListOciCacheBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOciCacheBackupsRequest.Builder, ListOciCacheBackupsRequest, + ListOciCacheBackupsResponse>( + new java.util.function.Supplier() { + @Override + public ListOciCacheBackupsRequest.Builder get() { + return ListOciCacheBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOciCacheBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOciCacheBackupsRequest.Builder>, + ListOciCacheBackupsRequest>() { + @Override + public ListOciCacheBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOciCacheBackupsRequest.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< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse>() { + @Override + public ListOciCacheBackupsResponse apply(ListOciCacheBackupsRequest request) { + return client.listOciCacheBackups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.redis.model.OciCacheBackupSummary} objects + * contained in responses from the listOciCacheBackups 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.redis.model.OciCacheBackupSummary} objects + * contained in responses received from the service. + */ + public Iterable + listOciCacheBackupsRecordIterator(final ListOciCacheBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOciCacheBackupsRequest.Builder, ListOciCacheBackupsRequest, + ListOciCacheBackupsResponse, com.oracle.bmc.redis.model.OciCacheBackupSummary>( + new java.util.function.Supplier() { + @Override + public ListOciCacheBackupsRequest.Builder get() { + return ListOciCacheBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOciCacheBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOciCacheBackupsRequest.Builder>, + ListOciCacheBackupsRequest>() { + @Override + public ListOciCacheBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOciCacheBackupsRequest.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< + ListOciCacheBackupsRequest, ListOciCacheBackupsResponse>() { + @Override + public ListOciCacheBackupsResponse apply(ListOciCacheBackupsRequest request) { + return client.listOciCacheBackups(request); + } + }, + new java.util.function.Function< + ListOciCacheBackupsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListOciCacheBackupsResponse response) { + return response.getOciCacheBackupCollection().getItems(); + } + }); + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupWaiters.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupWaiters.java new file mode 100644 index 00000000000..84307f57d4a --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/OciCacheBackupWaiters.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis; + +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of OciCacheBackup. + *

+ * 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: 20220315") +public class OciCacheBackupWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final OciCacheBackup client; + + public OciCacheBackupWaiters( + java.util.concurrent.ExecutorService executorService, OciCacheBackup 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 + forOciCacheBackup( + GetOciCacheBackupRequest request, + com.oracle.bmc.redis.model.OciCacheBackup.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 forOciCacheBackup( + 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 + forOciCacheBackup( + GetOciCacheBackupRequest request, + com.oracle.bmc.redis.model.OciCacheBackup.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 forOciCacheBackup( + 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 + forOciCacheBackup( + GetOciCacheBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.redis.model.OciCacheBackup.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 forOciCacheBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OciCacheBackup. + private com.oracle.bmc.waiter.Waiter + forOciCacheBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOciCacheBackupRequest request, + final com.oracle.bmc.redis.model.OciCacheBackup.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< + GetOciCacheBackupRequest, GetOciCacheBackupResponse>() { + @Override + public GetOciCacheBackupResponse apply( + GetOciCacheBackupRequest request) { + return client.getOciCacheBackup(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOciCacheBackupResponse response) { + return targetStatesSet.contains( + response.getOciCacheBackup().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.redis.model.OciCacheBackup.LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java index 4207f9ca214..2f481e48002 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java @@ -97,7 +97,9 @@ ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( ChangeRedisClusterCompartmentRequest request); /** - * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). + * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. + * You can optionally initialize the cluster data by restoring from an OCI Cache Backup (backupId) or by importing from Object Storage RDB file(s) (importFromObjectStorageDetails). + * For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java index 2951cefd652..8dec9c56c4b 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java @@ -109,7 +109,9 @@ java.util.concurrent.Future cancelWorkRequest( handler); /** - * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). + * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. + * You can optionally initialize the cluster data by restoring from an OCI Cache Backup (backupId) or by importing from Object Storage RDB file(s) (importFromObjectStorageDetails). + * For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). * * * @param request The request object containing the details to send diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/SdkClientsMetadata.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/SdkClientsMetadata.java index ee227991602..627677671dd 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/SdkClientsMetadata.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/SdkClientsMetadata.java @@ -8,6 +8,8 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") @SdkClients({ + OciCacheBackupAsyncClient.class, + OciCacheBackupClient.class, OciCacheConfigSetAsyncClient.class, OciCacheConfigSetClient.class, OciCacheDefaultConfigSetAsyncClient.class, diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ChangeOciCacheBackupCompartmentConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ChangeOciCacheBackupCompartmentConverter.java new file mode 100644 index 00000000000..dac1bcee401 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ChangeOciCacheBackupCompartmentConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ChangeOciCacheBackupCompartmentConverter { + 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(ChangeOciCacheBackupCompartmentConverter.class); + + public static com.oracle.bmc.redis.requests.ChangeOciCacheBackupCompartmentRequest + interceptRequest( + com.oracle.bmc.redis.requests.ChangeOciCacheBackupCompartmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.ChangeOciCacheBackupCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOciCacheBackupId(), "ociCacheBackupId must not be blank"); + Validate.notNull( + request.getChangeOciCacheBackupCompartmentDetails(), + "changeOciCacheBackupCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("ociCacheBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOciCacheBackupId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ChangeOciCacheBackupCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ChangeOciCacheBackupCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ChangeOciCacheBackupCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses + .ChangeOciCacheBackupCompartmentResponse>() { + @Override + public com.oracle.bmc.redis.responses + .ChangeOciCacheBackupCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.ChangeOciCacheBackupCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses + .ChangeOciCacheBackupCompartmentResponse.Builder + builder = + com.oracle.bmc.redis.responses + .ChangeOciCacheBackupCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses + .ChangeOciCacheBackupCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/CreateOciCacheBackupConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/CreateOciCacheBackupConverter.java new file mode 100644 index 00000000000..d54b685cb91 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/CreateOciCacheBackupConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class CreateOciCacheBackupConverter { + 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(CreateOciCacheBackupConverter.class); + + public static com.oracle.bmc.redis.requests.CreateOciCacheBackupRequest interceptRequest( + com.oracle.bmc.redis.requests.CreateOciCacheBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.CreateOciCacheBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateOciCacheBackupDetails(), + "createOciCacheBackupDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20220315").path("ociCacheBackups"); + + 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.redis.responses.CreateOciCacheBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse>() { + @Override + public com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model.OciCacheBackup.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model.OciCacheBackup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse.Builder + builder = + com.oracle.bmc.redis.responses + .CreateOciCacheBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.ociCacheBackup(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> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.CreateOciCacheBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/DeleteOciCacheBackupConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/DeleteOciCacheBackupConverter.java new file mode 100644 index 00000000000..f379b2ee56b --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/DeleteOciCacheBackupConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class DeleteOciCacheBackupConverter { + 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(DeleteOciCacheBackupConverter.class); + + public static com.oracle.bmc.redis.requests.DeleteOciCacheBackupRequest interceptRequest( + com.oracle.bmc.redis.requests.DeleteOciCacheBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.DeleteOciCacheBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOciCacheBackupId(), "ociCacheBackupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("ociCacheBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOciCacheBackupId())); + + 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.redis.responses.DeleteOciCacheBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse>() { + @Override + public com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse.Builder + builder = + com.oracle.bmc.redis.responses + .DeleteOciCacheBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.DeleteOciCacheBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ExportOciCacheBackupToObjectStorageConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ExportOciCacheBackupToObjectStorageConverter.java new file mode 100644 index 00000000000..6f750d2ac51 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ExportOciCacheBackupToObjectStorageConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ExportOciCacheBackupToObjectStorageConverter { + 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(ExportOciCacheBackupToObjectStorageConverter.class); + + public static com.oracle.bmc.redis.requests.ExportOciCacheBackupToObjectStorageRequest + interceptRequest( + com.oracle.bmc.redis.requests.ExportOciCacheBackupToObjectStorageRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.ExportOciCacheBackupToObjectStorageRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOciCacheBackupId(), "ociCacheBackupId must not be blank"); + Validate.notNull( + request.getExportOciCacheBackupToObjectStorageDetails(), + "exportOciCacheBackupToObjectStorageDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("ociCacheBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOciCacheBackupId())) + .path("actions") + .path("exportToObjectStorage"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ExportOciCacheBackupToObjectStorageResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ExportOciCacheBackupToObjectStorageResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ExportOciCacheBackupToObjectStorageResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses + .ExportOciCacheBackupToObjectStorageResponse>() { + @Override + public com.oracle.bmc.redis.responses + .ExportOciCacheBackupToObjectStorageResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.ExportOciCacheBackupToObjectStorageResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses + .ExportOciCacheBackupToObjectStorageResponse.Builder + builder = + com.oracle.bmc.redis.responses + .ExportOciCacheBackupToObjectStorageResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses + .ExportOciCacheBackupToObjectStorageResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/GetOciCacheBackupConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/GetOciCacheBackupConverter.java new file mode 100644 index 00000000000..6b56120849f --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/GetOciCacheBackupConverter.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class GetOciCacheBackupConverter { + 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(GetOciCacheBackupConverter.class); + + public static com.oracle.bmc.redis.requests.GetOciCacheBackupRequest interceptRequest( + com.oracle.bmc.redis.requests.GetOciCacheBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.GetOciCacheBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOciCacheBackupId(), "ociCacheBackupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("ociCacheBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOciCacheBackupId())); + + 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.redis.responses.GetOciCacheBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.GetOciCacheBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.GetOciCacheBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.GetOciCacheBackupResponse>() { + @Override + public com.oracle.bmc.redis.responses.GetOciCacheBackupResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.GetOciCacheBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model.OciCacheBackup.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model.OciCacheBackup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.GetOciCacheBackupResponse.Builder + builder = + com.oracle.bmc.redis.responses + .GetOciCacheBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.ociCacheBackup(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.GetOciCacheBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ListOciCacheBackupsConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ListOciCacheBackupsConverter.java new file mode 100644 index 00000000000..c7082fc9a18 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ListOciCacheBackupsConverter.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ListOciCacheBackupsConverter { + 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(ListOciCacheBackupsConverter.class); + + public static com.oracle.bmc.redis.requests.ListOciCacheBackupsRequest interceptRequest( + com.oracle.bmc.redis.requests.ListOciCacheBackupsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.ListOciCacheBackupsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20220315").path("ociCacheBackups"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getOciCacheBackupId() != null) { + target = + target.queryParam( + "ociCacheBackupId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOciCacheBackupId())); + } + + if (request.getSourceClusterId() != null) { + target = + target.queryParam( + "sourceClusterId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSourceClusterId())); + } + + 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.redis.responses.ListOciCacheBackupsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ListOciCacheBackupsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ListOciCacheBackupsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ListOciCacheBackupsResponse>() { + @Override + public com.oracle.bmc.redis.responses.ListOciCacheBackupsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.ListOciCacheBackupsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model + .OciCacheBackupCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model + .OciCacheBackupCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model + .OciCacheBackupCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackupCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.ListOciCacheBackupsResponse.Builder + builder = + com.oracle.bmc.redis.responses + .ListOciCacheBackupsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.ociCacheBackupCollection(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.redis.responses.ListOciCacheBackupsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/UpdateOciCacheBackupConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/UpdateOciCacheBackupConverter.java new file mode 100644 index 00000000000..73601b07e71 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/UpdateOciCacheBackupConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class UpdateOciCacheBackupConverter { + 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(UpdateOciCacheBackupConverter.class); + + public static com.oracle.bmc.redis.requests.UpdateOciCacheBackupRequest interceptRequest( + com.oracle.bmc.redis.requests.UpdateOciCacheBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.UpdateOciCacheBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOciCacheBackupId(), "ociCacheBackupId must not be blank"); + Validate.notNull( + request.getUpdateOciCacheBackupDetails(), + "updateOciCacheBackupDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("ociCacheBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOciCacheBackupId())); + + 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.redis.responses.UpdateOciCacheBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse>() { + @Override + public com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model.OciCacheBackup.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.redis.model.OciCacheBackup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.redis.model.OciCacheBackup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse.Builder + builder = + com.oracle.bmc.redis.responses + .UpdateOciCacheBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.ociCacheBackup(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> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.UpdateOciCacheBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeOciCacheBackupCompartmentDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeOciCacheBackupCompartmentDetails.java new file mode 100644 index 00000000000..9d202daf0ab --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeOciCacheBackupCompartmentDetails.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * The OCI Cache backup information to move it a different compartment. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeOciCacheBackupCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeOciCacheBackupCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeOciCacheBackupCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment + * into which the backup should be moved. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment + * into which the backup should be moved. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeOciCacheBackupCompartmentDetails build() { + ChangeOciCacheBackupCompartmentDetails model = + new ChangeOciCacheBackupCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeOciCacheBackupCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment + * into which the backup should be moved. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment + * into which the backup should be moved. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeOciCacheBackupCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeOciCacheBackupCompartmentDetails)) { + return false; + } + + ChangeOciCacheBackupCompartmentDetails other = (ChangeOciCacheBackupCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateIdentityTokenDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateIdentityTokenDetails.java index 962e7d2723c..45360a7b395 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateIdentityTokenDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateIdentityTokenDetails.java @@ -22,17 +22,11 @@ public final class CreateIdentityTokenDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"publicKey", "redisUser", "freeformTags", "definedTags"}) - public CreateIdentityTokenDetails( - String publicKey, - String redisUser, - java.util.Map freeformTags, - java.util.Map> definedTags) { + @java.beans.ConstructorProperties({"publicKey", "redisUser"}) + public CreateIdentityTokenDetails(String publicKey, String redisUser) { super(); this.publicKey = publicKey; this.redisUser = redisUser; - this.freeformTags = freeformTags; - this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -69,55 +63,13 @@ public Builder redisUser(String redisUser) { this.__explicitlySet__.add("redisUser"); 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 CreateIdentityTokenDetails build() { CreateIdentityTokenDetails model = - new CreateIdentityTokenDetails( - this.publicKey, this.redisUser, this.freeformTags, this.definedTags); + new CreateIdentityTokenDetails(this.publicKey, this.redisUser); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -132,12 +84,6 @@ public Builder copy(CreateIdentityTokenDetails model) { if (model.wasPropertyExplicitlySet("redisUser")) { this.redisUser(model.getRedisUser()); } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } return this; } } @@ -181,42 +127,6 @@ public String getRedisUser() { return redisUser; } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - @Override public String toString() { return this.toString(true); @@ -233,8 +143,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("publicKey=").append(String.valueOf(this.publicKey)); sb.append(", redisUser=").append(String.valueOf(this.redisUser)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -251,8 +159,6 @@ public boolean equals(Object o) { CreateIdentityTokenDetails other = (CreateIdentityTokenDetails) o; return java.util.Objects.equals(this.publicKey, other.publicKey) && java.util.Objects.equals(this.redisUser, other.redisUser) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -262,8 +168,6 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.publicKey == null ? 43 : this.publicKey.hashCode()); result = (result * PRIME) + (this.redisUser == null ? 43 : this.redisUser.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-redis/src/main/java/com/oracle/bmc/redis/model/CreateOciCacheBackupDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateOciCacheBackupDetails.java new file mode 100644 index 00000000000..99b9ac8f65c --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateOciCacheBackupDetails.java @@ -0,0 +1,446 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * The information to create a new OCI Cache 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: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciCacheBackupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciCacheBackupDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "compartmentId", + "sourceClusterId", + "retentionPeriodInDays", + "backupSource", + "freeformTags", + "definedTags" + }) + public CreateOciCacheBackupDetails( + String displayName, + String description, + String compartmentId, + String sourceClusterId, + Integer retentionPeriodInDays, + OciCacheBackup.BackupSource backupSource, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.sourceClusterId = sourceClusterId; + this.retentionPeriodInDays = retentionPeriodInDays; + this.backupSource = backupSource; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Backup display name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Backup 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; + } + /** + * Backup description + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Backup description + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Compartment identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment identifier + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * OCI Cache cluster identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceClusterId") + private String sourceClusterId; + + /** + * OCI Cache cluster identifier + * @param sourceClusterId the value to set + * @return this builder + **/ + public Builder sourceClusterId(String sourceClusterId) { + this.sourceClusterId = sourceClusterId; + this.__explicitlySet__.add("sourceClusterId"); + return this; + } + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @param retentionPeriodInDays the value to set + * @return this builder + **/ + public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + return this; + } + /** + * Specifies whether the backup was created from a replica or primary node + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSource") + private OciCacheBackup.BackupSource backupSource; + + /** + * Specifies whether the backup was created from a replica or primary node + * @param backupSource the value to set + * @return this builder + **/ + public Builder backupSource(OciCacheBackup.BackupSource backupSource) { + this.backupSource = backupSource; + this.__explicitlySet__.add("backupSource"); + 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 CreateOciCacheBackupDetails build() { + CreateOciCacheBackupDetails model = + new CreateOciCacheBackupDetails( + this.displayName, + this.description, + this.compartmentId, + this.sourceClusterId, + this.retentionPeriodInDays, + this.backupSource, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciCacheBackupDetails 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("sourceClusterId")) { + this.sourceClusterId(model.getSourceClusterId()); + } + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + if (model.wasPropertyExplicitlySet("backupSource")) { + this.backupSource(model.getBackupSource()); + } + 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); + } + + /** + * Backup display name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Backup display name. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Backup description + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Backup description + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Compartment identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment identifier + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * OCI Cache cluster identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceClusterId") + private final String sourceClusterId; + + /** + * OCI Cache cluster identifier + * @return the value + **/ + public String getSourceClusterId() { + return sourceClusterId; + } + + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @return the value + **/ + public Integer getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + /** + * Specifies whether the backup was created from a replica or primary node + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSource") + private final OciCacheBackup.BackupSource backupSource; + + /** + * Specifies whether the backup was created from a replica or primary node + * @return the value + **/ + public OciCacheBackup.BackupSource getBackupSource() { + return backupSource; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciCacheBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", sourceClusterId=").append(String.valueOf(this.sourceClusterId)); + sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + sb.append(", backupSource=").append(String.valueOf(this.backupSource)); + 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 CreateOciCacheBackupDetails)) { + return false; + } + + CreateOciCacheBackupDetails other = (CreateOciCacheBackupDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.sourceClusterId, other.sourceClusterId) + && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && java.util.Objects.equals(this.backupSource, other.backupSource) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.sourceClusterId == null ? 43 : this.sourceClusterId.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.hashCode()); + result = (result * PRIME) + (this.backupSource == null ? 43 : this.backupSource.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-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java index 6ea5a6884e3..4a032c63071 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java @@ -34,6 +34,8 @@ public final class CreateRedisClusterDetails "subnetId", "nsgIds", "securityAttributes", + "backupId", + "importFromObjectStorageDetails", "freeformTags", "definedTags" }) @@ -49,6 +51,8 @@ public CreateRedisClusterDetails( String subnetId, java.util.List nsgIds, java.util.Map> securityAttributes, + String backupId, + ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -63,6 +67,8 @@ public CreateRedisClusterDetails( this.subnetId = subnetId; this.nsgIds = nsgIds; this.securityAttributes = securityAttributes; + this.backupId = backupId; + this.importFromObjectStorageDetails = importFromObjectStorageDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -260,6 +266,32 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * The ID of the OCI Cache Backup from which this cluster was created.Mutually exclusive with 'importFromObjectStorageDetails'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupId") + private String backupId; + + /** + * The ID of the OCI Cache Backup from which this cluster was created.Mutually exclusive with 'importFromObjectStorageDetails'. + * @param backupId the value to set + * @return this builder + **/ + public Builder backupId(String backupId) { + this.backupId = backupId; + this.__explicitlySet__.add("backupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("importFromObjectStorageDetails") + private ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails; + + public Builder importFromObjectStorageDetails( + ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails) { + this.importFromObjectStorageDetails = importFromObjectStorageDetails; + this.__explicitlySet__.add("importFromObjectStorageDetails"); + 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"}} @@ -319,6 +351,8 @@ public CreateRedisClusterDetails build() { this.subnetId, this.nsgIds, this.securityAttributes, + this.backupId, + this.importFromObjectStorageDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -362,6 +396,12 @@ public Builder copy(CreateRedisClusterDetails model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("backupId")) { + this.backupId(model.getBackupId()); + } + if (model.wasPropertyExplicitlySet("importFromObjectStorageDetails")) { + this.importFromObjectStorageDetails(model.getImportFromObjectStorageDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -551,6 +591,27 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * The ID of the OCI Cache Backup from which this cluster was created.Mutually exclusive with 'importFromObjectStorageDetails'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupId") + private final String backupId; + + /** + * The ID of the OCI Cache Backup from which this cluster was created.Mutually exclusive with 'importFromObjectStorageDetails'. + * @return the value + **/ + public String getBackupId() { + return backupId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("importFromObjectStorageDetails") + private final ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails; + + public ImportOciCacheFromObjectStorageDetails getImportFromObjectStorageDetails() { + return importFromObjectStorageDetails; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -612,6 +673,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", backupId=").append(String.valueOf(this.backupId)); + sb.append(", importFromObjectStorageDetails=") + .append(String.valueOf(this.importFromObjectStorageDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -639,6 +703,9 @@ 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.securityAttributes, other.securityAttributes) + && java.util.Objects.equals(this.backupId, other.backupId) + && java.util.Objects.equals( + this.importFromObjectStorageDetails, other.importFromObjectStorageDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -673,6 +740,12 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = (result * PRIME) + (this.backupId == null ? 43 : this.backupId.hashCode()); + result = + (result * PRIME) + + (this.importFromObjectStorageDetails == null + ? 43 + : this.importFromObjectStorageDetails.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-redis/src/main/java/com/oracle/bmc/redis/model/ExportOciCacheBackupToObjectStorageDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ExportOciCacheBackupToObjectStorageDetails.java new file mode 100644 index 00000000000..a99bd37088d --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ExportOciCacheBackupToObjectStorageDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * Parameters to export an OCI Cache Backup\u2019s RDB file(s) to Object Storage. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExportOciCacheBackupToObjectStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExportOciCacheBackupToObjectStorageDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespaceName", "bucketName", "prefix"}) + public ExportOciCacheBackupToObjectStorageDetails( + String namespaceName, String bucketName, String prefix) { + super(); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + this.prefix = prefix; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Object Storage namespace name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * The Object Storage namespace name. + * @param namespaceName the value to set + * @return this builder + **/ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** + * The target Object Storage bucket name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The target Object Storage bucket name. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * Optional prefix under which the service will place the exported object(s). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Optional prefix under which the service will place the exported object(s). + * @param prefix the value to set + * @return this builder + **/ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExportOciCacheBackupToObjectStorageDetails build() { + ExportOciCacheBackupToObjectStorageDetails model = + new ExportOciCacheBackupToObjectStorageDetails( + this.namespaceName, this.bucketName, this.prefix); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExportOciCacheBackupToObjectStorageDetails model) { + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Object Storage namespace name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * The Object Storage namespace name. + * @return the value + **/ + public String getNamespaceName() { + return namespaceName; + } + + /** + * The target Object Storage bucket name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The target Object Storage bucket name. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * Optional prefix under which the service will place the exported object(s). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Optional prefix under which the service will place the exported object(s). + * @return the value + **/ + public String getPrefix() { + return prefix; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExportOciCacheBackupToObjectStorageDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExportOciCacheBackupToObjectStorageDetails)) { + return false; + } + + ExportOciCacheBackupToObjectStorageDetails other = + (ExportOciCacheBackupToObjectStorageDetails) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.prefix, other.prefix) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ImportOciCacheFromObjectStorageDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ImportOciCacheFromObjectStorageDetails.java new file mode 100644 index 00000000000..92ad3eaf871 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ImportOciCacheFromObjectStorageDetails.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * Details for importing OCI Cache data from Object Storage RDB file(s) during cluster creation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ImportOciCacheFromObjectStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ImportOciCacheFromObjectStorageDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespaceName", "bucketName", "objects"}) + public ImportOciCacheFromObjectStorageDetails( + String namespaceName, + String bucketName, + java.util.List objects) { + super(); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + this.objects = objects; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Object Storage namespace name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * The Object Storage namespace name. + * @param namespaceName the value to set + * @return this builder + **/ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** + * The Object Storage bucket name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The Object Storage bucket name. + * @param bucketName the value to set + * @return this builder + **/ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** + * The list of objects to import from the specified bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objects") + private java.util.List objects; + + /** + * The list of objects to import from the specified bucket. + * @param objects the value to set + * @return this builder + **/ + public Builder objects(java.util.List objects) { + this.objects = objects; + this.__explicitlySet__.add("objects"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ImportOciCacheFromObjectStorageDetails build() { + ImportOciCacheFromObjectStorageDetails model = + new ImportOciCacheFromObjectStorageDetails( + this.namespaceName, this.bucketName, this.objects); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ImportOciCacheFromObjectStorageDetails model) { + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("objects")) { + this.objects(model.getObjects()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Object Storage namespace name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * The Object Storage namespace name. + * @return the value + **/ + public String getNamespaceName() { + return namespaceName; + } + + /** + * The Object Storage bucket name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The Object Storage bucket name. + * @return the value + **/ + public String getBucketName() { + return bucketName; + } + + /** + * The list of objects to import from the specified bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objects") + private final java.util.List objects; + + /** + * The list of objects to import from the specified bucket. + * @return the value + **/ + public java.util.List getObjects() { + return objects; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ImportOciCacheFromObjectStorageDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", objects=").append(String.valueOf(this.objects)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ImportOciCacheFromObjectStorageDetails)) { + return false; + } + + ImportOciCacheFromObjectStorageDetails other = (ImportOciCacheFromObjectStorageDetails) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.objects, other.objects) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.objects == null ? 43 : this.objects.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ImportOciCacheFromObjectStorageObject.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ImportOciCacheFromObjectStorageObject.java new file mode 100644 index 00000000000..60ac8ab3faa --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ImportOciCacheFromObjectStorageObject.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * An object to import from the specified bucket. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ImportOciCacheFromObjectStorageObject.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ImportOciCacheFromObjectStorageObject + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"objectName"}) + public ImportOciCacheFromObjectStorageObject(String objectName) { + super(); + this.objectName = objectName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the object in the bucket (for example, 'customerA/exports/backup_ocid/dump.rdb'). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the object in the bucket (for example, 'customerA/exports/backup_ocid/dump.rdb'). + * @param objectName the value to set + * @return this builder + **/ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ImportOciCacheFromObjectStorageObject build() { + ImportOciCacheFromObjectStorageObject model = + new ImportOciCacheFromObjectStorageObject(this.objectName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ImportOciCacheFromObjectStorageObject model) { + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + 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 object in the bucket (for example, 'customerA/exports/backup_ocid/dump.rdb'). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the object in the bucket (for example, 'customerA/exports/backup_ocid/dump.rdb'). + * @return the value + **/ + public String getObjectName() { + return objectName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ImportOciCacheFromObjectStorageObject("); + sb.append("super=").append(super.toString()); + sb.append("objectName=").append(String.valueOf(this.objectName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ImportOciCacheFromObjectStorageObject)) { + return false; + } + + ImportOciCacheFromObjectStorageObject other = (ImportOciCacheFromObjectStorageObject) o; + return java.util.Objects.equals(this.objectName, other.objectName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackup.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackup.java new file mode 100644 index 00000000000..293dbc216f4 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackup.java @@ -0,0 +1,1049 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * OCI Cache cluster backup information + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OciCacheBackup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciCacheBackup extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "backupSource", + "lifecycleState", + "retentionPeriodInDays", + "backupSizeInGBs", + "sourceClusterId", + "clusterMode", + "clusterMemoryInGBs", + "shardCount", + "softwareVersion", + "timeCreated", + "timeUpdated", + "backupType", + "freeformTags", + "definedTags", + "systemTags" + }) + public OciCacheBackup( + String id, + String displayName, + String description, + String compartmentId, + BackupSource backupSource, + LifecycleState lifecycleState, + Integer retentionPeriodInDays, + Float backupSizeInGBs, + String sourceClusterId, + RedisCluster.ClusterMode clusterMode, + Float clusterMemoryInGBs, + Integer shardCount, + RedisCluster.SoftwareVersion softwareVersion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + BackupType backupType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.backupSource = backupSource; + this.lifecycleState = lifecycleState; + this.retentionPeriodInDays = retentionPeriodInDays; + this.backupSizeInGBs = backupSizeInGBs; + this.sourceClusterId = sourceClusterId; + this.clusterMode = clusterMode; + this.clusterMemoryInGBs = clusterMemoryInGBs; + this.shardCount = shardCount; + this.softwareVersion = softwareVersion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.backupType = backupType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Unique identifier that is immutable on creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Backup display name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Backup 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; + } + /** + * Backup description + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Backup description + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Backup compartment identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Backup compartment identifier + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Specifies whether the backup was created from a replica or primary node + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSource") + private BackupSource backupSource; + + /** + * Specifies whether the backup was created from a replica or primary node + * @param backupSource the value to set + * @return this builder + **/ + public Builder backupSource(BackupSource backupSource) { + this.backupSource = backupSource; + this.__explicitlySet__.add("backupSource"); + return this; + } + /** + * The current state of the backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the backup. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @param retentionPeriodInDays the value to set + * @return this builder + **/ + public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + return this; + } + /** + * Backup size in GB. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") + private Float backupSizeInGBs; + + /** + * Backup size in GB. + * @param backupSizeInGBs the value to set + * @return this builder + **/ + public Builder backupSizeInGBs(Float backupSizeInGBs) { + this.backupSizeInGBs = backupSizeInGBs; + this.__explicitlySet__.add("backupSizeInGBs"); + return this; + } + /** + * The source OCI Cache Cluster OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceClusterId") + private String sourceClusterId; + + /** + * The source OCI Cache Cluster OCID. + * @param sourceClusterId the value to set + * @return this builder + **/ + public Builder sourceClusterId(String sourceClusterId) { + this.sourceClusterId = sourceClusterId; + this.__explicitlySet__.add("sourceClusterId"); + return this; + } + /** + * Specifies whether the cluster is sharded or non-sharded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * @param clusterMode the value to set + * @return this builder + **/ + public Builder clusterMode(RedisCluster.ClusterMode clusterMode) { + this.clusterMode = clusterMode; + this.__explicitlySet__.add("clusterMode"); + return this; + } + /** + * The amount of memory allocated to the cluster, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMemoryInGBs") + private Float clusterMemoryInGBs; + + /** + * The amount of memory allocated to the cluster, in gigabytes. + * @param clusterMemoryInGBs the value to set + * @return this builder + **/ + public Builder clusterMemoryInGBs(Float clusterMemoryInGBs) { + this.clusterMemoryInGBs = clusterMemoryInGBs; + this.__explicitlySet__.add("clusterMemoryInGBs"); + return this; + } + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private Integer shardCount; + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + * @param shardCount the value to set + * @return this builder + **/ + public Builder shardCount(Integer shardCount) { + this.shardCount = shardCount; + this.__explicitlySet__.add("shardCount"); + return this; + } + /** + * The OCI Cache engine version that the cluster is running. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") + private RedisCluster.SoftwareVersion softwareVersion; + + /** + * The OCI Cache engine version that the cluster is running. + * @param softwareVersion the value to set + * @return this builder + **/ + public Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion) { + this.softwareVersion = softwareVersion; + this.__explicitlySet__.add("softwareVersion"); + return this; + } + /** + * The date and time the backup was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the backup was created. An [RFC3339](https://datatracker.ietf.org/doc/html/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 date and time the backup was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the backup was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/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; + } + /** + * Backup Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private BackupType backupType; + + /** + * Backup Type. + * @param backupType the value to set + * @return this builder + **/ + public Builder backupType(BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + 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 OciCacheBackup build() { + OciCacheBackup model = + new OciCacheBackup( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.backupSource, + this.lifecycleState, + this.retentionPeriodInDays, + this.backupSizeInGBs, + this.sourceClusterId, + this.clusterMode, + this.clusterMemoryInGBs, + this.shardCount, + this.softwareVersion, + this.timeCreated, + this.timeUpdated, + this.backupType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciCacheBackup 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("backupSource")) { + this.backupSource(model.getBackupSource()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + if (model.wasPropertyExplicitlySet("backupSizeInGBs")) { + this.backupSizeInGBs(model.getBackupSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("sourceClusterId")) { + this.sourceClusterId(model.getSourceClusterId()); + } + if (model.wasPropertyExplicitlySet("clusterMode")) { + this.clusterMode(model.getClusterMode()); + } + if (model.wasPropertyExplicitlySet("clusterMemoryInGBs")) { + this.clusterMemoryInGBs(model.getClusterMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("shardCount")) { + this.shardCount(model.getShardCount()); + } + if (model.wasPropertyExplicitlySet("softwareVersion")) { + this.softwareVersion(model.getSoftwareVersion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Unique identifier that is immutable on creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Backup display name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Backup display name + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Backup description + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Backup description + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Backup compartment identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Backup compartment identifier + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Specifies whether the backup was created from a replica or primary node + **/ + public enum BackupSource { + Replica("REPLICA"), + Primary("PRIMARY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BackupSource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupSource v : BackupSource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupSource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies whether the backup was created from a replica or primary node + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSource") + private final BackupSource backupSource; + + /** + * Specifies whether the backup was created from a replica or primary node + * @return the value + **/ + public BackupSource getBackupSource() { + return backupSource; + } + + /** + * The current state of the backup. + **/ + 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 backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the backup. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @return the value + **/ + public Integer getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + /** + * Backup size in GB. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") + private final Float backupSizeInGBs; + + /** + * Backup size in GB. + * @return the value + **/ + public Float getBackupSizeInGBs() { + return backupSizeInGBs; + } + + /** + * The source OCI Cache Cluster OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceClusterId") + private final String sourceClusterId; + + /** + * The source OCI Cache Cluster OCID. + * @return the value + **/ + public String getSourceClusterId() { + return sourceClusterId; + } + + /** + * Specifies whether the cluster is sharded or non-sharded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private final RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * @return the value + **/ + public RedisCluster.ClusterMode getClusterMode() { + return clusterMode; + } + + /** + * The amount of memory allocated to the cluster, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMemoryInGBs") + private final Float clusterMemoryInGBs; + + /** + * The amount of memory allocated to the cluster, in gigabytes. + * @return the value + **/ + public Float getClusterMemoryInGBs() { + return clusterMemoryInGBs; + } + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private final Integer shardCount; + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + * @return the value + **/ + public Integer getShardCount() { + return shardCount; + } + + /** + * The OCI Cache engine version that the cluster is running. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") + private final RedisCluster.SoftwareVersion softwareVersion; + + /** + * The OCI Cache engine version that the cluster is running. + * @return the value + **/ + public RedisCluster.SoftwareVersion getSoftwareVersion() { + return softwareVersion; + } + + /** + * The date and time the backup was created. 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 date and time the backup was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the backup was updated. 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 date and time the backup was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Backup Type. + **/ + public enum BackupType { + Manual("MANUAL"), + Automated("AUTOMATED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BackupType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupType v : BackupType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Backup Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final BackupType backupType; + + /** + * Backup Type. + * @return the value + **/ + public BackupType getBackupType() { + return backupType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciCacheBackup("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", backupSource=").append(String.valueOf(this.backupSource)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + sb.append(", backupSizeInGBs=").append(String.valueOf(this.backupSizeInGBs)); + sb.append(", sourceClusterId=").append(String.valueOf(this.sourceClusterId)); + sb.append(", clusterMode=").append(String.valueOf(this.clusterMode)); + sb.append(", clusterMemoryInGBs=").append(String.valueOf(this.clusterMemoryInGBs)); + sb.append(", shardCount=").append(String.valueOf(this.shardCount)); + sb.append(", softwareVersion=").append(String.valueOf(this.softwareVersion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciCacheBackup)) { + return false; + } + + OciCacheBackup other = (OciCacheBackup) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.backupSource, other.backupSource) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && java.util.Objects.equals(this.backupSizeInGBs, other.backupSizeInGBs) + && java.util.Objects.equals(this.sourceClusterId, other.sourceClusterId) + && java.util.Objects.equals(this.clusterMode, other.clusterMode) + && java.util.Objects.equals(this.clusterMemoryInGBs, other.clusterMemoryInGBs) + && java.util.Objects.equals(this.shardCount, other.shardCount) + && java.util.Objects.equals(this.softwareVersion, other.softwareVersion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.backupType, other.backupType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.backupSource == null ? 43 : this.backupSource.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.hashCode()); + result = + (result * PRIME) + + (this.backupSizeInGBs == null ? 43 : this.backupSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.sourceClusterId == null ? 43 : this.sourceClusterId.hashCode()); + result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); + result = + (result * PRIME) + + (this.clusterMemoryInGBs == null + ? 43 + : this.clusterMemoryInGBs.hashCode()); + result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); + result = + (result * PRIME) + + (this.softwareVersion == null ? 43 : this.softwareVersion.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.backupType == null ? 43 : this.backupType.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-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackupCollection.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackupCollection.java new file mode 100644 index 00000000000..04ff5a06b67 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackupCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * Results of an OCI Cache backup search. Contains the OCI Cache Backup 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: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciCacheBackupCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciCacheBackupCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OciCacheBackupCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of OCI Cache backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of OCI Cache backups. + * @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 OciCacheBackupCollection build() { + OciCacheBackupCollection model = new OciCacheBackupCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciCacheBackupCollection 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 OCI Cache backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of OCI Cache backups. + * @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("OciCacheBackupCollection("); + 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 OciCacheBackupCollection)) { + return false; + } + + OciCacheBackupCollection other = (OciCacheBackupCollection) 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-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackupSummary.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackupSummary.java new file mode 100644 index 00000000000..4885656a236 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OciCacheBackupSummary.java @@ -0,0 +1,786 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * Summary of the OCI Cache 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: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciCacheBackupSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciCacheBackupSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "sourceClusterId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "clusterMode", + "backupSource", + "retentionPeriodInDays", + "backupSizeInGBs", + "backupType", + "freeformTags", + "definedTags", + "systemTags" + }) + public OciCacheBackupSummary( + String id, + String displayName, + String compartmentId, + String sourceClusterId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OciCacheBackup.LifecycleState lifecycleState, + RedisCluster.ClusterMode clusterMode, + OciCacheBackup.BackupSource backupSource, + Integer retentionPeriodInDays, + Float backupSizeInGBs, + BackupType backupType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.sourceClusterId = sourceClusterId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.clusterMode = clusterMode; + this.backupSource = backupSource; + this.retentionPeriodInDays = retentionPeriodInDays; + this.backupSizeInGBs = backupSizeInGBs; + this.backupType = backupType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Unique identifier that is immutable on creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Backup identifier, can be renamed + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Backup identifier, can be renamed + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Compartment identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment identifier + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The source OCI Cache Cluster OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceClusterId") + private String sourceClusterId; + + /** + * The source OCI Cache Cluster OCID. + * @param sourceClusterId the value to set + * @return this builder + **/ + public Builder sourceClusterId(String sourceClusterId) { + this.sourceClusterId = sourceClusterId; + this.__explicitlySet__.add("sourceClusterId"); + return this; + } + /** + * The date and time the backup was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the backup was created. An [RFC3339](https://datatracker.ietf.org/doc/html/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 date and time the backup was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the backup was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/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 backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private OciCacheBackup.LifecycleState lifecycleState; + + /** + * The current state of the backup. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(OciCacheBackup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Specifies whether the cluster is sharded or non-sharded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * @param clusterMode the value to set + * @return this builder + **/ + public Builder clusterMode(RedisCluster.ClusterMode clusterMode) { + this.clusterMode = clusterMode; + this.__explicitlySet__.add("clusterMode"); + return this; + } + /** + * Specifies whether the backup was created from a replica or primary node + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSource") + private OciCacheBackup.BackupSource backupSource; + + /** + * Specifies whether the backup was created from a replica or primary node + * @param backupSource the value to set + * @return this builder + **/ + public Builder backupSource(OciCacheBackup.BackupSource backupSource) { + this.backupSource = backupSource; + this.__explicitlySet__.add("backupSource"); + return this; + } + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @param retentionPeriodInDays the value to set + * @return this builder + **/ + public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + return this; + } + /** + * Backup size in GB. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") + private Float backupSizeInGBs; + + /** + * Backup size in GB. + * @param backupSizeInGBs the value to set + * @return this builder + **/ + public Builder backupSizeInGBs(Float backupSizeInGBs) { + this.backupSizeInGBs = backupSizeInGBs; + this.__explicitlySet__.add("backupSizeInGBs"); + return this; + } + /** + * Backup Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private BackupType backupType; + + /** + * Backup Type. + * @param backupType the value to set + * @return this builder + **/ + public Builder backupType(BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + 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 OciCacheBackupSummary build() { + OciCacheBackupSummary model = + new OciCacheBackupSummary( + this.id, + this.displayName, + this.compartmentId, + this.sourceClusterId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.clusterMode, + this.backupSource, + this.retentionPeriodInDays, + this.backupSizeInGBs, + this.backupType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciCacheBackupSummary 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("sourceClusterId")) { + this.sourceClusterId(model.getSourceClusterId()); + } + 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("clusterMode")) { + this.clusterMode(model.getClusterMode()); + } + if (model.wasPropertyExplicitlySet("backupSource")) { + this.backupSource(model.getBackupSource()); + } + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + if (model.wasPropertyExplicitlySet("backupSizeInGBs")) { + this.backupSizeInGBs(model.getBackupSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Unique identifier that is immutable on creation + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Backup identifier, can be renamed + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Backup identifier, can be renamed + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Compartment identifier + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment identifier + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The source OCI Cache Cluster OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceClusterId") + private final String sourceClusterId; + + /** + * The source OCI Cache Cluster OCID. + * @return the value + **/ + public String getSourceClusterId() { + return sourceClusterId; + } + + /** + * The date and time the backup was created. 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 date and time the backup was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the backup was updated. 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 date and time the backup was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final OciCacheBackup.LifecycleState lifecycleState; + + /** + * The current state of the backup. + * @return the value + **/ + public OciCacheBackup.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Specifies whether the cluster is sharded or non-sharded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private final RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * @return the value + **/ + public RedisCluster.ClusterMode getClusterMode() { + return clusterMode; + } + + /** + * Specifies whether the backup was created from a replica or primary node + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSource") + private final OciCacheBackup.BackupSource backupSource; + + /** + * Specifies whether the backup was created from a replica or primary node + * @return the value + **/ + public OciCacheBackup.BackupSource getBackupSource() { + return backupSource; + } + + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @return the value + **/ + public Integer getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + /** + * Backup size in GB. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") + private final Float backupSizeInGBs; + + /** + * Backup size in GB. + * @return the value + **/ + public Float getBackupSizeInGBs() { + return backupSizeInGBs; + } + + /** + * Backup Type. + **/ + public enum BackupType { + Manual("MANUAL"), + Automated("AUTOMATED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BackupType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupType v : BackupType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Backup Type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final BackupType backupType; + + /** + * Backup Type. + * @return the value + **/ + public BackupType getBackupType() { + return backupType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciCacheBackupSummary("); + 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(", sourceClusterId=").append(String.valueOf(this.sourceClusterId)); + 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(", clusterMode=").append(String.valueOf(this.clusterMode)); + sb.append(", backupSource=").append(String.valueOf(this.backupSource)); + sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + sb.append(", backupSizeInGBs=").append(String.valueOf(this.backupSizeInGBs)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciCacheBackupSummary)) { + return false; + } + + OciCacheBackupSummary other = (OciCacheBackupSummary) 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.sourceClusterId, other.sourceClusterId) + && 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.clusterMode, other.clusterMode) + && java.util.Objects.equals(this.backupSource, other.backupSource) + && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && java.util.Objects.equals(this.backupSizeInGBs, other.backupSizeInGBs) + && java.util.Objects.equals(this.backupType, other.backupType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.sourceClusterId == null ? 43 : this.sourceClusterId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); + result = (result * PRIME) + (this.backupSource == null ? 43 : this.backupSource.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.hashCode()); + result = + (result * PRIME) + + (this.backupSizeInGBs == null ? 43 : this.backupSizeInGBs.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.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-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java index bb9fedf31e3..c3a4fb154f0 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java @@ -30,6 +30,11 @@ public enum OperationType { DeleteOciCacheConfigSet("DELETE_OCI_CACHE_CONFIG_SET"), ChangeOciCacheConfigSetCompartment("CHANGE_OCI_CACHE_CONFIG_SET_COMPARTMENT"), ChangeOciCacheUserCompartment("CHANGE_OCI_CACHE_USER_COMPARTMENT"), + CreateOciCacheBackup("CREATE_OCI_CACHE_BACKUP"), + UpdateOciCacheBackup("UPDATE_OCI_CACHE_BACKUP"), + DeleteOciCacheBackup("DELETE_OCI_CACHE_BACKUP"), + MoveOciCacheBackup("MOVE_OCI_CACHE_BACKUP"), + ExportOciCacheBackupToOs("EXPORT_OCI_CACHE_BACKUP_TO_OS"), PatchOciCacheCluster("PATCH_OCI_CACHE_CLUSTER"), ReplaceOciCacheNode("REPLACE_OCI_CACHE_NODE"), diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java index 6cee3288489..fdef49d9c4d 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java @@ -42,6 +42,8 @@ public final class RedisCluster extends com.oracle.bmc.http.internal.ExplicitlyS "clusterMode", "shardCount", "nsgIds", + "backupId", + "importFromObjectStorageDetails", "securityAttributes", "freeformTags", "definedTags", @@ -70,6 +72,8 @@ public RedisCluster( ClusterMode clusterMode, Integer shardCount, java.util.List nsgIds, + String backupId, + ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails, java.util.Map> securityAttributes, java.util.Map freeformTags, java.util.Map> definedTags, @@ -97,6 +101,8 @@ public RedisCluster( this.clusterMode = clusterMode; this.shardCount = shardCount; this.nsgIds = nsgIds; + this.backupId = backupId; + this.importFromObjectStorageDetails = importFromObjectStorageDetails; this.securityAttributes = securityAttributes; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -456,6 +462,32 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * The ID of the OCI Cache Backup from which this cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupId") + private String backupId; + + /** + * The ID of the OCI Cache Backup from which this cluster was created. + * @param backupId the value to set + * @return this builder + **/ + public Builder backupId(String backupId) { + this.backupId = backupId; + this.__explicitlySet__.add("backupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("importFromObjectStorageDetails") + private ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails; + + public Builder importFromObjectStorageDetails( + ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails) { + this.importFromObjectStorageDetails = importFromObjectStorageDetails; + this.__explicitlySet__.add("importFromObjectStorageDetails"); + return this; + } /** * Security attributes for redis cluster resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -571,6 +603,8 @@ public RedisCluster build() { this.clusterMode, this.shardCount, this.nsgIds, + this.backupId, + this.importFromObjectStorageDetails, this.securityAttributes, this.freeformTags, this.definedTags, @@ -649,6 +683,12 @@ public Builder copy(RedisCluster model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("backupId")) { + this.backupId(model.getBackupId()); + } + if (model.wasPropertyExplicitlySet("importFromObjectStorageDetails")) { + this.importFromObjectStorageDetails(model.getImportFromObjectStorageDetails()); + } if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } @@ -1133,6 +1173,27 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * The ID of the OCI Cache Backup from which this cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupId") + private final String backupId; + + /** + * The ID of the OCI Cache Backup from which this cluster was created. + * @return the value + **/ + public String getBackupId() { + return backupId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("importFromObjectStorageDetails") + private final ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails; + + public ImportOciCacheFromObjectStorageDetails getImportFromObjectStorageDetails() { + return importFromObjectStorageDetails; + } + /** * Security attributes for redis cluster resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -1248,6 +1309,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterMode=").append(String.valueOf(this.clusterMode)); sb.append(", shardCount=").append(String.valueOf(this.shardCount)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", backupId=").append(String.valueOf(this.backupId)); + sb.append(", importFromObjectStorageDetails=") + .append(String.valueOf(this.importFromObjectStorageDetails)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -1291,6 +1355,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.clusterMode, other.clusterMode) && java.util.Objects.equals(this.shardCount, other.shardCount) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.backupId, other.backupId) + && java.util.Objects.equals( + this.importFromObjectStorageDetails, other.importFromObjectStorageDetails) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1354,6 +1421,12 @@ public int hashCode() { result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.backupId == null ? 43 : this.backupId.hashCode()); + result = + (result * PRIME) + + (this.importFromObjectStorageDetails == null + ? 43 + : this.importFromObjectStorageDetails.hashCode()); result = (result * PRIME) + (this.securityAttributes == null diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java index becabbdc237..8d955129fb9 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java @@ -44,6 +44,7 @@ public final class RedisClusterSummary extends com.oracle.bmc.http.internal.Expl "clusterMode", "shardCount", "nsgIds", + "backupId", "securityAttributes", "freeformTags", "definedTags", @@ -71,6 +72,7 @@ public RedisClusterSummary( RedisCluster.ClusterMode clusterMode, Integer shardCount, java.util.List nsgIds, + String backupId, java.util.Map> securityAttributes, java.util.Map freeformTags, java.util.Map> definedTags, @@ -97,6 +99,7 @@ public RedisClusterSummary( this.clusterMode = clusterMode; this.shardCount = shardCount; this.nsgIds = nsgIds; + this.backupId = backupId; this.securityAttributes = securityAttributes; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -447,6 +450,22 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * The ID of the OCI Cache Backup from which this cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupId") + private String backupId; + + /** + * The ID of the OCI Cache Backup from which this cluster was created. + * @param backupId the value to set + * @return this builder + **/ + public Builder backupId(String backupId) { + this.backupId = backupId; + this.__explicitlySet__.add("backupId"); + return this; + } /** * Security attributes for redis cluster resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -561,6 +580,7 @@ public RedisClusterSummary build() { this.clusterMode, this.shardCount, this.nsgIds, + this.backupId, this.securityAttributes, this.freeformTags, this.definedTags, @@ -636,6 +656,9 @@ public Builder copy(RedisClusterSummary model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("backupId")) { + this.backupId(model.getBackupId()); + } if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } @@ -963,6 +986,20 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * The ID of the OCI Cache Backup from which this cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupId") + private final String backupId; + + /** + * The ID of the OCI Cache Backup from which this cluster was created. + * @return the value + **/ + public String getBackupId() { + return backupId; + } + /** * Security attributes for redis cluster resource. Each key is predefined and scoped to a namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -1077,6 +1114,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", clusterMode=").append(String.valueOf(this.clusterMode)); sb.append(", shardCount=").append(String.valueOf(this.shardCount)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", backupId=").append(String.valueOf(this.backupId)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -1119,6 +1157,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.clusterMode, other.clusterMode) && java.util.Objects.equals(this.shardCount, other.shardCount) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.backupId, other.backupId) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1179,6 +1218,7 @@ public int hashCode() { result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.backupId == null ? 43 : this.backupId.hashCode()); result = (result * PRIME) + (this.securityAttributes == null diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateOciCacheBackupDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateOciCacheBackupDetails.java new file mode 100644 index 00000000000..7566776c735 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateOciCacheBackupDetails.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * The OCI Cache backup information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOciCacheBackupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOciCacheBackupDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "retentionPeriodInDays", + "freeformTags", + "definedTags" + }) + public UpdateOciCacheBackupDetails( + String displayName, + String description, + Integer retentionPeriodInDays, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.retentionPeriodInDays = retentionPeriodInDays; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Backup display name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Backup 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; + } + /** + * Backup description + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Backup description + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @param retentionPeriodInDays the value to set + * @return this builder + **/ + public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + 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 UpdateOciCacheBackupDetails build() { + UpdateOciCacheBackupDetails model = + new UpdateOciCacheBackupDetails( + this.displayName, + this.description, + this.retentionPeriodInDays, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOciCacheBackupDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + 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); + } + + /** + * Backup display name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Backup display name + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Backup description + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Backup description + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Backup retention period in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final Integer retentionPeriodInDays; + + /** + * Backup retention period in days. + * @return the value + **/ + public Integer getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOciCacheBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + 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 UpdateOciCacheBackupDetails)) { + return false; + } + + UpdateOciCacheBackupDetails other = (UpdateOciCacheBackupDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.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-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeOciCacheBackupCompartmentRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeOciCacheBackupCompartmentRequest.java new file mode 100644 index 00000000000..57e8371dbfe --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeOciCacheBackupCompartmentRequest.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use ChangeOciCacheBackupCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ChangeOciCacheBackupCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails> { + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId; + + /** + * Unique OCI Cache Backup identifier. + */ + public String getOciCacheBackupId() { + return ociCacheBackupId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails + changeOciCacheBackupCompartmentDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails + getChangeOciCacheBackupCompartmentDetails() { + return changeOciCacheBackupCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails getBody$() { + return changeOciCacheBackupCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeOciCacheBackupCompartmentRequest, + com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId = null; + + /** + * Unique OCI Cache Backup identifier. + * @param ociCacheBackupId the value to set + * @return this builder instance + */ + public Builder ociCacheBackupId(String ociCacheBackupId) { + this.ociCacheBackupId = ociCacheBackupId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails + changeOciCacheBackupCompartmentDetails = null; + + /** + * The information to be updated. + * @param changeOciCacheBackupCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeOciCacheBackupCompartmentDetails( + com.oracle.bmc.redis.model.ChangeOciCacheBackupCompartmentDetails + changeOciCacheBackupCompartmentDetails) { + this.changeOciCacheBackupCompartmentDetails = changeOciCacheBackupCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeOciCacheBackupCompartmentRequest o) { + ociCacheBackupId(o.getOciCacheBackupId()); + changeOciCacheBackupCompartmentDetails(o.getChangeOciCacheBackupCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeOciCacheBackupCompartmentRequest 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 ChangeOciCacheBackupCompartmentRequest + */ + public ChangeOciCacheBackupCompartmentRequest build() { + ChangeOciCacheBackupCompartmentRequest 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.redis.model.ChangeOciCacheBackupCompartmentDetails body) { + changeOciCacheBackupCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeOciCacheBackupCompartmentRequest 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 ChangeOciCacheBackupCompartmentRequest + */ + public ChangeOciCacheBackupCompartmentRequest buildWithoutInvocationCallback() { + ChangeOciCacheBackupCompartmentRequest request = + new ChangeOciCacheBackupCompartmentRequest(); + request.ociCacheBackupId = ociCacheBackupId; + request.changeOciCacheBackupCompartmentDetails = changeOciCacheBackupCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeOciCacheBackupCompartmentRequest(ociCacheBackupId, changeOciCacheBackupCompartmentDetails, 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() + .ociCacheBackupId(ociCacheBackupId) + .changeOciCacheBackupCompartmentDetails(changeOciCacheBackupCompartmentDetails) + .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(",ociCacheBackupId=").append(String.valueOf(this.ociCacheBackupId)); + sb.append(",changeOciCacheBackupCompartmentDetails=") + .append(String.valueOf(this.changeOciCacheBackupCompartmentDetails)); + 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 ChangeOciCacheBackupCompartmentRequest)) { + return false; + } + + ChangeOciCacheBackupCompartmentRequest other = (ChangeOciCacheBackupCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.ociCacheBackupId, other.ociCacheBackupId) + && java.util.Objects.equals( + this.changeOciCacheBackupCompartmentDetails, + other.changeOciCacheBackupCompartmentDetails) + && 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.ociCacheBackupId == null ? 43 : this.ociCacheBackupId.hashCode()); + result = + (result * PRIME) + + (this.changeOciCacheBackupCompartmentDetails == null + ? 43 + : this.changeOciCacheBackupCompartmentDetails.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-redis/src/main/java/com/oracle/bmc/redis/requests/CreateOciCacheBackupRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/CreateOciCacheBackupRequest.java new file mode 100644 index 00000000000..aefb49fda3c --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/CreateOciCacheBackupRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use CreateOciCacheBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class CreateOciCacheBackupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.redis.model.CreateOciCacheBackupDetails> { + + /** + * Details for the new OCI Cache Backup. + */ + private com.oracle.bmc.redis.model.CreateOciCacheBackupDetails createOciCacheBackupDetails; + + /** + * Details for the new OCI Cache Backup. + */ + public com.oracle.bmc.redis.model.CreateOciCacheBackupDetails getCreateOciCacheBackupDetails() { + return createOciCacheBackupDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.redis.model.CreateOciCacheBackupDetails getBody$() { + return createOciCacheBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOciCacheBackupRequest, + com.oracle.bmc.redis.model.CreateOciCacheBackupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new OCI Cache Backup. + */ + private com.oracle.bmc.redis.model.CreateOciCacheBackupDetails createOciCacheBackupDetails = + null; + + /** + * Details for the new OCI Cache Backup. + * @param createOciCacheBackupDetails the value to set + * @return this builder instance + */ + public Builder createOciCacheBackupDetails( + com.oracle.bmc.redis.model.CreateOciCacheBackupDetails + createOciCacheBackupDetails) { + this.createOciCacheBackupDetails = createOciCacheBackupDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateOciCacheBackupRequest o) { + createOciCacheBackupDetails(o.getCreateOciCacheBackupDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOciCacheBackupRequest 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 CreateOciCacheBackupRequest + */ + public CreateOciCacheBackupRequest build() { + CreateOciCacheBackupRequest 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.redis.model.CreateOciCacheBackupDetails body) { + createOciCacheBackupDetails(body); + return this; + } + + /** + * Build the instance of CreateOciCacheBackupRequest 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 CreateOciCacheBackupRequest + */ + public CreateOciCacheBackupRequest buildWithoutInvocationCallback() { + CreateOciCacheBackupRequest request = new CreateOciCacheBackupRequest(); + request.createOciCacheBackupDetails = createOciCacheBackupDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOciCacheBackupRequest(createOciCacheBackupDetails, 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() + .createOciCacheBackupDetails(createOciCacheBackupDetails) + .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(",createOciCacheBackupDetails=") + .append(String.valueOf(this.createOciCacheBackupDetails)); + 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 CreateOciCacheBackupRequest)) { + return false; + } + + CreateOciCacheBackupRequest other = (CreateOciCacheBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOciCacheBackupDetails, other.createOciCacheBackupDetails) + && 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.createOciCacheBackupDetails == null + ? 43 + : this.createOciCacheBackupDetails.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-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteOciCacheBackupRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteOciCacheBackupRequest.java new file mode 100644 index 00000000000..2e50088dcdb --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteOciCacheBackupRequest.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use DeleteOciCacheBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class DeleteOciCacheBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId; + + /** + * Unique OCI Cache Backup identifier. + */ + public String getOciCacheBackupId() { + return ociCacheBackupId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteOciCacheBackupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId = null; + + /** + * Unique OCI Cache Backup identifier. + * @param ociCacheBackupId the value to set + * @return this builder instance + */ + public Builder ociCacheBackupId(String ociCacheBackupId) { + this.ociCacheBackupId = ociCacheBackupId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteOciCacheBackupRequest o) { + ociCacheBackupId(o.getOciCacheBackupId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOciCacheBackupRequest 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 DeleteOciCacheBackupRequest + */ + public DeleteOciCacheBackupRequest build() { + DeleteOciCacheBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOciCacheBackupRequest 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 DeleteOciCacheBackupRequest + */ + public DeleteOciCacheBackupRequest buildWithoutInvocationCallback() { + DeleteOciCacheBackupRequest request = new DeleteOciCacheBackupRequest(); + request.ociCacheBackupId = ociCacheBackupId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOciCacheBackupRequest(ociCacheBackupId, 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() + .ociCacheBackupId(ociCacheBackupId) + .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(",ociCacheBackupId=").append(String.valueOf(this.ociCacheBackupId)); + 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 DeleteOciCacheBackupRequest)) { + return false; + } + + DeleteOciCacheBackupRequest other = (DeleteOciCacheBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.ociCacheBackupId, other.ociCacheBackupId) + && 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.ociCacheBackupId == null ? 43 : this.ociCacheBackupId.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-redis/src/main/java/com/oracle/bmc/redis/requests/ExportOciCacheBackupToObjectStorageRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ExportOciCacheBackupToObjectStorageRequest.java new file mode 100644 index 00000000000..74eb504bd2b --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ExportOciCacheBackupToObjectStorageRequest.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use ExportOciCacheBackupToObjectStorageRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ExportOciCacheBackupToObjectStorageRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails> { + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId; + + /** + * Unique OCI Cache Backup identifier. + */ + public String getOciCacheBackupId() { + return ociCacheBackupId; + } + /** + * The destination Object Storage information for the export. + */ + private com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails + exportOciCacheBackupToObjectStorageDetails; + + /** + * The destination Object Storage information for the export. + */ + public com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails + getExportOciCacheBackupToObjectStorageDetails() { + return exportOciCacheBackupToObjectStorageDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails getBody$() { + return exportOciCacheBackupToObjectStorageDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ExportOciCacheBackupToObjectStorageRequest, + com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId = null; + + /** + * Unique OCI Cache Backup identifier. + * @param ociCacheBackupId the value to set + * @return this builder instance + */ + public Builder ociCacheBackupId(String ociCacheBackupId) { + this.ociCacheBackupId = ociCacheBackupId; + return this; + } + + /** + * The destination Object Storage information for the export. + */ + private com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails + exportOciCacheBackupToObjectStorageDetails = null; + + /** + * The destination Object Storage information for the export. + * @param exportOciCacheBackupToObjectStorageDetails the value to set + * @return this builder instance + */ + public Builder exportOciCacheBackupToObjectStorageDetails( + com.oracle.bmc.redis.model.ExportOciCacheBackupToObjectStorageDetails + exportOciCacheBackupToObjectStorageDetails) { + this.exportOciCacheBackupToObjectStorageDetails = + exportOciCacheBackupToObjectStorageDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ExportOciCacheBackupToObjectStorageRequest o) { + ociCacheBackupId(o.getOciCacheBackupId()); + exportOciCacheBackupToObjectStorageDetails( + o.getExportOciCacheBackupToObjectStorageDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ExportOciCacheBackupToObjectStorageRequest 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 ExportOciCacheBackupToObjectStorageRequest + */ + public ExportOciCacheBackupToObjectStorageRequest build() { + ExportOciCacheBackupToObjectStorageRequest 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.redis.model.ExportOciCacheBackupToObjectStorageDetails body) { + exportOciCacheBackupToObjectStorageDetails(body); + return this; + } + + /** + * Build the instance of ExportOciCacheBackupToObjectStorageRequest 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 ExportOciCacheBackupToObjectStorageRequest + */ + public ExportOciCacheBackupToObjectStorageRequest buildWithoutInvocationCallback() { + ExportOciCacheBackupToObjectStorageRequest request = + new ExportOciCacheBackupToObjectStorageRequest(); + request.ociCacheBackupId = ociCacheBackupId; + request.exportOciCacheBackupToObjectStorageDetails = + exportOciCacheBackupToObjectStorageDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ExportOciCacheBackupToObjectStorageRequest(ociCacheBackupId, exportOciCacheBackupToObjectStorageDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .ociCacheBackupId(ociCacheBackupId) + .exportOciCacheBackupToObjectStorageDetails( + exportOciCacheBackupToObjectStorageDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",ociCacheBackupId=").append(String.valueOf(this.ociCacheBackupId)); + sb.append(",exportOciCacheBackupToObjectStorageDetails=") + .append(String.valueOf(this.exportOciCacheBackupToObjectStorageDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExportOciCacheBackupToObjectStorageRequest)) { + return false; + } + + ExportOciCacheBackupToObjectStorageRequest other = + (ExportOciCacheBackupToObjectStorageRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.ociCacheBackupId, other.ociCacheBackupId) + && java.util.Objects.equals( + this.exportOciCacheBackupToObjectStorageDetails, + other.exportOciCacheBackupToObjectStorageDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.ociCacheBackupId == null ? 43 : this.ociCacheBackupId.hashCode()); + result = + (result * PRIME) + + (this.exportOciCacheBackupToObjectStorageDetails == null + ? 43 + : this.exportOciCacheBackupToObjectStorageDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetOciCacheBackupRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetOciCacheBackupRequest.java new file mode 100644 index 00000000000..1a305e02b60 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetOciCacheBackupRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use GetOciCacheBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class GetOciCacheBackupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId; + + /** + * Unique OCI Cache Backup identifier. + */ + public String getOciCacheBackupId() { + return ociCacheBackupId; + } + /** + * 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< + GetOciCacheBackupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId = null; + + /** + * Unique OCI Cache Backup identifier. + * @param ociCacheBackupId the value to set + * @return this builder instance + */ + public Builder ociCacheBackupId(String ociCacheBackupId) { + this.ociCacheBackupId = ociCacheBackupId; + 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(GetOciCacheBackupRequest o) { + ociCacheBackupId(o.getOciCacheBackupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOciCacheBackupRequest 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 GetOciCacheBackupRequest + */ + public GetOciCacheBackupRequest build() { + GetOciCacheBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOciCacheBackupRequest 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 GetOciCacheBackupRequest + */ + public GetOciCacheBackupRequest buildWithoutInvocationCallback() { + GetOciCacheBackupRequest request = new GetOciCacheBackupRequest(); + request.ociCacheBackupId = ociCacheBackupId; + request.opcRequestId = opcRequestId; + return request; + // new GetOciCacheBackupRequest(ociCacheBackupId, 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().ociCacheBackupId(ociCacheBackupId).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(",ociCacheBackupId=").append(String.valueOf(this.ociCacheBackupId)); + 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 GetOciCacheBackupRequest)) { + return false; + } + + GetOciCacheBackupRequest other = (GetOciCacheBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.ociCacheBackupId, other.ociCacheBackupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.ociCacheBackupId == null ? 43 : this.ociCacheBackupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListOciCacheBackupsRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListOciCacheBackupsRequest.java new file mode 100644 index 00000000000..0d25e97df3b --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListOciCacheBackupsRequest.java @@ -0,0 +1,501 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use ListOciCacheBackupsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ListOciCacheBackupsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return the OCI Cache Backup resources, whose lifecycle state matches with the given lifecycle state. + */ + private com.oracle.bmc.redis.model.OciCacheBackup.LifecycleState lifecycleState; + + /** + * A filter to return the OCI Cache Backup resources, whose lifecycle state matches with the given lifecycle state. + */ + public com.oracle.bmc.redis.model.OciCacheBackup.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. + */ + public String getDisplayName() { + return displayName; + } + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId; + + /** + * Unique OCI Cache Backup identifier. + */ + public String getOciCacheBackupId() { + return ociCacheBackupId; + } + /** + * A filter to return the OCI Cache Backup resources, whose source cluster ID matches with the given source cluster ID. + */ + private String sourceClusterId; + + /** + * A filter to return the OCI Cache Backup resources, whose source cluster ID matches with the given source cluster ID. + */ + public String getSourceClusterId() { + return sourceClusterId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.redis.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.redis.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOciCacheBackupsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return the OCI Cache Backup resources, whose lifecycle state matches with the given lifecycle state. + */ + private com.oracle.bmc.redis.model.OciCacheBackup.LifecycleState lifecycleState = null; + + /** + * A filter to return the OCI Cache Backup resources, whose lifecycle state matches with the given lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.redis.model.OciCacheBackup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId = null; + + /** + * Unique OCI Cache Backup identifier. + * @param ociCacheBackupId the value to set + * @return this builder instance + */ + public Builder ociCacheBackupId(String ociCacheBackupId) { + this.ociCacheBackupId = ociCacheBackupId; + return this; + } + + /** + * A filter to return the OCI Cache Backup resources, whose source cluster ID matches with the given source cluster ID. + */ + private String sourceClusterId = null; + + /** + * A filter to return the OCI Cache Backup resources, whose source cluster ID matches with the given source cluster ID. + * @param sourceClusterId the value to set + * @return this builder instance + */ + public Builder sourceClusterId(String sourceClusterId) { + this.sourceClusterId = sourceClusterId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.redis.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.redis.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListOciCacheBackupsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + ociCacheBackupId(o.getOciCacheBackupId()); + sourceClusterId(o.getSourceClusterId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOciCacheBackupsRequest 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 ListOciCacheBackupsRequest + */ + public ListOciCacheBackupsRequest build() { + ListOciCacheBackupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOciCacheBackupsRequest 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 ListOciCacheBackupsRequest + */ + public ListOciCacheBackupsRequest buildWithoutInvocationCallback() { + ListOciCacheBackupsRequest request = new ListOciCacheBackupsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.ociCacheBackupId = ociCacheBackupId; + request.sourceClusterId = sourceClusterId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListOciCacheBackupsRequest(compartmentId, lifecycleState, displayName, ociCacheBackupId, sourceClusterId, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .ociCacheBackupId(ociCacheBackupId) + .sourceClusterId(sourceClusterId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",ociCacheBackupId=").append(String.valueOf(this.ociCacheBackupId)); + sb.append(",sourceClusterId=").append(String.valueOf(this.sourceClusterId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOciCacheBackupsRequest)) { + return false; + } + + ListOciCacheBackupsRequest other = (ListOciCacheBackupsRequest) 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.ociCacheBackupId, other.ociCacheBackupId) + && java.util.Objects.equals(this.sourceClusterId, other.sourceClusterId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.ociCacheBackupId == null ? 43 : this.ociCacheBackupId.hashCode()); + result = + (result * PRIME) + + (this.sourceClusterId == null ? 43 : this.sourceClusterId.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-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateOciCacheBackupRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateOciCacheBackupRequest.java new file mode 100644 index 00000000000..87b176de31f --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateOciCacheBackupRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.requests; + +import com.oracle.bmc.redis.model.*; +/** + * Example: Click here to see how to use UpdateOciCacheBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class UpdateOciCacheBackupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails> { + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId; + + /** + * Unique OCI Cache Backup identifier. + */ + public String getOciCacheBackupId() { + return ociCacheBackupId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails updateOciCacheBackupDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails getUpdateOciCacheBackupDetails() { + return updateOciCacheBackupDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails getBody$() { + return updateOciCacheBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOciCacheBackupRequest, + com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique OCI Cache Backup identifier. + */ + private String ociCacheBackupId = null; + + /** + * Unique OCI Cache Backup identifier. + * @param ociCacheBackupId the value to set + * @return this builder instance + */ + public Builder ociCacheBackupId(String ociCacheBackupId) { + this.ociCacheBackupId = ociCacheBackupId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails updateOciCacheBackupDetails = + null; + + /** + * The information to be updated. + * @param updateOciCacheBackupDetails the value to set + * @return this builder instance + */ + public Builder updateOciCacheBackupDetails( + com.oracle.bmc.redis.model.UpdateOciCacheBackupDetails + updateOciCacheBackupDetails) { + this.updateOciCacheBackupDetails = updateOciCacheBackupDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateOciCacheBackupRequest o) { + ociCacheBackupId(o.getOciCacheBackupId()); + updateOciCacheBackupDetails(o.getUpdateOciCacheBackupDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOciCacheBackupRequest 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 UpdateOciCacheBackupRequest + */ + public UpdateOciCacheBackupRequest build() { + UpdateOciCacheBackupRequest 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.redis.model.UpdateOciCacheBackupDetails body) { + updateOciCacheBackupDetails(body); + return this; + } + + /** + * Build the instance of UpdateOciCacheBackupRequest 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 UpdateOciCacheBackupRequest + */ + public UpdateOciCacheBackupRequest buildWithoutInvocationCallback() { + UpdateOciCacheBackupRequest request = new UpdateOciCacheBackupRequest(); + request.ociCacheBackupId = ociCacheBackupId; + request.updateOciCacheBackupDetails = updateOciCacheBackupDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOciCacheBackupRequest(ociCacheBackupId, updateOciCacheBackupDetails, 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() + .ociCacheBackupId(ociCacheBackupId) + .updateOciCacheBackupDetails(updateOciCacheBackupDetails) + .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(",ociCacheBackupId=").append(String.valueOf(this.ociCacheBackupId)); + sb.append(",updateOciCacheBackupDetails=") + .append(String.valueOf(this.updateOciCacheBackupDetails)); + 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 UpdateOciCacheBackupRequest)) { + return false; + } + + UpdateOciCacheBackupRequest other = (UpdateOciCacheBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.ociCacheBackupId, other.ociCacheBackupId) + && java.util.Objects.equals( + this.updateOciCacheBackupDetails, other.updateOciCacheBackupDetails) + && 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.ociCacheBackupId == null ? 43 : this.ociCacheBackupId.hashCode()); + result = + (result * PRIME) + + (this.updateOciCacheBackupDetails == null + ? 43 + : this.updateOciCacheBackupDetails.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-redis/src/main/java/com/oracle/bmc/redis/responses/ChangeOciCacheBackupCompartmentResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ChangeOciCacheBackupCompartmentResponse.java new file mode 100644 index 00000000000..293ee03bf0a --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ChangeOciCacheBackupCompartmentResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ChangeOciCacheBackupCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ChangeOciCacheBackupCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(ChangeOciCacheBackupCompartmentResponse 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 ChangeOciCacheBackupCompartmentResponse build() { + return new ChangeOciCacheBackupCompartmentResponse( + __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 ChangeOciCacheBackupCompartmentResponse)) { + return false; + } + + ChangeOciCacheBackupCompartmentResponse other = (ChangeOciCacheBackupCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/CreateOciCacheBackupResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/CreateOciCacheBackupResponse.java new file mode 100644 index 00000000000..7e3c75aae6a --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/CreateOciCacheBackupResponse.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class CreateOciCacheBackupResponse 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 OciCacheBackup instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup; + + /** + * The returned OciCacheBackup instance. + * @return the value + */ + public com.oracle.bmc.redis.model.OciCacheBackup getOciCacheBackup() { + return ociCacheBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "ociCacheBackup" + }) + private CreateOciCacheBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.ociCacheBackup = ociCacheBackup; + } + + 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 OciCacheBackup instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup; + + /** + * The returned OciCacheBackup instance. + * @param ociCacheBackup the value to set + * @return this builder + */ + public Builder ociCacheBackup(com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup) { + this.ociCacheBackup = ociCacheBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateOciCacheBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + ociCacheBackup(o.getOciCacheBackup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateOciCacheBackupResponse build() { + return new CreateOciCacheBackupResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + ociCacheBackup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",ociCacheBackup=").append(String.valueOf(ociCacheBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciCacheBackupResponse)) { + return false; + } + + CreateOciCacheBackupResponse other = (CreateOciCacheBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ociCacheBackup, other.ociCacheBackup); + } + + @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.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.ociCacheBackup == null ? 43 : this.ociCacheBackup.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/DeleteOciCacheBackupResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/DeleteOciCacheBackupResponse.java new file mode 100644 index 00000000000..882bb232247 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/DeleteOciCacheBackupResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class DeleteOciCacheBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteOciCacheBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(DeleteOciCacheBackupResponse 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 DeleteOciCacheBackupResponse build() { + return new DeleteOciCacheBackupResponse( + __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 DeleteOciCacheBackupResponse)) { + return false; + } + + DeleteOciCacheBackupResponse other = (DeleteOciCacheBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ExportOciCacheBackupToObjectStorageResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ExportOciCacheBackupToObjectStorageResponse.java new file mode 100644 index 00000000000..d1442af915c --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ExportOciCacheBackupToObjectStorageResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ExportOciCacheBackupToObjectStorageResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ExportOciCacheBackupToObjectStorageResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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(ExportOciCacheBackupToObjectStorageResponse 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 ExportOciCacheBackupToObjectStorageResponse build() { + return new ExportOciCacheBackupToObjectStorageResponse( + __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 ExportOciCacheBackupToObjectStorageResponse)) { + return false; + } + + ExportOciCacheBackupToObjectStorageResponse other = + (ExportOciCacheBackupToObjectStorageResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/GetOciCacheBackupResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/GetOciCacheBackupResponse.java new file mode 100644 index 00000000000..4dc66d8f705 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/GetOciCacheBackupResponse.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class GetOciCacheBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned OciCacheBackup instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup; + + /** + * The returned OciCacheBackup instance. + * @return the value + */ + public com.oracle.bmc.redis.model.OciCacheBackup getOciCacheBackup() { + return ociCacheBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "ociCacheBackup" + }) + private GetOciCacheBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.ociCacheBackup = ociCacheBackup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned OciCacheBackup instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup; + + /** + * The returned OciCacheBackup instance. + * @param ociCacheBackup the value to set + * @return this builder + */ + public Builder ociCacheBackup(com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup) { + this.ociCacheBackup = ociCacheBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetOciCacheBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + ociCacheBackup(o.getOciCacheBackup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetOciCacheBackupResponse build() { + return new GetOciCacheBackupResponse( + __httpStatusCode__, headers, etag, opcRequestId, ociCacheBackup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",ociCacheBackup=").append(String.valueOf(ociCacheBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOciCacheBackupResponse)) { + return false; + } + + GetOciCacheBackupResponse other = (GetOciCacheBackupResponse) 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.ociCacheBackup, other.ociCacheBackup); + } + + @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.ociCacheBackup == null ? 43 : this.ociCacheBackup.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ListOciCacheBackupsResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ListOciCacheBackupsResponse.java new file mode 100644 index 00000000000..72b12d54c84 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ListOciCacheBackupsResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ListOciCacheBackupsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned OciCacheBackupCollection instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackupCollection ociCacheBackupCollection; + + /** + * The returned OciCacheBackupCollection instance. + * @return the value + */ + public com.oracle.bmc.redis.model.OciCacheBackupCollection getOciCacheBackupCollection() { + return ociCacheBackupCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "ociCacheBackupCollection" + }) + private ListOciCacheBackupsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.redis.model.OciCacheBackupCollection ociCacheBackupCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.ociCacheBackupCollection = ociCacheBackupCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned OciCacheBackupCollection instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackupCollection ociCacheBackupCollection; + + /** + * The returned OciCacheBackupCollection instance. + * @param ociCacheBackupCollection the value to set + * @return this builder + */ + public Builder ociCacheBackupCollection( + com.oracle.bmc.redis.model.OciCacheBackupCollection ociCacheBackupCollection) { + this.ociCacheBackupCollection = ociCacheBackupCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListOciCacheBackupsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + ociCacheBackupCollection(o.getOciCacheBackupCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListOciCacheBackupsResponse build() { + return new ListOciCacheBackupsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + ociCacheBackupCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",ociCacheBackupCollection=").append(String.valueOf(ociCacheBackupCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOciCacheBackupsResponse)) { + return false; + } + + ListOciCacheBackupsResponse other = (ListOciCacheBackupsResponse) 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.ociCacheBackupCollection, other.ociCacheBackupCollection); + } + + @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.ociCacheBackupCollection == null + ? 43 + : this.ociCacheBackupCollection.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/UpdateOciCacheBackupResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/UpdateOciCacheBackupResponse.java new file mode 100644 index 00000000000..c4337f1f978 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/UpdateOciCacheBackupResponse.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class UpdateOciCacheBackupResponse 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 OciCacheBackup instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup; + + /** + * The returned OciCacheBackup instance. + * @return the value + */ + public com.oracle.bmc.redis.model.OciCacheBackup getOciCacheBackup() { + return ociCacheBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "ociCacheBackup" + }) + private UpdateOciCacheBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.ociCacheBackup = ociCacheBackup; + } + + 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, 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 OciCacheBackup instance. + */ + private com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup; + + /** + * The returned OciCacheBackup instance. + * @param ociCacheBackup the value to set + * @return this builder + */ + public Builder ociCacheBackup(com.oracle.bmc.redis.model.OciCacheBackup ociCacheBackup) { + this.ociCacheBackup = ociCacheBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateOciCacheBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + ociCacheBackup(o.getOciCacheBackup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateOciCacheBackupResponse build() { + return new UpdateOciCacheBackupResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + ociCacheBackup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",ociCacheBackup=").append(String.valueOf(ociCacheBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOciCacheBackupResponse)) { + return false; + } + + UpdateOciCacheBackupResponse other = (UpdateOciCacheBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ociCacheBackup, other.ociCacheBackup); + } + + @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.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.ociCacheBackup == null ? 43 : this.ociCacheBackup.hashCode()); + return result; + } +} diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index bbabe9af924..9828c340dab 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/CreateResourceAnalyticsInstanceDetails.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/CreateResourceAnalyticsInstanceDetails.java index 8f0f03eeb53..28725afee0e 100644 --- a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/CreateResourceAnalyticsInstanceDetails.java +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/CreateResourceAnalyticsInstanceDetails.java @@ -30,6 +30,7 @@ public final class CreateResourceAnalyticsInstanceDetails "subnetId", "isMutualTlsRequired", "nsgIds", + "computeCount", "licenseModel", "freeformTags", "definedTags" @@ -42,6 +43,7 @@ public CreateResourceAnalyticsInstanceDetails( String subnetId, Boolean isMutualTlsRequired, java.util.List nsgIds, + Integer computeCount, LicenseModel licenseModel, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -53,6 +55,7 @@ public CreateResourceAnalyticsInstanceDetails( this.subnetId = subnetId; this.isMutualTlsRequired = isMutualTlsRequired; this.nsgIds = nsgIds; + this.computeCount = computeCount; this.licenseModel = licenseModel; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -173,6 +176,22 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * The compute amount (CPUs) available to the Autonomous Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Integer computeCount; + + /** + * The compute amount (CPUs) available to the Autonomous Database. + * @param computeCount the value to set + * @return this builder + **/ + public Builder computeCount(Integer computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } /** * The Oracle license model that applies to the ADW instance. **/ @@ -252,6 +271,7 @@ public CreateResourceAnalyticsInstanceDetails build() { this.subnetId, this.isMutualTlsRequired, this.nsgIds, + this.computeCount, this.licenseModel, this.freeformTags, this.definedTags); @@ -284,6 +304,9 @@ public Builder copy(CreateResourceAnalyticsInstanceDetails model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } @@ -407,6 +430,20 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * The compute amount (CPUs) available to the Autonomous Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Integer computeCount; + + /** + * The compute amount (CPUs) available to the Autonomous Database. + * @return the value + **/ + public Integer getComputeCount() { + return computeCount; + } + /** * The Oracle license model that applies to the ADW instance. **/ @@ -521,6 +558,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", isMutualTlsRequired=").append(String.valueOf(this.isMutualTlsRequired)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -545,6 +583,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.isMutualTlsRequired, other.isMutualTlsRequired) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.computeCount, other.computeCount) && java.util.Objects.equals(this.licenseModel, other.licenseModel) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -570,6 +609,7 @@ public int hashCode() { ? 43 : this.isMutualTlsRequired.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.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-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java index 810fd198f8b..90ced9696f5 100644 --- a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java @@ -31,19 +31,25 @@ public static class Builder { * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. * @param password the value to set * @return this builder **/ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -77,6 +83,13 @@ public Builder toBuilder() { @Deprecated public PlainTextPasswordDetails(String password) { + super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public PlainTextPasswordDetails(char[] password) { super(); this.password = password; } @@ -85,13 +98,25 @@ public PlainTextPasswordDetails(String password) { * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + * return the value + * @Deprecated - Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. * @return the value **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/ResourceAnalyticsInstanceOacAttachmentDetails.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/ResourceAnalyticsInstanceOacAttachmentDetails.java index 13840599d20..ec927fef273 100644 --- a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/ResourceAnalyticsInstanceOacAttachmentDetails.java +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/ResourceAnalyticsInstanceOacAttachmentDetails.java @@ -30,20 +30,26 @@ public final class ResourceAnalyticsInstanceOacAttachmentDetails "networkDetails", "subnetId", "nsgIds", - "licenseModel" + "licenseModel", + "capacityType", + "capacityValue" }) public ResourceAnalyticsInstanceOacAttachmentDetails( String idcsDomainId, ResourceAnalyticsInstanceOacNetworkDetails networkDetails, String subnetId, java.util.List nsgIds, - LicenseModel licenseModel) { + LicenseModel licenseModel, + CapacityType capacityType, + Integer capacityValue) { super(); this.idcsDomainId = idcsDomainId; this.networkDetails = networkDetails; this.subnetId = subnetId; this.nsgIds = nsgIds; this.licenseModel = licenseModel; + this.capacityType = capacityType; + this.capacityValue = capacityValue; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -121,6 +127,38 @@ public Builder licenseModel(LicenseModel licenseModel) { this.__explicitlySet__.add("licenseModel"); return this; } + /** + * The capacity model to use for the Analytics Instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacityType") + private CapacityType capacityType; + + /** + * The capacity model to use for the Analytics Instance. + * @param capacityType the value to set + * @return this builder + **/ + public Builder capacityType(CapacityType capacityType) { + this.capacityType = capacityType; + this.__explicitlySet__.add("capacityType"); + return this; + } + /** + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics Instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacityValue") + private Integer capacityValue; + + /** + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics Instance. + * @param capacityValue the value to set + * @return this builder + **/ + public Builder capacityValue(Integer capacityValue) { + this.capacityValue = capacityValue; + this.__explicitlySet__.add("capacityValue"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -132,7 +170,9 @@ public ResourceAnalyticsInstanceOacAttachmentDetails build() { this.networkDetails, this.subnetId, this.nsgIds, - this.licenseModel); + this.licenseModel, + this.capacityType, + this.capacityValue); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -156,6 +196,12 @@ public Builder copy(ResourceAnalyticsInstanceOacAttachmentDetails model) { if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } + if (model.wasPropertyExplicitlySet("capacityType")) { + this.capacityType(model.getCapacityType()); + } + if (model.wasPropertyExplicitlySet("capacityValue")) { + this.capacityValue(model.getCapacityValue()); + } return this; } } @@ -269,6 +315,69 @@ public LicenseModel getLicenseModel() { return licenseModel; } + /** + * The capacity model to use for the Analytics Instance. + **/ + public enum CapacityType { + OlpuCount("OLPU_COUNT"), + UserCount("USER_COUNT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CapacityType v : CapacityType.values()) { + map.put(v.getValue(), v); + } + } + + CapacityType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CapacityType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CapacityType: " + key); + } + }; + /** + * The capacity model to use for the Analytics Instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacityType") + private final CapacityType capacityType; + + /** + * The capacity model to use for the Analytics Instance. + * @return the value + **/ + public CapacityType getCapacityType() { + return capacityType; + } + + /** + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics Instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacityValue") + private final Integer capacityValue; + + /** + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics Instance. + * @return the value + **/ + public Integer getCapacityValue() { + return capacityValue; + } + @Override public String toString() { return this.toString(true); @@ -288,6 +397,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", capacityType=").append(String.valueOf(this.capacityType)); + sb.append(", capacityValue=").append(String.valueOf(this.capacityValue)); sb.append(")"); return sb.toString(); } @@ -308,6 +419,8 @@ 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.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.capacityType, other.capacityType) + && java.util.Objects.equals(this.capacityValue, other.capacityValue) && super.equals(other); } @@ -322,6 +435,10 @@ public int 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.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.capacityType == null ? 43 : this.capacityType.hashCode()); + result = + (result * PRIME) + + (this.capacityValue == null ? 43 : this.capacityValue.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachment.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachment.java index 14bd384949c..67071fa43f0 100644 --- a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachment.java +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachment.java @@ -32,6 +32,10 @@ public final class TenancyAttachment extends com.oracle.bmc.http.internal.Explic "resourceAnalyticsInstanceId", "tenancyId", "isReportingTenancy", + "monitoredRegions", + "dataPopulationStatus", + "timeDataPopulationStarted", + "timeDataPopulationEnded", "timeCreated", "timeUpdated", "lifecycleState", @@ -44,6 +48,10 @@ public TenancyAttachment( String resourceAnalyticsInstanceId, String tenancyId, Boolean isReportingTenancy, + java.util.List monitoredRegions, + DataPopulationStatus dataPopulationStatus, + java.util.Date timeDataPopulationStarted, + java.util.Date timeDataPopulationEnded, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -55,6 +63,10 @@ public TenancyAttachment( this.resourceAnalyticsInstanceId = resourceAnalyticsInstanceId; this.tenancyId = tenancyId; this.isReportingTenancy = isReportingTenancy; + this.monitoredRegions = monitoredRegions; + this.dataPopulationStatus = dataPopulationStatus; + this.timeDataPopulationStarted = timeDataPopulationStarted; + this.timeDataPopulationEnded = timeDataPopulationEnded; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -144,6 +156,83 @@ public Builder isReportingTenancy(Boolean isReportingTenancy) { this.__explicitlySet__.add("isReportingTenancy"); return this; } + /** + * List of monitored regions with their data population status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("monitoredRegions") + private java.util.List monitoredRegions; + + /** + * List of monitored regions with their data population status. + * @param monitoredRegions the value to set + * @return this builder + **/ + public Builder monitoredRegions( + java.util.List monitoredRegions) { + this.monitoredRegions = monitoredRegions; + this.__explicitlySet__.add("monitoredRegions"); + return this; + } + /** + * The overall status of the data population from the tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataPopulationStatus") + private DataPopulationStatus dataPopulationStatus; + + /** + * The overall status of the data population from the tenancy. + * @param dataPopulationStatus the value to set + * @return this builder + **/ + public Builder dataPopulationStatus(DataPopulationStatus dataPopulationStatus) { + this.dataPopulationStatus = dataPopulationStatus; + this.__explicitlySet__.add("dataPopulationStatus"); + return this; + } + /** + * The date and time the data population tasks started, 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("timeDataPopulationStarted") + private java.util.Date timeDataPopulationStarted; + + /** + * The date and time the data population tasks started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeDataPopulationStarted the value to set + * @return this builder + **/ + public Builder timeDataPopulationStarted(java.util.Date timeDataPopulationStarted) { + this.timeDataPopulationStarted = timeDataPopulationStarted; + this.__explicitlySet__.add("timeDataPopulationStarted"); + return this; + } + /** + * The date and time the data population tasks completed, 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("timeDataPopulationEnded") + private java.util.Date timeDataPopulationEnded; + + /** + * The date and time the data population tasks completed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

@@ -258,6 +347,10 @@ public TenancyAttachment build() { this.resourceAnalyticsInstanceId, this.tenancyId, this.isReportingTenancy, + this.monitoredRegions, + this.dataPopulationStatus, + this.timeDataPopulationStarted, + this.timeDataPopulationEnded, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -286,6 +379,18 @@ public Builder copy(TenancyAttachment model) { if (model.wasPropertyExplicitlySet("isReportingTenancy")) { this.isReportingTenancy(model.getIsReportingTenancy()); } + if (model.wasPropertyExplicitlySet("monitoredRegions")) { + this.monitoredRegions(model.getMonitoredRegions()); + } + if (model.wasPropertyExplicitlySet("dataPopulationStatus")) { + this.dataPopulationStatus(model.getDataPopulationStatus()); + } + if (model.wasPropertyExplicitlySet("timeDataPopulationStarted")) { + this.timeDataPopulationStarted(model.getTimeDataPopulationStarted()); + } + if (model.wasPropertyExplicitlySet("timeDataPopulationEnded")) { + this.timeDataPopulationEnded(model.getTimeDataPopulationEnded()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -386,6 +491,129 @@ public Boolean getIsReportingTenancy() { return isReportingTenancy; } + /** + * List of monitored regions with their data population status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("monitoredRegions") + private final java.util.List monitoredRegions; + + /** + * List of monitored regions with their data population status. + * @return the value + **/ + public java.util.List getMonitoredRegions() { + return monitoredRegions; + } + + /** + * The overall status of the data population from the tenancy. + **/ + public enum DataPopulationStatus { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + NeedsAttention("NEEDS_ATTENTION"), + PartiallySucceeded("PARTIALLY_SUCCEEDED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DataPopulationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DataPopulationStatus v : DataPopulationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DataPopulationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DataPopulationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DataPopulationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The overall status of the data population from the tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataPopulationStatus") + private final DataPopulationStatus dataPopulationStatus; + + /** + * The overall status of the data population from the tenancy. + * @return the value + **/ + public DataPopulationStatus getDataPopulationStatus() { + return dataPopulationStatus; + } + + /** + * The date and time the data population tasks started, 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("timeDataPopulationStarted") + private final java.util.Date timeDataPopulationStarted; + + /** + * The date and time the data population tasks started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeDataPopulationStarted() { + return timeDataPopulationStarted; + } + + /** + * The date and time the data population tasks completed, 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("timeDataPopulationEnded") + private final java.util.Date timeDataPopulationEnded; + + /** + * The date and time the data population tasks completed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

@@ -551,6 +779,12 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.resourceAnalyticsInstanceId)); sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(", isReportingTenancy=").append(String.valueOf(this.isReportingTenancy)); + sb.append(", monitoredRegions=").append(String.valueOf(this.monitoredRegions)); + sb.append(", dataPopulationStatus=").append(String.valueOf(this.dataPopulationStatus)); + sb.append(", timeDataPopulationStarted=") + .append(String.valueOf(this.timeDataPopulationStarted)); + sb.append(", timeDataPopulationEnded=") + .append(String.valueOf(this.timeDataPopulationEnded)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -576,6 +810,12 @@ public boolean equals(Object o) { this.resourceAnalyticsInstanceId, other.resourceAnalyticsInstanceId) && java.util.Objects.equals(this.tenancyId, other.tenancyId) && java.util.Objects.equals(this.isReportingTenancy, other.isReportingTenancy) + && java.util.Objects.equals(this.monitoredRegions, other.monitoredRegions) + && java.util.Objects.equals(this.dataPopulationStatus, other.dataPopulationStatus) + && java.util.Objects.equals( + this.timeDataPopulationStarted, other.timeDataPopulationStarted) + && java.util.Objects.equals( + this.timeDataPopulationEnded, other.timeDataPopulationEnded) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -601,6 +841,24 @@ public int hashCode() { + (this.isReportingTenancy == null ? 43 : this.isReportingTenancy.hashCode()); + result = + (result * PRIME) + + (this.monitoredRegions == null ? 43 : this.monitoredRegions.hashCode()); + result = + (result * PRIME) + + (this.dataPopulationStatus == null + ? 43 + : this.dataPopulationStatus.hashCode()); + result = + (result * PRIME) + + (this.timeDataPopulationStarted == null + ? 43 + : this.timeDataPopulationStarted.hashCode()); + result = + (result * PRIME) + + (this.timeDataPopulationEnded == null + ? 43 + : this.timeDataPopulationEnded.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-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentDataPopulation.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentDataPopulation.java new file mode 100644 index 00000000000..ee60d909f7f --- /dev/null +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentDataPopulation.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourceanalytics.model; + +/** + * Data population status for a monitored region in the tenancy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TenancyAttachmentDataPopulation.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TenancyAttachmentDataPopulation + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "status", + "timeStarted", + "timeEnded", + "inProgressCount", + "succeededCount", + "totalCount" + }) + public TenancyAttachmentDataPopulation( + TenancyAttachment.DataPopulationStatus status, + java.util.Date timeStarted, + java.util.Date timeEnded, + Integer inProgressCount, + Integer succeededCount, + Integer totalCount) { + super(); + this.status = status; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.inProgressCount = inProgressCount; + this.succeededCount = succeededCount; + this.totalCount = totalCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The overall status of the data population from the monitored region of the tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private TenancyAttachment.DataPopulationStatus status; + + /** + * The overall status of the data population from the monitored region of the tenancy. + * @param status the value to set + * @return this builder + **/ + public Builder status(TenancyAttachment.DataPopulationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The date and time the data population task was started, 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("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the data population task was started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the data population task completed, 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("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the data population task completed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeEnded the value to set + * @return this builder + **/ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * The number of data population tasks currently in progress. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("inProgressCount") + private Integer inProgressCount; + + /** + * The number of data population tasks currently in progress. + * @param inProgressCount the value to set + * @return this builder + **/ + public Builder inProgressCount(Integer inProgressCount) { + this.inProgressCount = inProgressCount; + this.__explicitlySet__.add("inProgressCount"); + return this; + } + /** + * The number of data population tasks that have succeeded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("succeededCount") + private Integer succeededCount; + + /** + * The number of data population tasks that have succeeded. + * @param succeededCount the value to set + * @return this builder + **/ + public Builder succeededCount(Integer succeededCount) { + this.succeededCount = succeededCount; + this.__explicitlySet__.add("succeededCount"); + return this; + } + /** + * The total number of data population tasks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalCount") + private Integer totalCount; + + /** + * The total number of data population tasks. + * @param totalCount the value to set + * @return this builder + **/ + public Builder totalCount(Integer totalCount) { + this.totalCount = totalCount; + this.__explicitlySet__.add("totalCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TenancyAttachmentDataPopulation build() { + TenancyAttachmentDataPopulation model = + new TenancyAttachmentDataPopulation( + this.status, + this.timeStarted, + this.timeEnded, + this.inProgressCount, + this.succeededCount, + this.totalCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TenancyAttachmentDataPopulation model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("inProgressCount")) { + this.inProgressCount(model.getInProgressCount()); + } + if (model.wasPropertyExplicitlySet("succeededCount")) { + this.succeededCount(model.getSucceededCount()); + } + if (model.wasPropertyExplicitlySet("totalCount")) { + this.totalCount(model.getTotalCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The overall status of the data population from the monitored region of the tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final TenancyAttachment.DataPopulationStatus status; + + /** + * The overall status of the data population from the monitored region of the tenancy. + * @return the value + **/ + public TenancyAttachment.DataPopulationStatus getStatus() { + return status; + } + + /** + * The date and time the data population task was started, 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("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the data population task was started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the data population task completed, 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("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the data population task completed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * The number of data population tasks currently in progress. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("inProgressCount") + private final Integer inProgressCount; + + /** + * The number of data population tasks currently in progress. + * @return the value + **/ + public Integer getInProgressCount() { + return inProgressCount; + } + + /** + * The number of data population tasks that have succeeded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("succeededCount") + private final Integer succeededCount; + + /** + * The number of data population tasks that have succeeded. + * @return the value + **/ + public Integer getSucceededCount() { + return succeededCount; + } + + /** + * The total number of data population tasks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalCount") + private final Integer totalCount; + + /** + * The total number of data population tasks. + * @return the value + **/ + public Integer getTotalCount() { + return totalCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TenancyAttachmentDataPopulation("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", inProgressCount=").append(String.valueOf(this.inProgressCount)); + sb.append(", succeededCount=").append(String.valueOf(this.succeededCount)); + sb.append(", totalCount=").append(String.valueOf(this.totalCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TenancyAttachmentDataPopulation)) { + return false; + } + + TenancyAttachmentDataPopulation other = (TenancyAttachmentDataPopulation) o; + return java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.inProgressCount, other.inProgressCount) + && java.util.Objects.equals(this.succeededCount, other.succeededCount) + && java.util.Objects.equals(this.totalCount, other.totalCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.inProgressCount == null ? 43 : this.inProgressCount.hashCode()); + result = + (result * PRIME) + + (this.succeededCount == null ? 43 : this.succeededCount.hashCode()); + result = (result * PRIME) + (this.totalCount == null ? 43 : this.totalCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentMonitoredRegionSummary.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentMonitoredRegionSummary.java new file mode 100644 index 00000000000..f39922471a5 --- /dev/null +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentMonitoredRegionSummary.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourceanalytics.model; + +/** + * Information about a monitored region in a tenancy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241031") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TenancyAttachmentMonitoredRegionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TenancyAttachmentMonitoredRegionSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"regionId", "dataPopulation"}) + public TenancyAttachmentMonitoredRegionSummary( + String regionId, TenancyAttachmentDataPopulation dataPopulation) { + super(); + this.regionId = regionId; + this.dataPopulation = dataPopulation; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [Region Identifier](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) of the monitored region. E.g. us-ashburn-1 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("regionId") + private String regionId; + + /** + * The [Region Identifier](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) of the monitored region. E.g. us-ashburn-1 + * @param regionId the value to set + * @return this builder + **/ + public Builder regionId(String regionId) { + this.regionId = regionId; + this.__explicitlySet__.add("regionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataPopulation") + private TenancyAttachmentDataPopulation dataPopulation; + + public Builder dataPopulation(TenancyAttachmentDataPopulation dataPopulation) { + this.dataPopulation = dataPopulation; + this.__explicitlySet__.add("dataPopulation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TenancyAttachmentMonitoredRegionSummary build() { + TenancyAttachmentMonitoredRegionSummary model = + new TenancyAttachmentMonitoredRegionSummary(this.regionId, this.dataPopulation); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TenancyAttachmentMonitoredRegionSummary model) { + if (model.wasPropertyExplicitlySet("regionId")) { + this.regionId(model.getRegionId()); + } + if (model.wasPropertyExplicitlySet("dataPopulation")) { + this.dataPopulation(model.getDataPopulation()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [Region Identifier](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) of the monitored region. E.g. us-ashburn-1 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("regionId") + private final String regionId; + + /** + * The [Region Identifier](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) of the monitored region. E.g. us-ashburn-1 + * @return the value + **/ + public String getRegionId() { + return regionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataPopulation") + private final TenancyAttachmentDataPopulation dataPopulation; + + public TenancyAttachmentDataPopulation getDataPopulation() { + return dataPopulation; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TenancyAttachmentMonitoredRegionSummary("); + sb.append("super=").append(super.toString()); + sb.append("regionId=").append(String.valueOf(this.regionId)); + sb.append(", dataPopulation=").append(String.valueOf(this.dataPopulation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TenancyAttachmentMonitoredRegionSummary)) { + return false; + } + + TenancyAttachmentMonitoredRegionSummary other = (TenancyAttachmentMonitoredRegionSummary) o; + return java.util.Objects.equals(this.regionId, other.regionId) + && java.util.Objects.equals(this.dataPopulation, other.dataPopulation) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.regionId == null ? 43 : this.regionId.hashCode()); + result = + (result * PRIME) + + (this.dataPopulation == null ? 43 : this.dataPopulation.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentSummary.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentSummary.java index b4aa5e06c23..2d53876db94 100644 --- a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentSummary.java +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/TenancyAttachmentSummary.java @@ -28,6 +28,9 @@ public final class TenancyAttachmentSummary "resourceAnalyticsInstanceId", "tenancyId", "isReportingTenancy", + "dataPopulationStatus", + "timeDataPopulationStarted", + "timeDataPopulationEnded", "timeCreated", "timeUpdated", "lifecycleState", @@ -40,6 +43,9 @@ public TenancyAttachmentSummary( String resourceAnalyticsInstanceId, String tenancyId, Boolean isReportingTenancy, + TenancyAttachment.DataPopulationStatus dataPopulationStatus, + java.util.Date timeDataPopulationStarted, + java.util.Date timeDataPopulationEnded, java.util.Date timeCreated, java.util.Date timeUpdated, TenancyAttachment.LifecycleState lifecycleState, @@ -51,6 +57,9 @@ public TenancyAttachmentSummary( this.resourceAnalyticsInstanceId = resourceAnalyticsInstanceId; this.tenancyId = tenancyId; this.isReportingTenancy = isReportingTenancy; + this.dataPopulationStatus = dataPopulationStatus; + this.timeDataPopulationStarted = timeDataPopulationStarted; + this.timeDataPopulationEnded = timeDataPopulationEnded; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -140,6 +149,67 @@ public Builder isReportingTenancy(Boolean isReportingTenancy) { this.__explicitlySet__.add("isReportingTenancy"); return this; } + /** + * The overall status of the data population from the tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataPopulationStatus") + private TenancyAttachment.DataPopulationStatus dataPopulationStatus; + + /** + * The overall status of the data population from the tenancy. + * @param dataPopulationStatus the value to set + * @return this builder + **/ + public Builder dataPopulationStatus( + TenancyAttachment.DataPopulationStatus dataPopulationStatus) { + this.dataPopulationStatus = dataPopulationStatus; + this.__explicitlySet__.add("dataPopulationStatus"); + return this; + } + /** + * The date and time the data population tasks started, 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("timeDataPopulationStarted") + private java.util.Date timeDataPopulationStarted; + + /** + * The date and time the data population tasks started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeDataPopulationStarted the value to set + * @return this builder + **/ + public Builder timeDataPopulationStarted(java.util.Date timeDataPopulationStarted) { + this.timeDataPopulationStarted = timeDataPopulationStarted; + this.__explicitlySet__.add("timeDataPopulationStarted"); + return this; + } + /** + * The date and time the data population tasks completed, 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("timeDataPopulationEnded") + private java.util.Date timeDataPopulationEnded; + + /** + * The date and time the data population tasks completed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

@@ -254,6 +324,9 @@ public TenancyAttachmentSummary build() { this.resourceAnalyticsInstanceId, this.tenancyId, this.isReportingTenancy, + this.dataPopulationStatus, + this.timeDataPopulationStarted, + this.timeDataPopulationEnded, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -282,6 +355,15 @@ public Builder copy(TenancyAttachmentSummary model) { if (model.wasPropertyExplicitlySet("isReportingTenancy")) { this.isReportingTenancy(model.getIsReportingTenancy()); } + if (model.wasPropertyExplicitlySet("dataPopulationStatus")) { + this.dataPopulationStatus(model.getDataPopulationStatus()); + } + if (model.wasPropertyExplicitlySet("timeDataPopulationStarted")) { + this.timeDataPopulationStarted(model.getTimeDataPopulationStarted()); + } + if (model.wasPropertyExplicitlySet("timeDataPopulationEnded")) { + this.timeDataPopulationEnded(model.getTimeDataPopulationEnded()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -382,6 +464,60 @@ public Boolean getIsReportingTenancy() { return isReportingTenancy; } + /** + * The overall status of the data population from the tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataPopulationStatus") + private final TenancyAttachment.DataPopulationStatus dataPopulationStatus; + + /** + * The overall status of the data population from the tenancy. + * @return the value + **/ + public TenancyAttachment.DataPopulationStatus getDataPopulationStatus() { + return dataPopulationStatus; + } + + /** + * The date and time the data population tasks started, 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("timeDataPopulationStarted") + private final java.util.Date timeDataPopulationStarted; + + /** + * The date and time the data population tasks started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeDataPopulationStarted() { + return timeDataPopulationStarted; + } + + /** + * The date and time the data population tasks completed, 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("timeDataPopulationEnded") + private final java.util.Date timeDataPopulationEnded; + + /** + * The date and time the data population tasks completed, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

@@ -494,6 +630,11 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.resourceAnalyticsInstanceId)); sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(", isReportingTenancy=").append(String.valueOf(this.isReportingTenancy)); + sb.append(", dataPopulationStatus=").append(String.valueOf(this.dataPopulationStatus)); + sb.append(", timeDataPopulationStarted=") + .append(String.valueOf(this.timeDataPopulationStarted)); + sb.append(", timeDataPopulationEnded=") + .append(String.valueOf(this.timeDataPopulationEnded)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -519,6 +660,11 @@ public boolean equals(Object o) { this.resourceAnalyticsInstanceId, other.resourceAnalyticsInstanceId) && java.util.Objects.equals(this.tenancyId, other.tenancyId) && java.util.Objects.equals(this.isReportingTenancy, other.isReportingTenancy) + && java.util.Objects.equals(this.dataPopulationStatus, other.dataPopulationStatus) + && java.util.Objects.equals( + this.timeDataPopulationStarted, other.timeDataPopulationStarted) + && java.util.Objects.equals( + this.timeDataPopulationEnded, other.timeDataPopulationEnded) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -544,6 +690,21 @@ public int hashCode() { + (this.isReportingTenancy == null ? 43 : this.isReportingTenancy.hashCode()); + result = + (result * PRIME) + + (this.dataPopulationStatus == null + ? 43 + : this.dataPopulationStatus.hashCode()); + result = + (result * PRIME) + + (this.timeDataPopulationStarted == null + ? 43 + : this.timeDataPopulationStarted.hashCode()); + result = + (result * PRIME) + + (this.timeDataPopulationEnded == null + ? 43 + : this.timeDataPopulationEnded.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-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 32b8dc0a936..4c416d9dfa7 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-resourcemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index d568a440939..d4e6b7a7513 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 3b03077fbb9..dba8ecf7c98 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 79f68ae964d..baadf6e581b 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-rover @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index a2e75d74dbb..78ae18ed459 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-sch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 0aad23e1eef..3ee0511b7ea 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-secrets @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsAsyncClient.java b/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsAsyncClient.java index 07ade15686c..29e5c805809 100644 --- a/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsAsyncClient.java +++ b/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsAsyncClient.java @@ -273,6 +273,17 @@ public SecretsAsyncClient( com.oracle.bmc.util.internal.SpiClientConfiguratorUtils .getEnabledSpiClientConfigurators(); allConfigurators.addAll(additionalSpiClientConfigurators); + if (com.oracle.bmc.Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + this.getClass().getName())) { + restClientFactoryBuilder = + restClientFactoryBuilder.defaultConfigurator( + new com.oracle.bmc.http.ConnectionPoolingApacheConfigurator( + com.oracle.bmc.http.ApacheConnectionPoolConfig.builder() + .totalOpenConnections(100) + .defaultMaxConnectionsPerRoute(100) + .idleConnectionTimeoutInMillis(60000L) + .build())); + } this.restClientFactory = restClientFactoryBuilder .clientConfigurator(clientConfigurator) diff --git a/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsClient.java b/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsClient.java index a0863ae22a0..a91a31d8d0e 100644 --- a/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsClient.java +++ b/bmc-secrets/src/main/java/com/oracle/bmc/secrets/SecretsClient.java @@ -272,6 +272,17 @@ protected SecretsClient( com.oracle.bmc.util.internal.SpiClientConfiguratorUtils .getEnabledSpiClientConfigurators(); allConfigurators.addAll(additionalSpiClientConfigurators); + if (com.oracle.bmc.Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + this.getClass().getName())) { + restClientFactoryBuilder = + restClientFactoryBuilder.defaultConfigurator( + new com.oracle.bmc.http.ConnectionPoolingApacheConfigurator( + com.oracle.bmc.http.ApacheConnectionPoolConfig.builder() + .totalOpenConnections(100) + .defaultMaxConnectionsPerRoute(100) + .idleConnectionTimeoutInMillis(60000L) + .build())); + } this.restClientFactory = restClientFactoryBuilder .clientConfigurator(clientConfigurator) diff --git a/bmc-secrets/src/test/java/com/oracle/bmc/secrets/SecretsConnectionPoolingOptionsTest.java b/bmc-secrets/src/test/java/com/oracle/bmc/secrets/SecretsConnectionPoolingOptionsTest.java new file mode 100644 index 00000000000..a699a4d4c6b --- /dev/null +++ b/bmc-secrets/src/test/java/com/oracle/bmc/secrets/SecretsConnectionPoolingOptionsTest.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.secrets; + +import com.oracle.bmc.ClientConfiguration; +import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.http.ClientConfigurator; +import com.oracle.bmc.http.CompositeClientConfigurator; +import com.oracle.bmc.http.ConnectionPoolingApacheConfigurator; +import com.oracle.bmc.http.DefaultConfigurator; +import com.oracle.bmc.http.internal.EntityFactory; +import com.oracle.bmc.http.internal.RestClient; +import com.oracle.bmc.http.internal.RestClientFactory; +import com.oracle.bmc.http.internal.RestClientFactoryBuilder; +import com.oracle.bmc.http.signing.RequestSigner; +import com.oracle.bmc.http.signing.RequestSignerFactory; +import com.oracle.bmc.http.signing.SigningStrategy; +import org.junit.After; +import org.junit.Test; +import org.mockito.Mockito; + +import javax.ws.rs.client.Client; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.net.URI; +import java.util.ArrayList; +import java.util.Collections; +import java.util.EnumMap; +import java.util.List; +import java.util.Map; + +import static org.junit.Assert.assertTrue; + +public class SecretsConnectionPoolingOptionsTest { + private static final String CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.global"; + private static final String CONNECTION_POOLING_ENABLED_PREFIX = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled."; + private static final String SECRETS_CLIENT_CLASS_NAME = "com.oracle.bmc.secrets.SecretsClient"; + private static final String SECRETS_ASYNC_CLIENT_CLASS_NAME = + "com.oracle.bmc.secrets.SecretsAsyncClient"; + + private final String originalGlobalProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + private final String originalSecretsClientProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_CLIENT_CLASS_NAME); + private final String originalSecretsAsyncClientProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_ASYNC_CLIENT_CLASS_NAME); + + @After + public void tearDown() { + restoreProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, originalGlobalProperty); + restoreProperty( + CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_CLIENT_CLASS_NAME, + originalSecretsClientProperty); + restoreProperty( + CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_ASYNC_CLIENT_CLASS_NAME, + originalSecretsAsyncClientProperty); + } + + @Test + public void secretsClientUsesConnectionPoolingConfiguratorByDefault() { + System.clearProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + System.clearProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_CLIENT_CLASS_NAME); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsClient client = + new SecretsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void secretsClientFallsBackToDefaultConfiguratorWhenDisabledGlobally() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "false"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsClient client = + new SecretsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + @Test + public void secretsClientFallsBackToDefaultConfiguratorWhenDisabledForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_CLIENT_CLASS_NAME, "false"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsClient client = + new SecretsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + @Test + public void secretsClientUsesConnectionPoolingConfiguratorWhenEnabledGloballyAndForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsClient client = + new SecretsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void secretsAsyncClientUsesConnectionPoolingConfiguratorByDefault() { + System.clearProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + System.clearProperty(CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_ASYNC_CLIENT_CLASS_NAME); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsAsyncClient client = + new SecretsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void secretsAsyncClientFallsBackToDefaultConfiguratorWhenDisabledGlobally() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "false"); + System.setProperty( + CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_ASYNC_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsAsyncClient client = + new SecretsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + @Test + public void + secretsAsyncClientUsesConnectionPoolingConfiguratorWhenEnabledGloballyAndForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty( + CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_ASYNC_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsAsyncClient client = + new SecretsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void secretsAsyncClientFallsBackToDefaultConfiguratorWhenDisabledForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty( + CONNECTION_POOLING_ENABLED_PREFIX + SECRETS_ASYNC_CLIENT_CLASS_NAME, "false"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + SecretsAsyncClient client = + new SecretsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + private static final RequestSigner TEST_REQUEST_SIGNER = + new RequestSigner() { + @Override + public Map signRequest( + URI uri, + String httpMethod, + Map> headers, + Object body) { + return Collections.emptyMap(); + } + }; + + private static final RequestSignerFactory TEST_REQUEST_SIGNER_FACTORY = + new RequestSignerFactory() { + @Override + public RequestSigner createRequestSigner( + com.oracle.bmc.Service service, + AbstractAuthenticationDetailsProvider abstractAuthProvider) { + return TEST_REQUEST_SIGNER; + } + }; + + private static final Map + TEST_SIGNING_STRATEGY_FACTORIES = createSigningStrategyFactories(); + + private static Map createSigningStrategyFactories() { + Map factories = new EnumMap<>(SigningStrategy.class); + for (SigningStrategy strategy : SigningStrategy.values()) { + factories.put(strategy, TEST_REQUEST_SIGNER_FACTORY); + } + return factories; + } + + private static ClientConfigurator getPrimaryConfigurator( + RecordingRestClientFactoryBuilder restClientFactoryBuilder) { + CompositeClientConfigurator compositeClientConfigurator = + (CompositeClientConfigurator) restClientFactoryBuilder.getBuiltClientConfigurator(); + return compositeClientConfigurator.getConfigurators().get(0); + } + + private static void restoreProperty(String key, String value) { + if (value == null) { + System.clearProperty(key); + } else { + System.setProperty(key, value); + } + } + + private static class TestAuthenticationDetailsProvider + implements BasicAuthenticationDetailsProvider { + @Override + public String getKeyId() { + return "test-key-id"; + } + + @Override + public InputStream getPrivateKey() { + return new ByteArrayInputStream(new byte[0]); + } + + @Override + public String getPassPhrase() { + return null; + } + + @Override + public char[] getPassphraseCharacters() { + return null; + } + } + + private static class RecordingRestClientFactoryBuilder extends RestClientFactoryBuilder { + private ClientConfigurator builtClientConfigurator; + + @Override + public RestClientFactory build() { + ArrayList configurators = new ArrayList<>(); + configurators.add(getClientConfigurator()); + configurators.addAll(getAdditionalClientConfigurators()); + builtClientConfigurator = + new CompositeClientConfigurator(Collections.unmodifiableList(configurators)); + return new StubRestClientFactory(builtClientConfigurator); + } + + ClientConfigurator getBuiltClientConfigurator() { + return builtClientConfigurator; + } + } + + private static class StubRestClientFactory extends RestClientFactory { + StubRestClientFactory(ClientConfigurator clientConfigurator) { + super(clientConfigurator); + } + + @Override + public RestClient create( + RequestSigner defaultRequestSigner, + Map requestSigners, + ClientConfiguration configuration, + boolean isNonBuffering, + com.oracle.bmc.circuitbreaker.JaxRsCircuitBreaker circuitBreaker, + com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration) { + Client client = Mockito.mock(Client.class); + Mockito.when(client.getConfiguration()).thenReturn(null); + return new RestClient( + client, new EntityFactory(), null, isNonBuffering, getClientConfigurator()); + } + + @Override + public RestClient create( + RequestSigner defaultRequestSigner, + Map requestSigners, + ClientConfiguration configuration, + boolean isNonBuffering) { + return create( + defaultRequestSigner, + requestSigners, + configuration, + isNonBuffering, + null, + null); + } + } +} diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index b8ebdf703e2..6b1ab139ed7 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index 8b09be6120b..c3b7b676cf3 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java index 627607312ec..179c39b085e 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java @@ -487,7 +487,7 @@ public java.util.concurrent.Future activateSubscri "PartnerIntegeration", "ActivateSubscription", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscription"); final java.util.function.Function transformer = ActivateSubscriptionConverter.fromResponse( @@ -539,7 +539,7 @@ public java.util.concurrent.Future listingSubscrip "PartnerIntegeration", "ListingSubscriptions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptions"); final java.util.function.Function transformer = ListingSubscriptionsConverter.fromResponse( @@ -587,7 +587,7 @@ public java.util.concurrent.Future resolveSubscript "PartnerIntegeration", "ResolveSubscription", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscription"); final java.util.function.Function transformer = ResolveSubscriptionConverter.fromResponse( diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java index 4046205e142..77b12bf1a69 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java @@ -503,7 +503,7 @@ public ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionReq "PartnerIntegeration", "ActivateSubscription", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscription"); java.util.function.Function transformer = ActivateSubscriptionConverter.fromResponse( @@ -544,7 +544,7 @@ public ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsReq "PartnerIntegeration", "ListingSubscriptions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptions"); java.util.function.Function transformer = ListingSubscriptionsConverter.fromResponse( @@ -582,7 +582,7 @@ public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionReques "PartnerIntegeration", "ResolveSubscription", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscription"); java.util.function.Function transformer = ResolveSubscriptionConverter.fromResponse( diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java index 51602ed6261..285f5e26e68 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java @@ -482,7 +482,10 @@ public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + "Subscription", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/CancelWorkRequest"); final java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -531,7 +534,7 @@ protected void beforeRetryAction() {} "Subscription", "ChangeSubscriptionCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/ChangeSubscriptionCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeSubscriptionCompartmentResponse> transformer = @@ -583,7 +586,10 @@ public java.util.concurrent.Future createSubscriptio com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "CreateSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "CreateSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/CreateSubscription"); final java.util.function.Function transformer = CreateSubscriptionConverter.fromResponse( @@ -631,7 +637,10 @@ public java.util.concurrent.Future deleteSubscriptio DeleteSubscriptionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "DeleteSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "DeleteSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/DeleteSubscription"); final java.util.function.Function transformer = DeleteSubscriptionConverter.fromResponse( @@ -674,7 +683,10 @@ public java.util.concurrent.Future getSubscription( GetSubscriptionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "GetSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "GetSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/GetSubscription"); final java.util.function.Function transformer = GetSubscriptionConverter.fromResponse( @@ -717,7 +729,10 @@ public java.util.concurrent.Future getSubscription GetSubscriptionTokenConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "GetSubscriptionToken", ib.getRequestUri().toString(), ""); + "Subscription", + "GetSubscriptionToken", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionToken/GetSubscriptionToken"); final java.util.function.Function transformer = GetSubscriptionTokenConverter.fromResponse( @@ -761,7 +776,10 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "Subscription", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -803,7 +821,10 @@ public java.util.concurrent.Future listSubscriptions( ListSubscriptionsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListSubscriptions", ib.getRequestUri().toString(), ""); + "Subscription", + "ListSubscriptions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionCollection/ListSubscriptions"); final java.util.function.Function transformer = ListSubscriptionsConverter.fromResponse( @@ -846,7 +867,10 @@ public java.util.concurrent.Future listWorkReques ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + "Subscription", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -890,7 +914,10 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "Subscription", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -934,7 +961,10 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "Subscription", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -977,7 +1007,10 @@ public java.util.concurrent.Future updateSubscriptio UpdateSubscriptionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "UpdateSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "UpdateSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/UpdateSubscription"); final java.util.function.Function transformer = UpdateSubscriptionConverter.fromResponse( diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java index f9a1f2d93d7..394eb86f34a 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java @@ -572,7 +572,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + "Subscription", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/CancelWorkRequest"); java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -612,7 +615,7 @@ public ChangeSubscriptionCompartmentResponse changeSubscriptionCompartment( "Subscription", "ChangeSubscriptionCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/ChangeSubscriptionCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeSubscriptionCompartmentResponse> transformer = @@ -653,7 +656,10 @@ public CreateSubscriptionResponse createSubscription(CreateSubscriptionRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "CreateSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "CreateSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/CreateSubscription"); java.util.function.Function transformer = CreateSubscriptionConverter.fromResponse( @@ -691,7 +697,10 @@ public DeleteSubscriptionResponse deleteSubscription(DeleteSubscriptionRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "DeleteSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "DeleteSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/DeleteSubscription"); java.util.function.Function transformer = DeleteSubscriptionConverter.fromResponse( @@ -726,7 +735,10 @@ public GetSubscriptionResponse getSubscription(GetSubscriptionRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "GetSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "GetSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/GetSubscription"); java.util.function.Function transformer = GetSubscriptionConverter.fromResponse( @@ -760,7 +772,10 @@ public GetSubscriptionTokenResponse getSubscriptionToken(GetSubscriptionTokenReq com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "GetSubscriptionToken", ib.getRequestUri().toString(), ""); + "Subscription", + "GetSubscriptionToken", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionToken/GetSubscriptionToken"); java.util.function.Function transformer = GetSubscriptionTokenConverter.fromResponse( @@ -794,7 +809,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( - "Subscription", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "Subscription", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -826,7 +844,10 @@ public ListSubscriptionsResponse listSubscriptions(ListSubscriptionsRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListSubscriptions", ib.getRequestUri().toString(), ""); + "Subscription", + "ListSubscriptions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionCollection/ListSubscriptions"); java.util.function.Function transformer = ListSubscriptionsConverter.fromResponse( @@ -861,7 +882,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + "Subscription", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -895,7 +919,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "Subscription", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -929,7 +956,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( - "Subscription", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "Subscription", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -963,7 +993,10 @@ public UpdateSubscriptionResponse updateSubscription(UpdateSubscriptionRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Subscription", "UpdateSubscription", ib.getRequestUri().toString(), ""); + "Subscription", + "UpdateSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/UpdateSubscription"); java.util.function.Function transformer = UpdateSubscriptionConverter.fromResponse( diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 53961c12319..657d047193a 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-servicecatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 4c64a83fc5e..19d84c6b437 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.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 79084ccbe8b..5eb163198e2 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.91.0 + 2.93.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 7b501e01cb8..47a401c20ba 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index f794ae56932..a8d356d1d6f 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 52d8bada733..2908feae5c1 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-streaming @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdmin.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdmin.java index ad58978431c..c969b12eb3c 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdmin.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdmin.java @@ -230,6 +230,18 @@ ChangeStreamPoolCompartmentResponse changeStreamPoolCompartment( */ GetStreamPoolResponse getStreamPool(GetStreamPoolRequest request); + /** + * Gets the details of a work request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + /** * Lists the connectharness. * @param request The request object containing the details to send @@ -270,6 +282,45 @@ ChangeStreamPoolCompartmentResponse changeStreamPoolCompartment( */ ListStreamsResponse listStreams(ListStreamsRequest request); + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestLogs API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequests API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** * Updates the tags applied to the connect harness. * diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsync.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsync.java index 9cb1f44720e..4414d928eb3 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsync.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsync.java @@ -270,6 +270,21 @@ java.util.concurrent.Future getStreamPool( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets the details of a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Lists the connectharness. * @@ -319,6 +334,56 @@ java.util.concurrent.Future listStreams( ListStreamsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists the errors for a work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Lists the logs for a work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Updates the tags applied to the connect harness. * diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsyncClient.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsyncClient.java index aa40b0a30b0..4bfc522ace2 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsyncClient.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminAsyncClient.java @@ -1059,6 +1059,51 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + LOG.trace("Called async getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequest/GetWorkRequest"); + final java.util.function.Function + transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetWorkRequestRequest, GetWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listConnectHarnesses( ListConnectHarnessesRequest request, @@ -1196,6 +1241,146 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + LOG.trace("Called async listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestErrorCollection/ListWorkRequestErrors"); + final java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + LOG.trace("Called async listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestLogEntry/ListWorkRequestLogs"); + final java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + LOG.trace("Called async listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestSummaryCollection/ListWorkRequests"); + final java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestsRequest, ListWorkRequestsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateConnectHarness( UpdateConnectHarnessRequest request, diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminClient.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminClient.java index 5ac46bebf77..7f1b98b4392 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminClient.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminClient.java @@ -1028,6 +1028,41 @@ public GetStreamPoolResponse getStreamPool(GetStreamPoolRequest request) { }); } + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequest/GetWorkRequest"); + java.util.function.Function transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListConnectHarnessesResponse listConnectHarnesses(ListConnectHarnessesRequest request) { LOG.trace("Called listConnectHarnesses"); @@ -1137,6 +1172,118 @@ public ListStreamsResponse listStreams(ListStreamsRequest request) { }); } + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestErrorCollection/ListWorkRequestErrors"); + java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestLogEntry/ListWorkRequestLogs"); + java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "StreamAdmin", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestSummaryCollection/ListWorkRequests"); + java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateConnectHarnessResponse updateConnectHarness(UpdateConnectHarnessRequest request) { LOG.trace("Called updateConnectHarness"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminPaginators.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminPaginators.java index 45549a07e45..ac448f119dd 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminPaginators.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminPaginators.java @@ -365,4 +365,344 @@ public java.util.List apply( } }); } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.streaming.model.WorkRequestError} objects + * contained in responses from the listWorkRequestErrors operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.streaming.model.WorkRequestError} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, com.oracle.bmc.streaming.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestLogs operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.streaming.model.WorkRequestLogEntry} objects + * contained in responses from the listWorkRequestLogs operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.streaming.model.WorkRequestLogEntry} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, com.oracle.bmc.streaming.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequests operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.streaming.model.WorkRequestSummary} objects + * contained in responses from the listWorkRequests operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.streaming.model.WorkRequestSummary} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse, + com.oracle.bmc.streaming.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminWaiters.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminWaiters.java index a5813c42b9e..0a1836e772e 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminWaiters.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/StreamAdminWaiters.java @@ -323,4 +323,60 @@ public boolean test(GetStreamPoolResponse response) { com.oracle.bmc.streaming.model.StreamPool.LifecycleState.Deleted)), request); } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeConnectHarnessCompartmentConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeConnectHarnessCompartmentConverter.java index 68ea7952f27..90100711c07 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeConnectHarnessCompartmentConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeConnectHarnessCompartmentConverter.java @@ -126,6 +126,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.streaming.responses .ChangeConnectHarnessCompartmentResponse responseWrapper = builder.build(); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamCompartmentConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamCompartmentConverter.java index 35016a39f31..5d4cef44b9c 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamCompartmentConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamCompartmentConverter.java @@ -123,6 +123,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.streaming.responses.ChangeStreamCompartmentResponse responseWrapper = builder.build(); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamPoolCompartmentConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamPoolCompartmentConverter.java index df43e97022c..be8d37a678a 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamPoolCompartmentConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ChangeStreamPoolCompartmentConverter.java @@ -125,6 +125,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.streaming.responses .ChangeStreamPoolCompartmentResponse responseWrapper = builder.build(); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateConnectHarnessConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateConnectHarnessConverter.java index 549f65962e3..b8cf12d5064 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateConnectHarnessConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateConnectHarnessConverter.java @@ -123,6 +123,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "etag"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamConverter.java index a626ceb474b..d10a1c8ec14 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamConverter.java @@ -113,6 +113,17 @@ public com.oracle.bmc.streaming.responses.CreateStreamResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "etag"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamPoolConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamPoolConverter.java index a8a19b3895b..b05a74938e6 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamPoolConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/CreateStreamPoolConverter.java @@ -119,6 +119,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "etag"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteConnectHarnessConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteConnectHarnessConverter.java index d81e40797d9..3e897ef2a1c 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteConnectHarnessConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteConnectHarnessConverter.java @@ -116,6 +116,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.streaming.responses.DeleteConnectHarnessResponse responseWrapper = builder.build(); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamConverter.java index bf4ba72c815..ca33b611838 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamConverter.java @@ -115,6 +115,17 @@ public com.oracle.bmc.streaming.responses.DeleteStreamResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.streaming.responses.DeleteStreamResponse responseWrapper = builder.build(); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamPoolConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamPoolConverter.java index f30a4c35458..07ed92e16c7 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamPoolConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/DeleteStreamPoolConverter.java @@ -115,6 +115,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.streaming.responses.DeleteStreamPoolResponse responseWrapper = builder.build(); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/GetWorkRequestConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/GetWorkRequestConverter.java new file mode 100644 index 00000000000..5dd68bfcbba --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/GetWorkRequestConverter.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.streaming.model.*; +import com.oracle.bmc.streaming.requests.*; +import com.oracle.bmc.streaming.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class GetWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetWorkRequestConverter.class); + + public static com.oracle.bmc.streaming.requests.GetWorkRequestRequest interceptRequest( + com.oracle.bmc.streaming.requests.GetWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.streaming.requests.GetWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20180418") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.GetWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.GetWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.GetWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.GetWorkRequestResponse>() { + @Override + public com.oracle.bmc.streaming.responses.GetWorkRequestResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.streaming.responses.GetWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model.WorkRequest>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model.WorkRequest + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model.WorkRequest + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model.WorkRequest> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.streaming.responses.GetWorkRequestResponse.Builder + builder = + com.oracle.bmc.streaming.responses + .GetWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequest(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.streaming.responses.GetWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestErrorsConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestErrorsConverter.java new file mode 100644 index 00000000000..725114fe4b8 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestErrorsConverter.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.streaming.model.*; +import com.oracle.bmc.streaming.requests.*; +import com.oracle.bmc.streaming.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestErrorsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestErrorsConverter.class); + + public static com.oracle.bmc.streaming.requests.ListWorkRequestErrorsRequest interceptRequest( + com.oracle.bmc.streaming.requests.ListWorkRequestErrorsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.streaming.requests.ListWorkRequestErrorsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20180418") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("errors"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.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.streaming.responses.ListWorkRequestErrorsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestErrorsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestErrorsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses + .ListWorkRequestErrorsResponse>() { + @Override + public com.oracle.bmc.streaming.responses.ListWorkRequestErrorsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.streaming.responses.ListWorkRequestErrorsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model + .WorkRequestErrorCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model + .WorkRequestErrorCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model + .WorkRequestErrorCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model + .WorkRequestErrorCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.streaming.responses.ListWorkRequestErrorsResponse + .Builder + builder = + com.oracle.bmc.streaming.responses + .ListWorkRequestErrorsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestErrorCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.streaming.responses.ListWorkRequestErrorsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestLogsConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestLogsConverter.java new file mode 100644 index 00000000000..477afde62da --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestLogsConverter.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.streaming.model.*; +import com.oracle.bmc.streaming.requests.*; +import com.oracle.bmc.streaming.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestLogsConverter.class); + + public static com.oracle.bmc.streaming.requests.ListWorkRequestLogsRequest interceptRequest( + com.oracle.bmc.streaming.requests.ListWorkRequestLogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.streaming.requests.ListWorkRequestLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20180418") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("logs"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.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.streaming.responses.ListWorkRequestLogsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse>() { + @Override + public com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model + .WorkRequestLogEntryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model + .WorkRequestLogEntryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model + .WorkRequestLogEntryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model + .WorkRequestLogEntryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse + .Builder + builder = + com.oracle.bmc.streaming.responses + .ListWorkRequestLogsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestLogEntryCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.streaming.responses.ListWorkRequestLogsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestsConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestsConverter.java new file mode 100644 index 00000000000..bd8af8c4e34 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/ListWorkRequestsConverter.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.streaming.model.*; +import com.oracle.bmc.streaming.requests.*; +import com.oracle.bmc.streaming.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestsConverter.class); + + public static com.oracle.bmc.streaming.requests.ListWorkRequestsRequest interceptRequest( + com.oracle.bmc.streaming.requests.ListWorkRequestsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.streaming.requests.ListWorkRequestsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20180418").path("workRequests"); + + if (request.getWorkRequestId() != null) { + target = + target.queryParam( + "workRequestId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWorkRequestId())); + } + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getResourceId() != null) { + target = + target.queryParam( + "resourceId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceId())); + } + + 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.streaming.responses.ListWorkRequestsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.streaming.responses.ListWorkRequestsResponse>() { + @Override + public com.oracle.bmc.streaming.responses.ListWorkRequestsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.streaming.responses.ListWorkRequestsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model + .WorkRequestSummaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model + .WorkRequestSummaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.streaming.model + .WorkRequestSummaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.streaming.model + .WorkRequestSummaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.streaming.responses.ListWorkRequestsResponse.Builder + builder = + com.oracle.bmc.streaming.responses + .ListWorkRequestsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestSummaryCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.streaming.responses.ListWorkRequestsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateConnectHarnessConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateConnectHarnessConverter.java index 07ccdb448c4..e34181b000f 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateConnectHarnessConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateConnectHarnessConverter.java @@ -129,6 +129,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "etag"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamConverter.java index d630d75607a..b7df3470b64 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamConverter.java @@ -123,6 +123,17 @@ public com.oracle.bmc.streaming.responses.UpdateStreamResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "etag"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamPoolConverter.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamPoolConverter.java index d891cf1bee2..0f2348ac34f 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamPoolConverter.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/internal/http/UpdateStreamPoolConverter.java @@ -125,6 +125,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "etag"); diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/ActionType.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/ActionType.java new file mode 100644 index 00000000000..b24b046a9ab --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/ActionType.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * Possible types of actions. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public enum ActionType { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/OperationStatus.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/OperationStatus.java new file mode 100644 index 00000000000..f3b99f7ff12 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/OperationStatus.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * The status of the work request. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public enum OperationStatus { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/OperationType.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/OperationType.java new file mode 100644 index 00000000000..c21e4e85893 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/OperationType.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * The asynchronous operation tracked by the work request. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public enum OperationType { + CreateStream("CREATE_STREAM"), + UpdateStream("UPDATE_STREAM"), + DeleteStream("DELETE_STREAM"), + CreateStreamPool("CREATE_STREAM_POOL"), + UpdateStreamPool("UPDATE_STREAM_POOL"), + DeleteStreamPool("DELETE_STREAM_POOL"), + CreateConnectHarness("CREATE_CONNECT_HARNESS"), + UpdateConnectHarness("UPDATE_CONNECT_HARNESS"), + DeleteConnectHarness("DELETE_CONNECT_HARNESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/UpdateStreamPoolDetails.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/UpdateStreamPoolDetails.java index 5db7cfd4829..8c8f1b14f2a 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/UpdateStreamPoolDetails.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/UpdateStreamPoolDetails.java @@ -48,10 +48,23 @@ public UpdateStreamPoolDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - + /** + * The name of the stream pool. Avoid entering confidential information. + *

+ * Example: {@code MyStreamPool} + * + **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; + /** + * The name of the stream pool. Avoid entering confidential information. + *

+ * Example: {@code MyStreamPool} + * + * @param name the value to set + * @return this builder + **/ public Builder name(String name) { this.name = name; this.__explicitlySet__.add("name"); @@ -202,9 +215,22 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * The name of the stream pool. Avoid entering confidential information. + *

+ * Example: {@code MyStreamPool} + * + **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; + /** + * The name of the stream pool. Avoid entering confidential information. + *

+ * Example: {@code MyStreamPool} + * + * @return the value + **/ public String getName() { return name; } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequest.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequest.java new file mode 100644 index 00000000000..b35c2fbe5bf --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequest.java @@ -0,0 +1,499 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, + * the service creates a work request. A work request is an activity log that lets you track each step in the operation's + * progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * @param status the value to set + * @return this builder + **/ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The resources that are affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by the work request. + * @param resources the value to set + * @return this builder + **/ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + * @param percentComplete the value to set + * @return this builder + **/ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + **/ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * @return the value + **/ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The resources that are affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by the work request. + * @return the value + **/ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + * @return the value + **/ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + **/ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestError.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestError.java new file mode 100644 index 00000000000..ba1b67f64f4 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestError.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * An error encountered while performing an operation that is tracked by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @param code the value to set + * @return this builder + **/ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** + * A human-readable error message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable error message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the error occurred, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @return the value + **/ + public String getCode() { + return code; + } + + /** + * A human-readable error message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable error message. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The date and time the error occurred, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestErrorCollection.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..9d6c649ef52 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestErrorCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * A list of work request errors. Can contain both errors and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work request errors. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request errors. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work request errors. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request errors. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestLogEntry.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..63ce3534e14 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestLogEntry.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * A log message from performing an operation that is tracked by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable log message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the log message was written, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the log message was written, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable log message. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The date and time the log message was written, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the log message was written, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestLogEntryCollection.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..41673d32c4d --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * A list of work request logs. Can contain both logs and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work request log entries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request log entries. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work request log entries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request log entries. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestResource.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestResource.java new file mode 100644 index 00000000000..c1d414b6f8c --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestResource.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * A resource created or operated on by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestResource extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"entityType", "actionType", "identifier", "entityUri"}) + public WorkRequestResource( + String entityType, ActionType actionType, String identifier, String entityUri) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The resource type that the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type that the work request affects. + * @param entityType the value to set + * @return this builder + **/ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + **/ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + * @param identifier the value to set + * @return this builder + **/ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** + * The URI path that you can use for a GET request to access the resource metadata + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata + * @param entityUri the value to set + * @return this builder + **/ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, this.actionType, this.identifier, this.entityUri); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The resource type that the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type that the work request affects. + * @return the value + **/ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + * @return the value + **/ + public ActionType getActionType() { + return actionType; + } + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + * @return the value + **/ + public String getIdentifier() { + return identifier; + } + + /** + * The URI path that you can use for a GET request to access the resource metadata + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata + * @return the value + **/ + public String getEntityUri() { + return entityUri; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestSummary.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestSummary.java new file mode 100644 index 00000000000..72fa9711ea8 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestSummary.java @@ -0,0 +1,501 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, + * the service creates a work request. A work request is an activity log that lets you track each step in the operation's + * progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * @param status the value to set + * @return this builder + **/ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The resources that are affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by the work request. + * @param resources the value to set + * @return this builder + **/ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + * @param percentComplete the value to set + * @return this builder + **/ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + **/ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * @return the value + **/ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The resources that are affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by the work request. + * @return the value + **/ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + * @return the value + **/ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + **/ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestSummaryCollection.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..9635489878c --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/model/WorkRequestSummaryCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.model; + +/** + * A list of work requests. Can contain both work requests and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work requests. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work requests. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work requests. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work requests. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/GetWorkRequestRequest.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..c4653a17a91 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/GetWorkRequestRequest.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.requests; + +import com.oracle.bmc.streaming.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestErrorsRequest.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..bbbcfb26eb9 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.requests; + +import com.oracle.bmc.streaming.model.*; +/** + * Example: Click here to see how to use ListWorkRequestErrorsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The page at which to start retrieving results. + */ + private String page; + + /** + * The page at which to start retrieving results. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + private Integer limit; + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + public Integer getLimit() { + return limit; + } + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + **/ + public enum SortBy { + Timeaccepted("TIMEACCEPTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The page at which to start retrieving results. + */ + private String page = null; + + /** + * The page at which to start retrieving results. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, page, limit, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",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 ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestLogsRequest.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..7e192ba39b3 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,414 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.requests; + +import com.oracle.bmc.streaming.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The page at which to start retrieving results. + */ + private String page; + + /** + * The page at which to start retrieving results. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + private Integer limit; + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + public Integer getLimit() { + return limit; + } + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + **/ + public enum SortBy { + Timeaccepted("TIMEACCEPTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The page at which to start retrieving results. + */ + private String page = null; + + /** + * The page at which to start retrieving results. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListWorkRequestLogsRequest(workRequestId, page, limit, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",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 ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestsRequest.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..23edb24ed65 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/requests/ListWorkRequestsRequest.java @@ -0,0 +1,480 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.requests; + +import com.oracle.bmc.streaming.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The OCID of the compartment. Is exclusive with the {@code streamPoolId} parameter. One of them is required. + */ + private String compartmentId; + + /** + * The OCID of the compartment. Is exclusive with the {@code streamPoolId} parameter. One of them is required. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The page at which to start retrieving results. + */ + private String page; + + /** + * The page at which to start retrieving results. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + private Integer limit; + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + public Integer getLimit() { + return limit; + } + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + **/ + public enum SortBy { + Timeaccepted("TIMEACCEPTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + */ + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + */ + public String getResourceId() { + return resourceId; + } + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The OCID of the compartment. Is exclusive with the {@code streamPoolId} parameter. One of them is required. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment. Is exclusive with the {@code streamPoolId} parameter. One of them is required. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The page at which to start retrieving results. + */ + private String page = null; + + /** + * The page at which to start retrieving results. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. The value must be between 1 and 50. The default is 10. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private 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(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + */ + private String resourceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + workRequestId(o.getWorkRequestId()); + compartmentId(o.getCompartmentId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest build() { + ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.workRequestId = workRequestId; + request.compartmentId = compartmentId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + return request; + // new ListWorkRequestsRequest(workRequestId, compartmentId, page, limit, sortOrder, sortBy, resourceId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .compartmentId(compartmentId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy) + .resourceId(resourceId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + 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 ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeConnectHarnessCompartmentResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeConnectHarnessCompartmentResponse.java index 8d2d3de9f33..b8d1b74f6b2 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeConnectHarnessCompartmentResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeConnectHarnessCompartmentResponse.java @@ -25,13 +25,37 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private ChangeConnectHarnessCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +92,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(ChangeConnectHarnessCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -86,7 +130,7 @@ public Builder copy(ChangeConnectHarnessCompartmentResponse o) { */ public ChangeConnectHarnessCompartmentResponse build() { return new ChangeConnectHarnessCompartmentResponse( - __httpStatusCode__, headers, opcRequestId); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -104,6 +148,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -118,7 +163,9 @@ public boolean equals(Object o) { } ChangeConnectHarnessCompartmentResponse other = (ChangeConnectHarnessCompartmentResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -126,6 +173,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamCompartmentResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamCompartmentResponse.java index 79b2f03477d..d36c2ad86f5 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamCompartmentResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamCompartmentResponse.java @@ -25,13 +25,37 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private ChangeStreamCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +92,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(ChangeStreamCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +129,8 @@ public Builder copy(ChangeStreamCompartmentResponse o) { * @return the response object */ public ChangeStreamCompartmentResponse build() { - return new ChangeStreamCompartmentResponse(__httpStatusCode__, headers, opcRequestId); + return new ChangeStreamCompartmentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +148,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -117,7 +163,9 @@ public boolean equals(Object o) { } ChangeStreamCompartmentResponse other = (ChangeStreamCompartmentResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -125,6 +173,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamPoolCompartmentResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamPoolCompartmentResponse.java index 7e6df26f1ff..f06ae148dd0 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamPoolCompartmentResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ChangeStreamPoolCompartmentResponse.java @@ -25,13 +25,37 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private ChangeStreamPoolCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +92,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(ChangeStreamPoolCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -86,7 +130,7 @@ public Builder copy(ChangeStreamPoolCompartmentResponse o) { */ public ChangeStreamPoolCompartmentResponse build() { return new ChangeStreamPoolCompartmentResponse( - __httpStatusCode__, headers, opcRequestId); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -104,6 +148,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -118,7 +163,9 @@ public boolean equals(Object o) { } ChangeStreamPoolCompartmentResponse other = (ChangeStreamPoolCompartmentResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -126,6 +173,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateConnectHarnessResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateConnectHarnessResponse.java index 818501aa01d..2c18daa8119 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateConnectHarnessResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateConnectHarnessResponse.java @@ -25,6 +25,23 @@ 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -55,6 +72,7 @@ public com.oracle.bmc.streaming.model.ConnectHarness getConnectHarness() { "__httpStatusCode__", "headers", "opcRequestId", + "opcWorkRequestId", "etag", "connectHarness" }) @@ -62,10 +80,12 @@ private CreateConnectHarnessResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, + String opcWorkRequestId, String etag, com.oracle.bmc.streaming.model.ConnectHarness connectHarness) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.etag = etag; this.connectHarness = connectHarness; } @@ -104,6 +124,25 @@ public Builder opcRequestId(String 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -143,6 +182,7 @@ public Builder copy(CreateConnectHarnessResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); etag(o.getEtag()); connectHarness(o.getConnectHarness()); @@ -155,7 +195,12 @@ public Builder copy(CreateConnectHarnessResponse o) { */ public CreateConnectHarnessResponse build() { return new CreateConnectHarnessResponse( - __httpStatusCode__, headers, opcRequestId, etag, connectHarness); + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + etag, + connectHarness); } } @@ -173,6 +218,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",connectHarness=").append(String.valueOf(connectHarness)); sb.append(")"); @@ -191,6 +237,7 @@ public boolean equals(Object o) { CreateConnectHarnessResponse other = (CreateConnectHarnessResponse) 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.etag, other.etag) && java.util.Objects.equals(this.connectHarness, other.connectHarness); } @@ -200,6 +247,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamPoolResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamPoolResponse.java index 123796e19c1..d61518f6f24 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamPoolResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamPoolResponse.java @@ -25,6 +25,23 @@ 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -55,6 +72,7 @@ public com.oracle.bmc.streaming.model.StreamPool getStreamPool() { "__httpStatusCode__", "headers", "opcRequestId", + "opcWorkRequestId", "etag", "streamPool" }) @@ -62,10 +80,12 @@ private CreateStreamPoolResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, + String opcWorkRequestId, String etag, com.oracle.bmc.streaming.model.StreamPool streamPool) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.etag = etag; this.streamPool = streamPool; } @@ -104,6 +124,25 @@ public Builder opcRequestId(String 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -142,6 +181,7 @@ public Builder copy(CreateStreamPoolResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); etag(o.getEtag()); streamPool(o.getStreamPool()); @@ -154,7 +194,7 @@ public Builder copy(CreateStreamPoolResponse o) { */ public CreateStreamPoolResponse build() { return new CreateStreamPoolResponse( - __httpStatusCode__, headers, opcRequestId, etag, streamPool); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId, etag, streamPool); } } @@ -172,6 +212,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",streamPool=").append(String.valueOf(streamPool)); sb.append(")"); @@ -190,6 +231,7 @@ public boolean equals(Object o) { CreateStreamPoolResponse other = (CreateStreamPoolResponse) 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.etag, other.etag) && java.util.Objects.equals(this.streamPool, other.streamPool); } @@ -199,6 +241,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.streamPool == null ? 43 : this.streamPool.hashCode()); return result; diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamResponse.java index ac183f3a021..1a6c3688bed 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/CreateStreamResponse.java @@ -25,6 +25,23 @@ 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -55,6 +72,7 @@ public com.oracle.bmc.streaming.model.Stream getStream() { "__httpStatusCode__", "headers", "opcRequestId", + "opcWorkRequestId", "etag", "stream" }) @@ -62,10 +80,12 @@ private CreateStreamResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, + String opcWorkRequestId, String etag, com.oracle.bmc.streaming.model.Stream stream) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.etag = etag; this.stream = stream; } @@ -104,6 +124,25 @@ public Builder opcRequestId(String 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -142,6 +181,7 @@ public Builder copy(CreateStreamResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); etag(o.getEtag()); stream(o.getStream()); @@ -154,7 +194,7 @@ public Builder copy(CreateStreamResponse o) { */ public CreateStreamResponse build() { return new CreateStreamResponse( - __httpStatusCode__, headers, opcRequestId, etag, stream); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId, etag, stream); } } @@ -172,6 +212,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",stream=").append(String.valueOf(stream)); sb.append(")"); @@ -190,6 +231,7 @@ public boolean equals(Object o) { CreateStreamResponse other = (CreateStreamResponse) 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.etag, other.etag) && java.util.Objects.equals(this.stream, other.stream); } @@ -199,6 +241,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.stream == null ? 43 : this.stream.hashCode()); return result; diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteConnectHarnessResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteConnectHarnessResponse.java index a73cb6a0ea0..1bd9afed6d9 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteConnectHarnessResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteConnectHarnessResponse.java @@ -25,13 +25,37 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private DeleteConnectHarnessResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +92,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(DeleteConnectHarnessResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +129,8 @@ public Builder copy(DeleteConnectHarnessResponse o) { * @return the response object */ public DeleteConnectHarnessResponse build() { - return new DeleteConnectHarnessResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteConnectHarnessResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +148,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -117,7 +163,9 @@ public boolean equals(Object o) { } DeleteConnectHarnessResponse other = (DeleteConnectHarnessResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -125,6 +173,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamPoolResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamPoolResponse.java index 8685dd6eb0f..62f2638d632 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamPoolResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamPoolResponse.java @@ -25,13 +25,37 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private DeleteStreamPoolResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +92,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(DeleteStreamPoolResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +129,8 @@ public Builder copy(DeleteStreamPoolResponse o) { * @return the response object */ public DeleteStreamPoolResponse build() { - return new DeleteStreamPoolResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteStreamPoolResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +148,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -117,7 +163,9 @@ public boolean equals(Object o) { } DeleteStreamPoolResponse other = (DeleteStreamPoolResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -125,6 +173,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamResponse.java index da2e1079222..0c648e07f3a 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/DeleteStreamResponse.java @@ -25,13 +25,37 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private DeleteStreamResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +92,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(DeleteStreamResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +129,8 @@ public Builder copy(DeleteStreamResponse o) { * @return the response object */ public DeleteStreamResponse build() { - return new DeleteStreamResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteStreamResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +148,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -117,7 +163,9 @@ public boolean equals(Object o) { } DeleteStreamResponse other = (DeleteStreamResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -125,6 +173,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/GetWorkRequestResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..7922908675d --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/GetWorkRequestResponse.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.responses; + +import com.oracle.bmc.streaming.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.streaming.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @return the value + */ + public com.oracle.bmc.streaming.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.streaming.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.workRequest = workRequest; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.streaming.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.streaming.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, opcRequestId, workRequest); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestErrorsResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..e467b6ea218 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.responses; + +import com.oracle.bmc.streaming.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.streaming.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @return the value + */ + public com.oracle.bmc.streaming.model.WorkRequestErrorCollection + getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcPrevPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcPrevPage, + String opcRequestId, + com.oracle.bmc.streaming.model.WorkRequestErrorCollection workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.streaming.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.streaming.model.WorkRequestErrorCollection + workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcPrevPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestLogsResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..6682e8a1c32 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.responses; + +import com.oracle.bmc.streaming.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.streaming.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @return the value + */ + public com.oracle.bmc.streaming.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcPrevPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcPrevPage, + String opcRequestId, + com.oracle.bmc.streaming.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.streaming.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.streaming.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcPrevPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestsResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..1d906451537 --- /dev/null +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/ListWorkRequestsResponse.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.streaming.responses; + +import com.oracle.bmc.streaming.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 WorkRequestSummaryCollection instance. + */ + private com.oracle.bmc.streaming.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned WorkRequestSummaryCollection instance. + * @return the value + */ + public com.oracle.bmc.streaming.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcPrevPage", + "opcRequestId", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcPrevPage, + String opcRequestId, + com.oracle.bmc.streaming.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.opcRequestId = opcRequestId; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results exist. For important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, 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 WorkRequestSummaryCollection instance. + */ + private com.oracle.bmc.streaming.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned WorkRequestSummaryCollection instance. + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.streaming.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + opcRequestId(o.getOpcRequestId()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcPrevPage, + opcRequestId, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateConnectHarnessResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateConnectHarnessResponse.java index 31b634bccbd..2ef4b16ff25 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateConnectHarnessResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateConnectHarnessResponse.java @@ -25,6 +25,23 @@ 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -55,6 +72,7 @@ public com.oracle.bmc.streaming.model.ConnectHarness getConnectHarness() { "__httpStatusCode__", "headers", "opcRequestId", + "opcWorkRequestId", "etag", "connectHarness" }) @@ -62,10 +80,12 @@ private UpdateConnectHarnessResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, + String opcWorkRequestId, String etag, com.oracle.bmc.streaming.model.ConnectHarness connectHarness) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.etag = etag; this.connectHarness = connectHarness; } @@ -104,6 +124,25 @@ public Builder opcRequestId(String 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -143,6 +182,7 @@ public Builder copy(UpdateConnectHarnessResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); etag(o.getEtag()); connectHarness(o.getConnectHarness()); @@ -155,7 +195,12 @@ public Builder copy(UpdateConnectHarnessResponse o) { */ public UpdateConnectHarnessResponse build() { return new UpdateConnectHarnessResponse( - __httpStatusCode__, headers, opcRequestId, etag, connectHarness); + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + etag, + connectHarness); } } @@ -173,6 +218,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",connectHarness=").append(String.valueOf(connectHarness)); sb.append(")"); @@ -191,6 +237,7 @@ public boolean equals(Object o) { UpdateConnectHarnessResponse other = (UpdateConnectHarnessResponse) 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.etag, other.etag) && java.util.Objects.equals(this.connectHarness, other.connectHarness); } @@ -200,6 +247,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamPoolResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamPoolResponse.java index 752ea325e45..1efd5b3ad6c 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamPoolResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamPoolResponse.java @@ -25,6 +25,23 @@ 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -55,6 +72,7 @@ public com.oracle.bmc.streaming.model.StreamPool getStreamPool() { "__httpStatusCode__", "headers", "opcRequestId", + "opcWorkRequestId", "etag", "streamPool" }) @@ -62,10 +80,12 @@ private UpdateStreamPoolResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, + String opcWorkRequestId, String etag, com.oracle.bmc.streaming.model.StreamPool streamPool) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.etag = etag; this.streamPool = streamPool; } @@ -104,6 +124,25 @@ public Builder opcRequestId(String 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -142,6 +181,7 @@ public Builder copy(UpdateStreamPoolResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); etag(o.getEtag()); streamPool(o.getStreamPool()); @@ -154,7 +194,7 @@ public Builder copy(UpdateStreamPoolResponse o) { */ public UpdateStreamPoolResponse build() { return new UpdateStreamPoolResponse( - __httpStatusCode__, headers, opcRequestId, etag, streamPool); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId, etag, streamPool); } } @@ -172,6 +212,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",streamPool=").append(String.valueOf(streamPool)); sb.append(")"); @@ -190,6 +231,7 @@ public boolean equals(Object o) { UpdateStreamPoolResponse other = (UpdateStreamPoolResponse) 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.etag, other.etag) && java.util.Objects.equals(this.streamPool, other.streamPool); } @@ -199,6 +241,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.streamPool == null ? 43 : this.streamPool.hashCode()); return result; diff --git a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamResponse.java b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamResponse.java index 26b1f74f85b..252083d3bae 100644 --- a/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamResponse.java +++ b/bmc-streaming/src/main/java/com/oracle/bmc/streaming/responses/UpdateStreamResponse.java @@ -25,6 +25,23 @@ 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -55,6 +72,7 @@ public com.oracle.bmc.streaming.model.Stream getStream() { "__httpStatusCode__", "headers", "opcRequestId", + "opcWorkRequestId", "etag", "stream" }) @@ -62,10 +80,12 @@ private UpdateStreamResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, + String opcWorkRequestId, String etag, com.oracle.bmc.streaming.model.Stream stream) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.etag = etag; this.stream = stream; } @@ -104,6 +124,25 @@ public Builder opcRequestId(String 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; + } + /** * For optimistic concurrency control. See {@code if-match}. */ @@ -142,6 +181,7 @@ public Builder copy(UpdateStreamResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); etag(o.getEtag()); stream(o.getStream()); @@ -154,7 +194,7 @@ public Builder copy(UpdateStreamResponse o) { */ public UpdateStreamResponse build() { return new UpdateStreamResponse( - __httpStatusCode__, headers, opcRequestId, etag, stream); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId, etag, stream); } } @@ -172,6 +212,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",stream=").append(String.valueOf(stream)); sb.append(")"); @@ -190,6 +231,7 @@ public boolean equals(Object o) { UpdateStreamResponse other = (UpdateStreamResponse) 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.etag, other.etag) && java.util.Objects.equals(this.stream, other.stream); } @@ -199,6 +241,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.stream == null ? 43 : this.stream.hashCode()); return result; diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 62d7adf8c9a..071e702543a 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index aec7d76c3ec..7b7899a6a1a 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-threatintelligence @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 378ba55353f..feecb570e46 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-usage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index c2226bdc475..4998f7aefb6 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-usageapi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-usageapi/src/main/java/com/oracle/bmc/usageapi/model/RequestSummarizedUsagesDetails.java b/bmc-usageapi/src/main/java/com/oracle/bmc/usageapi/model/RequestSummarizedUsagesDetails.java index 107dc487940..d1011d420e7 100644 --- a/bmc-usageapi/src/main/java/com/oracle/bmc/usageapi/model/RequestSummarizedUsagesDetails.java +++ b/bmc-usageapi/src/main/java/com/oracle/bmc/usageapi/model/RequestSummarizedUsagesDetails.java @@ -169,6 +169,7 @@ public Builder forecast(Forecast forecast) { * Credit - Query the credit adjustments data. * ExpiredCredit - Query the expired credits data. * AllCredit - Query the credit adjustments and expired credit. + * Usage_Only - Query the only usage data without cost or currency. * **/ @com.fasterxml.jackson.annotation.JsonProperty("queryType") @@ -181,6 +182,7 @@ public Builder forecast(Forecast forecast) { * Credit - Query the credit adjustments data. * ExpiredCredit - Query the expired credits data. * AllCredit - Query the credit adjustments and expired credit. + * Usage_Only - Query the only usage data without cost or currency. * * @param queryType the value to set * @return this builder @@ -473,6 +475,7 @@ public Forecast getForecast() { * Credit - Query the credit adjustments data. * ExpiredCredit - Query the expired credits data. * AllCredit - Query the credit adjustments and expired credit. + * Usage_Only - Query the only usage data without cost or currency. * **/ public enum QueryType { @@ -481,6 +484,7 @@ public enum QueryType { Credit("CREDIT"), Expiredcredit("EXPIREDCREDIT"), Allcredit("ALLCREDIT"), + UsageOnly("USAGE_ONLY"), ; private final String value; @@ -517,6 +521,7 @@ public static QueryType create(String key) { * Credit - Query the credit adjustments data. * ExpiredCredit - Query the expired credits data. * AllCredit - Query the credit adjustments and expired credit. + * Usage_Only - Query the only usage data without cost or currency. * **/ @com.fasterxml.jackson.annotation.JsonProperty("queryType") @@ -529,6 +534,7 @@ public static QueryType create(String key) { * Credit - Query the credit adjustments data. * ExpiredCredit - Query the expired credits data. * AllCredit - Query the credit adjustments and expired credit. + * Usage_Only - Query the only usage data without cost or currency. * * @return the value **/ diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index a274a36372a..5aeb37c276f 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-vault @@ -16,12 +16,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.91.0 + 2.93.0 diff --git a/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsAsyncClient.java b/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsAsyncClient.java index dca5677dc59..c4c200a223f 100644 --- a/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsAsyncClient.java +++ b/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsAsyncClient.java @@ -272,6 +272,17 @@ public VaultsAsyncClient( com.oracle.bmc.util.internal.SpiClientConfiguratorUtils .getEnabledSpiClientConfigurators(); allConfigurators.addAll(additionalSpiClientConfigurators); + if (com.oracle.bmc.Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + this.getClass().getName())) { + restClientFactoryBuilder = + restClientFactoryBuilder.defaultConfigurator( + new com.oracle.bmc.http.ConnectionPoolingApacheConfigurator( + com.oracle.bmc.http.ApacheConnectionPoolConfig.builder() + .totalOpenConnections(100) + .defaultMaxConnectionsPerRoute(100) + .idleConnectionTimeoutInMillis(60000L) + .build())); + } this.restClientFactory = restClientFactoryBuilder .clientConfigurator(clientConfigurator) diff --git a/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsClient.java b/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsClient.java index 647e8b3c9c3..0b1a857bd92 100644 --- a/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsClient.java +++ b/bmc-vault/src/main/java/com/oracle/bmc/vault/VaultsClient.java @@ -314,6 +314,17 @@ protected VaultsClient( com.oracle.bmc.util.internal.SpiClientConfiguratorUtils .getEnabledSpiClientConfigurators(); allConfigurators.addAll(additionalSpiClientConfigurators); + if (com.oracle.bmc.Options.isDefaultConnectionPoolingApacheConfiguratorEnabledForClassName( + this.getClass().getName())) { + restClientFactoryBuilder = + restClientFactoryBuilder.defaultConfigurator( + new com.oracle.bmc.http.ConnectionPoolingApacheConfigurator( + com.oracle.bmc.http.ApacheConnectionPoolConfig.builder() + .totalOpenConnections(100) + .defaultMaxConnectionsPerRoute(100) + .idleConnectionTimeoutInMillis(60000L) + .build())); + } this.restClientFactory = restClientFactoryBuilder .clientConfigurator(clientConfigurator) diff --git a/bmc-vault/src/test/java/com/oracle/bmc/vault/VaultsConnectionPoolingOptionsTest.java b/bmc-vault/src/test/java/com/oracle/bmc/vault/VaultsConnectionPoolingOptionsTest.java new file mode 100644 index 00000000000..b6df96fa165 --- /dev/null +++ b/bmc-vault/src/test/java/com/oracle/bmc/vault/VaultsConnectionPoolingOptionsTest.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.vault; + +import com.oracle.bmc.ClientConfiguration; +import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.http.ClientConfigurator; +import com.oracle.bmc.http.CompositeClientConfigurator; +import com.oracle.bmc.http.ConnectionPoolingApacheConfigurator; +import com.oracle.bmc.http.DefaultConfigurator; +import com.oracle.bmc.http.internal.EntityFactory; +import com.oracle.bmc.http.internal.RestClient; +import com.oracle.bmc.http.internal.RestClientFactory; +import com.oracle.bmc.http.internal.RestClientFactoryBuilder; +import com.oracle.bmc.http.signing.RequestSigner; +import com.oracle.bmc.http.signing.RequestSignerFactory; +import com.oracle.bmc.http.signing.SigningStrategy; +import org.junit.After; +import org.junit.Test; +import org.mockito.Mockito; + +import javax.ws.rs.client.Client; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.net.URI; +import java.util.Collections; +import java.util.EnumMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ExecutorService; + +import static org.junit.Assert.assertTrue; + +public class VaultsConnectionPoolingOptionsTest { + private static final String CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled.global"; + private static final String CONNECTION_POOLING_ENABLED_PREFIX = + "oci.javasdk.ConnectionPoolingApacheConfigurator.enabled."; + private static final String VAULTS_CLIENT_CLASS_NAME = "com.oracle.bmc.vault.VaultsClient"; + private static final String VAULTS_ASYNC_CLIENT_CLASS_NAME = + "com.oracle.bmc.vault.VaultsAsyncClient"; + + private final String originalGlobalProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + private final String originalVaultsClientProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_CLIENT_CLASS_NAME); + private final String originalVaultsAsyncClientProperty = + System.getProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_ASYNC_CLIENT_CLASS_NAME); + + @After + public void tearDown() { + restoreProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, originalGlobalProperty); + restoreProperty( + CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_CLIENT_CLASS_NAME, + originalVaultsClientProperty); + restoreProperty( + CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_ASYNC_CLIENT_CLASS_NAME, + originalVaultsAsyncClientProperty); + } + + @Test + public void vaultsClientUsesConnectionPoolingConfiguratorByDefault() { + System.clearProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + System.clearProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_CLIENT_CLASS_NAME); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsClient client = + new VaultsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + Mockito.mock(ExecutorService.class), + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void vaultsClientFallsBackToDefaultConfiguratorWhenDisabledGlobally() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "false"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsClient client = + new VaultsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + Mockito.mock(ExecutorService.class), + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + @Test + public void vaultsClientFallsBackToDefaultConfiguratorWhenDisabledForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_CLIENT_CLASS_NAME, "false"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsClient client = + new VaultsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + Mockito.mock(ExecutorService.class), + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + @Test + public void vaultsClientUsesConnectionPoolingConfiguratorWhenEnabledGloballyAndForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsClient client = + new VaultsClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + Mockito.mock(ExecutorService.class), + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void vaultsAsyncClientUsesConnectionPoolingConfiguratorByDefault() { + System.clearProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY); + System.clearProperty(CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_ASYNC_CLIENT_CLASS_NAME); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsAsyncClient client = + new VaultsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void vaultsAsyncClientFallsBackToDefaultConfiguratorWhenDisabledGlobally() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "false"); + System.setProperty( + CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_ASYNC_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsAsyncClient client = + new VaultsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + @Test + public void vaultsAsyncClientUsesConnectionPoolingConfiguratorWhenEnabledGloballyAndForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty( + CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_ASYNC_CLIENT_CLASS_NAME, "true"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsAsyncClient client = + new VaultsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue( + getPrimaryConfigurator(restClientFactoryBuilder) + instanceof ConnectionPoolingApacheConfigurator); + } + + @Test + public void vaultsAsyncClientFallsBackToDefaultConfiguratorWhenDisabledForClass() { + System.setProperty(CONNECTION_POOLING_ENABLED_GLOBAL_SYSTEM_PROPERTY, "true"); + System.setProperty( + CONNECTION_POOLING_ENABLED_PREFIX + VAULTS_ASYNC_CLIENT_CLASS_NAME, "false"); + + RecordingRestClientFactoryBuilder restClientFactoryBuilder = + new RecordingRestClientFactoryBuilder(); + + VaultsAsyncClient client = + new VaultsAsyncClient( + new TestAuthenticationDetailsProvider(), + null, + null, + TEST_REQUEST_SIGNER_FACTORY, + TEST_SIGNING_STRATEGY_FACTORIES, + Collections.emptyList(), + null, + restClientFactoryBuilder); + client.close(); + + assertTrue(getPrimaryConfigurator(restClientFactoryBuilder) instanceof DefaultConfigurator); + } + + private static final RequestSigner TEST_REQUEST_SIGNER = + new RequestSigner() { + @Override + public Map signRequest( + URI uri, + String httpMethod, + Map> headers, + Object body) { + return Collections.emptyMap(); + } + }; + + private static final RequestSignerFactory TEST_REQUEST_SIGNER_FACTORY = + new RequestSignerFactory() { + @Override + public RequestSigner createRequestSigner( + com.oracle.bmc.Service service, + AbstractAuthenticationDetailsProvider abstractAuthProvider) { + return TEST_REQUEST_SIGNER; + } + }; + + private static final Map + TEST_SIGNING_STRATEGY_FACTORIES = createSigningStrategyFactories(); + + private static Map createSigningStrategyFactories() { + Map factories = new EnumMap<>(SigningStrategy.class); + for (SigningStrategy strategy : SigningStrategy.values()) { + factories.put(strategy, TEST_REQUEST_SIGNER_FACTORY); + } + return factories; + } + + private static ClientConfigurator getPrimaryConfigurator( + RecordingRestClientFactoryBuilder restClientFactoryBuilder) { + CompositeClientConfigurator compositeClientConfigurator = + (CompositeClientConfigurator) restClientFactoryBuilder.getBuiltClientConfigurator(); + return compositeClientConfigurator.getConfigurators().get(0); + } + + private static void restoreProperty(String key, String value) { + if (value == null) { + System.clearProperty(key); + } else { + System.setProperty(key, value); + } + } + + private static class TestAuthenticationDetailsProvider + implements BasicAuthenticationDetailsProvider { + @Override + public String getKeyId() { + return "test-key-id"; + } + + @Override + public InputStream getPrivateKey() { + return new ByteArrayInputStream(new byte[0]); + } + + @Override + public String getPassPhrase() { + return null; + } + + @Override + public char[] getPassphraseCharacters() { + return null; + } + } + + private static class RecordingRestClientFactoryBuilder extends RestClientFactoryBuilder { + private ClientConfigurator builtClientConfigurator; + + @Override + public RestClientFactory build() { + java.util.ArrayList configurators = new java.util.ArrayList<>(); + configurators.add(getClientConfigurator()); + configurators.addAll(getAdditionalClientConfigurators()); + builtClientConfigurator = + new CompositeClientConfigurator(Collections.unmodifiableList(configurators)); + return new StubRestClientFactory(builtClientConfigurator); + } + + ClientConfigurator getBuiltClientConfigurator() { + return builtClientConfigurator; + } + } + + private static class StubRestClientFactory extends RestClientFactory { + StubRestClientFactory(ClientConfigurator clientConfigurator) { + super(clientConfigurator); + } + + @Override + public RestClient create( + RequestSigner defaultRequestSigner, + Map requestSigners, + ClientConfiguration configuration, + boolean isNonBuffering, + com.oracle.bmc.circuitbreaker.JaxRsCircuitBreaker circuitBreaker, + com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration) { + Client client = Mockito.mock(Client.class); + Mockito.when(client.getConfiguration()).thenReturn(null); + return new RestClient( + client, new EntityFactory(), null, isNonBuffering, getClientConfigurator()); + } + + @Override + public RestClient create( + RequestSigner defaultRequestSigner, + Map requestSigners, + ClientConfiguration configuration, + boolean isNonBuffering) { + return create( + defaultRequestSigner, + requestSigners, + configuration, + isNonBuffering, + null, + null); + } + } +} diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 5da0b9d5150..f136a8f8e4e 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-vbsinst @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index bf133315b62..f6e2463a17e 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-visualbuilder @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index f43b94be429..ce8ab2ce370 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 85d3f7e91ff..b154bce56d4 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 11a070bb4fb..ab6c5b007e1 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-waa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 6e5b5336ec6..bc02402f028 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 2343e81f213..6ad9b124cfe 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-waf @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index c58ff1972d9..7d1d6c13efc 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 804162d6200..8ed5bed6f68 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-workrequests @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 22d09196dff..884c78b57a5 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.91.0 + 2.93.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 19c203a858f..82827aa24e2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 2.91.0 + 2.93.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -35,8 +35,9 @@ UTF-8 1.3.2 - 2.19.2 - 2.19.2 + 2.21 + 2.21.2 + 2.21.2 2.47 4.5.13 4.4.13 @@ -622,7 +623,7 @@ com.fasterxml.jackson.core jackson-annotations - ${jackson.version} + ${jackson.annotation.version} com.fasterxml.jackson.core @@ -890,6 +891,8 @@ bmc-generativeaidata bmc-self bmc-containerregistry + bmc-databasetoolsruntime + bmc-costad bmc-full bmc-shaded